

:root {
    --blue: #007AFF;
    --white: #F8F9FA;
    --dark: #050505;
}



* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
}

/* NAVBAR CRISTALINA */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 30px 8%;
    z-index: 1000;
    backdrop-filter: blur(15px);
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    display: flex; align-items: center; gap: 10px;
}

.ced { font-family: 'Outfit'; font-weight: 600; font-size: 1.4rem; letter-spacing: 2px; }
.divider { color: var(--blue); font-weight: 200; font-size: 1.4rem; }
.hospital { font-weight: 300; font-size: 0.75rem; letter-spacing: 3px; opacity: 0.8; }

/* LINKS LAPTOP */
.nav-links { display: flex; list-style: none; align-items: center; gap: 40px; }
.nav-links a { 
    text-decoration: none; color: var(--white); 
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px;
    transition: 0.3s;
}
.nav-links a:hover { color: var(--blue); }

.btn-wa {
    background: var(--blue);
    padding: 12px 25px !important;
    border-radius: 4px;
    font-weight: 600;
}




@media (max-width: 1024px) {
    /* Este es tu contenedor mobileNav con el estilo de lujo */
    #mobileNav {
        position: fixed;
        top: -100%; /* Empieza escondido arriba */
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98); /* Negro puro CED */
        backdrop-filter: blur(20px); /* Efecto cristal */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 2000; /* Por encima de todo */
        transition: all 0.7s cubic-bezier(0.85, 0, 0.15, 1);
        visibility: hidden;
    }

    /* Clase que activa el JS al tocar la hamburguesa */
    #mobileNav.active {
        top: 0;
        visibility: visible;
    }

    /* Estilo de los links en el menú móvil */
    #mobileNav a {
        font-family: 'Outfit', sans-serif;
        font-size: 1.8rem;
        font-weight: 700;
        letter-spacing: 4px;
        color: #fff;
        text-decoration: none;
        text-transform: uppercase;
        transition: 0.3s;
    }

    #mobileNav a:hover {
        color: var(--blue);
        text-shadow: 0 0 15px var(--blue);
    }

    /* Botón para cerrar o hamburguesa siempre visible */
    .menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 2100;
    }
}






/* HERO CON ZOOM ANIMADO */
.home {
    height: 100vh;
    width: 100%;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.8)), 
                url('') no-repeat center/cover;
    animation: zoomEffect 20s infinite alternate;
    z-index: -1;
}

@keyframes zoomEffect {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

/* REVELACIÓN DE LETRAS (POQUITO A POQUITO) */
.hero-content { text-align: center; }

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s forwards;
}

.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 { font-size: 1.5rem; font-weight: 200; letter-spacing: 8px; text-transform: uppercase; }
.hero-content h2 { font-size: 4.5rem; color: var(--blue); margin-top: 10px; font-family: 'Outfit'; }

/* RESPONSIVE MÓVIL */
.menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 6px; }
.menu-toggle span { width: 25px; height: 1px; background: white; transition: 0.3s; }

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
}

.mobile-nav {
    position: fixed; top: -100%; left: 0; width: 100%; height: 100vh;
    background: var(--dark); display: flex; flex-direction: column;
    justify-content: center; align-items: center; gap: 30px;
    transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1); z-index: 999;
}
.mobile-nav.active { top: 0; }

















/* --- OPTIMIZACIÓN DEL HERO --- */
.home {
    height: 100dvh; /* Altura dinámica para evitar cortes en móvil */
    width: 100%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    position: relative; 
    overflow: hidden;
    padding: 0 5%; /* Margen de seguridad */
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(5, 10, 24, 0.7), rgba(5, 10, 24, 0.9)), 
                url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?q=80&w=2070') no-repeat center center/cover;
    animation: zoomEffect 15s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes zoomEffect {
    from { transform: scale(1.1); } /* Empezamos un poco más cerca para evitar bordes blancos */
    to { transform: scale(1.25); }
}

/* --- TEXTO QUE NO SE CORTA --- */
.hero-content { 
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.hero-content h1 { 
    font-size: clamp(0.8rem, 3vw, 1.2rem); /* Tamaño fluido */
    font-weight: 300; 
    letter-spacing: 10px; 
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 15px;
}

.hero-content h2 { 
    font-size: clamp(2.5rem, 8vw, 5.5rem); /* Se adapta al tamaño de la pantalla */
    line-height: 1.1; /* Evita que las letras choquen o se corten */
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-content h2 span {
    font-weight: 200;
    color: #fff;
}

.hero-content p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 40px;
    letter-spacing: 1px;
}

/* --- BOTONES PREMIUM --- */
.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Para que en móviles se pongan uno sobre otro si no caben */
}

.btn-primary {
    padding: 16px 35px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: 0.5s;
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 40px rgba(255,255,255,0.2);
}

.btn-wa-home {
    padding: 16px 35px;
    background: var(--blue);
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    transition: 0.5s;
    box-shadow: 0 10px 20px rgba(0, 111, 255, 0.3);
}

.btn-wa-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 111, 255, 0.5);
}

/* --- ANIMACIONES DE ENTRADA --- */
.reveal-text {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}










/* Solo móvil */
@media (max-width: 768px) {
    .logo .hospital {
        display: none; /* En móvil escondemos el texto largo para que no se amontone */
    }
    
    .logo .ced::after {
        content: ' | HV'; /* Abreviatura elegante para móvil */
        font-size: 0.8rem;
        opacity: 0.5;
    }

    .hero-content h2 {
        padding: 0 10px; /* Evita que las letras toquen los bordes del cel */
    }
}












:root {
    --deep-blue: #050A18;
    --tech-blue: #0D162C;
    --electric-blue: #007AFF;
    --neon-green: #2ECC71; /* Verde neón para la barra de precisión */
}

.nosotros-bento {
    background: var(--deep-blue);
    padding: 80px 8%;
}

.bento-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Proporción de las tarjetas */
    grid-template-rows: 300px 250px;
    gap: 20px;
}

/* ESTILO GENERAL DE TARJETAS */
.card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.5s ease;
}

.card:hover {
    border-color: var(--electric-blue);
    transform: translateY(-5px);
}

/* TARJETA GRANDE (NOSOTROS) */
.card-main {
    grid-row: span 2;
    background: url('https://images.unsplash.com/photo-1551076805-e1869033e561?q=80&w=2070') no-repeat center/cover;
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, var(--deep-blue), rgba(5, 10, 24, 0.4));
}

/* TARJETAS DERECHAS (AZUL TECH) */
.card-secondary, .card-stats {
    background: var(--tech-blue);
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-main h2 { font-size: 2.5rem; margin: 15px 0; font-family: 'Outfit'; }
.card-main p { font-weight: 300; line-height: 1.6; opacity: 0.8; max-width: 80%; }

.badge {
    background: rgba(0, 122, 255, 0.2);
    color: var(--electric-blue);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    letter-spacing: 2px;
}

/* ESTILOS DE MISIÓN/VISIÓN */
.mv-item { margin-top: 20px; }
.mv-item h4 { color: var(--electric-blue); font-size: 0.8rem; margin-bottom: 5px; }
.mv-item p { font-size: 0.9rem; opacity: 0.7; }

/* ESTILOS DE PRECISIÓN Y BARRA VERDE */
.stat-header { display: flex; align-items: baseline; gap: 10px; }
.stat-number { font-size: 3rem; font-weight: 700; color: var(--neon-green); font-family: 'Outfit'; }
.stat-desc { font-size: 0.7rem; letter-spacing: 1px; opacity: 0.6; }

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar-green {
    width: 0%; /* Empieza en 0 */
    height: 100%;
    background: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green);
    animation: growProgress 2.5s ease-out forwards;
}

@keyframes growProgress {
    to { width: 99%; }
}

.mini-stats { display: flex; gap: 20px; font-size: 0.6rem; opacity: 0.4; text-transform: uppercase; }

/* RESPONSIVO MÓVIL */
@media (max-width: 900px) {
    .bento-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .card-main { height: 500px; }
}










/* --- EFECTO DE BRILLO PARA TODAS LAS TARJETAS --- */
.card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    /* Brillo sutil de fondo */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* El "Reflejo" que cruza al hacer hover */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.8s;
    z-index: 1;
}

.card:hover::before {
    left: 150%;
}

.card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: var(--electric-blue);
    /* Resplandor exterior (Glow) */
    box-shadow: 0 0 40px rgba(0, 106, 255, 0.25), 
                inset 0 0 20px rgba(0, 106, 255, 0.1);
}

/* --- BRILLO ESPECIAL PARA LA TARJETA DE PRECISIÓN (VERDE) --- */
.card-stats {
    border: 1px solid rgba(46, 204, 113, 0.1);
}

.card-stats:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 50px rgba(46, 204, 113, 0.2), 
                inset 0 0 20px rgba(46, 204, 113, 0.1);
}

/* --- ANIMACIÓN DEL TEXTO DENTRO DE LAS TARJETAS --- */
.card-content h2, .card-content h3 {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transition: 0.4s;
}

.card:hover h2, .card:hover h3 {
    color: #fff;
    text-shadow: 0 0 20px var(--electric-blue);
}

/* --- MEJORA DE LA BARRA DE PROGRESO (QUE BRILLE DE VERDAD) --- */
.progress-bar-green {
    background: linear-gradient(90deg, #2ECC71, #A8E063);
    box-shadow: 0 0 20px var(--neon-green), 0 0 40px rgba(46, 204, 113, 0.5);
    position: relative;
}

/* Destello viajero en la barra de carga */
.progress-bar-green::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 30px; height: 100%;
    background: rgba(255, 255, 255, 0.4);
    filter: blur(5px);
    animation: moveLight 2s infinite;
}

@keyframes moveLight {
    0% { left: -10%; }
    100% { left: 110%; }
}



/* --- RECUPERANDO LA IMAGEN CON EL NUEVO BRILLO --- */
.card-main {
    grid-row: span 2;
    /* 1. IMPORTANTE: La imagen debe ir AQUÍ. 
       Asegúrate de que la URL sea válida o cámbiala por tu archivo local */
    background-image: linear-gradient(to right, rgba(5, 10, 24, 0.95), rgba(5, 10, 24, 0.4)), 
                      url('https://images.unsplash.com/photo-1551076805-e1869033e561?q=80&w=2070');
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

/* 2. Aseguramos que el contenido esté por encima de cualquier capa nueva */
.card-main .card-content {
    position: relative;
    z-index: 10; 
}

/* 3. Ajuste para que el brillo no tape la imagen */
.card-main::before {
    z-index: 5; /* El rayo de luz pasa entre la imagen y el texto */
}

/* 4. Efecto de zoom suave en la imagen al pasar el mouse (Extra Pro) */
.card-main:hover {
    background-blend-mode: overlay; /* Esto hace que el azul brille sobre la foto */
    background-color: rgba(0, 106, 255, 0.1); 
}













/* Estado inicial: Invisible y un poco más abajo */
.card {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    filter: blur(10px); /* Toque extra: desenfocado al inicio */
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); /* Curva de movimiento tipo Apple */
}

/* Estado final: Visible y en su posición original */
.card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Retrasos para que no salgan todas al mismo tiempo (Stagger Effect) */
/* La tarjeta grande sale primero */
.card-main.show {
    transition-delay: 0.1s;
}

/* La tarjeta de Misión/Visión sale un poquito después */
.card-secondary.show {
    transition-delay: 0.4s;
}

/* La tarjeta de Precisión sale de último */
.card-stats.show {
    transition-delay: 0.7s;
}








/* --- SECCIÓN PRINCIPAL --- */
.unidades-elite {
    background: #02040a;
    padding: 250px 10% 150px 10%; /* Mucho aire arriba para que "respire" */
    position: relative;
}

/* --- ENCABEZADO EDITORIAL --- */
.header-luxury {
    margin-bottom: 120px;
    max-width: 1100px;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.signature-line {
    width: 40px;
    height: 1px;
    background: #007AFF;
}

.tagline {
    font-size: 0.7rem;
    letter-spacing: 6px;
    color: #007AFF;
    font-weight: 600;
}

.header-main {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.title-luxury {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 0.85;
    color: #fff;
    flex: 1;
}

.title-luxury span {
    display: block;
    font-weight: 200;
    opacity: 0.4; /* Efecto de firma elegante */
}

.vertical-divider {
    width: 1px;
    height: 120px;
    background: rgba(255,255,255,0.1);
}

.description-luxury {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.5);
    font-weight: 300;
    margin-top: 15px;
}

/* --- TARJETAS RECTANGULARES MEJORADAS --- */
.unidades-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.u-card-pro {
    height: 550px;
    border-radius: 40px; /* Bordes más orgánicos */
    overflow: hidden;
    position: relative;
    background: #000;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.8s cubic-bezier(0.2, 1, 0.2, 1);
}

.u-image-wrapper {
    width: 100%;
    height: 100%;
}

.u-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(0.4);
    transition: 1s ease;
}

.u-glass-effect {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 20%, rgba(2, 4, 10, 0.95) 90%);
    z-index: 1;
}

.u-info {
    position: absolute;
    bottom: 0;
    padding: 50px;
    z-index: 2;
}

.u-num {
    font-size: 0.8rem;
    color: #007AFF;
    letter-spacing: 3px;
    font-weight: 700;
}

.u-info h3 {
    font-size: 2rem;
    margin: 15px 0;
    font-weight: 500;
}

.u-info p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.5);
    max-width: 250px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s ease;
}

.u-btn {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #007AFF;
    padding-bottom: 5px;
    opacity: 0;
    transition: 0.5s ease;
}

/* --- HOVER EFECTS WOW --- */
.u-card-pro:hover {
    transform: translateY(-20px);
    border-color: rgba(0, 122, 255, 0.4);
    box-shadow: 0 40px 80px rgba(0,0,0,0.8);
}

.u-card-pro:hover img {
    filter: grayscale(0) brightness(0.7);
    transform: scale(1.1);
}

.u-card-pro:hover p, 
.u-card-pro:hover .u-btn {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVO */
@media (max-width: 1024px) {
    .header-main { flex-direction: column; gap: 30px; }
    .vertical-divider { display: none; }
    .unidades-elite { padding-top: 150px; }
}






















:root {
    --white-bg: #FFFFFF;
    --light-blue-bg: #F0F8FF; /* Un azul muy claro */
    --accent-blue: #007AFF; /* Azul principal */
    --text-dark: #2C3E50;
    --text-muted: #6C7A89;
}

body.clean-tech-dynamic {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--white-bg);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

/* --- HERO SECTION (Portada Dinámica) --- */
.dynamic-hero {
    height: 95vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 10%;
    background-color: var(--light-blue-bg);
}

.hero-bg-dynamic {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.8) grayscale(50%); /* Color sutil */
    transform: scale(1.1); /* Efecto de zoom suave al inicio */
    transition: transform 3s ease-out; /* Animación lenta */
}
.dynamic-hero:hover .hero-bg-dynamic { transform: scale(1); } /* Revierte el zoom en hover */

.hero-overlay-dynamic {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 30%, transparent 70%);
}

.hero-content-dynamic {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.tag-dynamic {
    background: rgba(0, 122, 255, 0.1);
    color: var(--accent-blue);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.title-dynamic {
    font-size: clamp(3rem, 6vw, 4.8rem);
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 700;
}

.title-dynamic span {
    color: var(--accent-blue);
    font-weight: 300;
    display: block;
}

.description-dynamic {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
}

.hero-clip-shape {
    position: absolute;
    right: 0; bottom: 0;
    width: 55%; height: 70%;
    background: var(--accent-blue);
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
    opacity: 0.1;
    z-index: 1;
}

/* --- SECCIÓN DE INFORMACIÓN (Texto con Galería) --- */
.info-section {
    padding: 150px 10%;
    background-color: var(--white-bg);
}

.info-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;
    align-items: center;
}

.section-badge {
    color: var(--accent-blue);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.2;
    margin-bottom: 30px;
}

.section-title span { color: var(--accent-blue); }

.text-block p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.image-stack {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-stack img {
    position: absolute;
    width: 70%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.stack-img-1 { z-index: 2; top: 0; left: 0; transform: translateY(0); transition: transform 0.5s ease-out; }
.stack-img-2 { z-index: 1; bottom: 0; right: 0; width: 60%; transform: translateY(0); transition: transform 0.5s ease-out; }

.image-stack:hover .stack-img-1 { transform: translateY(-20px); }
.image-stack:hover .stack-img-2 { transform: translateY(20px); }


/* --- SECCIÓN DE DOCTORES (Círculos con Hover) --- */
.doctors-section {
    padding: 150px 10%;
    background-color: var(--light-blue-bg);
    text-align: center;
}

.center-text { margin-bottom: 80px; }

.doctor-circles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.doctor-card-dynamic {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: transform 0.4s ease-out;
}

.doctor-card-dynamic img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.8);
    transition: filter 0.4s ease-out;
}

.doctor-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 122, 255, 0.7) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.doctor-overlay h4 { font-size: 1.3rem; margin-bottom: 5px; }
.doctor-overlay p { font-size: 0.9rem; font-weight: 300; }

.doctor-card-dynamic:hover { transform: translateY(-15px); }
.doctor-card-dynamic:hover img { filter: brightness(1); }
.doctor-card-dynamic:hover .doctor-overlay { opacity: 1; }

/* --- ANIMACIONES DE REVELACIÓN (JavaScript) --- */
.reveal-slide-left, .reveal-slide-right, .reveal-slide-up {
    opacity: 0;
    transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
}
.reveal-slide-left { transform: translateX(-50px); }
.reveal-slide-right { transform: translateX(50px); }
.reveal-slide-up { transform: translateY(50px); }

.reveal-slide-left.show, .reveal-slide-right.show, .reveal-slide-up.show {
    opacity: 1;
    transform: translate(0,0);
}

/* Retrasos para cascada */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }


/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .dynamic-hero {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 80px 5%;
    }
    .hero-bg-dynamic { transform: none; } /* Desactivar zoom inicial en móviles */
    .hero-content-dynamic { max-width: 100%; }
    .hero-clip-shape { display: none; } /* Ocultar forma en móviles */

    .info-grid { grid-template-columns: 1fr; gap: 60px; }
    .image-stack { height: 400px; }
    .stack-img-1, .stack-img-2 { width: 85%; transform: none !important; position: relative; }
    .stack-img-2 { margin-top: -80px; } /* Ajuste de solapamiento */

    .doctors-section { padding: 100px 5%; }
    .doctor-circles-grid { grid-template-columns: 1fr; }
    .doctor-card-dynamic { width: 200px; height: 200px; }
}



















    .seccion-equipo-dark {
        background-color: #0b0e14; /* Negro azulado profundo */
        padding: 100px 10%;
        text-align: center;
        color: #fff;
    }

    .header-equipo { margin-bottom: 70px; }
    
    .tag-diamante {
        color: #00A3FF;
        letter-spacing: 3px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .header-equipo h2 {
        font-size: 3rem;
        margin-top: 15px;
        font-family: 'Plus Jakarta Sans', sans-serif;
    }

    .header-equipo h2 span { color: #00A3FF; font-weight: 300; }

    /* GRID CIRCULAR */
    .grid-doctores-circulo {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 60px;
        justify-content: center;
    }

    .doctor-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: 0.4s;
    }

    /* EL CÍRCULO "DIAMANTE" */
    .circulo-wrapper {
        position: relative;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        padding: 6px; /* Espacio para el borde brillante */
        background: rgba(255,255,255,0.05);
        margin-bottom: 25px;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .circulo-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        filter: grayscale(100%) brightness(0.8);
        transition: all 0.5s ease;
    }

    /* Efecto de Brillo/Luz al pasar el cursor */
    .brillo-diamante {
        position: absolute;
        inset: 0;
        border-radius: 50%;
        border: 2px solid transparent;
        transition: all 0.5s ease;
    }

    /* HOVER STATE */
    .doctor-item:hover .circulo-wrapper {
        transform: translateY(-10px);
        background: linear-gradient(45deg, #00A3FF, #0055FF);
        box-shadow: 0 0 30px rgba(0, 163, 255, 0.4);
    }

    .doctor-item:hover img {
        filter: grayscale(0%) brightness(1);
    }

    .doctor-item:hover .brillo-diamante {
        border: 2px solid rgba(255,255,255,0.5);
        transform: scale(1.1);
    }

    /* TEXTO ABAJO DEL CÍRCULO */
    .doctor-info h4 {
        margin: 0;
        font-size: 1.25rem;
        color: #fff;
        transition: color 0.3s;
    }

    .doctor-info p {
        margin: 5px 0 0;
        color: #00A3FF;
        font-size: 0.9rem;
        font-weight: 500;
        opacity: 0.8;
    }

    .doctor-item:hover h4 {
        color: #00A3FF;
    }

    /* RESPONSIVE */
    @media (max-width: 768px) {
        .grid-doctores-circulo { grid-template-columns: repeat(2, 1fr); gap: 30px; }
        .circulo-wrapper { width: 140px; height: 140px; }
    }


















    
    .seccion-instalaciones {
        background-color: #0b0e14;
        padding: 100px 10%;
        color: #fff;
    }

    .instalaciones-grid {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 80px;
        align-items: center;
    }

    .instalaciones-texto h2 {
        font-size: 2.8rem;
        margin: 20px 0;
        line-height: 1.2;
    }

    .instalaciones-texto h2 span {
        color: #00A3FF;
        display: block;
        font-weight: 300;
    }

    .lista-tech {
        list-style: none;
        padding: 0;
        margin-top: 30px;
    }

    .lista-tech li {
        margin-bottom: 15px;
        font-size: 1.1rem;
        color: #cbd5e1;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .lista-tech li span {
        color: #00A3FF;
        font-weight: bold;
    }

    /* Marco Diamante para la Foto del Edificio */
    .marco-brillante {
        position: relative;
        border-radius: 30px;
        overflow: hidden;
        box-shadow: 0 0 50px rgba(0, 163, 255, 0.2);
        border: 1px solid rgba(0, 163, 255, 0.3);
    }

    .marco-brillante img {
        width: 100%;
        display: block;
        filter: contrast(1.1) brightness(0.9);
        transition: transform 0.8s ease;
    }

    .marco-brillante:hover img {
        transform: scale(1.05);
    }

    /* Responsivo */
    @media (max-width: 900px) {
        .instalaciones-grid {
            grid-template-columns: 1fr;
            text-align: center;
        }
        .lista-tech li {
            justify-content: center;
        }
    }








#preloader {
    position: fixed;
    inset: 0;
    background: #05070a;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1);
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrado horizontal */
    justify-content: center; /* Centrado vertical */
    width: 100%;
}

.svg-text {
    width: 320px; /* Tamaño controlado */
    display: block;
    margin: 0 auto;
}

.text-stroke {
    fill: none;
    stroke: #00A3FF;
    stroke-width: 1.5px;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    font-size: 110px;
    font-weight: 900;
    font-family: 'Plus Jakarta Sans', sans-serif;
    animation: draw 2.5s forwards ease-in-out;
}

.text-fill {
    fill: #00A3FF;
    font-size: 110px;
    font-weight: 900;
    font-family: 'Plus Jakarta Sans', sans-serif;
    opacity: 0;
    animation: fadeIn 1s forwards 2s;
    filter: drop-shadow(0 0 15px rgba(0, 163, 255, 0.6));
}

.subtext-loader {
    text-align: center;
    margin-top: -10px; /* Pegado a las letras */
}

.reveal-text, .reveal-text-slow {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(10px);
    margin: 0;
}

.reveal-text { 
    animation: fadeInUp 0.8s forwards 2.5s; 
}

.reveal-text-slow { 
    animation: fadeInUp 0.8s forwards 2.8s; 
    color: rgba(255,255,255,0.4); /* Estilo Hospital del Valle */
    font-weight: 300; 
    font-size: 0.7rem;
    margin-top: 5px;
}

.linea-progreso {
    display: block;
    width: 0;
    height: 1px;
    background: #00A3FF;
    margin: 10px auto;
    animation: extendLine 1.2s forwards 2.3s;
    box-shadow: 0 0 8px #00A3FF;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes extendLine { to { width: 180px; } }

#preloader.loaded { transform: translateY(-100%); }

/* Ajuste móvil */
@media (max-width: 480px) {
    .svg-text { width: 240px; }
    .reveal-text { font-size: 0.65rem; }
    .reveal-text-slow { font-size: 0.6rem; }
}
















.diagnostico-visual {
    background: #0b0e14;
    padding: 100px 10%;
    color: #fff;
    text-align: center;
}

.cuerpo-contenedor {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.mapa-cuerpo {
    position: relative;
    width: 280px;
    height: 500px;
}

.silueta-svg {
    width: 100%;
    height: 100%;
}

/* PUNTOS INTERACTIVOS */
.punto {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #00A3FF;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 0 15px rgba(0, 163, 255, 0.8);
}

/* Animación de Ondas (Ripple) */
.ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    opacity: 0.6;
    animation: wave 2s infinite;
}

@keyframes wave {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(3); opacity: 0; }
}

/* Posiciones Médicas Exactas */
.p-esofago { top: 110px; left: 47%; }
.p-estomago { top: 180px; left: 45%; }
.p-higado { top: 175px; left: 32%; }
.p-colon { top: 250px; left: 47%; }

/* CUADRO DE INFORMACIÓN */
.cuadro-info {
    flex: 1;
    min-width: 320px;
    max-width: 480px;
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(0, 163, 255, 0.2);
    padding: 40px;
    border-radius: 35px;
    min-height: 400px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.msg-guia { text-align: center; color: #8b949e; }

.btn-consulta-ws {
    display: block;
    margin-top: 30px;
    background: #25D366;
    color: #fff;
    padding: 18px;
    text-align: center;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    transition: 0.3s;
}

.fade-in { animation: fadeInEffect 0.5s ease; }
@keyframes fadeInEffect { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 768px) {
    .cuerpo-contenedor { flex-direction: column; }
    .mapa-cuerpo { height: 400px; width: 220px; }
    .p-esofago { top: 90px; }
    .p-estomago { top: 150px; }
    .p-higado { top: 145px; }
    .p-colon { top: 210px; }
}












.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.btn-ws-diamante {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #0b0e14;
    border: 2px solid #00A3FF;
    border-radius: 50%;
    color: #00A3FF;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(0, 163, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.ws-icon-svg {
    width: 30px;
    height: 30px;
    fill: #00A3FF;
    transition: all 0.4s ease;
}

/* Tooltip (Mensaje que aparece al lado) */
.tooltip-ws {
    position: absolute;
    right: 75px;
    background: #00A3FF;
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: 0.3s;
    pointer-events: none;
}

.tooltip-ws::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #00A3FF;
}

/* Hover Effects */
.btn-ws-diamante:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #00A3FF;
    box-shadow: 0 0 25px rgba(0, 163, 255, 0.7);
}

.btn-ws-diamante:hover .ws-icon-svg {
    fill: #fff;
}

.btn-ws-diamante:hover .tooltip-ws {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Animación de pulsación sutil */
@keyframes pulse-ws {
    0% { box-shadow: 0 0 0 0 rgba(0, 163, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 163, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 163, 255, 0); }
}

.btn-ws-diamante {
    animation: pulse-ws 2s infinite;
}

@media (max-width: 768px) {
    .whatsapp-float { bottom: 20px; right: 20px; }
    .tooltip-ws { display: none; } /* Ocultar tooltip en móvil para no estorbar */
}



















.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999; /* Un poco por debajo del preloader para que no se vea */
    
    /* ESTO ES LO NUEVO: Oculto al inicio y aparece después */
    opacity: 0;
    visibility: hidden;
    animation: aparecerBoton 1s forwards 5s; /* 5s es el tiempo que tarda tu preloader */
}

@keyframes aparecerBoton {
    from { 
        opacity: 0; 
        visibility: hidden; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        visibility: visible; 
        transform: translateY(0); 
    }
}

/* El resto del diseño del botón se mantiene igual... */
.btn-ws-diamante {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #0b0e14;
    border: 2px solid #00A3FF;
    border-radius: 50%;
    /* ... el resto de tu código de estilo ... */
}












.seccion-contadores {
    background: #05070a;
    padding: 80px 10%;
    border-top: 1px solid rgba(0, 163, 255, 0.1);
}

.contenedor-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px 20px;
    border-radius: 25px;
    border: 1px solid rgba(0, 163, 255, 0.1);
    transition: 0.4s;
}

.stat-card:hover {
    background: rgba(0, 163, 255, 0.05);
    border-color: #00A3FF;
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 2.5rem;
    color: #00A3FF;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 163, 255, 0.4));
}

.stat-card h2 {
    font-size: 3rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #fff;
    margin: 0;
    font-weight: 800;
}

.stat-card h2::after {
    content: '+';
    color: #00A3FF;
    font-size: 1.5rem;
    vertical-align: top;
}

.stat-card p {
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .stat-card h2 { font-size: 2.2rem; }
}











.doctor-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: transform 0.3s ease;
}

.doctor-link-wrapper:hover {
    transform: translateY(-5px); /* Un pequeño salto al pasar el cursor */
}













/* ==========================================
   ESTILO PARA PERFILES.HTML - STRADA LAB
   ========================================== */

:root {
    --electric-blue: #007aff;
    --deep-bg: #050a15;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-dim: rgba(255, 255, 255, 0.6);
}

.perfil-dark-bg {
    background-color: var(--deep-bg);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0;
}

/* --- BOTÓN REGRESAR --- */
.btn-regresar {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100;
    text-decoration: none;
    color: white;
    background: var(--glass-bg);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-regresar:hover {
    background: var(--electric-blue);
    transform: translateX(-5px);
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.3);
}

/* --- CONTENEDOR PRINCIPAL --- */
.perfil-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

/* --- HERO SECTION (FOTO Y NOMBRE) --- */
.perfil-hero {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
    animation: fadeIn 1s ease;
}

.foto-container {
    position: relative;
    width: 320px;
    height: 420px;
    flex-shrink: 0;
}

#main-doc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 2;
}

.brillo-diamante-perfil {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, var(--electric-blue) 0%, transparent 70%);
    opacity: 0.15;
    z-index: 1;
    filter: blur(20px);
}

.info-principal h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 15px 0;
}

.tag-elite {
    color: var(--electric-blue);
    font-size: 0.9rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 800;
}

.badge-atencion {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 136, 0.05);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    font-size: 0.8rem;
    color: #00ff88;
}

.dot-online {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
}

/* --- GRID DE INFORMACIÓN --- */
.perfil-detalles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.tarjeta-info {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 35px;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.tarjeta-info:hover {
    border-color: rgba(0, 122, 255, 0.3);
}

.tarjeta-info h3 {
    font-family: 'Outfit';
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--electric-blue);
}

.full-width {
    grid-column: 1 / -1;
}

/* --- SERVICIOS Y ACADEMIA --- */
.servicios-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chip-servicio {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 0.85rem;
    transition: 0.3s;
}

.chip-servicio:hover {
    background: var(--electric-blue);
    border-color: var(--electric-blue);
}

.lista-academia {
    list-style: none;
}

.lista-academia li {
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-dim);
}

.lista-academia li:last-child { border: none; }

.horario-item {
    margin-bottom: 10px;
    font-size: 1rem;
    color: white;
}

/* --- ANIMACIONES --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .perfil-hero {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .perfil-detalles-grid {
        grid-template-columns: 1fr;
    }
    
    .foto-container {
        width: 280px;
        height: 350px;
    }
}













.footer-final {
        background-color: #05070a;
        padding: 60px 10%;
        border-top: 1px solid rgba(0, 163, 255, 0.1);
        color: #fff;
    }

    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 40px;
    }

    /* BOTONES SOCIALES ACTUALIZADOS */
    .redes-footer {
        display: flex;
        gap: 15px;
        margin-bottom: 20px;
        justify-content: flex-end;
    }

    .btn-social {
        padding: 12px 25px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 700;
        font-size: 0.8rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-transform: uppercase;
        letter-spacing: 1px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff;
        background: rgba(255, 255, 255, 0.03);
    }

    .btn-social.fb:hover {
        background-color: #1877F2;
        border-color: #1877F2;
        box-shadow: 0 0 20px rgba(24, 119, 242, 0.4);
        transform: translateY(-3px);
    }

    .btn-social.ln:hover {
        background-color: #0077B5; /* Color LinkedIn */
        border-color: #0077B5;
        box-shadow: 0 0 20px rgba(0, 119, 181, 0.4);
        transform: translateY(-3px);
    }

    /* SECCIÓN DE CRÉDITOS STRADA LAB */
    .footer-info-extra {
        text-align: right;
    }

    .dev-credits {
        font-size: 0.8rem;
        color: #8b949e;
        margin-top: 15px;
        font-family: 'Plus Jakarta Sans', sans-serif;
    }

    .strada-link {
        color: #fff;
        text-decoration: none;
        font-weight: 700;
        letter-spacing: 0.5px;
        transition: 0.3s;
        position: relative;
    }

    .strada-link span {
        color: #00A3FF;
        animation: blink 1s infinite;
    }

    .strada-link:hover {
        color: #00A3FF;
    }

    @keyframes blink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0; }
    }

    /* RESPONSIVO */
    @media (max-width: 768px) {
        .footer-content, .redes-footer, .footer-info-extra {
            text-align: center;
            justify-content: center;
        }
    }

















.seguros-slider {
    padding: 80px 0;
    background: transparent;
    overflow: hidden;
}

.slider-title {
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 40px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.6;
}

.logos-container {
    display: flex;
    overflow: hidden;
    /* Difuminado elegante en los bordes */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logos-track {
    display: flex;
    align-items: center;
    gap: 100px; 
    animation: scroll-infinite 40s linear infinite; /* 'linear' lo mantiene constante */
    width: max-content; /* Deja que el contenido defina el ancho */
}

.logos-track img {
    width: 180px; 
    height: auto;
    object-fit: contain;
    filter: grayscale(1) brightness(1.5); 
    opacity: 0.5;
    transition: all 0.4s ease;
}

.logos-track img:hover {
    filter: grayscale(0) brightness(1); 
    opacity: 1;
    transform: scale(1.1);
}

/* LA CLAVE: Animación constante que nunca se detiene */
@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Al mover exactamente el 50%, el duplicado toma el lugar del original sin que se note */
        transform: translateX(-50%);
    }
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .logos-track img {
        width: 120px;
    }
    .logos-track {
        gap: 60px;
    }
}















/* CONTENEDOR MAESTRO: Aquí es donde ocurre la magia */
.unidades-grid-premium {
    display: grid;
    /* Crea columnas automáticas: se adapta de 1 a 100 tarjetas sin romperse */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; /* Espacio entre tarjetas */
    padding: 20px;
    width: 100%;
    max-width: 1400px; /* Ancho máximo para que no se estiren demasiado en pantallas gigantes */
    margin: 0 auto;
}

/* LA TARJETA: Mantiene la proporción siempre */
.u-card-pro {
    position: relative;
    height: 450px; /* Altura fija para que todas se vean iguales en la fila */
    border-radius: 30px;
    overflow: hidden;
    background: var(--glass);
    border: 1px solid var(--border);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.u-card-pro:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

/* IMAGEN: Se adapta al contenedor sin deformarse */
.u-image-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.u-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto evita que la foto se vea estirada */
    transition: 0.6s;
}

/* Ajuste específico para que en móviles salgan de 2 en 2 */
@media (max-width: 768px) {
    .unidades-grid-premium {
        /* Forzamos 2 columnas iguales */
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px; /* Reducimos el espacio entre tarjetas para que quepan bien */
        padding: 10px;
    }
    
    .u-card-pro {
        /* Reducimos la altura en móvil para que no se vean muy alargadas */
        height: 280px; 
        border-radius: 20px; /* Bordes un poco más finos para el tamaño */
    }

    .u-info h3 {
        font-size: 0.9rem; /* Texto un poco más pequeño para que no se corte */
        line-height: 1.2;
    }

    .u-info p {
        display: none; /* OPCIONAL: Ocultamos el párrafo en móvil para que se vea más limpio */
    }

    .u-num {
        font-size: 0.7rem;
        top: 15px;
        left: 15px;
    }
}

/* Ajuste para celulares muy pequeños (menos de 360px) */
@media (max-width: 360px) {
    .unidades-grid-premium {
        gap: 8px;
    }
    .u-card-pro {
        height: 240px;
    }
}














