:root {
    --primary: #004aad; /* Azul intenso */
    --accent: #ff6b00;  /* Naranja acción */
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --whatsapp-color: #25d366;
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: var(--font-body); color: #444; background: var(--light); }

/* Botón Flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    
    /* Mantenemos el color verde de fondo */
    background-color: var(--whatsapp-color); 
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2000;
    transition: transform 0.3s;

    /* --- NUEVAS LÍNEAS PARA EL ICONO --- */
    
    /* URL del icono oficial en blanco (SVG) */
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/WhatsApp.svg/1200px-WhatsApp.svg.png');
    
    /* Ajustamos el tamaño del logo dentro del círculo */
    background-size: 35px; 
    
    /* Lo centramos y evitamos que se repita */
    background-position: center;
    background-repeat: no-repeat;
}

/* Barra Superior */
.top-bar {
    background: var(--dark);
    color: #ccc;
    padding: 10px 0;
    font-size: 0.9rem;
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.contact-items a { color: white; text-decoration: none; margin-right: 15px; }
.contact-items i { color: var(--accent); margin-right: 5px; }
.service-area { color: var(--accent); font-weight: bold; }

/* Navbar */
.navbar { background: white; box-shadow: 0 2px 15px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--primary); }
.logo span { color: var(--accent); }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 600; font-family: var(--font-head); transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }
.btn-nav { background: var(--primary); color: white !important; padding: 10px 25px; border-radius: 50px; white-space: nowrap; }
/* Estilos del botón Hamburguesa (por defecto oculto en PC) */
.menu-toggle {
    display: none; /* En PC no se ve */
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 4px 0;
    transition: 0.4s;
    display: block;
}
/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    background: url(/img/PintorPortada.png) center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.hero-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,74,173,0.6));
}
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 20px; }
.hero h1 { font-family: var(--font-head); font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; }
.hero .highlight { color: var(--accent); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

.btn-primary {
    display: inline-block; padding: 15px 35px; background: var(--accent); color: white;
    text-decoration: none; font-weight: bold; border-radius: 5px; transition: 0.3s;
}
.btn-transparent {
    display: inline-block; padding: 15px 35px; border: 2px solid white; color: white;
    text-decoration: none; font-weight: bold; border-radius: 5px; margin-left: 15px; transition: 0.3s;
}
.btn-transparent:hover { background: white; color: var(--primary); }

/* Barra de Confianza */
.trust-bar { background: var(--primary); color: white; padding: 40px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: center; gap: 20px; }
.trust-item i { font-size: 2.5rem; margin-bottom: 10px; opacity: 0.8; }

/* Servicios con Tarjetas */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-family: var(--font-head); font-size: 2.5rem; color: var(--dark); margin-bottom: 10px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: transform 0.3s; }
.service-card:hover { transform: translateY(-5px); }
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 25px; }
.card-content h3 { color: var(--primary); margin-bottom: 10px; font-family: var(--font-head); }

/* Cobertura */
.coverage-section { background: #e9ecef; padding: 60px 0; text-align: center; }
.cities-grid { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }
.cities-grid span { background: white; padding: 10px 20px; border-radius: 50px; font-weight: 600; color: var(--dark); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

/* Contacto Mejorado */
.contact-box { display: flex; background: white; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 10px; overflow: hidden; flex-wrap: wrap; }
.contact-details { flex: 1; padding: 50px; min-width: 300px; }
.map-wrapper { flex: 1; min-height: 400px; background: #ddd; min-width: 300px; }
.info-row { display: flex; align-items: center; margin-top: 30px; }
.info-row i { font-size: 1.5rem; color: var(--primary); width: 40px; }
.info-row a { text-decoration: none; color: var(--dark); font-size: 1.1rem; }

/* Footer */
footer { background: var(--dark); color: #777; padding: 20px 0; text-align: center; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Recuerda usar el JS anterior para activar esto */
    .top-bar { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .btn-transparent { display: none; }
}
/* --- ESTILOS PARA LA PÁGINA DE SERVICIOS --- */

/* Cabecera pequeña */
.page-header {
    background: linear-gradient(rgba(0,74,173,0.8), rgba(0,74,173,0.8)), url('https://images.unsplash.com/photo-1562259929-b4e1fd3aef09?ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    padding: 100px 0 60px;
    text-align: center;
    color: white;
}

.page-header h1 { font-family: var(--font-head); font-size: 3rem; margin-bottom: 10px; }
.page-header p { font-size: 1.2rem; opacity: 0.9; }

/* Rejilla de Detalles (Img + Texto) */
.detail-grid {
    display: flex;
    align-items: center;
    gap: 60px;
}

.detail-grid.reverse {
    flex-direction: row-reverse; /* Invierte el orden para el efecto zigzag */
}

.detail-image { flex: 1; }
.detail-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.detail-text { flex: 1; }
.detail-text h2 { color: var(--accent); font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 10px; }
.detail-text h3 { color: var(--primary); font-size: 2rem; margin-bottom: 20px; font-family: var(--font-head); }
.detail-text p { margin-bottom: 20px; color: #555; }

.detail-list { list-style: none; margin-bottom: 30px; }
.detail-list li { margin-bottom: 12px; font-size: 1.05rem; }
.detail-list i { color: var(--accent); margin-right: 10px; }
.bg-light { background-color: #f0f4f8; } /* Fondo gris suave para alternar */

/* Protocolo de Limpieza */
.clean-protocol { background: white; text-align: center; }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 10px;
    position: relative;
    transition: 0.3s;
}
.step-card:hover { border-color: var(--primary); transform: translateY(-5px); }

.step-num {
    background: var(--primary);
    color: white;
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: bold;
    margin: 0 auto 20px;
}
.step-card h4 { margin-bottom: 15px; color: var(--dark); font-size: 1.2rem; }
.image-wrapper-contact {
    flex: 1;
    min-width: 300px;
    min-height: 400px;
    position: relative;
}
.image-wrapper-contact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Esto añade un filtro azulado para que quede elegante */
    filter: brightness(0.8); 
}

/* Banner CTA Final */
.cta-banner {
    background: var(--primary);
    color: white;
    padding: 60px 0;
    text-align: center;
}
.cta-banner h2 { font-family: var(--font-head); font-size: 2.2rem; margin-bottom: 10px; }
.cta-banner p { margin-bottom: 30px; font-size: 1.2rem; opacity: 0.9; }

/* --- ESTILOS DE LA GALERÍA ANTES/DESPUÉS --- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.comparison-card h3 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary);
    font-family: var(--font-head);
}

.ba-slider {
    position: relative;
    width: 100%;
    height: 300px; /* Altura fija para uniformidad */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    cursor: col-resize; /* Cursor de flechitas */
}

.ba-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que la imagen se deforme */
    display: block;
}

/* Capa del ANTES (Fondo) */
.ba-image-before {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
}

/* Capa del DESPUÉS (La que cambia de ancho) */
.ba-image-after {
    position: absolute;
    width: 50%; /* Empieza a la mitad */
    height: 100%;
    top: 0; left: 0;
    overflow: hidden; /* IMPORTANTE: Recorta la imagen */
    border-right: 2px solid white;
    z-index: 2;
}

/* Etiquetas de texto */
.label-ba {
    position: absolute;
    top: 20px;
    padding: 5px 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 0.8rem;
    border-radius: 4px;
    pointer-events: none; /* Para que no moleste al clic */
}
.ba-image-before .label-ba { right: 20px; }
.ba-image-after .label-ba { left: 20px; }

/* El Tirador (Barra central) */
.ba-handle {
    position: absolute;
    height: 100%;
    width: 40px;
    top: 0;
    left: 50%; /* Coincide con el width del after */
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* El JS controla la posición */
}

.handle-circle {
    width: 40px; height: 40px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center; justify-content: center;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* --- RESPONSIVE (Móvil y Tablet) --- */
@media (max-width: 1024px) {
    
    .top-bar { display: none; } /* Ocultar barra superior */

    /* Botón Hamburguesa */
    .menu-toggle {
        display: flex; 
        z-index: 2000; /* Asegurar que esté encima de todo */
    }

    /* Menú Oculto por defecto */
    .nav-links {
        display: none; 
        width: 100%;
        position: absolute;
        top: 80px; /* Altura del navbar */
        left: 0;
        background: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 1500; /* Encima del contenido, debajo del botón */
    }

    /* ESTA ES LA CLAVE: Cuando JS añade la clase "active", se muestra */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        margin: 15px 0;
        display: block;
    }

    /* Ajustes visuales extra para móvil */
    .hero h1 { font-size: 2.2rem; }
    .page-header h1 { font-size: 2rem; }
    .btn-transparent { display: none; }
    .detail-grid, .detail-grid.reverse { flex-direction: column; gap: 30px; }
}