
        /* --- 1. VARIABLES Y RESET --- */
        :root {
            --primary-color: #004aad; --secondary-color: #002d6b; --accent-color: #00b4d8;
            --text-color: #444444; --light-bg: #f4f7f6; --white: #ffffff;
            --shadow: 0 10px 30px rgba(0,0,0,0.08);
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body { font-family: 'Lato', sans-serif; color: var(--text-color); line-height: 1.7; background-color: var(--white); overflow-x: hidden; }
        h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--secondary-color); font-weight: 700; }
        a { text-decoration: none; color: inherit; transition: 0.3s; }

        /* --- 2. HEADER INTELIGENTE (STICKY) --- */
        header { 
            background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
            box-shadow: 0 2px 15px rgba(0,0,0,0.05); position: fixed; width: 100%; top: 0; z-index: 1000; transition: all 0.3s ease;
        }
        .container { width: 90%; max-width: 1200px; margin: auto; padding: 0 15px; }
        .nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
        .logo { font-size: 1.6rem; font-weight: 700; color: var(--primary-color); display: flex; align-items: center; gap: 10px; letter-spacing: -0.5px; }
        .logo i { font-size: 1.8rem; }
        .nav-links { display: flex; gap: 30px; align-items: center; }
        .nav-links a { font-weight: 600; color: var(--secondary-color); font-size: 0.95rem; position: relative; }
        .nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--accent-color); transition: width 0.3s; }
        .nav-links a:hover::after { width: 100%; }
        .btn-cta { 
            background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
            color: var(--white) !important; padding: 12px 30px; border-radius: 50px; font-weight: 700; 
            box-shadow: 0 4px 15px rgba(0, 74, 173, 0.3);
        }
        .btn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 74, 173, 0.4); }
        .nav-links .btn-cta::after { display: none; }

        /* --- 3. HERO SECTION --- */
        .hero {
            height: 100vh; background: linear-gradient(to right, rgba(0, 45, 107, 0.8), rgba(0, 45, 107, 0.4)), none;
            background-size: cover; background-position: center; background-attachment: fixed;
            display: flex; align-items: center; text-align: left; color: var(--white); margin-top: 0;
        }
        .hero-content { max-width: 1200px; width: 90%; margin: auto; }
        .hero-text-box { max-width: 650px; }
        .hero h1 { font-size: 3.8rem; line-height: 1.1; margin-bottom: 25px; color: var(--white); text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
        .hero p { font-size: 1.3rem; margin-bottom: 35px; opacity: 0.9; font-weight: 300; }

        /* --- 4. ANIMACIONES AL SCROLL --- */
        .reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
        .reveal.active { opacity: 1; transform: translateY(0); }

        /* --- 5. PERFIL PROFESIONAL --- */
        .about { padding: 100px 0; background-color: var(--white); }
        .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
        .about-img-wrapper { position: relative; }
        .about-img {
            width: 100%; height: 550px; border-radius: 20px; background-image: none;
            background-size: cover; background-position: center top; box-shadow: 0 20px 50px rgba(0,0,0,0.15);
        }
        .about-img-wrapper::before {
            content: ''; position: absolute; top: -20px; left: -20px; width: 100px; height: 100px;
            border-top: 5px solid var(--accent-color); border-left: 5px solid var(--accent-color); z-index: 0;
        }
        .about-text h4 { color: var(--accent-color); font-family: 'Lato', sans-serif; font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 15px; }
        .about-text h2 { font-size: 2.5rem; margin-bottom: 25px; }
        .features-list li { margin-bottom: 15px; display: flex; align-items: center; font-size: 1.05rem; }
        .features-list i { color: var(--accent-color); margin-right: 15px; font-size: 1.2rem; background: rgba(0, 180, 216, 0.1); padding: 8px; border-radius: 50%; }

        /* --- 6. SERVICIOS INTERACTIVOS --- */
        .services { padding: 100px 0; background-color: var(--light-bg); }
        .section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
        .section-header span { color: var(--primary-color); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; display: block; margin-bottom: 10px; }
        .section-header h2 { font-size: 2.5rem; }
        .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

        .service-card {
            background: var(--white); padding: 40px 30px; border-radius: 20px; box-shadow: var(--shadow);
            text-align: center; position: relative; overflow: hidden; transition: all 0.4s ease; cursor: pointer;
            border-bottom: 3px solid transparent; display: flex; flex-direction: column; align-items: center; justify-content: center;
            min-height: 280px; text-decoration: none !important; color: var(--text-color);
        }
        .service-icon { font-size: 3.5rem; color: var(--primary-color); margin-bottom: 20px; transition: 0.4s; z-index: 2; }
        .service-card h3 { font-size: 1.5rem; margin-bottom: 10px; z-index: 2; transition: 0.4s; color: var(--secondary-color); }
        .service-card p { opacity: 0; max-height: 0; transition: 0.5s; z-index: 2; color: var(--white); font-size: 0.95rem; margin-top: 0; }

        .service-card:hover { transform: translateY(-10px); border-bottom-color: var(--accent-color); background-color: var(--primary-color); }
        .service-card:hover .service-icon { transform: scale(0.8) translateY(-10px); color: var(--white); }
        .service-card:hover h3 { color: var(--white); transform: translateY(-5px); }
        .service-card:hover p { opacity: 1; max-height: 150px; margin-top: 10px; }

        /* Imágenes de fondo en Hover */
        .service-card { background-size: cover; background-position: center; }
        #card-masto:hover { background-image: linear-gradient(rgba(0,74,173,0.9), rgba(0,74,173,0.8)), url('../img/mastoplastia.png'); }
        #card-rino:hover { background-image: linear-gradient(rgba(0,74,173,0.9), rgba(0,74,173,0.8)), url('../img/rinoplastia.jpeg'); }
        #card-lipo:hover { background-image: linear-gradient(rgba(0,74,173,0.9), rgba(0,74,173,0.8)), url('../img/lipoescultura.jpeg'); }
        #card-blefaro:hover { background-image: linear-gradient(rgba(0,74,173,0.9), rgba(0,74,173,0.8)), url('../img/blefaroplastia.jpeg'); }
        #card-abdomino:hover { background-image: linear-gradient(rgba(0,74,173,0.9), rgba(0,74,173,0.8)), url('../img/abdominoplastia.jpeg'); }
        #card-rejuven:hover { background-image: linear-gradient(rgba(0,74,173,0.9), rgba(0,74,173,0.8)), url('../img/rejuvenecimiento.jpeg'); }

        /* --- 7. CARRUSEL DE GALERÍA (FUNCIONAL CON MOUSE) --- */
        .gallery { padding: 100px 0; }
        .carousel-container {
            overflow-x: auto; display: flex; gap: 30px; padding: 20px 5px;
            scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; cursor: grab;
        }
        .carousel-container.active { cursor: grabbing; cursor: -webkit-grabbing; transform: scale(1); }
        .carousel-container::-webkit-scrollbar { display: none; }
        .gallery-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 4px 0 6px; }
        .gallery-control { width: 42px; height: 42px; border: 1px solid rgba(0,74,173,.2); border-radius: 50%; background: var(--white); color: var(--primary-color); font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,.08); transition: .25s ease; }
        .gallery-control:hover, .gallery-control:focus-visible { background: var(--primary-color); color: var(--white); transform: translateY(-2px); }
        .gallery-autoplay { color: var(--primary-color); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
        .gallery-autoplay i { margin-right: 6px; animation: gallery-spin 2.5s linear infinite; }
        @keyframes gallery-spin { to { transform: rotate(360deg); } }
        .gallery-item { 
            position: relative; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); 
            flex: 0 0 auto; width: 300px; scroll-snap-align: center; user-select: none;
        }
        .gallery-item img { width: 100%; height: 250px; object-fit: cover; transition: 0.5s; display: block; pointer-events: none; }
        .gallery-overlay {
            position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px;
            background: linear-gradient(transparent, rgba(0,0,0,0.8));
            color: white; transform: translateY(100px); transition: 0.4s;
        }
        .gallery-item:hover img { transform: scale(1.1); }
        .gallery-item:hover .gallery-overlay { transform: translateY(0); }
        @media (prefers-reduced-motion: reduce) { .gallery-autoplay i { animation: none; } }

        /* Modal Lightbox */
        .lightbox { display: none; position: fixed; z-index: 2000; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.95); align-items: center; justify-content: center; }
        .lightbox-content { margin: auto; display: block; max-width: 90%; max-height: 90vh; border-radius: 5px; animation: zoom 0.6s; object-fit: contain; }
        .close { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.3s; z-index: 2001; }
        .close:hover { color: var(--accent-color); }
        @keyframes zoom { from {transform:scale(0)} to {transform:scale(1)} }

        /* --- 8. CARRUSEL DE TESTIMONIOS (FUNCIONAL CON MOUSE) --- */
        .testimonials { padding: 100px 0; background-color: var(--secondary-color); color: var(--white); text-align: center; }
        .testimonials-carousel {
            display: flex; overflow-x: auto; gap: 20px; padding: 20px 5px;
            scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; cursor: grab;
        }
        .testimonials-carousel.active { cursor: grabbing; }
        .testimonials-carousel::-webkit-scrollbar { display: none; }
        .testimonial-card {
            background: rgba(255,255,255,0.1); padding: 30px; border-radius: 15px; margin: 0;
            backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.1); text-align: left;
            flex: 0 0 auto; width: 350px; scroll-snap-align: center; user-select: none;
        }
        .stars { color: #f1c40f; margin-bottom: 15px; }
        .quote { font-style: italic; font-size: 1.05rem; opacity: 0.9; }

        /* --- 9. NUEVA SECCIÓN: AGENDAR CITA (ESTILOS) --- */
        .booking-section { padding: 100px 0; background-color: var(--light-bg); }
        .booking-container { max-width: 800px; margin: auto; background: var(--white); padding: 40px; border-radius: 20px; box-shadow: var(--shadow); }
        .form-group { margin-bottom: 25px; }
        .form-label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--secondary-color); }
        .form-input { 
            width: 100%; padding: 15px; border: 2px solid #eee; border-radius: 10px; font-family: 'Lato', sans-serif; font-size: 1rem; transition: 0.3s; 
        }
        .form-input:focus { border-color: var(--accent-color); outline: none; }
        
        /* Grid de horarios */
        .time-slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; margin-top: 15px; }
        .time-slot-btn {
            padding: 10px; background: var(--light-bg); border: 2px solid #eee; border-radius: 8px; cursor: pointer; text-align: center; font-weight: 600; transition: 0.3s;
        }
        .time-slot-btn:hover { border-color: var(--accent-color); background: rgba(0, 180, 216, 0.1); }
        .time-slot-btn.selected { background: var(--primary-color); color: white; border-color: var(--primary-color); }

        /* Área de resultado y QR */
        #booking-result { display: none; text-align: center; animation: fadeIn 0.5s; }
        .success-icon { font-size: 4rem; color: #25d366; margin-bottom: 20px; }
        .qr-container { display: flex; justify-content: center; margin: 30px 0; padding: 20px; background: white; border-radius: 15px; box-shadow: var(--shadow); display: inline-block; }
        .btn-whatsapp-confirm {
            background: #25d366; color: white; padding: 15px 40px; border-radius: 50px; font-weight: 700; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3); transition: 0.3s; border: none; cursor: pointer;
        }
        .btn-whatsapp-confirm:hover { background: #128c7e; transform: translateY(-3px); }

        @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }


        /* --- 10. FOOTER --- */
        footer { background-color: #0b1c33; color: rgba(255,255,255,0.7); padding: 80px 0 30px; font-size: 0.95rem; }
        .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 50px; margin-bottom: 50px; }
        .footer-col h2, .footer-col h4 { color: var(--white); margin-bottom: 25px; font-size: 1.3rem; border-left: 4px solid var(--accent-color); padding-left: 15px; display: inline-block; }
        .footer-media {
            width: 100%; height: auto; border-radius: 12px; margin-top: 20px;
            box-shadow: 0 10px 20px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); transition: 0.3s;
        }
        .footer-media:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.4); }
        .video-thumbnail img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }

        /* --- 11. BOTÓN WHATSAPP --- */
        .whatsapp-float { 
            position: fixed; bottom: 30px; right: 30px; background-color: #25d366; color: white; 
            width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; 
            font-size: 35px; box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4); z-index: 1001; transition: 0.3s;
            animation: pulse 2s infinite;
        }
        .whatsapp-float:hover { background-color: #128c7e; animation: none; transform: scale(1.1); }
        @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

        /* Responsive */
        @media (max-width: 768px) {
            .hero h1 { font-size: 2.5rem; }
            .about-grid { grid-template-columns: 1fr; }
            .about-img { height: 350px; }
            .nav-container { flex-direction: column; height: auto; padding: 15px; }
            .nav-links { margin-top: 15px; gap: 15px; flex-wrap: wrap; justify-content: center; }
            .btn-cta { padding: 10px 20px; font-size: 0.9rem; }
            .gallery-item { width: 250px; }
            .testimonial-card { width: 280px; padding: 25px; }
            .booking-container { padding: 25px; }
        }

        /* ============================================================
           CAPA DE DISEÑO PREMIUM — 3D, PROFUNDIDAD Y MOVIMIENTO
        ============================================================ */
        :root {
            --ease-suave: cubic-bezier(0.22, 1, 0.36, 1);
        }

        /* --- Barra de progreso de lectura --- */
        .progreso-scroll {
            position: fixed;
            top: 0; left: 0;
            height: 3px;
            width: 0%;
            background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
            z-index: 1002;
            box-shadow: 0 0 14px rgba(0, 180, 216, 0.7);
            pointer-events: none;
        }

        /* --- Logo con imagen --- */
        .logo-img { height: 62px; width: auto; border-radius: 8px; }

        /* --- HERO cinematográfico --- */
        .hero {
            position: relative;
            overflow: hidden;
            background: var(--secondary-color);
        }
        .hero-fondos {
            position: absolute;
            inset: 0;
            will-change: transform;
        }
        .hero-bg {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center 25%;
            transition: opacity 1.6s ease-in-out;
            animation: kenburns 18s ease-in-out infinite alternate;
        }
        @keyframes kenburns {
            0%   { transform: scale(1.08) translateY(0); }
            100% { transform: scale(1.18) translateY(-16px); }
        }
        .hero-velo {
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at 78% 30%, rgba(0, 180, 216, 0.18) 0%, transparent 50%),
                linear-gradient(100deg, rgba(0, 25, 60, 0.94) 0%, rgba(0, 45, 107, 0.72) 55%, rgba(0, 25, 60, 0.45) 100%);
        }
        .hero-content { position: relative; z-index: 2; }

        .hero-insignia {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: rgba(0, 180, 216, 0.16);
            border: 1px solid rgba(0, 180, 216, 0.45);
            color: #9be8f7;
            font-size: 0.78rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2.5px;
            padding: 9px 20px;
            border-radius: 100px;
            margin-bottom: 26px;
            backdrop-filter: blur(8px);
        }

        .hero h1 em {
            font-style: italic;
            background: linear-gradient(105deg, #37d3ef 25%, #a8f0fc 50%, #37d3ef 75%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            background-size: 200% 100%;
            animation: brilloTexto 5s ease-in-out infinite;
            display: inline-block;
            padding-right: 0.12em;
            margin-right: -0.12em;
        }
        @keyframes brilloTexto {
            0%, 100% { background-position: 0% 0; }
            50% { background-position: 100% 0; }
        }

        .hero-acciones { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
        .btn-fantasma {
            display: inline-flex;
            align-items: center;
            padding: 14px 32px;
            border: 1.5px solid rgba(255,255,255,0.45);
            border-radius: 50px;
            color: var(--white);
            font-weight: 700;
            backdrop-filter: blur(6px);
            transition: all 0.35s var(--ease-suave);
        }
        .btn-fantasma:hover {
            border-color: rgba(255,255,255,0.9);
            background: rgba(255,255,255,0.1);
            transform: translateY(-3px);
        }

        /* Entrada orquestada del hero */
        .hero-insignia, .hero h1, .hero p, .hero-acciones, .hero-estadisticas {
            opacity: 0;
            animation: entradaHero 1s var(--ease-suave) forwards;
        }
        .hero-insignia     { animation-delay: 0.15s; }
        .hero h1           { animation-delay: 0.35s; }
        .hero p            { animation-delay: 0.55s; }
        .hero-acciones     { animation-delay: 0.75s; }
        .hero-estadisticas { animation-delay: 0.95s; }
        @keyframes entradaHero {
            from { opacity: 0; transform: translateY(36px); filter: blur(8px); }
            to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
        }

        /* Estadísticas de vidrio */
        .hero-estadisticas {
            display: flex;
            margin-top: 48px;
            background: rgba(255,255,255,0.07);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border: 1px solid rgba(255,255,255,0.16);
            border-radius: 18px;
            overflow: hidden;
            max-width: 560px;
            box-shadow: 0 24px 60px rgba(0, 15, 40, 0.4);
        }
        .hero-stat { flex: 1; text-align: center; padding: 20px 16px; position: relative; }
        .hero-stat + .hero-stat::before {
            content: '';
            position: absolute;
            left: 0; top: 22%; bottom: 22%;
            width: 1px;
            background: rgba(255,255,255,0.18);
        }
        .hero-stat-num {
            display: block;
            font-family: 'Playfair Display', serif;
            font-size: 1.9rem;
            font-weight: 700;
            color: var(--white);
            line-height: 1.1;
        }
        .hero-stat-label {
            font-size: 0.68rem;
            text-transform: uppercase;
            letter-spacing: 1.4px;
            color: rgba(255,255,255,0.6);
            font-weight: 600;
        }

        /* Indicador de scroll */
        .hero-scroll {
            position: absolute;
            bottom: 28px; left: 50%;
            transform: translateX(-50%);
            z-index: 2;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            color: rgba(255,255,255,0.5);
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 2.5px;
        }
        .hero-scroll-linea {
            width: 1px; height: 42px;
            background: linear-gradient(to bottom, rgba(255,255,255,0.55), transparent);
            animation: lineaScroll 2s ease-in-out infinite;
        }
        @keyframes lineaScroll {
            0%, 100% { opacity: 0.4; transform: scaleY(1); }
            50% { opacity: 1; transform: scaleY(0.55); }
        }

        /* --- Banda de credenciales (marquee) --- */
        .banda-credenciales {
            background: var(--secondary-color);
            padding: 18px 0;
            overflow: hidden;
            border-top: 1px solid rgba(0, 180, 216, 0.25);
            border-bottom: 1px solid rgba(0, 180, 216, 0.25);
        }
        .banda-interior {
            display: flex;
            justify-content: center;
            gap: 56px;
            flex-wrap: wrap;
        }
        .credencial-item {
            display: flex;
            align-items: center;
            gap: 10px;
            color: rgba(255,255,255,0.75);
            font-size: 0.82rem;
            font-weight: 600;
            white-space: nowrap;
        }
        .credencial-item i { color: var(--accent-color); }
        .banda-credenciales.marquee-activa .banda-interior {
            width: max-content;
            flex-wrap: nowrap;
            justify-content: flex-start;
            animation: marquesina 30s linear infinite;
        }
        .banda-credenciales.marquee-activa:hover .banda-interior { animation-play-state: paused; }
        .banda-credenciales.marquee-activa {
            -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
        }
        @keyframes marquesina {
            from { transform: translateX(0); }
            to   { transform: translateX(-50%); }
        }

        /* --- Reveals con desenfoque --- */
        .reveal {
            transform: translateY(44px) scale(0.99);
            filter: blur(9px);
            transition: opacity 0.9s var(--ease-suave), transform 0.9s var(--ease-suave), filter 0.9s var(--ease-suave);
        }
        .reveal.active { transform: translateY(0) scale(1); filter: blur(0); }

        /* Cascada interna al activarse cada sección */
        .services.reveal.active .service-card,
        .gallery.reveal.active .gallery-item,
        .testimonials.reveal.active .testimonial-card {
            animation: entradaCarta 0.8s var(--ease-suave) both;
        }
        .services.reveal.active .service-card:nth-child(2),
        .gallery.reveal.active .gallery-item:nth-child(2),
        .testimonials.reveal.active .testimonial-card:nth-child(2) { animation-delay: 0.12s; }
        .services.reveal.active .service-card:nth-child(3),
        .gallery.reveal.active .gallery-item:nth-child(3),
        .testimonials.reveal.active .testimonial-card:nth-child(3) { animation-delay: 0.24s; }
        .services.reveal.active .service-card:nth-child(4),
        .gallery.reveal.active .gallery-item:nth-child(4),
        .testimonials.reveal.active .testimonial-card:nth-child(4) { animation-delay: 0.36s; }
        .services.reveal.active .service-card:nth-child(5),
        .gallery.reveal.active .gallery-item:nth-child(5) { animation-delay: 0.48s; }
        .services.reveal.active .service-card:nth-child(6),
        .gallery.reveal.active .gallery-item:nth-child(6) { animation-delay: 0.60s; }
        @keyframes entradaCarta {
            from { opacity: 0; transform: translateY(30px) scale(0.97); }
            to   { opacity: 1; transform: translateY(0) scale(1); }
        }

        /* --- Tarjetas 3D (tilt + brillo especular) --- */
        .service-card, .gallery-item, .testimonial-card, .booking-container {
            transform-style: preserve-3d;
            position: relative;
        }
        .tilt-3d { will-change: transform; }
        .tilt-brillo {
            position: absolute;
            inset: 0;
            border-radius: inherit;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.4s ease;
            background: radial-gradient(420px circle at var(--brillo-x, 50%) var(--brillo-y, 50%),
                        rgba(255, 255, 255, 0.16), transparent 45%);
            z-index: 5;
        }
        .tilt-3d:hover .tilt-brillo { opacity: 1; }

        .service-icon, .service-card h3 { transform: translateZ(34px); }
        .service-card p { transform: translateZ(20px); }

        /* --- Tarjetas de servicios refinadas --- */
        .service-card {
            border: 1px solid rgba(0, 74, 173, 0.08);
            border-bottom: 3px solid transparent;
        }
        .service-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.5s var(--ease-suave);
        }
        .service-card:hover::before { transform: scaleX(1); }
        .service-card:hover .service-icon {
            filter: drop-shadow(0 12px 24px rgba(0, 180, 216, 0.6));
        }

        /* --- Galería: tarjetas verticales para los casos --- */
        .gallery-item { width: 300px; }
        .gallery-item img { height: 380px; object-fit: cover; object-position: top; }
        .gallery-item::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            border: 1px solid rgba(0, 74, 173, 0.10);
            pointer-events: none;
        }

        /* --- Testimonios: aurora de fondo --- */
        .testimonials { position: relative; overflow: hidden; }
        .testimonials::before {
            content: '';
            position: absolute;
            top: -180px; right: -180px;
            width: 560px; height: 560px;
            background: radial-gradient(circle, rgba(0, 180, 216, 0.14) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
            animation: derivaAurora 15s ease-in-out infinite alternate;
        }
        .testimonials::after {
            content: '';
            position: absolute;
            bottom: -160px; left: -160px;
            width: 480px; height: 480px;
            background: radial-gradient(circle, rgba(0, 74, 173, 0.35) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
            animation: derivaAurora 19s ease-in-out infinite alternate-reverse;
        }
        @keyframes derivaAurora {
            0%   { transform: translate(0, 0) scale(1); }
            100% { transform: translate(-70px, 45px) scale(1.18); }
        }
        .testimonials .container { position: relative; z-index: 1; }

        /* --- Botones con destello --- */
        .btn-cta { position: relative; overflow: hidden; }
        .btn-cta::after {
            content: '';
            position: absolute;
            top: 0; left: 0;
            width: 60%; height: 100%;
            background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.4) 50%, transparent 80%);
            transform: translateX(-160%) skewX(-20deg);
            transition: transform 0.7s ease;
            pointer-events: none;
        }
        .btn-cta:hover::after { transform: translateX(300%) skewX(-20deg); }

        /* --- Títulos de sección: subrayado que crece --- */
        .section-header h2 { position: relative; padding-bottom: 16px; }
        .section-header h2::after {
            content: '';
            position: absolute;
            bottom: 0; left: 50%;
            transform: translateX(-50%) scaleX(0);
            width: 64px; height: 3px;
            border-radius: 2px;
            background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
            transition: transform 0.9s var(--ease-suave) 0.3s;
        }
        .reveal.active .section-header h2::after { transform: translateX(-50%) scaleX(1); }

        /* --- Perfil: marco con profundidad --- */
        .about-img-wrapper { perspective: 1000px; }
        .about-img { transition: transform 0.6s var(--ease-suave), box-shadow 0.6s var(--ease-suave); }
        .about-img-wrapper:hover .about-img {
            transform: rotateY(-3deg) rotateX(1.5deg) translateY(-5px);
            box-shadow: 0 40px 80px rgba(0, 45, 107, 0.28);
        }

        /* --- WhatsApp flotante: anillo expansivo --- */
        .whatsapp-float::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 50%;
            border: 2px solid rgba(37, 211, 102, 0.6);
            animation: anilloPulso 2.4s var(--ease-suave) infinite;
        }
        @keyframes anilloPulso {
            0%   { transform: scale(1); opacity: 1; }
            100% { transform: scale(1.65); opacity: 0; }
        }

        /* --- QR de reseñas --- */
        .footer-qr { padding: 10px; }

        /* --- Móvil y accesibilidad --- */
        @media (max-width: 768px) {
            .hero {
                height: auto;
                min-height: 100vh;
                padding: 190px 0 90px;
            }
            .hero-bg { animation-duration: 24s; }
            .hero-estadisticas { max-width: 100%; }
            .hero-stat { padding: 13px 6px; }
            .hero-stat-num { font-size: 1.35rem; }
            .hero-stat-label { font-size: 0.56rem; letter-spacing: 1px; }
            .hero-scroll { display: none; }
            .gallery-item img { height: 330px; }
        }
        @media (prefers-reduced-motion: reduce) {
            .hero-bg, .hero-insignia, .hero h1, .hero p, .hero-acciones,
            .hero-estadisticas, .hero-scroll-linea, .whatsapp-float,
            .whatsapp-float::before, .testimonials::before, .testimonials::after {
                animation: none !important;
                opacity: 1 !important;
            }
            .banda-credenciales.marquee-activa .banda-interior { animation: none !important; }
            .reveal {
                opacity: 1 !important;
                transform: none !important;
                filter: none !important;
                transition: none !important;
            }
            .services.reveal.active .service-card,
            .gallery.reveal.active .gallery-item,
            .testimonials.reveal.active .testimonial-card { animation: none !important; }
            .section-header h2::after { transform: translateX(-50%) scaleX(1) !important; }
        }
    
/* Correcciones funcionales sin modificar el diseño original. */
html{scroll-padding-top:100px}.booking-note{padding:14px;background:#f4f7fb;border-radius:10px;font-size:.9rem}.form-error{color:#a01919;font-size:.9rem}.edit-booking{display:block;margin:20px auto 0;border:0;background:none;color:var(--primary-color);text-decoration:underline;cursor:pointer;font:inherit}.time-slot-btn{font:inherit}.qr-container:empty{display:none}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--accent-color);outline-offset:4px}
@media(hover:none){.service-card p{opacity:1;max-height:none;color:var(--text-color);margin-top:10px}.service-card:hover p{color:white}}
@media(max-width:768px){html{scroll-padding-top:180px}.services-grid{grid-template-columns:1fr}.form-input{min-width:0}.btn-whatsapp-confirm{padding:15px 20px}}


/* --- Pie: listas de contacto y enlace de políticas --- */
.footer-col ul { list-style: none; }
.footer-col li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}
.footer-col li i {
    color: var(--accent-color);
    margin-top: 0.35em;
    width: 1.15em;
    text-align: center;
    flex-shrink: 0;
}
.footer-col a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 22px;
    margin-top: 10px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.62);
}
.copyright a {
    color: rgba(255,255,255,0.62);
    text-decoration: none;
    font-weight: 400;
    margin-left: 0.55em;
}
.copyright a:hover,
.copyright a:focus-visible {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Página Políticas y aviso legal --- */
.legal-page {
    padding: 150px 0 90px;
    background-color: var(--light-bg);
    min-height: 70vh;
}
.legal-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--white);
    padding: 56px 52px 64px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.legal-card h1 {
    font-size: 2.25rem;
    margin-bottom: 14px;
    color: var(--secondary-color);
    line-height: 1.2;
}
.legal-card .legal-intro {
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 1.02rem;
}
.legal-review {
    margin: 16px 0 36px;
    font-size: 0.88rem;
    color: #5a6570;
    border-left: 3px solid var(--accent-color);
    padding: 8px 0 8px 14px;
}
.policy-section {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #e6eceb;
}
.policy-section:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 8px;
}
.legal-card h2 {
    font-size: 1.28rem;
    margin: 0 0 16px;
    color: var(--secondary-color);
}
.policy-section p {
    margin-bottom: 12px;
}
.policy-section p:last-child {
    margin-bottom: 0;
}
.titular-card {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 28px 28px 24px;
    margin: 8px 0 18px;
}
.titular-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--secondary-color);
    letter-spacing: 0.02em;
    margin: 0 0 6px;
    line-height: 1.35;
}
.titular-meta {
    margin: 0 0 16px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.02em;
    font-size: 0.95rem;
}
.titular-card address {
    font-style: normal;
    color: var(--text-color);
    margin: 0 0 16px;
    line-height: 1.65;
}
.titular-contact {
    margin: 0 0 4px;
}
.titular-contact a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.titular-contact a:hover,
.titular-contact a:focus-visible,
.legal-card a:hover,
.legal-card a:focus-visible {
    color: var(--accent-color);
}
.legal-intro a,
.policy-section a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 768px) {
    .legal-page { padding: 210px 0 80px; }
    .legal-card { padding: 28px 22px 110px; }
    .legal-card h1 { font-size: 1.7rem; }
    .titular-card { padding: 22px 18px; }
    .titular-name { font-size: 1.15rem; }
    .copyright { padding-bottom: 4px; }
    footer { padding-bottom: 110px; }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
