@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

/* 2. VARIABLES Y RESET (Empieza limpio) */
:root {
    --dorado: #c5a059;
    --negro-fondo: #111111;
}

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


#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #ffffff; /* Fondo blanco */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 1s ease; /* Transición más lenta y elegante */
}

.logo-loader {
    text-align: center;
    width: 200px;
}

.logo-loader img {
    width: 100%;
    margin-bottom: 20px;
    animation: pulse 2s infinite ease-in-out; /* El logo late suavemente */
}

/* Línea de carga dorada */
.line-loading {
    height: 2px;
    background: linear-gradient(to right, transparent, #D5A701, transparent);
    width: 100%;
    animation: loading-line 2s infinite;
}

@keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes loading-line { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

/* =========================================
   1. CORRECCIÓN: INDICADOR DE SCROLL EN MÓVIL
   ========================================= */
@media (max-width: 768px) {
    .scroll-hint {
        display: flex !important; /* Fuerza a que aparezca ignorando bloqueos previos */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 10px auto 25px auto; /* Espaciado para que no se pegue a las tarjetas */
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .scroll-text {
        font-size: 0.85rem;
        color: #cca451; /* Dorado premium para que destaque */
        margin-bottom: 8px;
        letter-spacing: 1px;
    }
    
    .scroll-icon {
        display: block !important;
    }
}


/* =========================================
   2. CORRECCIÓN: DIFUMINADO DEL MODAL (PC vs MÓVIL)
   ========================================= */

/* Para PC (Pantallas grandes): Resplandor mucho más suave, amplio y difuminado */
@media (min-width: 769px) {
    .modal-content {
        /* 1ra sombra: Oscura y profunda para separar del fondo.
           2da sombra: Dorado muy sutil, con máxima expansión (120px) para que parezca luz ambiental y no una mancha.
        */
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 120px rgba(204, 164, 81, 0.15) !important;
    }
}

/* Para Celular: Mantiene el resplandor concentrado e intenso que se ve bien en pantallas pequeñas */
@media (max-width: 768px) {
    .modal-content {
        box-shadow: 0 0 45px rgba(204, 164, 81, 0.4), 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    }
}

/* ==========================================================================
   0. FUENTES, VARIABLES DE COLOR Y RESET BÁSICO
   ========================================================================== */

:root {
    --bg-light: #ffffff;         
    --bg-subtle-cream: #FEFEE8;  
    --bg-top-bar: #121212;       
    --bg-navbar: #212121;        
    --gold-bright: #FEE811;      
    --gold-primary: #EDCD05;     
    --gold-solid: #D5A701;       
    --text-dark: #212121;        
    --text-muted: #555555;       
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body { 
    font-family: var(--font-main); 
    background-color: var(--bg-light); 
    color: var(--text-dark); 
    overflow-x: hidden; 
}


/* ==========================================================================
   1. BARRA SUPERIOR (TOP BAR E IDIOMAS)
   ========================================================================== */
.top-bar { 
    background-color: var(--bg-top-bar); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 6px 15px; 
}

.lang-switcher { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}

.lang-btn { 
    background: none; 
    border: none; 
    color: rgba(255, 255, 255, 0.5); 
    font-size: 12px; 
    font-weight: bold; 
    cursor: pointer; 
    padding: 4px 8px; 
    transition: color 0.2s; 
}

.lang-btn:hover { color: #ffffff; }

.lang-btn.active { 
    color: var(--gold-bright); 
    text-shadow: 0 0 8px rgba(254, 232, 17, 0.4); 
}

.lang-divider { 
    color: rgba(255, 255, 255, 0.2); 
    font-size: 12px; 
}


/* ==========================================================================
   2. NAVEGACIÓN PRINCIPAL Y LOGO CREATIVO (HEADER)
   ========================================================================== */

   /* Ajuste del contenedor del logo */
.logo-creative {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%; /* Para que ocupe el alto del header */
}

/* Ajuste específico de la imagen */
.logo-img {
    height: 65px; /* Ajusta este valor al tamaño que quieras */
    width: auto;  /* Mantiene la proporción original */
    display: block;
    transition: transform 0.3s ease; /* Un toque de suavidad */
}

/* Efecto sutil al pasar el mouse por el logo */
.logo-img:hover {
    transform: scale(1.05);
}

.main-header { 
    background-color: var(--bg-navbar); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 20px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    position: sticky; 
    top: 0;
    z-index: 1000; 
}

/* --- LOGO TIPOGRÁFICO CON EFECTO DORADO --- */
.logo-creative {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
    transition: transform 0.3s ease;
}

.logo-creative:hover {
    transform: scale(1.03);
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-style: italic;
    font-weight: 600;
    margin-bottom: 2px;
    
    /* Gradiente dorado con brillo en el centro */
    background: linear-gradient(to right, var(--gold-solid) 0%, var(--gold-bright) 40%, #FFFDEA 50%, var(--gold-primary) 60%, var(--gold-solid) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* Estandarización */
    
    /* Animación infinita de brillo */
    animation: shine 5s linear infinite;
}

.brand-tagline {
    font-family: var(--font-main);
    font-size: 8.5px;
    color: #ffffff;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    font-weight: 500;
    margin-left: 2px;
    opacity: 0.75;
}

/* Animación Keyframes para el brillo del logo */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Estilo base del botón */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    padding: 0;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
}

/* Animación cuando el menú está activo */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-menu { 
    display: none; 
    flex-direction: column; 
    background-color: var(--bg-navbar); 
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%; 
    padding: 20px; 
    gap: 20px; 
    box-shadow: 0 10px 15px rgba(0,0,0,0.3); 
}

.nav-menu.active { display: flex !important; }

.nav-menu a { 
    color: #ffffff; 
    text-decoration: none; 
    font-size: 16px; 
    font-weight: 500; 
    padding: 5px 0; 
    transition: color 0.2s; 
}

.nav-menu a:hover { color: var(--gold-bright); }

.nav-menu a.btn-nav { 
    color: var(--gold-navbar); 
    border: 1px solid var(--gold-bright); 
    padding: 10px; 
    border-radius: 5px; 
    text-align: center; 
    color: var(--gold-bright);
}
.nav-menu a.btn-nav:hover {
    background-color: var(--gold-bright);
    color: #000;
}


/* ==========================================================================
   3. HERO SECTION (PORTADA PRINCIPAL)
   ========================================================================== */
.hero { 
    /* La ruta correcta si la imagen está en la carpeta 'img' */
    background: linear-gradient(rgba(10, 10, 10, 0.65), rgba(10, 10, 10, 0.65)), 
                url('img/Fondo2.jpeg') center/cover no-repeat; 
    color: #ffffff; 
    padding: 80px 20px 100px 20px; 
    text-align: center; 
}

.hero-container { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    max-width: 800px; 
    margin: 0 auto; 
}

.hero-content h1 { 
    font-size: 32px; 
    line-height: 1.3; 
    margin-bottom: 15px; 
    color: #ffffff; 
}

.hero-content .highlight { 
    color: var(--gold-bright); 
    text-shadow: 0 2px 10px rgba(254, 232, 17, 0.3); 
}

.hero-content p { 
    color: #FEFEE8; 
    font-size: 16px; 
    line-height: 1.6; 
    margin-bottom: 30px; 
}

.btn-cta { 
    display: inline-block; 
    background-color: var(--gold-bright); 
    color: #000000; 
    text-decoration: none; 
    font-weight: bold; 
    padding: 14px 28px; 
    border-radius: 8px; 
    font-size: 16px; 
    box-shadow: 0 4px 20px rgba(254, 232, 17, 0.4); 
    transition: transform 0.2s, background-color 0.2s; 
}

.btn-cta:hover { 
    background-color: var(--gold-primary); 
    transform: translateY(-2px); 
}


/* ==========================================================================
   4. BARRA DE ESTADÍSTICAS
   ========================================================================== */
.stats-bar-container { 
    padding: 0 20px; 
    margin-top: -35px; 
    margin-bottom: 40px; 
    position: relative; 
    z-index: 10; 
}

.stats-bar { 
    background-color: var(--bg-subtle-cream); 
    border: 1px solid rgba(213, 167, 1, 0.25); 
    border-radius: 16px; 
    padding: 20px 10px; 
    display: flex; 
    flex-direction: row; 
    justify-content: space-around; 
    align-items: center; 
    text-align: center; 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06); 
    max-width: 550px; 
    margin: 0 auto; 
}

.stat-item { flex: 1; padding: 5px; }

.stat-item h3 { 
    color: var(--gold-solid); 
    font-size: 26px; 
    font-weight: 800; 
    margin-bottom: 4px; 
    letter-spacing: -0.5px; 
}

.stat-item p { 
    color: var(--bg-navbar); 
    font-size: 11px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    line-height: 1.2; 
}

.stats-bar .divider { 
    width: 1px; 
    height: 40px; 
    background-color: rgba(213, 167, 1, 0.25); 
    margin: 0 5px; 
}


/* ==========================================================================
   5. SECCIÓN DE PROCEDIMIENTOS (GRID DE IMÁGENES)
   ========================================================================== */
.procedures-section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 28px;
    color: var(--bg-navbar);
    margin-bottom: 40px;
    position: relative;
    font-weight: 800;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--gold-bright);
    margin: 12px auto 0;
    border-radius: 2px;
}

.procedures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.procedure-card {
    position: relative;
    height: 260px;
    border-radius: 12px; /* Esto redondea las esquinas nativamente */
    overflow: hidden;    /* Esto es lo que corta la imagen para que no se salga */
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    /* Eliminamos el -webkit-mask-image por completo */
    /* Usamos la propiedad estándar de transformación para asegurar el corte */
    transform: translateZ(0); 
}

.procedure-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.procedure-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.95) 0%, rgba(18, 18, 18, 0.3) 50%, transparent 100%);
    pointer-events: none;
}

.procedure-card:hover img {
    transform: scale(1.08);
}

.card-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    color: #ffffff;
}

.card-content h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.2;
}

.card-link {
    font-size: 12px;
    color: var(--gold-bright);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   ANIMACIÓN DE SCROLL GLOBAL
   ========================================================================== */
.hidden-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.hidden-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================================
   MEDIA QUERIES (COMPUTADORAS Y PANTALLAS GRANDES)
   ========================================================================== */
@media (min-width: 768px) {
    .top-bar { justify-content: flex-end; padding-right: 40px; }
    
    .menu-toggle { display: none; }
    
    .nav-menu { 
        display: flex; 
        flex-direction: row; 
        position: static; 
        width: auto; 
        padding: 0; 
        gap: 0; 
        box-shadow: none; 
        background-color: transparent; 
    }
    
    .nav-menu a { 
        color: #ffffff; 
        margin-left: 25px; 
        font-size: 15px; 
    }
    
    .nav-menu a.btn-nav { padding: 6px 15px; }
    
    .brand-name { font-size: 32px; } /* Logo un poco más grande en PC */
    .brand-tagline { font-size: 10px; }
    
    .hero { padding: 120px 40px 140px 40px; }
    .hero-content h1 { font-size: 52px; }
    .hero-content p { font-size: 19px; max-width: 700px; margin: 0 auto 35px auto; }
    
    .stats-bar { max-width: 650px; padding: 25px 20px; }
    .stat-item h3 { font-size: 34px; }
    .stat-item p { font-size: 13px; }
    .stats-bar .divider { height: 50px; }
    
    .section-title { font-size: 36px; }
    .procedure-card { height: 300px; }
    .card-content h4 { font-size: 24px; }
}

/* Sección de Servicios: Fondo Blanco */
.services-section {
    padding: 80px 20px;
    background-color: #ffffff; /* Blanco */
    color: #212121; /* Texto oscuro */
}

/* Sección Sobre Mí: Fondo como la Navbar con Corte Diagonal */
.about-section-dark {
    padding: 120px 20px 80px; /* Aumentamos el espacio arriba para que el corte no tape el texto */
    background-color: var(--bg-navbar);
    color: #ffffff;
    
    /* LA MAGIA: Esto crea la inclinación */
    clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%);
    margin-top: -5vw; /* Hace que se superponga un poco a la sección de arriba */
    
    /* Para que el contenido quede centrado y no se rompa */
    position: relative;
    z-index: 10;
}

/* Aseguramos que los textos mantengan sus colores */
.about-section-dark h2, .about-section-dark h3 {
    color: #ffffff;
}

.about-section-dark p, .about-section-dark .feature-item {
    color: #cccccc;
}

/* Contenedor principal con posición relativa para el resplandor */
.about-section-dark {
    background-color: var(--bg-navbar); /* Tu color oscuro */
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

/* EFECTO CREATIVO 1: Resplandor sutil en el fondo */
.bg-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, rgba(33,33,33,0) 70%);
    top: 10%;
    left: -100px;
    border-radius: 50%;
    z-index: 0;
}

/* Arreglo de las columnas para Celular (1 columna) y PC (2 columnas) */
.about-container-creative {
    display: grid;
    grid-template-columns: 1fr; /* En celular, uno debajo del otro */
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* PC: Cuando la pantalla es más grande, se ponen lado a lado */
@media (min-width: 768px) {
    .about-container-creative {
        grid-template-columns: 1fr 1fr;
    }
}

/* Estilos de la Imagen y el Marco */
.about-image-wrapper {
    max-width: 350px;
    margin: 0 auto; /* Centra la imagen en celular */
}

.image-box { position: relative; }

.profile-img { 
    width: 100%; 
    border-radius: 12px;
    display: block;
    position: relative;
    z-index: 2;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

/* EFECTO CREATIVO 2: Marco dorado desfasado */
.accent-box {
    position: absolute;
    top: 20px; 
    right: -20px; /* Lo movemos hacia abajo y a la derecha */
    width: 100%; 
    height: 100%;
    border: 3px solid var(--gold-bright);
    border-radius: 12px;
    z-index: 1;
}

/* Textos */
.highlight-text {
    color: var(--gold-bright);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
}

.about-text-content h2 {
    text-wrap: balance;
    color: #ffffff;
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

/* EFECTO CREATIVO 3: Texto degradado dorado para resaltar */
.text-gradient {
    justify-content: center;
    background: linear-gradient(45deg, var(--gold-bright), #fff2a8);
    -webkit-background-clip: text;
    background-clip: text; /* <- Esta es la línea que quita la advertencia */
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

.about-text-content p {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #cccccc;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.check-list {
    list-style: none; /* Elimina los puntos por defecto */
    padding: 0;
    margin-top: 25px; /* Separa la lista del párrafo anterior */
}

.check-list li {
    position: relative;
    padding-left: 35px; /* Más espacio para que el ícono no toque el texto */
    margin-bottom: 20px; /* Crea aire entre cada punto */
    line-height: 1.6; /* Aumenta el interlineado para que no se vea denso */
    font-size: 1.05rem; /* Un pelín más grande para legibilidad */
    color: #e0e0e0; /* Un gris claro que descansa más la vista que el blanco puro */
}

/* Ajuste para el ícono de la estrella */
.check-list li::before {
    content: "✦"; /* O el ícono que uses */
    position: absolute;
    left: 0;
    color: #c5a059; /* El color dorado de tu marca */
    font-size: 1.2rem;
}

/* Estilos para el nuevo título superior */
.about-top-header {
    text-align: center;
    margin-bottom: 50px; /* Espacio para que no se pegue a la foto en celular */
    position: relative;
    z-index: 2;
}

.about-top-header .top-subtitle {
    color: var(--gold-bright);
    font-size: 0.85rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
    opacity: 0.9;
}

.about-top-header .top-title {
    color: #ffffff;
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

/* Detalle melo: Una línea dorada sutil debajo de "¿Quién Soy?" */
.about-top-header .top-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
    margin: 12px auto 0;
}

/* =========================================
   SECCIÓN TESTIMONIOS (Corte y Fondo)
========================================= */
.testimonials-section {
    background-color: #ffffff;
    padding: 120px 20px 80px;
    
    /* CORTE DIAGONAL: Sube hacia la derecha */
    /* Izquierda empieza a los 6vw (más bajo), Derecha termina en 0 (más alto) */
    clip-path: polygon(0 6vw, 100% 0, 100% 100%, 0 100%);
    margin-top: -6vw; /* Se monta sobre la sección oscura de Sobre Mí */
    
    position: relative;
    z-index: 10;
}

/* --- TÍTULOS Y CABECERA --- */
.testimo-header {
    text-align: center;
    margin-bottom: 60px;
    margin-top: 30px; /* Compensa visualmente el corte de arriba */
}

.testimo-subtitle {
    color: var(--gold-bright);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.testimo-header h2 {
    color: #212121;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.divider-gold {
    width: 60px; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
    margin: 0 auto;
}

/* --- CONTENEDOR DESLIZABLE (SLIDER) --- */
.testimonials-slider {
    display: flex;
    gap: 40px; /* Mucho más espacio para que respiren las tarjetas */
    padding: 60px 20px 40px; /* Padding top vital para que la foto no se corte */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    
    /* Ocultar barra de scroll */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.testimonials-slider::-webkit-scrollbar { display: none; }

@media (min-width: 1024px) {
    .testimonials-slider { justify-content: center; overflow-x: hidden; }
}

/* --- DISEÑO CREATIVO DE LA TARJETA --- */
.testimonial-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    padding: 55px 30px 35px;
    position: relative;
    min-width: 310px;
    max-width: 360px;
    flex-shrink: 0;
    scroll-snap-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animación suave */
}

/* Efecto hover: Se levanta al pasar el ratón o el dedo */
.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Detalle creativo: Marca de agua de comillas */
.quote-mark {
    position: absolute;
    top: 15px; right: 25px;
    font-size: 5rem;
    color: rgba(212, 175, 55, 0.1); /* Dorado muy transparente */
    font-family: 'Times New Roman', serif;
    line-height: 1;
    z-index: 0;
}

/* --- FOTO DE PERFIL (AVATAR) Y GOOGLE --- */
.avatar-wrapper {
    position: absolute;
    top: -45px; /* Mitad afuera, mitad adentro */
    left: 50%;
    transform: translateX(-50%);
    width: 90px; height: 90px;
    border-radius: 50%;
    background: #ffffff; /* Borde blanco grueso */
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 5px; 
    z-index: 2;
}

.avatar-img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.google-badge {
    position: absolute;
    bottom: -2px; right: -2px;
    width: 32px; height: 32px;
    background: #ffffff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* --- TEXTOS INTERNOS --- */
.testimo-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.paciente-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212121;
    margin: 0 0 5px;
}

.review-meta {
    display: flex; justify-content: center; align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.stars {
    color: #FABB05; /* Amarillo original de Google */
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.paciente-date { font-size: 0.85rem; color: #888888; }

.testimo-text {
    font-size: 1.05rem;
    color: #555555;
    line-height: 1.6;
    font-style: italic;
}

/* --- ANIMACIÓN PARA EL MENSAJE "DESLIZA" --- */
.swipe-indicator {
    text-align: center;
    margin-top: 10px;
    padding-bottom: 30px;
    color: #aaaaaa;
    font-size: 0.95rem;
    font-weight: 500;
    animation: pulseSwipe 2s infinite;
}

@media (min-width: 1024px) { .swipe-indicator { display: none; } }

@keyframes pulseSwipe {
    0%, 100% { opacity: 0.6; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(8px); }
}

/* =========================================
   ESTILOS DE LA SECCIÓN DE UBICACIÓN
   ========================================= */

/* --- Contenedor Principal y Corte Inclinado --- */
.location-section {
    background-color: #111111;
    color: #ffffff;
    clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%);
    padding: calc(5vw + 80px) 20px 80px 20px; 
    margin-top: -2px; /* Elimina márgenes blancos indeseados */
}

.location-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* --- Título y Separador Premium --- */
.premium-title-wrapper {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Corrección de color para que el gradiente se vea perfectamente */
.location-content .premium-text {
    font-size: 3.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(to right, #b8860b, #ffd700, #c5a059);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent; /* <- ESTA ES LA CLAVE */
    color: transparent; 
    margin-bottom: 15px;
    margin-top: 0;
    font-weight: 800;
}

.elegant-separator {
    display: flex;
    align-items: center;
    gap: 15px;
}

.elegant-separator .line {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, transparent, #c5a059, transparent);
}

.elegant-separator .diamond {
    width: 8px;
    height: 8px;
    background-color: #c5a059;
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.6);
}

/* --- Textos de Información --- */
.location-content .section-subtitle {
    font-size: 1.1rem;
    color: #aaaaaa;
    margin-bottom: 40px;
    line-height: 1.5;
}

.info-group h4 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    display: flex;
    align-items: center;
}

.info-group p {
    color: #dddddd;
    line-height: 1.6;
    font-size: 1.1rem;
    margin-top: 5px;
}

/* --- Animaciones e Interactividad --- */

/* 1. Punto dorado palpitante */
.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #c5a059;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7);
    animation: pulse-dot 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-dot {
    to { box-shadow: 0 0 0 15px rgba(197, 160, 89, 0); }
}

/* 2. Cajas de texto con Hover */
.info-animated {
    padding: 15px 20px;
    margin-left: -20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.4s ease;
}

.info-animated:hover {
    background-color: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #c5a059;
    transform: translateX(10px);
}

/* 3. Botón que "respira" */
.premium-btn {
    display: inline-block;
    padding: 12px 35px;
    background-color: transparent;
    color: #c5a059;
    border: 1px solid #c5a059;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.animated-btn {
    position: relative;
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.2); transform: translateY(0); }
    50% { box-shadow: 0 8px 20px 0 rgba(197, 160, 89, 0.3); transform: translateY(-3px); }
}

.animated-btn:hover {
    animation: none;
    background-color: #c5a059;
    color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.5);
}

/* --- Mapa con Filtro Oscuro --- */
.location-map {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(197, 160, 89, 0.15); 
}

.location-map iframe {
    filter: grayscale(100%) invert(92%) contrast(83%);
    transition: filter 0.5s ease;
}

.location-map:hover iframe {
    filter: grayscale(0%) invert(0%) contrast(100%);
}

/* --- Responsive (Celulares y Tablets pequeñas) --- */
@media (max-width: 850px) {
    
    /* ESTA ES LA PARTE NUEVA PARA ENCOGER EL TÍTULO */
    .location-content .premium-text {
        font-size: 2rem; /* Lo bajamos de 3.2rem a 2rem */
        letter-spacing: 1px; /* Reducimos un poco el espacio entre letras */
        text-align: center; /* Para que quede bien centradito */
    }

    /* ... aquí debajo van las otras reglas que ya tenías en el @media ... */
    
    .location-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .location-map {
        height: 350px;
    }
    
    .location-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .premium-title-wrapper {
        align-items: center;
    }
    
    .info-animated {
        margin-left: 0;
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .info-animated:hover {
        transform: translateY(-5px);
        border-left: none;
        border-bottom: 3px solid #c5a059;
    }
}

/* =========================================
   ESTILOS DEL FOOTER PREMIUM
   ========================================= */

.premium-footer {
    background-color: #222222; /* Un gris muy oscuro, casi negro, más elegante que el negro puro */
    color: #ffffff;
    position: relative;
    font-family: inherit;
}

/* La línea superior dorada (Usando el gradiente para más estilo) */
.footer-top-line {
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #b8860b, #ffd700, #c5a059);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px 40px 20px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr; /* Columna 1 ligeramente más ancha */
    gap: 40px;
}

/* --- Tipografía del Footer --- */
.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.white-text {
    color: #ffffff;
}

.gold-text {
    color: #c5a059; /* El dorado de tu web */
}

.footer-text {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.mt-20 {
    margin-top: 25px; /* Utilidad para separar bloques */
}

/* --- Enlaces de las Columnas 2 y 3 --- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Hover creativo: el texto se ilumina y se mueve un poco a la derecha */
.footer-links a:hover {
    color: #c5a059;
    transform: translateX(8px);
}

/* --- Redes Sociales --- */
.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #c5a059;
    color: #c5a059;
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Al pasar el mouse, el ícono se rellena de dorado */
.social-icon:hover {
    background-color: #c5a059;
    color: #222222;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}

/* --- Sello de Tecnología (Inspirado en el logo Addi) --- */
.relative-col {
    position: relative;
}

.footer-badge {
    margin-top: 40px;
    text-align: left;
}

.badge-text {
    display: block;
    font-size: 0.85rem;
    color: #aaaaaa;
    margin-bottom: 5px;
}

.badge-logo {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1px;
    line-height: 1;
}

/* --- Copyright Inferior --- */
.footer-copyright {
    text-align: center;
    padding: 20px;
    background-color: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright p {
    color: #777777;
    font-size: 0.85rem;
    margin: 0;
}

/* =========================================
   RESPONSIVE FOOTER (MÓVILES)
   ========================================= */
@media (max-width: 850px) {
    .footer-container {
        grid-template-columns: 1fr; /* Todo en una sola columna */
        gap: 50px;
    }
    
    .footer-badge {
        text-align: center;
        margin-top: 30px;
        padding-top: 30px;
        border-top: 1px solid rgba(197, 160, 89, 0.2);
    }
}

/* =========================================
   SECCIÓN: CASOS CLÍNICOS (SLIDER Y ENCABEZADO)
   ========================================= */

.clinical-cases-slider-section {
    padding: 80px 20px;
    background-color: #ffffff; /* Fondo totalmente blanco */
    overflow: hidden; /* Evita scroll horizontal en toda la página */
}

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

/* --- 1. ENCABEZADO ULTRA PREMIUM --- */
.creative-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto; 
    padding: 0 20px;
}

.header-badge-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.header-badge {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: #c5a059;
}

.gold-pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #c5a059;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(197, 160, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

.ultra-title {
    font-size: 3.5rem; 
    font-weight: 900;
    color: #111111; 
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #b8860b 0%, #ffd700 50%, #c5a059 100%);
    -webkit-background-clip: text;
    background-clip: text; /* Esta es la línea que falta */
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.ultra-subtitle {
    font-size: 1.1rem;
    color: #555555;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 650px; 
}

/* --- 2. EL CONTENEDOR DEL SLIDER --- */
.cases-slider {
    display: flex;
    gap: 25px;
    padding-bottom: 30px; 
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* Oculta la barra en IE/Edge */
    scrollbar-width: none;    /* Oculta la barra en Firefox */
}
.cases-slider::-webkit-scrollbar {
    display: none; /* Oculta la barra en Chrome/Safari */
}

/* --- 3. LAS TARJETAS EN MODO CLARO --- */
.case-card-light {
    flex: 0 0 320px; 
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    scroll-snap-align: center; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); 
    border: 1px solid rgba(197, 160, 89, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.case-card-light:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(197, 160, 89, 0.2);
}

.case-image-wrapper {
    width: 100%;
    height: 240px; 
    overflow: hidden;
}

.case-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.case-card-light:hover .case-image-wrapper img {
    transform: scale(1.08); 
}

.case-content-light {
    padding: 25px;
    text-align: left;
}

.case-title-dark {
    color: #c5a059; 
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.case-desc-dark {
    color: #444444; 
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- 4. RESPONSIVO (MÓVILES) --- */
@media (max-width: 768px) {
    .ultra-title {
        font-size: 2.3rem; 
    }
    
    .ultra-subtitle {
        font-size: 1rem;
    }

    .case-card-light {
        flex: 0 0 280px; 
    }
}

/* =========================================
   ESTILOS DEL MODAL (IMAGEN EXPANDIDA)
   ========================================= */

.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Fondo negro muy oscuro */
    backdrop-filter: blur(8px); /* Efecto cristal */
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modal-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.3);
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0.7)} 
    to {transform: scale(1)}
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #c5a059;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-modal:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

/* Cursor para avisar que es clickeable */
.case-card-light {
    cursor: pointer;
}

/* =========================================
   AVISO DE DESLIZAMIENTO
   ========================================= */
.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
}

.scroll-icon {
    width: 40px;
    height: 4px;
    background: rgba(197, 160, 89, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.scroll-bar {
    width: 50%;
    height: 100%;
    background: #c5a059;
    border-radius: 2px;
    animation: slide-indicator 2s infinite ease-in-out;
}

@keyframes slide-indicator {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Opcional: que desaparezca cuando el usuario empiece a interactuar */
.cases-slider:active ~ .scroll-hint {
    opacity: 0;
}

/* Ocultar en escritorio si prefieres, ya que ahí hay scrollbar o mouse */
@media (min-width: 769px) {
    .scroll-hint {
        display: none;
    }
}

/* =========================================
   ESTILOS DEL VIDEO (FORMATO VERTICAL PREMIUM)
   ========================================= */

.creative-video-wrapper.vertical-format {
    width: 100%;
    max-width: 360px; /* Ancho ideal simulando un celular */
    aspect-ratio: 9 / 16; /* Fuerza el formato vertical perfecto */
    margin: 60px auto 40px auto; 
    border-radius: 30px; /* Bordes bien redondeados tipo iPhone */
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15); /* Sombra elegante */
    border: 1px solid rgba(197, 160, 89, 0.4); /* Borde dorado */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.creative-video-wrapper.vertical-format:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(197, 160, 89, 0.3);
}

.video-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.creative-video-wrapper.vertical-format:hover .video-cover {
    transform: scale(1.08); /* Zoom in lento a la foto de Kelly */
}

/* Degradado elegante de oscuro abajo a transparente arriba */
.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(17, 17, 17, 0.95) 0%, rgba(17, 17, 17, 0.3) 50%, rgba(17, 17, 17, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Manda el contenido hacia abajo */
    align-items: center;
    padding-bottom: 50px; /* Espacio desde abajo */
    transition: background 0.4s ease;
}

.creative-video-wrapper.vertical-format:hover .video-overlay {
    background: linear-gradient(to top, rgba(17, 17, 17, 0.95) 0%, rgba(197, 160, 89, 0.4) 50%, rgba(17, 17, 17, 0.2) 100%);
}

/* Agrupador de textos y botón */
.video-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 2;
}

/* Textos bajo el play */
.video-action-text {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transform: translateY(15px);
    opacity: 0.9;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.video-sub-text {
    color: #c5a059;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.creative-video-wrapper.vertical-format:hover .video-action-text {
    transform: translateY(0);
}

.creative-video-wrapper.vertical-format:hover .video-sub-text {
    opacity: 1;
    transform: translateY(0);
}

/* Botón de Play Elegante */
.play-button {
    width: 75px;
    height: 75px;
    background: rgba(197, 160, 89, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: pulse-play 2s infinite;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.play-triangle {
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid #ffffff; 
    margin-left: 5px; 
}

@keyframes pulse-play {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.6); }
    70% { box-shadow: 0 0 0 25px rgba(197, 160, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

/* =========================================
   MODAL ESPECÍFICO PARA EL VIDEO (CORREGIDO)
   ========================================= */

.modal-video-container {
    width: 100%;
    /* Limitamos el ancho para PC, pero lo importante es la altura */
    max-width: 450px; 
    /* Limitamos la altura al 85% de la pantalla para que nunca se desborde */
    max-height: 85vh; 
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(197, 160, 89, 0.3);
    animation: zoom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    background-color: #000;
}

.modal-video-container video {
    width: 100%;
    height: 100%;
    max-height: 85vh; /* El video respeta el límite de la pantalla */
    object-fit: contain; /* Esto asegura que el video se vea COMPLETO sin recortes */
    border-radius: 15px;
    outline: none;
}

/* Botón "X" mejorado para que no se pierda */
.close-video-modal {
    position: absolute;
    top: 20px;
    right: 20px; /* Más pegado al borde en móviles */
    color: #ffffff;
    font-size: 35px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 100000; /* Aseguramos que quede por encima de TODO */
    /* Le agregamos un fondito oscuro circular por si el video de fondo es blanco */
    background: rgba(0, 0, 0, 0.6);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.close-video-modal:hover {
    background: rgba(197, 160, 89, 0.8); /* Se pone dorado al pasar el mouse */
    transform: scale(1.1);
}

/* Ajuste fino para celulares pequeños */
@media (max-width: 768px) {
    .modal-video-container {
        width: 90%; /* Deja un margen a los lados en móvil */
        max-height: 80vh; /* Da más espacio arriba y abajo */
    }
    .modal-video-container video {
        max-height: 80vh;
    }
    .close-video-modal {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
}

/* =========================================
   CONTENEDOR DE LA GALERÍA DE VIDEOS
   ========================================= */
.video-gallery-section {
    position: relative;
    padding: 40px 0 90px 0; /* Le dimos 90px al final para hacerle espacio al botón */
    overflow: hidden; 
}

.video-gallery-container {
    display: flex;
    justify-content: center;
    gap: 50px; /* Separación entre los dos videos en PC */
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* El botón flotante oculto en PC */
.mobile-switch-video-btn {
    display: none; 
}

/* =========================================
   LÓGICA RESPONSIVE (CELULARES)
   ========================================= */
@media (max-width: 768px) {
    .video-gallery-container {
        gap: 0;
    }

    /* Ocultamos todos los videos en celular por defecto */
    .video-gallery-container .creative-video-wrapper {
        display: none; 
    }

    /* Solo mostramos el que tenga la clase 'active-mobile-video' */
    .video-gallery-container .creative-video-wrapper.active-mobile-video {
        display: block;
        animation: fadeInSlide 0.5s ease forwards;
    }

/* Estilos del Botón Flotante para Móvil */
    .mobile-switch-video-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        position: absolute; /* <--- EL TRUCO ESTÁ AQUÍ (Antes era fixed) */
        bottom: 20px; /* Se queda a 20px del final de la sección de videos */
        left: 50%;
        transform: translateX(-50%);
        background: rgba(17, 17, 17, 0.9);
        border: 1px solid rgba(197, 160, 89, 0.5);
        color: #d4af37;
        padding: 12px 25px;
        border-radius: 30px;
        font-family: 'Courier New', Courier, monospace;
        font-size: 0.9rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1px;
        z-index: 10; /* Le bajamos un poco el z-index porque ya no compite con toda la página */
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        backdrop-filter: blur(10px);
        cursor: pointer;
    }

    .mobile-switch-video-btn svg {
        width: 20px;
        height: 20px;
    }

    .mobile-switch-video-btn:active {
        background: rgba(197, 160, 89, 0.2);
    }
}

/* Contenedor principal del título */
.dental-gallery-header {
    text-align: center;
    padding: 3rem 1rem 2rem 1rem;
    background-color: #ffffff; /* Asegura que el fondo siga la línea blanca */
    width: 100%;
}

/* Título principal en dorado */
.dental-title {
    font-size: 3rem; /* Tamaño grande y elegante */
    font-weight: 700;
    color: #cca451; /* El tono dorado de tu diseño (ajusta si usas una variable específica) */
    margin: 0;
    letter-spacing: 1px;
}

/* La línea divisoria dorada */
.dental-divider {
    border: none;
    height: 2px;
    background-color: #cca451; /* Mismo dorado del título */
    width: 120px; /* Línea corta centrada */
    margin: 1.2rem auto; 
}

/* Subtítulo con estilo técnico/clínico pero sofisticado */
.dental-subtitle {
    font-size: 0.85rem;
    color: #777777; /* Gris sutil */
    text-transform: uppercase;
    letter-spacing: 4px; /* Espaciado amplio entre letras, clave para verse premium */
    font-weight: 400;
    margin: 0;
}

.dental-gallery-header {
    text-align: center;
    /* Redujimos el primer valor (arriba) de 3rem a 1rem */
    padding: 1rem 1rem 2rem 1rem; 
    background-color: #ffffff;
    width: 100%;
}

@media (max-width: 768px) {
    /* Pegamos más el título hacia arriba en celulares */
    .dental-gallery-header {
        padding-top: 0.5rem; 
    }

    /* Ajusta el tamaño de la fuente para que se vea más proporcionado */
    .dental-title {
        font-size: 2rem;
    }

    /* REDUCE EL ESPACIO DE LA SECCIÓN ANTERIOR */
    /* Busca la clase contenedora de tus tarjetas (probablemente sea esta u otra similar) */
    .clinical-cases-slider-section {
        padding-bottom: 1rem !important; /* Fuerza a reducir el hueco inferior */
        margin-bottom: 0 !important;
    }
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .dental-title {
        font-size: 2.2rem;
    }
    .dental-subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
        line-height: 1.4;
    }
}

/* Animación suave al cambiar de video en móvil */
@keyframes fadeInSlide {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   SECCIÓN: NUESTROS SERVICIOS (VERSION COMPLETA Y ELEGANTE)
   ========================================================================== */

.services-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

/* --- 1. ENCABEZADO ANIMADO Y APILADO --- */
.services-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 1.2s ease-out;
}

.elegant-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    padding-bottom: 15px; /* Espacio justo para el subrayado */
    position: relative;
    display: inline-block;
    /* Aplicamos el degradado dorado al texto */
    background: linear-gradient(135deg, #b8860b 0%, #ffd700 50%, #c5a059 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* El toque creativo: Subrayado elegante */
.elegant-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 3px;
    background: #c5a059;
    border-radius: 2px;
}

.touch-subtitle {
    color: #888888;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 15px;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
.touch-subtitle {
    color: #888888;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 15px;
}

/* --- 2. GRID DE TARJETAS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.serv-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.serv-card:hover {
    border-color: rgba(197, 160, 89, 0.4);
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.1);
}

.serv-img-wrapper {
    position: relative;
    height: 150px;
    width: 100%;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.serv-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: transform 0.8s ease, filter 0.5s ease;
}

.serv-title-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.serv-title-bar h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 700;
}

.expand-icon {
    color: #c5a059;
    font-size: 1.8rem;
    font-weight: bold;
    transition: transform 0.4s ease;
}

.serv-details {
    max-height: 0;
    opacity: 0;
    padding: 0 20px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    color: #444444;
    font-size: 0.95rem;
}

.price-list li span:last-child {
    color: #c5a059;
    font-weight: 700;
}

/* --- 3. ESTADOS ACTIVOS --- */
.serv-card.active .serv-img-wrapper { height: 220px; }
.serv-card.active .serv-img-wrapper img { transform: scale(1.1); filter: brightness(0.4); }
.serv-card.active .expand-icon { transform: rotate(45deg); color: #ffffff; }
.serv-card.active .serv-details { max-height: 500px; opacity: 1; padding: 20px; }

/* --- 4. PIE DE SECCIÓN (MÉTODOS DE PAGO ANIMADOS) --- */
.payment-footer {
    margin-top: 70px;
    display: flex;
    justify-content: center;
}

.payment-card {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    padding: 30px 60px;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 15px 15px 40px #d9d9d9, -15px -15px 40px #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: floatCard 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.payment-card:hover { transform: scale(1.03); }
.payment-icon-wrapper { font-size: 2.5rem; animation: pulseIcon 2s infinite; }
.payment-label { color: #c5a059; font-weight: 700; font-size: 1.2rem; display: block; margin-bottom: 5px; }
.payment-methods { color: #888888; font-weight: 500; font-size: 1.1rem; }

/* --- 5. ANIMACIONES --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatCard {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); box-shadow: 20px 20px 50px #cccccc, -20px -20px 50px #ffffff; }
    100% { transform: translateY(0px); }
}

@keyframes pulseIcon {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* --- 6. RESPONSIVE --- */
@media (max-width: 768px) {
    .elegant-title { font-size: 2.8rem; }
    .payment-card { padding: 25px 30px; width: 90%; }
}

/* =========================================
   CARRUSEL INFINITO DE LOGOS (SOBRE MÍ)
   ========================================= */

.infinite-slider-container {
    /* 1. Forzamos el ancho al 100% de la ventana (Viewport Width), no del contenedor */
    width: 100vw; 
    
    /* 2. El truco clave: Centramos el elemento y le restamos exactamente la mitad de la pantalla para ignorar el padding del padre */
    margin-left: calc(50% - 50vw);
    
    /* 3. Lo que ya teníamos para la estética y funcionamiento */
    margin-top: 60px;
    padding: 30px 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(197, 160, 89, 0.1);
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 100px; /* Espacio entre cada logo */
    width: max-content; /* Deja que la pista mida lo que necesite */
    
    /* Animación: nombre, duración, velocidad constante, infinito */
    animation: scrollLogos 20s linear infinite;
}

/* Pausar la animación si el usuario pasa el mouse por encima (Opcional pero elegante) */
.infinite-slider-container:hover .logo-track {
    animation-play-state: paused;
}

.slider-logo {
    height: 60px; /* Controla el tamaño de todos los logos aquí */
    width: auto;
    filter: grayscale(100%) opacity(0.6); /* Los pone grises/opacos para que no roben atención */
    transition: all 0.4s ease;
}

/* Al pasar el mouse, el logo toma su color original y brilla */
.slider-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* La magia del movimiento infinito */
@keyframes scrollLogos {
    0% {
        transform: translateX(0); /* Empieza en cero */
    }
    100% {
        /* Se mueve exactamente la mitad, lo que empalma perfecto con los duplicados */
        transform: translateX(-50%); 
    }
}

/* =========================================
   EFECTO DE TARJETA EXPANDIDA (FLYER COMPLETO)
   ========================================= */

/* 1. La tarjeta principal crece y resalta por encima de las demás */
.serv-card.active {
    transform: scale(1.03) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7) !important;
    z-index: 10; 
}

/* 2. El contenedor de la imagen se hace mucho más alto para dar espacio al flyer */
.serv-card.active .serv-img-wrapper {
    height: 450px !important; /* Puedes subirlo a 500px si el flyer es muy alto */
    background-color: #111; /* Fondo oscuro por si quedan espacios a los lados */
}

/* 3. La imagen se ajusta para verse completa (contain) y recupera su brillo original */
.serv-card.active .serv-img-wrapper img {
    object-fit: contain !important; 
    filter: brightness(1) !important; /* Quita filtros oscuros si están aplicados directo a la img */
}

/* 4. Apagamos cualquier capa negra (pseudo-elementos) que esté oscureciendo la imagen */
.serv-card.active .serv-img-wrapper::before,
.serv-card.active .serv-img-wrapper::after {
    opacity: 0 !important; 
    visibility: hidden !important;
}

/* 5. Volvemos transparente la barra del título para que no tape el texto de tu imagen */
.serv-card.active .serv-title-bar {
    background: transparent !important; /* Quita el degradado negro debajo del título */
    background-image: none !important;
}

/* 6. (Opcional) Si la imagen ya tiene su propio título, ocultamos el título HTML para no repetirlo */
.serv-card.active .serv-title-bar h3 {
    opacity: 0; 
}

/* Para que las columnas no se sientan pegadas */
.footer-container {
    display: flex;
    justify-content: space-evenly; /* Distribuye uniformemente */
    align-items: flex-start;
    padding: 60px 20px; /* Un poco más de aire arriba y abajo */
}

/* El "Centro de Ayuda" ganará presencia */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li a {
    font-size: 1.1rem; /* Un pelín más grande para que tenga más peso */
    display: block;
    padding: 10px 0; /* Esto ayuda a que el bloque ocupe más altura visual */
}

.faq-link {
    border-bottom: 1px solid #d4af37; /* Línea dorada sutil */
    padding-bottom: 2px;
    color: #fff !important; /* Blanco brillante para que destaque */
}

.faq-link:hover {
    color: #d4af37 !important; /* Cambia a dorado al pasar el mouse */
}

.faq-link {
    border-bottom: 1px solid #d4af37; /* Línea dorada sutil */
    padding-bottom: 2px;
    color: #fff !important; /* Blanco brillante para que destaque */
}

.faq-link:hover {
    color: #d4af37 !important; /* Cambia a dorado al pasar el mouse */
}

/* Centrar ES | EN en pantallas grandes */
@media (min-width: 768px) {
    .top-bar {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .lang-switcher {
        display: flex;
        align-items: center;
        /* Si quieres un poco más de aire arriba, descomenta la línea de abajo */
        /* padding-top: 5px; */
    }
}

/* Solo para pantallas grandes (PC) */
@media (min-width: 1024px) {
    .services-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Esto centra las tarjetas en la fila */
        gap: 30px;
    }

    .serv-card {
        flex: 0 0 calc(33.333% - 30px); /* Obliga a que quepan 3 por fila */
        max-width: 400px;
    }

    /* Aquí está el truco para la tarjeta 4: 
       La obligamos a ocupar el centro en la segunda fila */
    .serv-card:nth-child(4) {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1024px) {
    .location-content {
        /* Centramos todo el texto y elementos internos */
        text-align: center;
        
        /* Aseguramos que el contenido ocupe el centro del espacio disponible */
        display: flex;
        flex-direction: column;
        align-items: center; /* Centra horizontalmente los elementos */
        justify-content: center; /* Centra verticalmente si es necesario */
    }

    /* Centramos el título y el separador */
    .premium-title-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    /* Centramos los grupos de info */
    .info-group {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 80%; /* Evita que el texto sea demasiado ancho */
    }
}

/* 1. ESTILO POR DEFECTO (Celular) */
.hero {
    background-image: url('img/Fondo2.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Ajusta la altura para celular */
    height: 80vh; 
}

/* 2. ESTILO PARA PC (Media Query) */
@media (min-width: 1024px) {
    .hero {
        /* Aquí cambiamos el fondo por la versión de PC */
        background-image: url('img/Fondo1.jpeg');
        
        /* Ajustes específicos para PC para que se vea premium */
        background-attachment: fixed; /* Esto crea un efecto Parallax muy elegante */
        background-position: center center;
        height: 90vh; /* Un poco más de altura para pantallas grandes */
    }
}

/* --- HERO SECTION CON OSCURECIMIENTO PREMIUM --- */
.hero {
    position: relative; /* Necesario para que el overlay funcione */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 80vh; /* Ajuste para celular */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Esta es la capa de oscurecimiento que habíamos perdido */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65); /* El 0.65 es el nivel de oscuridad */
    z-index: 1; /* Pone la sombra encima de la imagen pero debajo del texto */
}

/* Aseguramos que el contenido esté por encima de la sombra */
.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}

/* --- Ajuste para PC --- */
@media (min-width: 1024px) {
    .hero {
        height: 90vh;
        /* Aquí mantienes tu imagen de escritorio */
    }
}

/* --- FOOTER RESPONSIVE --- */

/* Por defecto (Celular): Una sola columna */
.footer-container {
    display: flex;
    flex-direction: column; /* Apila los elementos verticalmente */
    text-align: center;     /* Centra el texto en celular para mejor lectura */
    gap: 30px;              /* Espacio entre los bloques */
    padding: 40px 20px;
}

.footer-col {
    width: 100%;            /* Ocupa todo el ancho */
}

/* Solo para PC: Volvemos a las tres columnas */
@media (min-width: 1024px) {
    .footer-container {
        flex-direction: row; /* Pone las columnas una al lado de la otra */
        text-align: left;    /* Alinea el texto a la izquierda en PC */
        justify-content: space-between;
    }
    
    .footer-col {
        width: 30%;          /* Distribuye el espacio para 3 columnas */
    }
}

/* --- ESCAPE DEL CONTENEDOR --- */
.clinical-cases-slider-section {
    position: relative;
    width: 100%;
    /* Si esto tiene overflow: hidden, el slider se cortará */
    overflow: visible !important; 
}

.cases-slider {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    
    /* Esta es la clave: posicionamiento fuera del flujo normal */
    position: relative;
    width: 100vw !important;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    
    /* Padding para que los elementos respiren */
    padding-left: 5vw !important;
    padding-right: 5vw !important;
    gap: 30px !important;
    
    /* Limpieza */
    -webkit-overflow-scrolling: touch;
}

.scroll-hint {
    display: flex; /* Asegúrate de que sea visible */
    align-items: center;
    justify-content: center;
    margin-top: 20px; /* Separación del título */
    margin-bottom: 20px; /* Separación del slider */
    z-index: 10; /* Para que quede por encima de las tarjetas */
    position: relative; /* Asegura que no se desplace por el overflow */
    opacity: 0.8;
}

/* Opcional: Si quieres que solo se vea en PC */
@media (max-width: 1023px) {
    .scroll-hint {
        display: none; /* O manténlo si también quieres que se vea en móvil */
    }
}

/* =========================================
   ESTILOS: SECCIÓN CLIENTES DINÁMICOS
   ========================================= */
.trusted-clients-section {
    position: relative;
    padding: 100px 5%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    /* Transición mágica de fondo */
    transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1), color 0.8s ease;
    overflow: hidden;
}

/* Modos de Color */
.trusted-clients-section.theme-dark {
    background-color: #111111;
    color: #ffffff;
}
.trusted-clients-section.theme-light {
    background-color: #ffffff;
    color: #1a1a1a;
}

.clients-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

/* Estructura del Cliente */
.client-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-slide.active-client {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- ZONA VISUAL (IMÁGENES) --- */
.client-visual {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.img-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    background: #2a2a2a;
}

.c-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.c-img.active-img {
    opacity: 1;
}

/* Botón flotante interno (Cambiar foto) */
.cycle-photo-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(212, 175, 55, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #111;
    transition: transform 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 10;
}
.cycle-photo-btn:hover {
    transform: scale(1.1);
    background: rgba(212, 175, 55, 1);
}
.cycle-photo-btn svg { width: 24px; height: 24px; }

/* --- ZONA DE TEXTO (CON ESTILO TERMINAL) --- */
.client-info {
    padding-right: 80px;
}

.tech-badge {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
    transition: color 0.8s ease;
}

.theme-dark .tech-badge { color: #888; }
.theme-light .tech-badge { color: #777; }

.gold-slash {
    color: #d4af37;
    font-weight: 900;
    margin-right: 10px;
}

.client-name {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text; /* <--- AGREGA ESTA LÍNEA */
    -webkit-text-fill-color: transparent;
    animation: shineGold 4s linear infinite;
}

.theme-dark .client-name {
    background-image: linear-gradient(90deg, #d4af37 0%, #fff6c5 40%, #d4af37 80%);
}

.theme-light .client-name {
    background-image: linear-gradient(90deg, #111111 0%, #666666 40%, #111111 80%);
}

@keyframes shineGold {
    to { background-position: 200% center; }
}

.blinking-cursor {
    font-family: monospace;
    font-weight: normal;
    margin-left: 5px;
    color: #d4af37;
    -webkit-text-fill-color: #d4af37; 
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.client-clinic {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.client-review {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Colores dinámicos para los textos secundarios */
.theme-dark .client-review { color: #cccccc; }
.theme-light .client-review { color: #444444; }
.theme-dark .client-clinic { color: #a0a0a0; }
.theme-light .client-clinic { color: #666666; }

/* --- BOTÓN FLOTANTE GLOBAL (Cambio de Cliente) --- */
.switch-client-btn {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 20;
}

.switch-text {
    writing-mode: vertical-rl;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #d4af37;
    transition: color 0.3s ease;
}

.switch-icon {
    width: 2px;
    height: 60px;
    background: #d4af37;
    position: relative;
    overflow: hidden;
}

.switch-icon::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: scanLine 2s infinite linear;
}

@keyframes scanLine {
    0% { top: -100%; }
    100% { top: 100%; }
}

.switch-client-btn:hover .switch-text { color: #fff; }
.theme-light .switch-client-btn:hover .switch-text { color: #111; }

/* Responsive */
@media (max-width: 1024px) {
    .client-slide { grid-template-columns: 1fr; gap: 30px; }
    .client-info { padding-right: 0; padding-bottom: 60px; }
    .switch-client-btn {
        top: auto; bottom: 0; right: 50%; transform: translateX(50%); flex-direction: row;
    }
    .switch-text { writing-mode: horizontal-tb; }
    .switch-icon { width: 60px; height: 2px; }
    .switch-icon::before {
        top: 0; left: -100%; animation: scanLineH 2s infinite linear;
    }
    @keyframes scanLineH {
        0% { left: -100%; } 100% { left: 100%; }
    }
    .client-name { font-size: 2.5rem; }
}

/* --- ESTILOS DEL MODAL DE IMÁGENES --- */
.image-modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 9999; /* Asegura que quede por encima del menú y todo lo demás */
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 15, 15, 0.9); /* Fondo oscuro elegante */
    backdrop-filter: blur(4px); /* Efecto de desenfoque premium */
}

/* La imagen expandida con resplandor dorado y proporción perfecta */
.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 700px;
    height: auto; /* FUNDAMENTAL: Evita que la imagen se deforme o estire */
    max-height: 80vh; /* Evita que sea más alta que la pantalla */
    object-fit: contain; /* Asegura que mantenga sus medidas originales */
    border-radius: 12px;
    
    /* EL DIFUMINADO DORADO DETRÁS DE LA IMAGEN */
    box-shadow: 0 0 50px rgba(204, 164, 81, 0.4), 0 10px 30px rgba(0, 0, 0, 0.6);
    animation: zoomIn 0.3s ease;
}

/* Subtítulo renovado: Estilo "Píldora" Premium */
#modalCaption {
    margin: 25px auto;
    display: table; /* Hace que el contenedor abrace exactamente el texto */
    color: #ffffff; /* Texto blanco para mejor lectura */
    padding: 8px 25px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    
    /* Fondo dorado semitransparente con borde sutil */
    background: rgba(204, 164, 81, 0.15); 
    border: 1px solid rgba(204, 164, 81, 0.4); 
    border-radius: 50px; /* Bordes totalmente redondeados */
    
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.3s ease;
}
/* El botón de cerrar (la X) */
.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s ease;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #cca451; /* Cambia a dorado al pasar el mouse */
    text-decoration: none;
}

/* Indicador de que las imágenes del slider son clickeables */
.case-image-wrapper img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Pequeño zoom al pasar el mouse por las fotos del slider */
.case-image-wrapper img:hover {
    transform: scale(1.03);
}

/* Animación de entrada */
@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Ajustes para celulares */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
    .close-modal {
        top: 15px;
        right: 20px;
    }
}

/* =========================================
   CENTRAR REDES SOCIALES EN MÓVIL (FOOTER)
   ========================================= */
@media (max-width: 768px) {
    .footer-socials {
        display: flex !important;
        justify-content: center !important; /* Centra los elementos horizontalmente */
        align-items: center;
        width: 100%;
        gap: 15px; /* Ajusta este valor si quieres más o menos espacio entre los círculos */
        margin-top: 15px; /* Un pequeño respiro visual respecto al texto anterior */
    }
}

/* ==========================================================================
   1. REGLAS GLOBALES Y ANTI-BUG (Evita espacios en blanco laterales)
   ========================================================================== */
html, body {
    overflow-x: hidden; 
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   2. SECCIÓN PROCEDIMIENTOS (Tarjetas 100% Abiertas, Fotos Completas)
   ========================================================================== */
.services-section {
    padding: 60px 20px;
    background-color: #fcfcfc; 
}

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

.services-header {
    text-align: center;
    margin-bottom: 50px;
}

.elegant-title {
    font-size: 2.5rem;
    color: #c5a059; 
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Grid adaptativo (PC y Móvil) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: start;
}

/* Estructura estática de la Tarjeta */
.serv-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: default; 
}

.serv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(197, 160, 89, 0.15);
}

/* CONTENEDOR DE IMAGEN (Ajustado para mostrar TODO sin recortes) */
.serv-img-wrapper {
    position: relative;
    width: 100%;
    height: auto !important; /* Permite que la imagen crezca lo necesario */
    overflow: hidden;
}

.serv-img-wrapper img {
    width: 100%;
    height: auto !important; /* Muestra la imagen completita */
    display: block;
    transition: transform 0.6s ease;
}

.serv-card:hover .serv-img-wrapper img {
    transform: scale(1.03); /* Zoom muy sutil para no perder textos de los bordes */
}

/* Título superpuesto en la foto */
.serv-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 40%, rgba(0, 0, 0, 0));
    padding: 30px 20px 15px 20px;
    text-align: left;
    pointer-events: none; /* Evita que el texto interfiera si tocan la imagen */
}

.serv-title-overlay h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* CUERPO DE PRECIOS (Forzado a estar siempre visible) */
.serv-details {
    display: block !important; 
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    padding: 25px 25px 30px 25px;
    background: #ffffff;
    flex-grow: 1; /* Iguala las alturas de las tarjetas blancas */
}

.price-list {
    display: block !important;
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed #d1d1d1;
    transition: background 0.2s ease;
}

.price-list li:last-child {
    border-bottom: none;
}

.service-name {
    color: #2c2c2c !important;
    font-size: 0.95rem;
    font-weight: 500;
}

.service-price {
    color: #c5a059 !important; 
    font-weight: 700;
    font-size: 1.05rem;
}

.price-list li:hover .service-name {
    color: #000000 !important;
}

/* Footer de Medios de Pago */
.payment-footer {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.payment-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.payment-icon-wrapper { font-size: 1.5rem; margin-right: 15px; }
.payment-label { font-weight: 600; color: #2c2c2c; margin-right: 5px; }
.payment-methods { color: #666; }


/* ==========================================================================
   3. GALERÍA DE VIDEOS (Estructura y Títulos)
   ========================================================================== */
.video-gallery-section {
    position: relative;
    padding: 40px 0 90px 0;
    overflow: hidden; 
}

.video-gallery-container {
    display: flex;
    justify-content: center;
    gap: 50px; 
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.dental-gallery-header {
    text-align: center;
    padding: 1rem 1rem 2rem 1rem; 
    background-color: #ffffff;
    width: 100%;
}

.dental-title {
    font-size: 3rem; 
    font-weight: 700;
    color: #cca451; 
    margin: 0;
    letter-spacing: 1px;
}

.dental-divider {
    border: none;
    height: 2px;
    background-color: #cca451; 
    width: 120px; 
    margin: 1.2rem auto; 
}

.dental-subtitle {
    font-size: 0.85rem;
    color: #777777; 
    text-transform: uppercase;
    letter-spacing: 4px; 
    font-weight: 400;
    margin: 0;
}

.mobile-switch-video-btn {
    display: none; 
}


/* ==========================================================================
   4. MODALES (Imágenes Clínicas y Videos)
   ========================================================================== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999; 
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 15, 15, 0.9); 
    backdrop-filter: blur(4px); 
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 700px;
    height: auto; 
    max-height: 80vh; 
    object-fit: contain; 
    border-radius: 12px;
    animation: zoomIn 0.3s ease;
}

#modalCaption {
    margin: 25px auto;
    display: table; 
    color: #ffffff; 
    padding: 8px 25px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: rgba(204, 164, 81, 0.15); 
    border: 1px solid rgba(204, 164, 81, 0.4); 
    border-radius: 50px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s ease;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #cca451; 
    text-decoration: none;
}

.case-image-wrapper img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.case-image-wrapper img:hover {
    transform: scale(1.03);
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}


/* ==========================================================================
   5. RESPONSIVE Y REGLAS ESPECÍFICAS PARA PC Y MÓVIL
   ========================================================================== */

/* ---> SOLO PARA PC (Pantallas Grandes) <--- */
@media (min-width: 769px) {
    .modal-content {
        /* Resplandor amplio y elegante en PC */
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 120px rgba(204, 164, 81, 0.15) !important;
    }
}

/* ---> SOLO PARA CELULARES (Pantallas Pequeñas) <--- */
@media (max-width: 768px) {
    
    /* Ajustes Sección Títulos y Casos Clínicos */
    .dental-gallery-header { padding-top: 0.5rem; }
    .dental-title { font-size: 2rem; }
    .clinical-cases-slider-section { padding-bottom: 1rem !important; margin-bottom: 0 !important; }
    
    /* Forzar aparición de 'Desliza para ver más' */
    .scroll-hint {
        display: flex !important; 
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 10px auto 25px auto; 
        opacity: 1 !important;
        visibility: visible !important;
    }
    .scroll-text { font-size: 0.85rem; color: #cca451; margin-bottom: 8px; letter-spacing: 1px; }
    .scroll-icon { display: block !important; }

    /* Modal Resplandor Móvil */
    .modal-content {
        box-shadow: 0 0 45px rgba(204, 164, 81, 0.4), 0 10px 30px rgba(0, 0, 0, 0.6) !important;
        width: 95%;
    }
    .close-modal { top: 15px; right: 20px; }

    /* Lógica Botón Flotante Galería de Videos */
    .video-gallery-container { gap: 0; }
    .video-gallery-container .creative-video-wrapper { display: none; }
    .video-gallery-container .creative-video-wrapper.active-mobile-video {
        display: block;
        animation: fadeInSlide 0.5s ease forwards;
    }
    
    .mobile-switch-video-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        position: absolute; 
        bottom: 20px; 
        left: 50%;
        transform: translateX(-50%);
        background: rgba(17, 17, 17, 0.9);
        border: 1px solid rgba(197, 160, 89, 0.5);
        color: #d4af37;
        padding: 12px 25px;
        border-radius: 30px;
        font-family: 'Courier New', Courier, monospace; 
        font-size: 0.9rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1px;
        z-index: 10; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        backdrop-filter: blur(10px);
        cursor: pointer;
    }
    
    .mobile-switch-video-btn svg { width: 20px; height: 20px; }
    @keyframes fadeInSlide { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

    /* Centrado de Redes Sociales en Footer */
    .footer-socials {
        display: flex !important;
        justify-content: center !important; 
        align-items: center;
        width: 100%;
        gap: 15px; 
        margin-top: 15px; 
    }
}

/* ---> AJUSTES FINOS PARA CELULARES MUY PEQUEÑOS <--- */
@media (max-width: 480px) {
    .elegant-title { font-size: 2rem; }
    .services-grid { gap: 25px; }
    .serv-details { padding: 20px; }
    .payment-card { flex-direction: column; text-align: center; border-radius: 20px; padding: 15px; }
    .payment-icon-wrapper { margin-right: 0; margin-bottom: 5px; }
}

/* ==========================================================================
   6. CENTRAR LA ÚLTIMA TARJETA EN PC (4ta Tarjeta)
   ========================================================================== */
/* Se activa solo en pantallas grandes donde caben las 3 columnas */
@media (min-width: 1080px) {
    .services-grid .serv-card:nth-child(4):last-child {
        grid-column: 2; /* Obliga a la tarjeta a posicionarse en la columna 2 (centro) */
    }
}

/* Corrección de estética para el subtítulo de ubicación */
.section-subtitle {
    font-family: 'Montserrat', sans-serif; /* Si no tienes esta, usa 'Helvetica Neue' o 'Arial' */
    font-weight: 300;           /* Peso ligero para elegancia */
    font-size: 0.9rem;          /* Un poco más pequeño para que no compita con el título */
    line-height: 1.6;           /* Más aire entre líneas */
    letter-spacing: 1.5px;      /* Espaciado para que se vea premium */
    color: #a0a0a0;             /* Un gris suave en lugar de blanco puro */
    margin-bottom: 30px;        /* Espacio para despegarlo de la dirección */
    max-width: 450px;           /* Para que el texto no sea tan largo y sea más legible */
}

/* Corrección de la cabecera de procedimientos */
.services-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.elegant-title {
    font-family: 'Playfair Display', serif; /* Si no tienes esta, usa 'Georgia' o una 'Serif' elegante */
    font-size: 2.5rem;
    color: #c5a059; /* El dorado que usas */
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #888; /* Un gris suave, mucho más elegante que el blanco o negro puro */
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
    margin-top: 0;
}

.services-header {
    display: flex;
    flex-direction: column;
    align-items: center; /* Esto fuerza a que todo el bloque se centre */
    justify-content: center;
}

/* --- CORRECCIÓN PARA CELULARES --- */
@media (max-width: 768px) {
    .elegant-title {
        font-size: 1.8rem !important; /* Reduce el tamaño del título en móvil */
        letter-spacing: 1px !important;
        word-break: break-word;        /* Permite que la palabra se ajuste */
    }

    .section-subtitle {
        font-size: 0.9rem !important;  /* Reduce el subtítulo para que no se corte */
        padding: 0 10px;               /* Da un poco de aire a los lados */
        letter-spacing: 1px !important;
    }

    .services-header {
        padding: 0 15px !important;    /* Ajusta el margen general */
    }
}