/*
Theme Name: Cerrajeros Betera Nexora
Description: Tema para cerrajeros en Betera con todas las correcciones aplicadas
Author: Cerrajeros Betera Nexora Team
Version: 1.2
*/

:root {
    --primary-color: #1a2332;
    --secondary-color: #d4af37;
    --accent-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.site-header {
    background: rgba(26, 35, 50, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 35, 50, 0.8), rgba(26, 35, 50, 0.6)), url('assets/images/hero-villa.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    margin-top: 80px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin: 10px;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin: 10px;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

.content-section.bg-light {
    background: #f8f9fa;
}

.content-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.content-section p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.service-price {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: auto;
    padding-top: 1rem;
}

/* Zones */
.zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.zone-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.zone-card:hover {
    transform: translateY(-5px);
}

.zone-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.zone-content {
    padding: 1.5rem;
}

.zone-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.about-item {
    text-align: center;
}

.about-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.about-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.whatsapp-float a {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-number {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.whatsapp-float a:hover .whatsapp-number {
    opacity: 1;
}

/* Links in dark sections */
.site-footer a,
.bg-dark a {
    color: var(--secondary-color) !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

.site-footer a:hover,
.bg-dark a:hover {
    color: var(--accent-color) !important;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    justify-content: space-around;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--accent-color);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hide cookie banners globally */
.cookie-notice,
.cookie-banner,
#cookie-notice,
#cookie-banner,
.gdpr-cookie-notice,
.cookie-law-info-bar,
.cli-bar-container,
[class*="cookie"],
[id*="cookie"],
[class*="gdpr"],
[id*="gdpr"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        position: static;
        background: var(--primary-color);
        padding: 1rem 0;
    }
    
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
    }
    
    .site-logo {
        font-size: 1.2rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 1rem 0;
    }
    
    .main-navigation ul.active {
        display: flex;
    }
    
    .main-navigation li {
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem 2rem;
        color: var(--accent-color) !important;
        text-decoration: none !important;
        font-size: 1rem;
        transition: background 0.3s;
    }
    
    .main-navigation a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--secondary-color) !important;
    }
    
    .hero {
        margin-top: 0;
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        font-size: 0.9rem;
        padding: 12px 20px;
        margin: 0.5rem;
        display: inline-block;
        width: auto;
    }
    
    .content-section {
        padding: 40px 0;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .content-section p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .services-grid,
    .zones-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .service-card,
    .zone-card,
    .about-item {
        margin: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        padding: 0 1rem;
    }
    
    .footer-bottom {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .whatsapp-float {
        bottom: 5rem;
        right: 1rem;
        z-index: 9999;
    }
    
    .whatsapp-float a {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
        box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    }
    
    /* Hide cookie banner on mobile */
    .cookie-notice,
    .cookie-banner,
    #cookie-notice,
    #cookie-banner,
    .gdpr-cookie-notice,
    [class*="cookie"],
    [id*="cookie"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

