/* =========================================
   VARIABLES: NUEVA Paleta Moderna/Clínica
   ========================================= */
:root {
    /* Fondos con más presencia (Cero blanco puro) */
    --bg-modern: #E2EAF4;        /* Azul grisáceo con más cuerpo, ahora sí se nota el color */
    --white: #F0F4F9;            /* Un tono "hielo" o gris muy pálido para las tarjetas, en lugar del blanco que lastima */
    
    /* Textos (Se quedan igual, combinan perfecto) */
    --text-modern: #192A4C;      /* Azul profundo - Texto principal */
    --text-modern-muted: #6D7E9F; /* Azul grisáceo - Texto secundario */
    
    /* Acentos */
    --accent-mint: #D8FAF4;      /* Fondo suave para badges */
    --accent-cyan: #73C5C1;      /* Color de acento de badges */
    
    /* El Degradado Moderno de Acción */
    --gradient-primary: linear-gradient(90deg, #A881FF 0%, #E2A0FF 100%);
    --gradient-hover: linear-gradient(90deg, #9C71FF 0%, #D489FF 100%);
    
    /* Globales de diseño */
    --font-main: 'Inter', sans-serif;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Sombra ligeramente más marcada para que resalte sobre el nuevo fondo */
    --shadow-soft: 0 10px 40px rgba(25, 42, 76, 0.07); 
}

/* --- RESET & GLOBALES --- */
* {
    margin: 0; padding: 0; box-sizing: border-box;
}

/* Solo aplicar cursor custom en PC (Se mantiene igual) */
@media (pointer: fine) {
    * { cursor: none !important; }
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-modern);
    color: var(--text-modern);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}


/* =========================================
   NUEVO: PANTALLA DE CARGA ELEGANTE
   ========================================= */
.loader-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background-color: var(--bg-modern);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    
    /* El efecto de salida en círculo (Iris Wipe) */
    clip-path: circle(150% at 50% 50%);
    transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}

/* La clase que JS agregará para abrir el círculo y revelar la página */
.loader-wrapper.iris-out {
    clip-path: circle(0% at 50% 50%);
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 300px; /* Ancho máximo de la barra */
    padding: 0 20px;
}

/* --- LA BARRA DE CARGA --- */
.loading-bar-container {
    position: relative;
    width: 100%;
    height: 6px;
    background-color: rgba(25, 42, 76, 0.08); /* Fondo de la barra sutil */
    border-radius: 10px;
    margin-top: 20px; /* Espacio para que el diente no choque arriba */
}

/* El relleno de la barra (El progreso real) */
.loading-progress {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%; /* Inicia en 0, JS lo actualizará */
    background: var(--gradient-primary); /* Nuestro morado/rosa */
    border-radius: 10px;
    transition: width 0.1s ease-out; /* Movimiento suave */
}

/* --- EL DIENTE VIAJERO --- */
.traveling-tooth {
    position: absolute;
    top: -25px; /* Lo subimos para que "camine" sobre la barra */
    left: 0%; /* Inicia en 0, JS lo actualizará igual que la barra */
    transform: translateX(-50%); /* Para que el centro del diente alinee con el borde de la barra */
    font-size: 1.5rem;
    color: var(--accent-cyan);
    transition: left 0.1s ease-out; /* Debe coincidir con la transición de la barra */
    /* Pequeña animación de flotado para que no se vea tieso */
    animation: float-tooth 1s ease-in-out infinite alternate;
}

@keyframes float-tooth {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(-3px); }
}

/* Texto limpio */
.loading-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-modern-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}




/* cursor */
/*  */
/*  */

/* --- MANTENEMOS: CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-modern);
}
::-webkit-scrollbar-thumb {
    background: #C4D2E5; /* Un gris azulado suave */
    border-radius: 10px;
    border: 2px solid var(--bg-modern);
}
::-webkit-scrollbar-thumb:hover {
    background: #A0B5D1;
}

/* --- MANTENEMOS: CURSOR DE CEPILLO (Corregimos color) --- */
.cursor-brush {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 10000;
    color: var(--accent-cyan); /* Usamos el nuevo azul de acento */
    font-size: 26px;
    display: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translate(-50%, -50%) rotate(-45deg);
    transition: transform 0.1s ease-out;
}
.cursor-brush.brush-hover {
    animation: brushing 0.6s infinite alternate ease-in-out;
    color: #49F5FF; /* Un cian más brillante en hovers */
}
@keyframes brushing {
    0% { transform: translate(-50%, -50%) rotate(-45deg) translateX(0); }
    100% { transform: translate(-50%, -50%) rotate(-15deg) translateX(8px); }
}

@media (pointer: coarse) {
    .cursor-brush { display: none !important; }
    * { cursor: auto !important; }
}

/* --- MANTENEMOS: EFECTO RIPPLE --- */
.click-ripple {
    position: fixed;
    border-radius: 50%;
    background: rgba(168, 129, 255, 0.3); /* Un toque morado suave */
    transform: translate(-50%, -50%) scale(0);
    animation: ripple-animation 0.5s ease-out forwards;
    pointer-events: none;
    z-index: 9999;
}
@keyframes ripple-animation {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}


/* =========================================
   NUEVO: HEADER (Modern / Clean)
   ========================================= */
.main-header {
    position: fixed; top: 0; width: 100%;
    padding: 20px 0; z-index: 1000;
    transition: var(--transition-smooth);
    background: rgba(244, 248, 252, 0.9); /* Fondo suave con alpha */
    backdrop-filter: blur(10px);
}

.main-header.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-soft);
    background: rgba(244, 248, 252, 0.98);
}

.header-container {
    max-width: 1300px; margin: 0 auto; padding: 0 25px;
    display: flex; justify-content: space-between; align-items: center;
}

/* Logo Estilo Moderno */
.logo { 
    display: flex; align-items: center; gap: 12px; 
    text-decoration: none; color: var(--text-modern); 
}
.logo-icon {
    font-size: 28px;
    color: var(--accent-cyan);
    background: var(--white);
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(115, 197, 193, 0.1);
}
.logo-text { display: flex; flex-direction: column; }
.logo-text .title { 
    font-weight: 800; font-size: 1.15rem; 
    letter-spacing: -0.5px;
}
.logo-text .subtitle { 
    font-size: 0.8rem; color: var(--text-modern-muted); 
    font-weight: 500; 
}

/* Navegación Desktop */
.main-nav ul { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-link {
    text-decoration: none; color: var(--text-modern); 
    font-weight: 600; font-size: 0.9rem;
    position: relative; transition: var(--transition-smooth);
}
.nav-link:hover { color: #A881FF; } /* Color morado suave al hover */

/* Botones CTA Generales */
.cta-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 50px;
    text-decoration: none; font-weight: 700; font-size: 0.9rem;
    transition: var(--transition-smooth);
}

/* CTA MODERNO: degradado de Lindavista */
.cta-modern {
    background: var(--gradient-primary); color: var(--white);
    box-shadow: 0 6px 15px rgba(168, 129, 255, 0.2);
    max-width: 220px;
}
.cta-modern:hover { 
    background: var(--gradient-hover); 
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 129, 255, 0.3);
}

.mobile-only-cta { display: none; }

/* --- BOTÓN HAMBURGUESA --- */
.mobile-toggle {
    display: none; background: none; border: none;
    width: 35px; height: 35px;
    position: relative; z-index: 1100;
}
.hamburger-lines { display: block; height: 20px; width: 25px; position: relative; }
.line {
    display: block; height: 3px; width: 100%;
    border-radius: 10px; background: var(--text-modern);
    position: absolute; transition: var(--transition-smooth);
}
.line1 { top: 0; }
.line2 { top: 50%; transform: translateY(-50%); }
.line3 { bottom: 0; }
.mobile-toggle.open .line1 { transform: rotate(45deg); top: 9px; background: #A881FF; }
.mobile-toggle.open .line2 { opacity: 0; transform: translateX(-20px); }
.mobile-toggle.open .line3 { transform: rotate(-45deg); bottom: 8px; background: #A881FF; }


/* =========================================
       RESTAURANDO EL MENÚ MÓVIL (HAMBURGUESA)
       ========================================= */
    /* 1. Ocultar botón de PC y mostrar icono de hamburguesa */
    .header-cta-desktop { display: none; }
    .mobile-toggle { 
        display: block; 
        cursor: pointer; 
        font-size: 1.8rem; 
        color: var(--text-modern); 
        z-index: 1001; /* Súper importante: debe estar por encima del menú abierto */
    }

    /* 2. Menú Móvil a pantalla completa */
    .main-nav {
        position: fixed; 
        top: 0; right: 0; 
        width: 100%; height: 100vh;
        background: var(--white); 
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        /* Animación de círculo tipo App */
        clip-path: circle(0% at 90% 10%);
        transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
        visibility: hidden; opacity: 0;
        z-index: 1000;
    }

    /* 3. Clase que JS agrega al hacer clic */
    .main-nav.open { 
        clip-path: circle(150% at 90% 10%); 
        visibility: visible; 
        opacity: 1; 
    }

    /* 4. Estilos de los links dentro del menú */
    .main-nav ul { 
        flex-direction: column; 
        gap: 30px; 
        text-align: center;
        padding: 0;
    }
    .main-nav .nav-link { 
        color: var(--text-modern); 
        font-size: 1.8rem; 
        font-weight: 800; 
    }
    .main-nav .nav-link:hover { 
        color: #A881FF; 
    }
    
    .mobile-only-cta { 
        display: block; 
        margin-top: 40px; 
    }

/* =========================================
   NUEVO: HERO SECTION (Slider Inmersivo - Opción C)
   ========================================= */
.hero {
    padding: 60px 0 100px 0;
    position: relative;
    background-color: var(--bg-modern);
    overflow: hidden; /* Aseguramos que nada se desborde */
    z-index: 1; /* Para que los orbes queden por detrás */
}

/* --- OPTION C: Orbes de Luz Flotantes en el fondo --- */
.hero::before {
    content: '';
    position: absolute;
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(168, 129, 255, 0.15) 0%, rgba(168, 129, 255, 0) 70%);
    top: -150px; right: 5%;
    border-radius: 50%;
    z-index: -1;
    animation: float-orb 12s infinite alternate ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.08) 0%, rgba(37, 211, 102, 0) 70%);
    bottom: -200px; left: -100px;
    border-radius: 50%;
    z-index: -1;
    animation: float-orb 15s infinite alternate-reverse ease-in-out;
}

@keyframes float-orb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, 50px) scale(1.1); }
}

/* --- Layout del Hero --- */
.hero-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* --- Columna 1: Contenido de Texto --- */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-calidad {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-mint);
    color: var(--accent-cyan);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-modern);
    margin-bottom: 25px;
    letter-spacing: -1px;
}

/* =========================================
   NUEVO: ANIMACIÓN DE SONRISA (HERO TITLE)
   ========================================= */
.smile-wrapper {
    display: inline-block;
    position: relative;
    vertical-align: middle; /* Alinea la sonrisa con el texto del H1 */
    margin-left: 5px;
    width: 65px;
    height: 40px;
}

.smile-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* El trazo que se dibuja solo */
.smile-path {
    fill: transparent;
    stroke: var(--accent-cyan); /* Color Cyan para contrastar con el morado */
    stroke-width: 8;
    stroke-linecap: round;
    /* Truco de SVG Animation: Ocultamos el trazo completo y lo revelamos */
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: draw-smile 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* La chispita dorada */
.smile-sparkle {
    position: absolute;
    top: -5px;
    right: -15px;
    color: #FFD700;
    font-size: 1.2rem;
    opacity: 0;
    transform: scale(0);
    animation: pop-sparkle 4s ease-in-out infinite;
}

/* Keyframes: La sonrisa se dibuja, se pausa, y se borra */
@keyframes draw-smile {
    0%, 10% { stroke-dashoffset: 120; } /* Oculta */
    30%, 70% { stroke-dashoffset: 0; }  /* Completamente dibujada */
    90%, 100% { stroke-dashoffset: 120; } /* Se vuelve a ocultar */
}

/* Keyframes: La chispa explota justo cuando la sonrisa termina de dibujarse */
@keyframes pop-sparkle {
    0%, 25% { opacity: 0; transform: scale(0) rotate(0deg); }
    30% { opacity: 1; transform: scale(1.3) rotate(15deg); }
    40%, 100% { opacity: 0; transform: scale(0) rotate(45deg); }
}

/* Ajuste Responsive para móvil */
@media (max-width: 576px) {
    .smile-wrapper { width: 45px; height: 30px; }
    .smile-sparkle { font-size: 1rem; right: -10px; }
}

.highlight-text {
    color: #A881FF;
    position: relative;
    display: inline-block;
}
.highlight-text::after {
    content: ''; position: absolute;
    width: 100%; height: 10px;
    background: rgba(168, 129, 255, 0.15);
    bottom: 5px; left: 0;
    z-index: -1; border-radius: 10px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-modern-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 90%;
}

.main-hero-btn {
    padding: 16px 35px;
    font-size: 1rem;
}


/* --- Columna 2: EL SLIDER (Antes/Después) --- */
.hero-slider-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Para no desbordar */
}

.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 600px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    mask-image:
        linear-gradient(to right, transparent 0%, black 1%, black 90%, transparent 100%),
        linear-gradient(to top, transparent 0%, black 1%, black 96%, transparent 100%);
    mask-composite: intersect;
}

/* Forzamos el cursor de arrastrar para la PC */
.comparison-slider, 
.comparison-slider * {
    cursor: ew-resize !important; 
}

/* El difuminado rectangular hacia adentro */
.comparison-slider::after {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    /* box-shadow: inset 0 0 50px 10px var(--bg-modern); */
    z-index: 10;
    pointer-events: none; /* Que no estorbe los clics */
}

/* Estilos de las imágenes del Slider */
.comparison-slider img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.before-img { z-index: 2; clip-path: inset(0 50% 0 0); }
.after-img { z-index: 1; }

/* El Controlador del Slider */
.slider-handle {
    position: absolute; top: 0; left: 50%;
    height: 100%; width: 4px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    z-index: 3;
}
.handle-line {
    width: 100%; height: 100%;
    box-shadow: 0 0 15px rgba(168, 129, 255, 0.5); /* Brillo sutil */
}
.handle-circle {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 50px; height: 50px;
    background: var(--white);
    border: 4px solid #A881FF;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center; gap: 4px;
    box-shadow: 0 4px 15px rgba(25, 42, 76, 0.15);
}
.handle-circle i { font-size: 14px; color: #A881FF; }


/* --- OPTION C: Etiquetas Premium (Glassmorphism) --- */
.label-badge {
    position: absolute;
    z-index: 11; /* Por encima del difuminado de los bordes */
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    
    /* Cristal Esmerilado */
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--text-modern);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.08);
    pointer-events: none;
}
.label-badge i { font-size: 1.1rem; }
.before-label { top: 40px; left: 40px; }
.after-label { top: 40px; right: 40px; }

.dull-tooth { color: #94a3b8; }
.magic-icon { color: #A881FF; animation: pulse-magic 2s infinite; }

@keyframes pulse-magic {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(168, 129, 255, 0.5)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 10px rgba(168, 129, 255, 0.9)); transform: scale(1.1); }
}

/* Clase para matar el cursor custom de JS si pasas por la imagen */
.hide-brush-force {
    opacity: 0 !important;
    visibility: hidden !important;
}


/* =========================================
   RESPONSIVE DEL HERO 2.0
   ========================================= */
@media (max-width: 992px) {
    .hero { padding: 40px 0 80px 0; }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    .hero-content { align-items: center; }
    .hero-title { font-size: 2.8rem; }
    .hero-description { max-width: 100%; margin: 0 auto 35px auto; }
    
    .hero-slider-wrapper { margin-top: 20px; }
    .comparison-slider { max-width: 400px; height: 400px; }
    .handle-circle { width: 40px; height: 40px; border-width: 3px; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2.2rem; }
    .hero-container { padding: 0 15px; }
    .comparison-slider {
        width: 100%; max-width: none;
        height: auto; aspect-ratio: 1 / 1;
        border-radius: var(--border-radius-md);
    }
    .label-badge { padding: 6px 12px; font-size: 0.75rem; }
    .before-label { top: 20px; left: 20px; }
    .after-label { top: 20px; right: 20px; }
}
/* =========================================
   NUEVO: SECCIÓN DE SERVICIOS (INTERACTIVE SHOWCASE)
   ========================================= */
.services-section {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

/* --- Centrado forzado del Encabezado de Servicios --- */
.services-section .section-header {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 50px auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Esto centra los elementos horizontalmente */
    text-align: center; /* Esto centra el texto de los párrafos */
}

.services-section .section-title {
    width: 100%;
    margin-bottom: 20px;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-modern);
    letter-spacing: -0.5px;
}

.services-section .section-description {
    font-size: 1.1rem;
    color: var(--text-modern-muted);
    line-height: 1.6;
}

/* ... (Los estilos del .section-header, .section-title, etc. se mantienen del código anterior) ... */

/* Contenedor Principal del Showcase */
.showcase-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* La imagen ocupa más espacio (1.5) */
    gap: 50px;
    background: var(--bg-modern);
    border-radius: 30px;
    padding: 40px;
    border: 1px solid rgba(25, 42, 76, 0.05);
}

/* --- Lado Izquierdo: Lista de Botones --- */
.showcase-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.showcase-btn {
    background: transparent;
    border: none;
    text-align: left;
    padding: 20px 25px;
    border-radius: var(--border-radius-md);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-modern-muted);
    font-family: var(--font-main);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.showcase-btn i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    transition: var(--transition-smooth);
}

/* Estado Hover de los botones */
.showcase-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-modern);
}

/* Estado ACTIVO (El que está seleccionado) */
.showcase-btn.active {
    background: var(--white);
    color: var(--text-modern);
    box-shadow: 0 10px 30px rgba(25, 42, 76, 0.05);
}
.showcase-btn.active i {
    color: #A881FF; /* El morado premium */
    transform: scale(1.2);
}

/* Rayita lateral indicadora para el activo */
.showcase-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 0%;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: height 0.1s ease;
}
.showcase-btn.active::before { height: 60%; }


/* --- Lado Derecho: Panel Dinámico --- */
.showcase-display {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    /* Esta clase controlará la animación de fade que hará JS */
    transition: opacity 0.4s ease, transform 0.1s ease;
}

/* Efecto para cuando JS cambie el contenido */
.showcase-display.fade-out {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
}

.display-img-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.display-img-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
}

/* Un degradado negro debajo para que el texto blanco siempre se lea bien */
.img-overlay-gradient {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 70%;
    background: linear-gradient(to top, rgba(25, 42, 76, 0.9) 0%, rgba(25, 42, 76, 0) 100%);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

/* La tarjeta con la información superpuesta a la foto */
.display-info-card {
    position: relative;
    z-index: 2;
    padding: 40px;
    color: var(--white);
    max-width: 90%;
}

.display-info-card h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
}

.display-info-card p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 30px;
}


/* =========================================
   RESPONSIVE: SHOWCASE
   ========================================= */
@media (max-width: 1024px) {
    .showcase-wrapper {
        grid-template-columns: 1fr; /* Pasa a una sola columna */
        padding: 20px;
        background: transparent;
        border: none;
    }

    /* En tablet/móvil, la lista se vuelve un "scroll horizontal" ocultando la barra */
    .showcase-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 15px;
        justify-content: center;
        /* Ocultar barra de scroll nativa pero mantener función */
        scrollbar-width: none; 
    }
    .showcase-list::-webkit-scrollbar { display: none; }

    .showcase-btn {
        white-space: nowrap;
        padding: 15px; /* Padding más cuadrado */
        background: var(--bg-modern);
        border: 1px solid rgba(25, 42, 76, 0.05);
        min-width: 60px; /* Asegura un tamaño mínimo tocable */
        justify-content: center; /* Centra el icono */
    }
    /* Ocultamos el texto dentro del botón en tablet/móvil */
    .showcase-btn span.btn-text {
        display: none;
    }

    /* Hacemos el icono un poco más grande en móvil */
    .showcase-btn i {
        font-size: 1.8rem; 
        margin: 0; /* Quitamos márgenes si los tuviera */
    }
    .showcase-btn::before {
        left: 50%; 
        top: auto; 
        bottom: 0;
        transform: translateX(-50%);
        width: 0%; 
        height: 3px;
        transition: width 0.3s ease;
    }
    .showcase-btn.active::before { width: 60%; height: 3px; }

    .showcase-display { min-height: 450px; }
    .display-info-card { padding: 30px 20px; max-width: 100%; }
    .display-info-card h3 { font-size: 1.8rem; }
}

@media (max-width: 576px) {
    .showcase-display { min-height: 400px; }
    .display-info-card p { display: none; } /* Ocultar el texto largo en móviles muy pequeños para dar prioridad al botón y al título */
    .display-info-card h3 { margin-bottom: 25px; }
}

/* =========================================
   ACTUALIZADO: SECCIÓN MI CONSULTORIO (BENTO GRID CON REVEAL HOVER)
   ========================================= */
.clinic-section {
    padding: 100px 0;
    background-color: var(--bg-modern); /* Usamos el fondo grisáceo para diferenciar */
    position: relative;
}

.clinic-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
}

/* El Bento Grid: CSS Grid Avanzado */
.bento-grid {
    display: grid;
    /* Creamos 3 columnas base */
    grid-template-columns: repeat(3, 1fr);
    /* Altura de las filas automáticas, pero con un mínimo */
    grid-auto-rows: minmax(250px, auto);
    gap: 25px;
}

/* Estilo Base para todos los items del Bento */
.bento-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(25, 42, 76, 0.08);
}

/* --- Imágenes dentro del Bento (Con efecto Reveal) --- */
.bento-photo {
    position: relative;
    overflow: hidden;
}

.bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.4s ease; /* Transición suave para oscurecer la foto */
}

/* Oscurecemos y desenfocamos un poco la foto en hover en lugar de hacer zoom */
.bento-item:hover .bento-img {
    filter: brightness(0.4) blur(2px); 
}

/* --- NUEVO: CAPA DE REVELADO (Hover Reveal) --- */
.bento-reveal-content {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    
    /* Fondo con el degradado moderno, inicialmente transparente */
    background: linear-gradient(135deg, rgba(168, 129, 255, 0.85) 0%, rgba(226, 160, 255, 0.85) 100%);
    
    /* Estado inicial: Oculto y un poco hacia abajo */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Aseguramos que los clics no se bloqueen */
    pointer-events: none;
}

/* Cuando pasas el mouse sobre el cuadrito, la capa sube y aparece */
.bento-photo:hover .bento-reveal-content {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos de los textos revelados */
.reveal-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--white);
    /* Pequeña animación extra para el icono al entrar */
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s;
}

.bento-photo:hover .reveal-icon {
    transform: scale(1);
}

.reveal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.reveal-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* Ajustes para fotos pequeñas (menos padding y texto más chico) */
.bento-small .bento-reveal-content { padding: 20px; }
.bento-small .reveal-icon { font-size: 2rem; margin-bottom: 10px; }
.bento-small .reveal-title { font-size: 1.2rem; }
.bento-small .reveal-text { font-size: 0.85rem; }


/* --- Tarjetas de Texto (Beneficios) dentro del grid --- */
.bento-text-card {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.bento-text-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.bento-text-card p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Variación 1: Tarjeta Acento (Morada) */
.bento-accent {
    background: var(--gradient-primary);
    color: var(--white);
}
.bento-accent .bento-icon { color: var(--white); }
.bento-accent p { color: rgba(255, 255, 255, 0.9); }

/* Variación 2: Tarjeta Light (Crema/Cyan) */
.bento-light {
    background: var(--accent-mint);
    color: var(--text-modern);
}
.bento-light .bento-icon { color: var(--accent-cyan); }
.bento-light p { color: var(--text-modern-muted); }


/* --- Posicionamiento Asimétrico (La Magia del Bento) --- */
/* En escritorio, la foto grande ocupa 2 columnas y 2 filas */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

/* --- RESPONSIVE TOUCH (Móviles) --- */
@media (max-width: 992px) {
    /* En móvil no hay hover, así que mostramos la info siempre visible pero sutil */
    .bento-photo {
        background: #000;
    }
    
    .bento-img { filter: brightness(0.6); }
    
    .bento-reveal-content {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(25, 42, 76, 0.9) 0%, rgba(25, 42, 76, 0.3) 100%);
        justify-content: flex-end;
        padding: 20px;
    }
    
    .reveal-icon { transform: scale(1); font-size: 1.8rem; margin-bottom: 8px;}
    .reveal-title { font-size: 1.3rem; margin-bottom: 5px; }
    .reveal-text { display: none; }
}


/* =========================================
   RESPONSIVE: BENTO GRID
   ========================================= */
@media (max-width: 992px) {
    /* En tablet, pasamos a 2 columnas */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-large {
        grid-column: span 2;
        grid-row: span 1; /* Ya no ocupa 2 filas, solo a lo ancho */
        height: 350px; /* Le damos altura fija */
    }
}

@media (max-width: 768px) {
    /* En móvil, se apila todo en 1 sola columna */
    .clinic-section { padding: 70px 0; }
    
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bento-large, .bento-small {
        grid-column: span 1;
        height: 250px; /* Altura para móvil */
    }
    
    .bento-text-card {
        padding: 30px 20px;
    }
}

/* --- Centrado forzado GLOBAL de Encabezados de Sección --- */
.section-header {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 50px auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra horizontalmente */
    text-align: center; /* Centra el texto */
}

.section-title {
    width: 100%;
    margin-bottom: 20px;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-modern);
    letter-spacing: -0.5px;
    padding: 0 25px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-modern-muted);
    line-height: 1.6;
}

/* =========================================
   NUEVO: SECCIÓN DE TESTIMONIOS
   ========================================= */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--white); /* Fondo blanco para contraste */
    overflow: hidden; /* Evita desbordes horizontales raros */
}

.testimonials-container {
    max-width: 1300px;
    margin: 0 auto;
    /* No le ponemos padding horizontal aquí para que el carrusel pegue a las orillas en móvil */
}

.carousel-wrapper {
    position: relative;
    width: 100%;
}

/* El carril deslizable */
.testimonials-track {
    display: flex;
    gap: 30px;
    padding: 20px 25px 40px 25px; /* Espacio para las sombras */
    overflow-x: auto;
    scroll-behavior: smooth;
    /* Magia para móviles: hace que las tarjetas se "peguen" al hacer swipe */
    scroll-snap-type: x mandatory; 
    
    /* Ocultar la barra de scroll nativa */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    cursor: grab; /* Cursor de "agarrar" para PC */
}

.testimonials-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.testimonials-track:active {
    cursor: grabbing; /* Cursor cerrado al arrastrar */
}

/* Tarjeta individual */
.testimonial-card {
    min-width: 380px; /* Ancho fijo para que no se apachurren */
    max-width: 380px;
    background: var(--bg-modern);
    border-radius: var(--border-radius-lg);
    padding: 40px 35px;
    scroll-snap-align: start; /* Punto de anclaje al deslizar */
    border: 1px solid rgba(25, 42, 76, 0.04);
    transition: var(--transition-smooth);
    user-select: none; /* Evita que el texto se sombree azul al arrastrar con el mouse */
}

.testimonial-card:hover {
    box-shadow: 0 15px 35px rgba(25, 42, 76, 0.06);
    transform: translateY(-5px);
    background: var(--white);
}

.stars {
    color: #FFB800; /* Amarillo Google */
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    gap: 5px;
}

.review-text {
    font-size: 1.05rem;
    color: var(--text-modern-muted);
    line-height: 1.6;
    margin-bottom: 30px;
    font-style: italic;
    min-height: 100px; /* Para que todas las tarjetas midan parecido */
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(25, 42, 76, 0.08);
    padding-top: 20px;
}

/* Avatares con colores random pero combinados */
.patient-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-weight: 800;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}
.avatar-1 { background: var(--gradient-primary); }
.avatar-2 { background: var(--accent-cyan); }
.avatar-3 { background: #FF9A9E; }
.avatar-4 { background: #84FAB0; color: var(--text-modern); }

.patient-details {
    display: flex;
    flex-direction: column;
}

.patient-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-modern);
}

.patient-date {
    font-size: 0.8rem;
    color: var(--text-modern-muted);
}

/* Pista visual para deslizar */
.swipe-hint {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-modern-muted);
    margin-top: -10px;
    animation: pulse 2s infinite;
}
.swipe-hint i { margin-right: 5px; color: var(--accent-cyan); }

/* Responsive */
@media (max-width: 768px) {
    .testimonials-section { padding: 70px 0; }
    .testimonial-card { 
        min-width: 85vw; /* En móvil, ocupa casi toda la pantalla (85%) para que se asome la siguiente tarjeta */
        max-width: 85vw;
        padding: 30px 25px;
    }
}

/* =========================================
   NUEVO: SECCIÓN DE CONTACTO
   ========================================= */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-modern); /* Fondo grisáceo */
    position: relative;
}

.contact-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* El mapa ocupa un poquito más de espacio */
    gap: 40px;
}

/* --- Columna 1: Tarjetas Informativas --- */
.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 35px 30px;
    display: flex;
    gap: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(25, 42, 76, 0.03);
    transition: var(--transition-smooth);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(25, 42, 76, 0.06);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-mint);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

/* Destacamos la tarjeta de WhatsApp */
.whatsapp-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border: 1px solid #dcfce7;
}
.whatsapp-card .contact-icon {
    background: #25D366;
    color: var(--white);
    animation: pulse-ws 2s infinite;
}

.contact-details h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-modern);
    margin-bottom: 8px;
}

.contact-details p {
    font-size: 0.95rem;
    color: var(--text-modern-muted);
    margin-bottom: 15px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #25D366; /* Verde WhatsApp */
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.contact-link:hover { color: #1EBE5D; gap: 12px; }

/* Lista de Horarios */
.hours-list {
    list-style: none;
    width: 100%;
}
.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(25, 42, 76, 0.1);
    font-size: 0.95rem;
    color: var(--text-modern);
    font-weight: 500;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list .closed { color: #FF6B6B; font-weight: 700; }


/* --- Columna 2: Mapa --- */
.map-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(25, 42, 76, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.map-wrapper {
    flex-grow: 1;
    min-height: 250px;
    background: #e2e8f0; /* Color de carga */
}

.address-details {
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
}

.address-icon {
    font-size: 24px;
    color: var(--accent-cyan);
}

.address-details h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-modern);
    margin-bottom: 5px;
}

.address-details p {
    font-size: 0.9rem;
    color: var(--text-modern-muted);
    line-height: 1.5;
}


/* =========================================
   FOOTER
   ========================================= */
.main-footer {
    background: var(--white);
    padding: 40px 0;
    border-top: 1px solid rgba(25, 42, 76, 0.05);
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-modern);
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-modern-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-copy {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-modern-muted);
}
.developer-credit {
    margin-top: 5px;
    font-size: 0.8rem;
}
.developer-credit strong {
    color: var(--text-modern);
}


/* --- RESPONSIVE CONTACTO --- */
@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; }
    .map-card { min-height: 400px; }
}

@media (max-width: 576px) {
    .contact-card { flex-direction: column; gap: 15px; text-align: center; align-items: center; padding: 25px 20px; }
    .hours-list li { flex-direction: column; gap: 5px; text-align: center; }
    .address-details { flex-direction: column; text-align: center; }
}