        html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
        img { max-width: 100%; }
        * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
        body { background-color: var(--color-fondo); color: var(--color-texto); line-height: 1.6; }

        /* ===== Paleta del sitio: ÚNICO lugar donde se definen los colores =====
           Azul y rojo salen del logo. Para cambiar un color, cámbialo solo aquí.
           Ver .claude/disenos/resumen-diseno.md */
        :root {
            /* Marca */
            --color-azul:             #00548b;   /* títulos, borde superior de tarjetas, franjas */
            --color-azul-oscuro:      #003a61;   /* pie de página */
            --color-azul-noche:       #00253f;   /* franja final del pie */
            --color-rojo:             #c7102d;   /* acento de marca: subrayados, botones, flechas */
            --color-rojo-hover:       #a30d24;   /* rojo al pasar el ratón / pulsar */
            --rgb-azul:               0, 84, 139;  /* = azul, para rgba(var(--rgb-azul), alfa) */
            --rgb-rojo:               199, 16, 45; /* = rojo, para rgba(var(--rgb-rojo), alfa) */
            /* Neutros */
            --color-blanco:           #ffffff;
            --color-texto:            #333333;   /* texto general (gris oscuro del logo) */
            --color-texto-fuerte:     #1f2022;   /* títulos de tarjeta, textos destacados */
            --color-fondo:            #f8f9fa;   /* fondo de la página */
            --color-claro:            #f1f5f9;   /* texto sobre fotos oscuras y fondos hover claros */
            --color-texto-info:       #f8fafc;   /* texto de las franjas azules */
            --color-texto-footer:     #dddbdb;   /* texto secundario sobre azul oscuro */
            --color-borde-campo:      #cbd5e1;   /* bordes de campos del formulario */
            --color-borde-menu:       #eef1f4;   /* separadores del menú móvil */
            --color-borde-lista:      #e3e6e9;   /* separadores de la lista de contactos */
            --color-borde-vacio:      #b9c9d6;   /* borde punteado de la galería vacía */
            --color-relleno-imagen:   #dde6ee;   /* fondo mientras carga una foto */
            /* Velos */
            --velo-oscuro:            rgba(48, 47, 47, 0.70);  /* sobre fotos de fondo */
            --fondo-visor:            rgba(10, 18, 26, 0.94);  /* fondo del visor de fotos */
        }

        /* Barra de Navegación Superior: ahora blanca, logo a la izquierda, menú a la derecha */
        header { background: var(--color-blanco); box-shadow: 0 2px 8px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; border-bottom: 3px solid var(--color-rojo); height: 95px; }
        
        .nav-container { max-width: 1200px; margin: auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; height: 100%; }
        
        /* Contenedor del logo: a la izquierda, centrado verticalmente */
        .logo-area { 
            display: flex; 
            align-items: center; 
            justify-content: flex-start; 
            text-decoration: none; 
            height: 100%; 
            flex: 0 0 auto;
            margin: 0;
            padding: 0;
        }
        
        /* Logo grande y centrado verticalmente */
        .logo-img { 
            height: 70px;            /* <-- sube o baja este numero para agrandar/reducir el logo */
            width: auto; 
            max-width: 280px;
            object-fit: contain;     /* muestra el logo completo, sin recortarlo */
            display: block; 
            margin: 0;
            padding: 0;
        }

        /* Letras del menú: ahora oscuras, porque la barra es blanca */
        .nav-links { display: flex; list-style: none; gap: 24px; align-items: center; height: 100%; justify-content: flex-end; }
        .nav-links li a { text-decoration: none; color: var(--color-azul); font-weight: 600; font-size: 15px; transition: color 0.3s; cursor: pointer; }
        .nav-links li a:hover, .nav-links li a.active { color: var(--color-rojo); }
        
        /* Dropdown */
        .dropdown { position: relative; }
        .dropdown-content { display: none; position: absolute; background-color: var(--color-blanco); min-width: 200px; box-shadow: 0px 8px 16px rgba(0,0,0,0.1); z-index: 1; border-radius: 4px; top: 100%; left: 0; border-top: 2px solid var(--color-azul); }
        .dropdown-content a { color: var(--color-azul) !important; padding: 12px 16px; text-decoration: none; display: block; font-size: 14px; }
        .dropdown-content a:hover { background-color: var(--color-claro); color: var(--color-rojo) !important; }
        .dropdown:hover .dropdown-content { display: block; }

        /* (El comportamiento del menú en pantallas pequeñas está en la sección RESPONSIVE al final del archivo) */

        /* Enlace para saltar al contenido (visible solo con teclado) */
        .skip-link {
            position: absolute; left: 12px; top: -60px; z-index: 2000;
            background: var(--color-azul); color: var(--color-blanco);
            padding: 12px 20px; border-radius: 0 0 6px 6px; font-weight: 700;
            text-decoration: none; transition: top .2s ease;
        }
        .skip-link:focus { top: 0; outline: 3px solid var(--color-rojo); outline-offset: 2px; }

        /* Secciones */
        .page-section { display: none; }
        .page-section.active-section { display: block; }

        /* Hero Banner */
        .hero { color: var(--color-blanco); text-align: center; padding: clamp(60px, 12vw, 140px) 20px clamp(80px, 14vw, 140px); position: relative; }
        .hero-overlay { background: var(--velo-oscuro); position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
        .hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
        .hero h1 { font-size: clamp(26px, 6vw, 42px); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
        .hero p { font-size: clamp(15px, 3.6vw, 18px); margin: 0 auto 30px auto; color: var(--color-claro); text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
        
        .info-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0; background: var(--color-azul); color: var(--color-blanco); text-align: center; }
        .info-box { padding: 40px 30px; border-right: 1px solid rgba(255, 255, 255, 0.15); background: var(--color-azul); }
        .info-box .info-box-title { font-size: 22px; margin-bottom: 15px; }
        .info-box p { font-size: 15px; line-height: 1.5; color: var(--color-texto-info); }

        .container { max-width: 1100px; margin: auto; padding: 60px 20px; }
        .section-title { font-size: clamp(22px, 5vw, 30px); color: var(--color-azul); margin-bottom: 25px; text-align: center; border-bottom: 2px solid var(--color-rojo); display: inline-block; padding-bottom: 5px; }
        .title-wrapper { text-align: center; margin-bottom: 40px; }

        .about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; margin-bottom: 50px; }
        .about-image picture { display: block; }
.about-image img { width: 100%; border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.226); border: 3px solid var(--color-azul); }
        .about-text p { margin-bottom: 20px; color: var(--color-texto-fuerte); font-size: 16px; text-align: justify; }

        .vmv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 30px; margin-top: 40px; margin-bottom: 50px; }
        .vmv-card { background: var(--color-blanco); padding: 30px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border-top: 4px solid var(--color-azul); }
        .vmv-card h3 { color: var(--color-azul); margin-bottom: 15px; font-size: 22px; text-align: center; border-bottom: 2px solid var(--color-rojo); padding-bottom: 8px; }
        .vmv-card p, .vmv-card li { color: var(--color-texto-fuerte); font-size: 15px; }
        .vmv-card ul { padding-left: 20px; }
        .vmv-card li { margin-bottom: 8px; }

        .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; margin-top: 30px; }
        .service-card { background: var(--color-blanco); padding: 30px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); text-align: center; border-top: 4px solid var(--color-azul); transition: transform 0.3s; }
        .service-card:hover { transform: translateY(-5px); }
        .service-card h3 { color: var(--color-texto-fuerte); margin-top: 10px; font-size: 18px; }
        .service-card img { width: 48px; height: 48px; object-fit: contain; }

        .faq-item { background: var(--color-blanco); padding: 20px; border-radius: 8px; margin-bottom: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.03); border-left: 4px solid var(--color-azul); }
        .faq-question { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; color: var(--color-azul); list-style: none; }
        .faq-question::-webkit-details-marker { display: none; }
        .faq-question::marker { content: ""; }
        .faq-question h3, .faq-question h4 { color: inherit; font-size: 17px; font-weight: 700; line-height: 1.35; margin: 0; }
        .faq-question:hover { color: var(--color-rojo); }
        .faq-question:focus-visible { outline: 3px solid var(--color-azul); outline-offset: 3px; border-radius: 4px; }
        .faq-item h3, .faq-item h4 { color: var(--color-azul); }
        .faq-answer { padding-top: 10px; color: var(--color-texto-fuerte); font-size: 14px; }
        .faq-answer p, .faq-answer ul, .faq-answer ol { color: inherit; font-size: inherit; }
        .faq-answer ul, .faq-answer ol { padding-left: 20px; }
        .faq-answer li { margin-bottom: 4px; }
        .faq-subtitle { color: var(--color-azul); text-align: center; margin: 0 0 8px; }
        .faq-subtitle-text { text-align: center; color: var(--color-texto-fuerte); font-size: 14px; margin-bottom: 20px; }
        .faq-subsection { margin-top: 40px; }

        footer { background: var(--color-azul-oscuro); color: var(--color-blanco); padding: 50px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 30px; border-top: 5px solid var(--color-rojo); }
        footer .footer-title { font-size: 18px; margin-bottom: 15px; color: var(--color-blanco); }
        footer p, footer li { font-size: 14px; color: var(--color-texto-footer); list-style: none; margin-bottom: 8px; }
        .footer-bottom { background: var(--color-azul-noche); color: var(--color-texto-footer); text-align: center; padding: 20px; font-size: 13px; }

        /* Botones circulares de redes sociales */
        .social-buttons { display: flex; justify-content: center; gap: 16px; padding: 30px 20px; background: var(--color-azul-oscuro); }
        .social-buttons a { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--color-blanco); box-shadow: 0 2px 6px rgba(0,0,0,0.2); transition: transform 0.25s ease, box-shadow 0.25s ease; overflow: hidden; text-decoration: none; }
        .social-buttons a:hover { transform: translateY(-4px); box-shadow: 0 6px 12px rgba(0,0,0,0.3); }
        .social-buttons img { width: 26px; height: 26px; object-fit: contain; }
        .social-buttons a.mail-btn { background: var(--color-blanco); }
        .social-buttons a.mail-btn span { color: var(--color-rojo); font-size: 22px; line-height: 1; text-decoration: none; }

        @media (max-width: 768px) {
            .about-grid { grid-template-columns: 1fr; }
        }

        /* ===== Animaciones: darle vida a la página ===== */
        @keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
        @keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } 60% { transform: scale(1); } }
        @keyframes kenburns { 0% { transform: scale(1); } 100% { transform: scale(1.08); } }

        .page-section.active-section { animation: fadeInUp .5s ease; }

        /* .fade-up ahora usa transition en vez de @keyframes: JavaScript agrega
           la clase .visible en el momento justo (ver <script> al final), así la
           animación funciona tanto al cambiar de pestaña como al hacer scroll. */
        .fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
        .fade-up.visible { opacity: 1; transform: translateY(0); }
        .delay-1.visible { transition-delay: .05s; }
        .delay-2.visible { transition-delay: .15s; }
        .delay-3.visible { transition-delay: .25s; }
        .delay-4.visible { transition-delay: .35s; }
        .delay-5.visible { transition-delay: .45s; }
        .delay-6.visible { transition-delay: .55s; }
        .delay-7.visible { transition-delay: .65s; }
        .delay-8.visible { transition-delay: .75s; }

        /* Subrayado animado del menú */
        .nav-links li a { position: relative; }
        .nav-links li a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--color-rojo); transition: width .3s ease; }
        .nav-links li a:hover::after, .nav-links li a.active::after { width: 100%; }

        /* Carrusel de fotos del hero */
        /* Altura del hero proporcional al ancho: en pantallas muy grandes ya no queda
           una franja delgada que obliga a las fotos a recortarse y ampliarse de más. */
        .hero { overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: clamp(460px, min(42vw, calc(100vh - 95px)), 860px); }
        .hero-content { width: 100%; }
        .hero-slides { position: absolute; inset: 0; z-index: 0; }
        .hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; animation: kenburns 14s ease-in-out infinite alternate; }
        .hero-slide.active { opacity: 1; z-index: 1; }
        /* Punto de enfoque por foto (evita cortar caras/letrero al recortar con cover) */
        /* Las fotos se cargan desde JavaScript: solo la primera al inicio y el
           resto en tiempo de inactividad, para no bloquear el primer pintado. */
        .hero-slide:nth-child(1) { background-position: center 40%; }
        .hero-slide:nth-child(2) { background-position: center 62%; }
        .hero-slide:nth-child(3) { background-position: center 35%; }
        .hero-slide:nth-child(4) { background-position: center 35%; }
        .hero-slide:nth-child(5) { background-position: center 40%; }
        .hero-slide { will-change: opacity, transform; backface-visibility: hidden; }
        .hero-overlay { z-index: 2; }
        .hero-content { z-index: 3; }
        .hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 10px; }
        .hero-dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; appearance: none; }
        .hero-dot::before { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); transform: translate(-50%, -50%); transition: background .3s ease, transform .3s ease; }
        .hero-dot:hover::before { background: rgba(255,255,255,0.85); }
        .hero-dot:focus-visible { outline: 3px solid var(--color-blanco); outline-offset: 0; }
        .hero-dot.active::before { background: var(--color-rojo); transform: translate(-50%, -50%) scale(1.2); }

        .hero-cta { background-color: var(--color-rojo); color: var(--color-blanco); padding: 12px 30px; font-size: 16px; cursor: pointer; border: none; border-radius: 4px; font-weight: bold; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
        .hero-cta:hover { background-color: var(--color-rojo-hover); }

        /* Botón del hero con brillo al pasar el mouse */
        .cta-btn { transition: transform .25s ease, box-shadow .25s ease; }
        .cta-btn:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 20px rgba(var(--rgb-rojo), 0.45); }

        /* Iconos de servicios: rebote suave al hover */
        .service-card img { transition: transform .3s ease; }
        .service-card:hover img { transform: scale(1.15) rotate(-4deg); }
        /* Quien pide "reducir movimiento": ni la tarjeta sube ni el icono gira (igual que en el carrusel) */
        @media (prefers-reduced-motion: reduce) {
            .service-card, .service-card img { transition: none; }
            .service-card:hover, .service-card:hover img { transform: none; }
        }

        /* Corazón con latido en el footer */
        .heartbeat { display: inline-block; animation: heartbeat 1.6s ease-in-out infinite; }

        /* "Reducir movimiento" (general): fuera desplazamientos, escalados y zooms;
           se mantienen los fundidos de opacidad y los cambios de color/sombra.
           (Va después de las reglas que anula para ganarles en el orden del CSS.) */
        @keyframes seccionAparece { from { opacity: 0; } to { opacity: 1; } }
        @media (prefers-reduced-motion: reduce) {
            .page-section.active-section { animation: seccionAparece .5s ease; }
            .fade-up, .fade-up.visible { transform: none; }
            .hero-slide { animation: none; }
            .heartbeat { animation: none; }
            .cta-btn:hover { transform: none; }
            .social-buttons a:hover { transform: none; }
        }

        /* Barra de estadísticas animadas */
        .stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); text-align: center; background: var(--color-blanco); padding: 40px 20px; }
        .stat-item { padding: 10px; }
        .stat-number { font-size: 42px; font-weight: 800; color: var(--color-rojo); line-height: 1; }
        .stat-label { font-size: 14px; color: var(--color-azul); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 8px; }

        /* FAQ tipo acordeón */

        .faq-icon { color: var(--color-rojo); font-size: 22px; font-weight: 700; transition: transform .3s ease; flex-shrink: 0; margin-left: 12px; }
        .faq-item[open] > .faq-question .faq-icon { transform: rotate(45deg); }
    

/* ===== Servicios: fondo con efecto parallax (solo esta sección) ===== */
#servicios {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: transparent;
}

#servicios::before {
    content: "";
    position: absolute;
    inset: -12vh 0;
    z-index: -2;
    background-image: url("../images/fondo-servicios.jpg");
    background-image: image-set(url("../images/fondo-servicios.webp") type("image/webp"), url("../images/fondo-servicios.jpg") type("image/jpeg"));
    background-size: cover;
    background-position: center 62%;
    background-attachment: fixed;
}

#servicios::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, var(--velo-oscuro), var(--velo-oscuro));
}

#servicios .container {
    position: relative;
    z-index: 1;
}

#servicios .section-title { color: var(--color-blanco); text-shadow: 0 2px 8px rgba(0,0,0,.35); }
#servicios .container > p { color: var(--color-blanco) !important; text-shadow: 0 1px 4px rgba(0,0,0,.35); }

@media (max-width: 768px) {
    /* background-attachment: fixed tiene soporte irregular en móviles. */
    #servicios::before {
        inset: 0;
        background-attachment: scroll;
    }
}

/* ===== Módulo: Agendar Citas ===== */
.nav-links li a.nav-cta { background: var(--color-rojo); color: var(--color-blanco) !important; padding: 8px 16px; border-radius: 20px; }
.nav-links li a.nav-cta:hover { background: var(--color-rojo-hover); color: var(--color-blanco) !important; }
.nav-links li a.nav-cta::after { display: none; }

.booking-panel { background: var(--color-blanco); border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border-top: 4px solid var(--color-azul); padding: 25px 30px; margin-bottom: 25px; }
.booking-panel-title { color: var(--color-azul); font-size: 18px; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--color-rojo); display: inline-block; padding-bottom: 5px; }

.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.booking-field-full { grid-column: 1 / -1; }

.booking-field label { display: block; color: var(--color-texto-fuerte); font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.booking-field input, .booking-field select, .booking-field textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--color-borde-campo); border-radius: 6px;
    font-size: 14px; color: var(--color-texto-fuerte); font-family: inherit; background: var(--color-blanco);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.booking-field input:focus, .booking-field select:focus, .booking-field textarea:focus {
    outline: none; border-color: var(--color-azul); box-shadow: 0 0 0 3px rgba(var(--rgb-azul), 0.12);
}
.booking-field textarea { resize: vertical; }

.booking-submit-btn { background-color: var(--color-rojo); color: var(--color-blanco); padding: 14px 34px; font-size: 16px; cursor: pointer; border: none; border-radius: 4px; font-weight: bold; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }

@media (max-width: 600px) {
    .booking-grid { grid-template-columns: 1fr; }
}


/* =====================================================================
   RESPONSIVE — menú hamburguesa, tablets y teléfonos
   ===================================================================== */

/* Botón hamburguesa: oculto en escritorio */
.menu-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; background: var(--color-blanco); border: 2px solid var(--color-azul); border-radius: 6px; cursor: pointer; flex-shrink: 0; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--color-azul); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Evita que el menú de escritorio se aplaste entre 1025px y ~1150px */
@media (max-width: 1150px) and (min-width: 1025px) {
    .nav-links { gap: 12px; }
    .nav-links li a { font-size: 13px; }
}

/* Tablets, ventanas reducidas y teléfonos: menú desplegable */
@media (max-width: 1024px) {
    header { height: 78px; }
    .nav-container { padding: 0 16px; gap: 12px; }
    .logo-img { height: 52px; max-width: 60vw; }
    .menu-toggle { display: flex; }

    .nav-links {
        position: absolute; top: calc(100% + 3px); left: 0; right: 0;
        height: auto; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
        background: var(--color-blanco); border-bottom: 3px solid var(--color-rojo); box-shadow: 0 10px 18px rgba(0,0,0,0.15);
        max-height: 0; overflow: hidden; visibility: hidden;
        transition: max-height .35s ease, visibility .35s;
    }
    .nav-links.open { max-height: calc(100vh - 81px); max-height: calc(100dvh - 81px); overflow-y: auto; visibility: visible; }
    .nav-links li { width: 100%; }
    .nav-links li a { display: block; padding: 15px 20px; font-size: 16px; border-top: 1px solid var(--color-borde-menu); }
    .nav-links li a::after { display: none; }
    .nav-links li a.active { background: var(--color-claro); }
    .nav-links li a.nav-cta { margin: 12px 20px; padding: 12px 16px; text-align: center; border-top: none; border-radius: 24px; }

    /* El submenú de hover no sirve en pantallas táctiles: el enlace "Servicios" ya lleva a la sección */
    .dropdown-content, .dropdown:hover .dropdown-content { display: none !important; }
    .caret { display: none; }

    .about-grid { grid-template-columns: 1fr; gap: 24px; }
    .about-text p { text-align: left; }
}

/* Tablets pequeñas / móviles grandes */
@media (max-width: 768px) {
    .container { padding: 40px 16px; }
    .title-wrapper { margin-bottom: 28px; }
    .info-box { padding: 28px 20px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
    .vmv-card { padding: 22px 18px; }
    footer { padding: 36px 20px; }
    .social-buttons { flex-wrap: wrap; padding: 24px 16px; }
    .contact-list { padding: 20px !important; }
    .contact-list li { overflow-wrap: anywhere; }
}

/* Teléfonos */
@media (max-width: 600px) {
    .logo-img { height: 46px; }
    .hero-content .cta-btn { width: 100%; max-width: 320px; }

    .stats-bar { grid-template-columns: repeat(3, 1fr); padding: 24px 8px; }
    .stat-item { padding: 6px 4px; }
    .stat-number { font-size: 30px; }
    .stat-label { font-size: 11px; letter-spacing: 0; }

    .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .service-card { padding: 20px 10px; }
    .service-card h3 { font-size: 15px; }

    .facility-arrow { width: 34px; height: 34px; font-size: 13px; }
    .facility-arrow.prev { left: 8px; }
    .facility-arrow.next { right: 8px; }

    .faq-item { padding: 16px; }
    .faq-question h3, .faq-question h4 { font-size: 15px; }

    /* Formulario: 16px evita el zoom automático de iOS al tocar un campo */
    .booking-panel { padding: 20px 16px; }
    .booking-panel-title { font-size: 16px; }
    .booking-field { min-width: 0; }
    .booking-field input, .booking-field select, .booking-field textarea { font-size: 16px; }
    .booking-field input[type="date"], .booking-field input[type="time"] { min-height: 44px; text-align: left; }
    .booking-field input::-webkit-date-and-time-value { text-align: left; }
    .booking-submit-btn { width: 100%; padding: 14px 16px; }
}

/* Teléfonos muy pequeños */
@media (max-width: 360px) {
    .logo-img { height: 40px; }
    .nav-container { padding: 0 12px; }
    .stat-label { font-size: 10px; }
}

/* Pantallas táctiles: sin efectos "hover" que se quedan pegados */
@media (hover: none) {
    .service-card:hover { transform: none; }
    .service-card:hover img { transform: none; }
    .cta-btn:hover { transform: none; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
}


/* ===== Servicios: carrusel "Y además contamos con" =====
   El carril se mueve con transform (GPU) + transición CSS: es lo más fluido que da el navegador. */
.more-services { margin-top: 56px; }
.more-title { margin-bottom: 22px; }
.more-title h3 { color: var(--color-blanco); font-size: clamp(20px, 4.5vw, 26px); text-shadow: 0 2px 8px rgba(0,0,0,.35); display: inline-block; padding-bottom: 6px; border-bottom: 2px solid var(--color-rojo); }
.more-title p { color: var(--color-claro); font-size: 15px; margin-top: 10px; text-shadow: 0 1px 4px rgba(0,0,0,.35); }

.more-carousel { position: relative; --ease: cubic-bezier(.65, 0, .25, 1); --slide: .85s; }

/* Ventana que recorta el carril (deja margen para sombras y el "levantar" al hover) */
.more-carousel { --bleed: 26px; }
.more-viewport {
    overflow: hidden; margin: 0 calc(-1 * var(--bleed)); padding: 16px var(--bleed) 26px;
    touch-action: pan-y; cursor: grab;
    /* Difuminado suave en los extremos: las tarjetas entran y salen sin cortes bruscos */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--bleed), #000 calc(100% - var(--bleed)), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 var(--bleed), #000 calc(100% - var(--bleed)), transparent 100%);
}
.more-viewport.dragging { cursor: grabbing; }

.more-track {
    --gap: 16px; --per-view: 4;
    list-style: none; display: flex; gap: var(--gap); width: 100%; margin: 0; padding: 0;
    will-change: transform; backface-visibility: hidden;
    user-select: none; -webkit-user-select: none;
}
.more-track:focus-visible { outline: 2px solid var(--color-blanco); outline-offset: 8px; border-radius: 8px; }

.more-card {
    flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
    min-width: 0;
    background: var(--color-blanco); border-radius: 10px; border-top: 4px solid var(--color-azul);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    padding: 24px 12px 20px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s cubic-bezier(.22,1,.36,1), border-color .3s ease;
}
.more-card:hover { transform: translateY(-6px); border-top-color: var(--color-rojo); box-shadow: 0 10px 20px rgba(0,0,0,0.28); }
/* Mismo tratamiento que los iconos de "Nuestros Servicios": ilustración de línea negra, 48px, sin fondo */
.more-icon { width: 48px; height: 48px; object-fit: contain; transition: transform .3s ease; }
.more-card:hover .more-icon { transform: scale(1.15) rotate(-4deg); }
.more-card h4 { color: var(--color-texto-fuerte); font-size: 16px; line-height: 1.25; margin: 0; }

.more-arrow {
    position: absolute; top: calc(50% - 5px); transform: translateY(-50%); z-index: 3;
    width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--color-rojo); color: var(--color-blanco); font-size: 16px; line-height: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    transition: background .25s ease, transform .25s ease;
}
.more-arrow:hover { background: var(--color-rojo-hover); transform: translateY(-50%) scale(1.1); }
.more-arrow:active { transform: translateY(-50%) scale(.92); }
.more-arrow:focus-visible { outline: 2px solid var(--color-blanco); outline-offset: 2px; }
.more-arrow.prev { left: -22px; }
.more-arrow.next { right: -22px; }

.more-progress { height: 4px; border-radius: 4px; background: rgba(255,255,255,0.3); overflow: hidden; max-width: 260px; margin: 0 auto; }
.more-progress span { display: block; height: 100%; width: 25%; background: var(--color-rojo); border-radius: 4px; transition: width .3s ease; }

/* --- Entrada en cascada (solo si el script nuevo está activo; si no, las tarjetas siempre se ven) --- */
.more-carousel.reveal-ready:not(.in-view) .more-card { opacity: 0 !important; }
.more-carousel.in-view .more-card {
    animation: moreIn .8s cubic-bezier(.22, 1, .36, 1) backwards;
    animation-delay: calc(var(--i, 0) * 90ms + .1s);
}
@keyframes moreIn {
    from { opacity: 0; translate: 0 34px; scale: .86; }
    to   { opacity: 1; translate: 0 0;    scale: 1; }
}

@media (max-width: 1150px) { .more-arrow.prev { left: -10px; } .more-arrow.next { right: -10px; } }
@media (max-width: 900px) { .more-track { --per-view: 3; } }
@media (max-width: 600px) {
    .more-carousel { --bleed: 12px; }
    .more-track { --per-view: 2; --gap: 12px; }
    .more-card { padding: 20px 8px 16px; }
    .more-card h4 { font-size: 14px; }
    .more-arrow { width: 38px; height: 38px; font-size: 14px; }
    .more-arrow.prev { left: -6px; } .more-arrow.next { right: -6px; }
}
@media (hover: none) {
    .more-card:hover { transform: none; }
    .more-card:hover .more-icon { transform: none; }
    .more-arrow:hover { transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .more-progress span { transition: none; }
    .more-carousel.in-view .more-card { animation: none; }
    /* Sin subir ni girar; se mantienen el cambio de color del borde y la sombra (no son movimiento) */
    .more-card:hover, .more-card:hover .more-icon { transform: none; }
    .more-arrow:hover, .more-arrow:active { transform: translateY(-50%); }
}

/* Dirección clicable hacia Google Maps */
.map-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.map-link:hover { color: var(--color-rojo); }
footer .map-link:hover { color: var(--color-blanco); text-decoration-thickness: 2px; }

/* Lista de contactos por tema */
.contactos-lista { list-style: none; margin: 10px 0 0; padding: 0; }
.contactos-lista li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--color-borde-lista); }
.contactos-lista a { color: var(--color-azul); font-weight: 700; white-space: nowrap; text-decoration: none; }
.contactos-lista a:hover { color: var(--color-rojo); text-decoration: underline; }
@media (max-width: 600px) {
    .contactos-lista li { flex-direction: column; gap: 2px; }
}


/* ===== Galería: fotos del mes + fotos fijas ===== */
.gallery-intro { text-align: center; color: var(--color-texto-fuerte); max-width: 640px; margin: -10px auto 40px; }
.gallery-block { margin-bottom: 56px; }
.gallery-block:last-child { margin-bottom: 0; }
.gallery-head { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.gallery-head h3 { color: var(--color-azul); font-size: clamp(20px, 4.5vw, 24px); border-bottom: 2px solid var(--color-rojo); padding-bottom: 4px; }
.gallery-badge { background: var(--color-rojo); color: var(--color-blanco); font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.gallery-empty { grid-column: 1 / -1; text-align: center; color: var(--color-texto-fuerte); background: var(--color-blanco); border: 2px dashed var(--color-borde-vacio); border-radius: 10px; padding: 36px 20px; }

.gallery-item { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: none; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--color-relleno-imagen); box-shadow: 0 4px 12px rgba(0,0,0,0.12); border-top: 4px solid var(--color-azul); }
.gallery-item picture { display: block; width: 100%; height: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.07); }
.gallery-item:focus-visible { outline: 3px solid var(--color-rojo); outline-offset: 3px; }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; color: var(--color-blanco); font-size: 14px; font-weight: 600; text-align: left; background: linear-gradient(to top, rgba(0,0,0,.72), transparent); }

/* Visor ampliado */
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 3000; background: var(--fondo-visor); display: flex; align-items: center; justify-content: center; padding: 56px 64px; animation: lbIn .25s ease; }
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb-figure figcaption { color: var(--color-claro); font-size: 15px; text-align: center; max-width: 700px; }
.lb-btn { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer; background: var(--color-rojo); color: var(--color-blanco); font-size: 18px; line-height: 1; box-shadow: 0 4px 10px rgba(0,0,0,.4); transition: background .25s ease, transform .25s ease; }
.lb-btn:hover { background: var(--color-rojo-hover); }
.lb-btn:focus-visible { outline: 2px solid var(--color-blanco); outline-offset: 2px; }
.lb-close { top: 14px; right: 14px; font-size: 28px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }
.lb-nav.prev { left: 12px; }
.lb-nav.next { right: 12px; }
.lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: var(--color-texto-footer); font-size: 13px; letter-spacing: .5px; }

@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .gallery-item { border-radius: 8px; }
    .gallery-caption { font-size: 12px; padding: 20px 8px 8px; }
    .lightbox { padding: 60px 8px 50px; }
    .lb-nav { top: auto; bottom: 8px; transform: none; width: 42px; height: 42px; }
    .lb-nav:hover { transform: none; }
    .lb-nav.prev { left: 16px; }
    .lb-nav.next { right: 16px; }
}
@media (hover: none) {
    .gallery-item:hover img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .gallery-item img { transition: none; }
    .gallery-item:hover img, .gallery-item:focus-visible img { transform: none; }
    .lb-nav:hover { transform: translateY(-50%); }
    .lightbox { animation: none; }
}

/* ===== Promociones: carrusel de flyers (dentro de Servicios) ===== */
.promos-block { margin-top: 56px; }
.promos-carousel { position: relative; }
.promos-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding: 6px 4px 16px; justify-content: safe center; scrollbar-width: thin; scrollbar-color: var(--color-rojo) rgba(255,255,255,.3); }
.promos-track:focus-visible { outline: 2px solid var(--color-blanco); outline-offset: 6px; border-radius: 8px; }
.promo-slide { flex: 0 0 auto; scroll-snap-align: center; padding: 0; border: none; border-top: 4px solid var(--color-rojo); border-radius: 10px; overflow: hidden; background: var(--color-relleno-imagen); cursor: zoom-in; box-shadow: 0 6px 16px rgba(0,0,0,.3); transition: transform .3s ease, box-shadow .3s ease; }
.promo-slide:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(0,0,0,.38); }
.promo-slide:focus-visible { outline: 3px solid var(--color-blanco); outline-offset: 3px; }
.promo-slide picture { display: block; }
.promo-slide img { display: block; height: 400px; width: auto; min-width: 200px; max-width: 86vw; object-fit: contain; }

.promos-arrow { position: absolute; top: 50%; transform: translateY(-60%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--color-blanco); color: var(--color-rojo); font-size: 18px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.35); transition: opacity .2s ease, transform .2s ease; }
.promos-arrow:hover:not(:disabled) { transform: translateY(-60%) scale(1.1); }
.promos-arrow:focus-visible { outline: 3px solid var(--color-azul); outline-offset: 2px; }
.promos-arrow:disabled { opacity: .35; cursor: default; }
.promos-arrow.prev { left: -8px; }
.promos-arrow.next { right: -8px; }
.promos-block.sin-scroll .promos-arrow { display: none; }

@media (max-width: 768px) {
    .promos-block { margin-top: 40px; }
    .promos-track { justify-content: flex-start; padding-inline: calc(50% - 43vw); scroll-padding-inline: calc(50% - 43vw); }
    .promo-slide img { height: 340px; }
    .promos-arrow { width: 36px; height: 36px; font-size: 15px; }
    .promos-arrow.prev { left: 2px; }
    .promos-arrow.next { right: 2px; }
}
@media (prefers-reduced-motion: reduce) {
    .promos-track { scroll-behavior: auto; }
    .promo-slide, .promos-arrow { transition: none; }
    .promo-slide:hover { transform: none; }
    .promos-arrow:hover:not(:disabled) { transform: translateY(-60%); }
}

/* ===== Página 404 (404.html): misma cabecera y pie del sitio, tarjeta centrada ===== */
.nf-page { min-height: 100vh; display: flex; flex-direction: column; }
.nf-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.nf-card {
    background: var(--color-blanco); border-top: 4px solid var(--color-azul); border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); max-width: 520px; width: 100%;
    padding: 40px 32px 32px; text-align: center;
}
.nf-icon { width: 64px; height: 64px; margin: 0 auto 16px; display: block; }
.nf-card .nf-code { color: var(--color-rojo); font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }
.nf-card h1 { color: var(--color-azul); font-size: clamp(22px, 5vw, 28px); line-height: 1.25; margin-bottom: 12px; }
.nf-card p { color: var(--color-texto); font-size: 16px; margin-bottom: 24px; }
.nf-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
    background: var(--color-rojo); color: var(--color-blanco); text-decoration: none; font-weight: 700; font-size: 16px;
    padding: 12px 32px; border-radius: 4px; box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: background .2s ease, transform .16s ease-out;
}
.nf-btn:hover { background: var(--color-rojo-hover); }
.nf-btn:active { transform: scale(.97); }
.nf-btn:focus-visible { outline: 3px solid var(--color-azul); outline-offset: 3px; }
.nf-card .nf-help { margin: 20px 0 0; font-size: 14px; color: var(--color-texto); }
.nf-help a { color: var(--color-azul); font-weight: 600; text-underline-offset: 3px; }
.nf-help a:hover { color: var(--color-rojo); }
.nf-help a:focus-visible { outline: 2px solid var(--color-azul); outline-offset: 2px; border-radius: 2px; }
@media (max-width: 600px) {
    .nf-card { padding: 32px 20px 24px; }
    .nf-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .nf-btn { transition: background .2s ease; }
    .nf-btn:active { transform: none; }
}
