﻿/* ===================================================
   VARIABLES DE DISEÑO CLÍNICO CLARO E INSTITUCIONAL (TEVAL)
   =================================================== */
:root {
    /* PALETA PRINCIPAL BASADA EN TU LOGOTIPO REAL */
    --teal: #1b6ca8; /* Azul Rey Oficial del Escudo TEVAL */
    --teal-dark: #114b73; /* Azul profundo para textos y títulos médicos */
    --teal-light: #4ba3e3; /* Azul brillante para hovers y enlaces */

    --amber: #fffde6; /* Crema Institucional del fondo del círculo */
    --amber-dark: #e6dfb8; /* Crema oscuro para acentos y detalles sutiles */
    --amber-pale: #fffdf5; /* Fondo crema ultra suave para secciones intercaladas */
    /* ENTORNO LUMINOSO CLÍNICO */
    --white: #ffffff; /* Fondo principal pulcro y limpio */
    --offwhite: #f4f8fb; /* Fondo gris azulado médico muy claro */
    --dark: #1c2e3d; /* Gris oscuro limpio exclusivamente para lectura de textos */
    --mid: #4a657a; /* Texto secundario leíble */
    --muted: #7892a6; /* Texto suavizado para descripciones secundarias */
    --border: #d2e4f0; /* Bordes blandos clínicos */
    /* VARIABLES DE RESPALDO Y COMPATIBILIDAD CON ESTRUCTURAS ANTERIORES */
    --tp: #e6f2fa;
    --ap: #fffde6;
    --bdr: #d2e4f0;
    --amb: #1b6ca8; /* Mapeamos el ámbar antiguo al azul rey para legibilidad */
    --mut: #4a657a;
    --ad: #114b73;
}

/* REGLAS BASE Y VISIBILIDAD */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--teal);
    border-radius: 3px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    color: var(--teal-dark);
}

/* TRANSICIONES FLUIDAS AOS */
[data-aos] {
    pointer-events: none;
}

.aos-animate {
    pointer-events: auto;
}

#pgb {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--teal-light));
    z-index: 9999;
    width: 0;
    transition: width .1s;
}

/* NAVBAR CLARA PREMIUM */
#nb {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: all .35s;
}

    #nb.sc {
        background: rgba(255, 255, 255, .98);
        padding: 8px 0;
        box-shadow: 0 4px 24px rgba(27, 108, 168, .08);
    }

.brand {
    text-decoration: none;
    transition: transform .3s;
}

    .brand span {
        color: var(--teal-light);
    }

.nav-link-custom {
    font-size: .87rem;
    font-weight: 500;
    color: var(--dark);
    padding: 6px 12px;
    border-radius: 8px;
    transition: all .2s;
    text-decoration: none;
}

    .nav-link-custom:hover {
        background: var(--offwhite);
        color: var(--teal);
    }

/* BOTONES ESTILO CLÍNICO */
.bnv {
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 10px 22px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .82rem;
    cursor: pointer;
    transition: all .25s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .bnv:hover {
        background: var(--teal-dark);
        transform: translateY(-1px);
        color: var(--white);
    }

    .bnv.a {
        background: var(--amber-dark);
        color: var(--teal-dark);
        border: 1px solid rgba(17, 75, 115, 0.15);
    }

        .bnv.a:hover {
            background: #d8ce9e;
        }

/* ===================================================
   SECCIÓN 1: CARRUSEL ADAPTADO DE ALTA FIDELIDAD (FOTOS TOTALMENTE LIBRES)
   =================================================== */
.carrusel-alto {
    height: 100vh !important;
    min-height: 100vh !important;
    width: 100% !important;
    position: relative;
    overflow: hidden;
}

    .carrusel-alto .carousel-inner,
    .carrusel-alto .carousel-item {
        height: 100% !important;
        min-height: 100% !important;
    }

        /* Filtro traslúcido asimétrico: Difumina solo a la izquierda y libera el fondo abajo */
        .carrusel-alto .carousel-item div[style*="background"] {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            background-size: cover !important;
            background-position: center !important;
            z-index: 1;
            /* GRADIENTE QUIRÚRGICO: Protege texto a la izquierda, la foto revive al centro, abajo y derecha */
            background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 30%, rgba(255, 255, 255, 0.3) 55%, rgba(255, 255, 255, 0) 75% ) !important;
        }

    .carrusel-alto .container {
        position: relative;
        z-index: 3;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .carrusel-alto .row {
        width: 100%;
        padding-top: 60px;
    }

    /* Sombra de contraste sutil para que las letras floten sin manchar la foto */
    .carrusel-alto h1 {
        color: var(--teal-dark) !important;
        text-shadow: 0 2px 12px rgba(255, 255, 255, 0.9) !important;
    }

    .carrusel-alto p.lead {
        color: var(--mid) !important;
        text-shadow: 0 1px 10px rgba(255, 255, 255, 0.9) !important;
    }

.carousel-item {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease-in-out;
}

    .carousel-item.active div[style*="background"] {
        animation: premiumZoomEffect 6s ease-out forwards;
    }

@keyframes premiumZoomEffect {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.03);
    }
}

/* ===================================================
   SECCIÓN 2: HERO INTERACTIVO CLARO (ÓRBITA Y CANVAS)
   =================================================== */
#hero {
    min-height: 100vh;
    background: var(--offwhite);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
    /* 🟢 LO QUE CAMBIA Y SE AGREGA: */
    /* 1. Inyectamos la foto reemplazando el --offwhite */

    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('../images/teval6.jpg') !important;
    /* 2. La propiedad mágica para congelar la foto atrás */
    background-attachment: fixed !important;
    /* 3. Aseguramos que la imagen se centre y cubra todo el espacio */
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

    #hero h1 {

        color: #ffffff !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Sombra suave para darle profundidad */
    }

        /* Forzar las palabras enfatizadas (como "voz" o "vida") a mantener un tono brillante */
        #hero h1 span, #hero h1 em {
            color: var(--amb, #f59e0b) !important; /* Mantiene tu color de acento o usa un dorado brillante */
            font-style: normal;
        }

    /* Forzar el párrafo descriptivo (el de tu captura) a blanco suave legible */
    #hero p.hsub {
        color: rgba(255, 255, 255, 0.9) !important; /* Blanco al 90% para que sea suave a la vista */
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
    }

        /* Asegurar que el texto en negrita (TEVAL) resalte en blanco brillante */
        #hero p.hsub strong {
            color: #ffffff !important;
            font-weight: 700;
        }

/* Canvas suavizado para flotar elegantemente sobre el entorno médico claro */
canvas#cv {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
    z-index: 2;
    pointer-events: none;
    opacity: 0.75;
}

#hero .hc {
    position: relative !important;
    z-index: 3 !important;
}

.hgrid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(27, 108, 168, .15) 1px, transparent 1px), linear-gradient(90deg, rgba(27, 108, 168, .15) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}

.hblob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .35;
    animation: bf 8s ease-in-out infinite alternate;
    z-index: 1;
}

.hb1 {
    width: 600px;
    height: 600px;
    background: var(--teal-light);
    top: -200px;
    right: -150px;
}

.hb2 {
    width: 400px;
    height: 400px;
    background: var(--amber-dark);
    bottom: -100px;
    left: -100px;
    animation-delay: -3s;
}

.hb3 {
    width: 300px;
    height: 300px;
    background: #90caf9;
    top: 40%;
    left: 28%;
    animation-delay: -5s;
}

@keyframes bf {
    from {
        transform: translate(0, 0) scale(1)
    }

    to {
        transform: translate(20px, -20px) scale(1.04)
    }
}

.hc {
    position: relative;
    z-index: 4;
}

.hpill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--teal);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: .73rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 22px;
    box-shadow: 0 2px 10px rgba(27, 108, 168, 0.05);
}

.ldot {
    width: 7px;
    height: 7px;
    background: var(--teal);
    border-radius: 50%;
    animation: lv 1.4s infinite;
}

@keyframes lv {
    0%, 100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .4;
        transform: scale(.7)
    }
}

.hero h1 {
    color: var(--teal-dark);
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.02em;
}

    .hero h1 em {
        font-style: normal;
        color: var(--teal-light);
    }

    .hero h1 span {
        color: var(--teal);
    }

.hsub {
    color: var(--mid);
    font-size: 1.07rem;
    line-height: 1.78;
    font-weight: 400;
    max-width: 480px;
}

/* CONTADORES EN MODO CLARO */
.sg {
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(27, 108, 168, 0.04);
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
    transition: all .3s;
}

    .sg:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(27, 108, 168, 0.08);
    }

.sn {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--teal);
}

.sl {
    font-size: .73rem;
    color: var(--muted);
    margin-top: 2px;
    font-weight: 500;
}

/* ÓRBITAS CLÁNICAS SUTILES */
.orb-container {
    position: relative;
    width: 440px;
    height: 440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(27, 108, 168, 0.65);
    pointer-events: none;
}

.or-inner {
    width: 280px;
    height: 280px;
}

.or-outer {
    width: 420px;
    height: 420px;
    border-color: rgba(27, 108, 168, 0.7);
}

/* Rostro central protegido */
.orb-center {
    position: absolute;
    font-size: 6.8rem;
    z-index: 5;
    filter: drop-shadow(0px 8px 20px rgba(27, 108, 168, 0.2));
    animation: rawGlitchPulse 2.2s ease-in-out infinite alternate;
}

.orb-satellite {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.sat-pill {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--teal-dark);
    padding: 8px 16px;
    border-radius: 14px;
    font-family: 'Syne', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(27, 108, 168, 0.08);
    pointer-events: auto;
    transition: all 0.25s ease;
}

    .sat-pill:hover {
        background: var(--teal);
        color: var(--white);
        border-color: var(--teal);
        cursor: pointer;
    }

.sat-top .sat-pill {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sat-bottom .sat-pill {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
}

.sat-left .sat-pill {
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
}

.sat-right .sat-pill {
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
}

.sat-top {
    animation: driveTop 28s linear infinite;
}

    .sat-top .sat-pill {
        animation: revTop 28s linear infinite;
    }

.sat-right {
    animation: driveRight 24s linear infinite;
}

    .sat-right .sat-pill {
        animation: revRight 24s linear infinite;
    }

.sat-bottom {
    animation: driveBottom 32s linear infinite;
}

    .sat-bottom .sat-pill {
        animation: revBottom 32s linear infinite;
    }

.sat-left {
    animation: driveLeft 20s linear infinite;
}

    .sat-left .sat-pill {
        animation: revLeft 20s linear infinite;
    }

@keyframes driveTop {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes revTop {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

@keyframes driveRight {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes revRight {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

@keyframes driveBottom {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes revBottom {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

@keyframes driveLeft {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes revLeft {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

@keyframes rawGlitchPulse {
    0% {
        transform: scale(0.97);
    }

    100% {
        transform: scale(1.04);
    }
}

/* TARJETAS FLOTANTES */
.float-card {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    box-shadow: 0 8px 30px rgba(27, 108, 168, 0.08);
    color: var(--dark);
}

.fc1 {
    top: 25%;
    right: 12%;
    animation: floating 4s ease-in-out infinite;
}

.fc2 {
    bottom: 20%;
    right: 8%;
    animation: floating 4s ease-in-out infinite;
    animation-delay: -2s;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.schv {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
}

.sc2 {
    border-right: 2px solid var(--teal);
    border-bottom: 2px solid var(--teal);
    transform: rotate(45deg);
    animation: ca 1.4s infinite;
}

    .sc2:nth-child(2) {
        animation-delay: .2s;
    }

@keyframes ca {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-4px, -4px)
    }

    50% {
        opacity: 1
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px)
    }
}

/* ===================================================
   SISTEMA DE SECCIONES GENERALES EN TEXTURA CLARA
   =================================================== */
section {
    padding: 100px 0;
    background: var(--white);
}

/* Portal Pacientes: Manto azul clínico de contraste */
#pac {
    background: var(--teal-dark);
    padding: 70px 0;
}

    #pac .st {
        color: var(--white) !important;
    }

.pb {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    padding: 20px 22px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--white);
    cursor: pointer;
    transition: all .3s;
    border: none;
    text-align: left;
}

    .pb:hover {
        background: rgba(255, 255, 255, .15);
        transform: translateX(6px);
    }

.pi {
    width: 50px;
    height: 50px;
    background: var(--teal-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* MARCADORES DE SECCIÓN */
.sp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--offwhite);
    color: var(--teal);
    font-family: 'Syne', sans-serif;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    padding: 6px 16px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
}

.st {
    font-size: clamp(1.8rem, 3.5vw, 2.7rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.01em;
    color: var(--teal-dark);
}

    .st em {
        font-style: normal;
        color: var(--teal-light);
    }

.db {
    width: 46px;
    height: 4px;
    background: var(--teal);
    border-radius: 4px;
    margin: 12px 0 22px;
}

.dbc {
    margin: 12px auto 22px;
}

/* QUIENES SOMOS (HISTORIA) */
#qui {
    background: var(--amber-pale);
}

.fi {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
    text-align: left;
}

.fic {
    width: 46px;
    height: 46px;
    background: #e6f2fa;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.kc {
    border-right: 1px solid var(--border);
}

    .kc:last-child {
        border: none;
    }

.kn {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--teal);
}

.kl {
    font-size: .72rem;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

/* ESPECIALIDADES (TERAPIAS) */
#ter {
    background: var(--white);
}

.sw-ter {
    padding-bottom: 52px !important;
    position: relative;
}

.tsc {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px 24px;
    height: 100%;
    transition: all .35s;
    position: relative;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 4px 20px rgba(27,108,168,0.03);
}

    .tsc::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--teal);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .35s;
        border-radius: 4px 4px 0 0;
    }

    .tsc:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(27, 108, 168, .08);
        border-color: transparent;
    }

        .tsc:hover::before {
            transform: scaleX(1);
        }

.tic {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 16px;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--teal) !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(27, 108, 168, .1);
    top: 45% !important;
    background: var(--white);
    z-index: 10;
}

    .swiper-button-next::after, .swiper-button-prev::after {
        font-size: .85rem !important;
        font-weight: 900;
    }

.bt {
    display: inline-block;
    background: var(--offwhite);
    color: var(--teal-dark);
    font-size: .69rem;
    font-weight: 700;
    border-radius: 50px;
    padding: 4px 12px;
    margin: 2px;
    border: 1px solid var(--border);
}

/* EQUIPO DE TERAPEUTAS */
#equ {
    background: var(--offwhite);
}

.sw-equ {
    padding-bottom: 52px !important;
    position: relative;
}

.item-staff-individual {
    height: 100% !important;
    display: flex !important;
}

.swiper-wrapper {
    display: flex !important;
    align-items: stretch !important; /* <--- Esto las obliga a medir lo mismo que la más alta */
}


.swiper-slide.item-staff-individual {
    height: auto !important; /* Deja que el stretch controle la altura */
    display: flex !important;
}

.tc {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important; 
    box-sizing: border-box !important;
}

    .tc:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(27, 108, 168, .1);
    }

.tt {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    position: relative;
}

.tbg {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 4px 14px;
    font-size: .7rem;
    font-weight: 700;
    color: var(--teal-dark);
    backdrop-filter: blur(8px);
}

.tb {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important; /* Distribuye el contenido para que las burbujas queden abajo */
    padding: 24px !important;
}

    .tb h5 {
        font-weight: 800;
        font-size: 1.08rem;
        margin-bottom: 3px;
        color: var(--teal-dark);
    }

.mt-3 {
    margin-top: auto !important;
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.tr {
    font-size: .81rem;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 12px;
}

.cv {
    font-size: .81rem;
    color: var(--mid);
    line-height: 1.65;
    margin-bottom: 7px;
}

/* ===================================================
   SECCIÓN DE VIDEOS: TEATRO CLÍNICO LUMINOSO Y LIMPIO
   =================================================== */
#vid {
    background: linear-gradient(135deg, #f4f8fb 0%, #ffffff 100%) !important;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

    #vid::before {
        content: '';
        position: absolute;
        top: -10%;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 300px;
        background: radial-gradient(circle, rgba(27, 108, 168, 0.05) 0%, rgba(0,0,0,0) 70%);
        pointer-events: none;
    }

.video-main-container {
    background: var(--white);
    border: 4px solid var(--border);
    border-radius: 28px;
    padding: 12px;
    box-shadow: 0 20px 50px rgba(27, 108, 168, 0.06);
}

#vid .video-thumb-card {
    background: var(--white) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(27,108,168,0.02);
}

    #vid .video-thumb-card:hover {
        transform: translateY(-6px);
        border-color: var(--teal) !important;
        box-shadow: 0 12px 30px rgba(27, 108, 168, 0.1);
    }

#vid .st {
    color: var(--teal-dark) !important;
}

    #vid .st em {
        color: var(--teal-light) !important;
    }

#vid .vb h6 {
    color: var(--teal-dark) !important;
    font-weight: 700;
}

#vid .vb p {
    color: var(--mid) !important;
}

.vc {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    text-align: left;
    height: 100%;
}

.vt {
    position: relative;
    height: 185px;
    cursor: pointer;
    overflow: hidden;
}

.vo {
    position: absolute;
    inset: 0;
    background: rgba(27, 108, 168, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s;
}

.pb2 {
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--teal);
    transition: transform .25s;
    box-shadow: 0 6px 20px rgba(27, 108, 168, .15);
}

.vb {
    padding: 16px 18px;
}

/* TESTIMONIOS Y ANÉCDOTAS DE PACIENTES */
#testimonios {
    background: var(--amber-pale);
}

.sw-tes {
    padding-bottom: 52px !important;
    position: relative;
}

.tca {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    height: 100%;
    transition: all .3s;
    border-left: 5px solid var(--teal);
    text-align: left;
    box-shadow: 0 4px 20px rgba(27,108,168,0.02);
}

    .tca:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 40px rgba(27, 108, 168, .08);
    }

.qb {
    font-size: 3.5rem;
    color: var(--teal-light);
    opacity: .4;
    line-height: 1;
    font-family: Georgia, serif;
}

.sts {
    color: #f59e0b;
    letter-spacing: 2px;
}

.tav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--offwhite);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.tnm {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .88rem;
    color: var(--teal-dark);
}

.trl {
    font-size: .75rem;
    color: var(--muted);
}

.ac {
    background: var(--white);
    border-radius: 24px;
    padding: 34px;
    border-left: 5px solid var(--teal-light);
    box-shadow: 0 4px 20px rgba(27,108,168,0.02);
    height: 100%;
    transition: all .3s;
    text-align: left;
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

    .ac:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 40px rgba(27, 108, 168, .06);
    }

.ae {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.ac h5 {
    font-weight: 800;
    color: var(--teal-dark);
    margin-bottom: 10px;
}

.ac p {
    font-size: .89rem;
    color: var(--dark);
    line-height: 1.85;
}

.aa {
    font-size: .79rem;
    color: var(--teal);
    font-style: italic;
    margin-top: 12px;
    font-weight: 500;
}

/* FORMULARIO DE RESERVA DE CITAS */
#cit {
    background: linear-gradient(135deg, var(--teal-dark) 0%, #0d2c45 100%);
}

    #cit .st {
        color: var(--white) !important;
    }

.cb {
    background: var(--white);
    border-radius: 28px;
    padding: 48px;
    box-shadow: 0 24px 70px rgba(11, 30, 45, .2);
}

.fl {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    color: var(--mid);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-align: left;
}

.fc {
    width: 100%;
    background: var(--offwhite);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 12px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
    color: var(--dark);
    transition: all .2s;
    outline: none;
}

    .fc:focus {
        border-color: var(--teal);
        background: var(--white);
        box-shadow: 0 0 0 4px rgba(27, 108, 168, .1);
    }

textarea.fc {
    resize: vertical;
    min-height: 100px;
}

/* UBICACIÓN Y MAPA CLÍNICO */
#con {
    background: var(--offwhite);
    border-top: 1px solid var(--border);
}

.cob {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 6px 24px rgba(27,108,168,0.03);
    text-align: left;
}

.crow {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.cic {
    width: 44px;
    height: 44px;
    background: #e6f2fa;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.crow h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .88rem;
    margin-bottom: 3px;
    color: var(--teal-dark);
}

.crow p {
    font-size: .84rem;
    color: var(--mid);
    margin: 0;
    line-height: 1.6;
}

/* FOOTER */
footer {
    background: #0d2233;
    color: rgba(255, 255, 255, .6);
    padding: 40px 0 32px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

    footer a {
        color: rgba(255, 255, 255, .5);
        text-decoration: none;
        font-size: .86rem;
        transition: color .2s;
    }

        footer a:hover {
            color: var(--white);
        }

/* VENTANAS MODALES EMERGENTES */
.mov {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 75, 115, .4);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

    .mov.show {
        display: flex;
    }

.mbx {
    background: var(--white);
    border-radius: 28px;
    padding: 40px;
    width: 90%;
    max-width: 480px;
    position: relative;
    animation: mi .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    box-shadow: 0 25px 60px rgba(17, 75, 115, 0.2);
}

@keyframes mi {
    from {
        opacity: 0;
        transform: scale(.93) translateY(20px)
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0)
    }
}

.mcl {
    position: absolute;
    top: 16px;
    right: 18px;
    background: var(--offwhite);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .mcl:hover {
        background: var(--border);
        color: var(--teal);
    }

/* COMPONENTES FIJOS (WHATSAPP Y BOTÓN TOP) */
.wa {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 900;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .35);
    transition: transform .25s;
    text-decoration: none;
    animation: wap 2.5s infinite;
}

    .wa:hover {
        transform: scale(1.1);
        color: #fff;
    }

@keyframes wap {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, .3)
    }

    50% {
        box-shadow: 0 8px 40px rgba(37, 211, 102, .5)
    }
}

#btt {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    width: 46px;
    height: 46px;
    background: var(--teal);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    opacity: 0;
    pointer-events: none;
    transition: all .3s;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(27,108,168,0.2);
}

    #btt.show {
        opacity: 1;
        pointer-events: all;
    }

    #btt:hover {
        transform: translateY(-3px);
        background: var(--teal-dark);
        color: #fff;
    }

.flecha-oculta-dinamica {
    display: none !important;
}

/* COMPRESIÓN RESPONSIVE CELULARES */
@media(max-width:768px) {
    section {
        padding: 70px 0;
    }

    .cb {
        padding: 26px 16px;
    }

    #hero {
        min-height: auto;
        padding: 110px 0 80px;
    }

    .orb-container {
        width: 280px;
        height: 280px;
    }

    .or-inner {
        width: 180px;
        height: 180px;
    }

    .or-outer {
        width: 280px;
        height: 280px;
    }

    .orb-center {
        font-size: 4.5rem;
    }

    .sat-pill {
        padding: 6px 12px;
        font-size: 0.72rem;
        border-radius: 10px;
    }

    .sat-top .sat-pill {
        transform: translate(-50%, -50%);
    }

    .sat-bottom .sat-pill {
        transform: translate(-50%, 50%);
    }

    .sat-left .sat-pill {
        transform: translate(-50%, -50%);
    }

    .sat-right .sat-pill {
        transform: translate(50%, -50%);
    }

    .pb {
        gap: 10px;
    }

    .fc1, .fc2 {
        display: none;
    }
}

#hero-fondo-teval {
    background: linear-gradient(to right, rgba(255,255,255,0.95) 5%, rgba(255,255,255,0.1) 60%), url('../images/teval2.png') center/cover no-repeat !important;
}

#carrusel-recepcion {
    background: linear-gradient(to right, rgba(255,255,255,0.95) 5%, rgba(255,255,255,0.1) 60%), url('../images/teval6.jpg') center/cover no-repeat !important;
}

/* ==========================================================================
   ESTILOS: SECCIÓN ATENCIÓN INTEGRAL (FONDO CLARO PREMIUM)
   ========================================================================== */
.atencion-section {
    width: 100%;
    padding: 100px 5%;
    /* 🟢 CAMBIO: Fondo gris médico claro que combina con tu entorno institucional */
    background: var(--offwhite, #f4f8fb);
    position: relative;
    z-index: 5;
    border-bottom: 1px solid var(--border, #d2e4f0);
}

.atencion-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px; /* Separación elegante entre foto y texto */
}

/* Manejo de columnas (50% y 50%) */
.atencion-col-image,
.atencion-col-content {
    flex: 1;
}

/* Contenedor de la foto con esquinas redondeadas y sombra clínica sutil */
.image-wrapper {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    /* 🟢 CAMBIO: Sombra más suave adecuada para fondos claros */
    box-shadow: 0 15px 35px rgba(27, 108, 168, 0.08);
}

.img-doc {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Tipografías coordinadas con tu paleta original de TEVAL */
.atencion-title {
    font-size: 2.5rem;
    font-weight: 700;
    /* 🟢 CAMBIO: Azul profundo corporativo para títulos médicos */
    color: var(--teal-dark, #114b73);
    margin-bottom: 24px;
    line-height: 1.2;
}

.atencion-text {
    font-size: 1.15rem;
    /* 🟢 CAMBIO: Gris oscuro limpio exclusivamente para lectura cómoda */
    color: var(--dark, #1c2e3d);
    line-height: 1.7;
    margin-bottom: 30px;
}

    .atencion-text strong {
        /* 🟢 CAMBIO: Énfasis en el azul rey de tu logotipo */
        color: var(--teal, #1b6ca8);
    }

/* El bloque de la cita destacada con la barra azul a la izquierda */
.atencion-quote {
    /* 🟢 CAMBIO: Barra lateral usando el azul oficial de tu escudo */
    border-left: 4px solid var(--teal, #1b6ca8);
    padding-left: 20px;
    margin-top: 20px;
}

    .atencion-quote p {
        font-size: 1.1rem;
        font-style: italic;
        /* 🟢 CAMBIO: Texto secundario leíble */
        color: var(--mid, #4a657a);
        line-height: 1.6;
    }

/* 📱 RESPONSIVE DESIGN: Perfecto para celulares */
@media (max-width: 968px) {
    .atencion-container {
        flex-direction: column; /* Apila la foto arriba del texto en móviles */
        gap: 40px;
        text-align: center;
    }

    .atencion-section {
        padding: 60px 20px;
    }

    .atencion-title {
        font-size: 2rem;
    }

    .atencion-quote {
        border-left: none;
        border-top: 2px solid var(--teal, #1b6ca8);
        padding-left: 0;
        padding-top: 15px;
    }
}

/* ==========================================================================
   ESTILOS: SECCIÓN NOTAS Y SUGERENCIAS (ACOPLADO)
   ========================================================================== */
.notas-section {
    background: var(--white, #ffffff);
    border-top: 1px solid var(--border, #d2e4f0);
    border-bottom: 1px solid var(--border, #d2e4f0);
}

.notas-subtitle {
    color: var(--mid, #4a657a);
    font-size: .95rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Pestañas (Tabs) */
.ntab {
    background: var(--offwhite, #f4f8fb);
    border: 1px solid var(--border, #d2e4f0);
    color: var(--teal-dark, #114b73);
    padding: 10px 24px;
    border-radius: 50px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

    .ntab.active, .ntab:hover {
        background: var(--teal, #1b6ca8);
        color: var(--white, #ffffff);
        border-color: var(--teal, #1b6ca8);
        box-shadow: 0 4px 15px rgba(27, 108, 168, 0.15);
    }

/* Caja del Formulario */
.sug-form-box {
    background: var(--offwhite, #f4f8fb);
    border: 1px solid var(--border, #d2e4f0);
    border-radius: 20px;
    padding: 30px;
}

    .sug-form-box h5 {
        font-family: 'Syne', sans-serif;
        font-weight: 800;
        color: var(--teal-dark, #114b73);
        margin-bottom: 6px;
    }

.sug-form-desc {
    font-size: .88rem;
    color: var(--mid, #4a657a);
    margin-bottom: 18px;
}

/* Inputs y Textareas */
.sug-input, .sug-textarea {
    width: 100%;
    background: var(--white, #ffffff);
    border: 1px solid var(--border, #d2e4f0);
    border-radius: 12px;
    padding: 12px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
    color: var(--dark, #1c2e3d);
    margin-bottom: 16px;
    outline: none;
    transition: all 0.2s;
}

.sug-textarea {
    min-height: 120px;
    resize: vertical;
}

    .sug-input:focus, .sug-textarea:focus {
        border-color: var(--teal, #1b6ca8);
        box-shadow: 0 0 0 4px rgba(27, 108, 168, .08);
    }

/* Estrellas de Calificación */
.sug-stars-label {
    font-family: 'Syne', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    color: var(--muted, #7892a6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.sug-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.star-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--border, #d2e4f0);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
    padding: 0;
    line-height: 1;
}

    .star-btn:hover, .star-btn.active {
        color: #f59e0b; /* Dorado brillante para las estrellas seleccionadas */
        transform: scale(1.1);
    }

/* Contenedor Derecho del Listado */
.sug-list-header {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    color: var(--teal-dark, #114b73);
    margin-bottom: 14px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sug-badge {
    background: var(--teal, #1b6ca8);
    color: var(--white, #ffffff);
    border-radius: 50px;
    padding: 2px 12px;
    font-size: .75rem;
    font-weight: 700;
}

.sug-list {
    background: var(--white, #ffffff);
    border: 1px solid var(--border, #d2e4f0);
    border-radius: 20px;
    padding: 24px;
    min-height: 360px;
    max-height: 420px;
    overflow-y: auto;
}

/* Estado Vacío (Empty State) */
.sug-empty-state {
    text-align: center;
    padding: 60px 0;
    color: var(--muted, #7892a6);
    font-size: .9rem;
}

.sug-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.6;
}

.modal-historia-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 46, 61, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .modal-historia-overlay.active {
        display: flex;
    }

.modal-historia-content {
    background: var(--white, #ffffff);
    width: 100%;
    max-width: 550px;
    border-radius: 28px;
    padding: 35px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 1px solid var(--border);
}

.modal-historia-cerrar {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--offwhite);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .modal-historia-cerrar:hover {
        background: var(--border);
        color: var(--teal);
    }

.star-btn-modal {
    background: none;
    border: none;
    font-size: 1.7rem;
    color: var(--border);
    cursor: pointer;
    padding: 0 2px;
}

/* ==========================================================================
   ESTILOS ORIGINALES DEL FOOTER DE TEVAL
   ========================================================================== */
.footer-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

    .footer-links a:hover {
        color: #ffffff;
    }

/* Botoncitos de las redes sociales en gris traslúcido */
.social-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

    .social-btn:hover {
        background: var(--teal, #1b6ca8);
        color: #ffffff;
        transform: translateY(-2px);
    }

/* Las 3 barras/botones de acción de la derecha */
.btn-footer-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s, filter 0.2s;
}

    .btn-footer-action:hover {
        transform: scale(1.02);
        filter: brightness(1.1);
        color: #ffffff;
    }

/* ==========================================================================
   SECCIÓN INSPIRACIONAL PREMIUM CON EFECTO PARALLAX CONGELADO
   ========================================================================== */
.seccion-inspiracion-parallax {
    position: relative;
    padding: 120px 0; /* Buen espacio de respiración visual */
    background-image: url('../images/frase.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    /* 🌟 EL TRUCO MÁGICO: Congela la imagen de fondo mientras haces scroll */
    background-attachment: fixed !important;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

/* Capa oscura azul marino que cubre la foto para que las letras blancas se lean perfecto */
.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 75, 115, 0.7), rgba(9, 28, 36, 0.75));
    z-index: 1;
}

.parallax-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.parallax-quote {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    color: #ffffff !important;
    line-height: 1.5;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 24px;
    /* Sombra de alta nitidez anti-borroso */
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6) !important;
    -webkit-font-smoothing: antialiased;
}

.parallax-author {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f59e0b !important; /* Tu dorado/ámbar brillante */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

/* 📱 OPTIMIZACIÓN MÓVIL: Los teléfonos bloquean el "fixed" por rendimiento, aquí lo adaptamos */
@media(max-width: 768px) {
    .seccion-inspiracion-parallax {
        padding: 80px 0;
        background-attachment: scroll !important; /* Scroll normal fluido en celulares */
    }

    .parallax-icon {
        font-size: 2.5rem;
        margin-bottom: 16px;
    }
}

/* ====================================================================== */
/* 🚀 LA COMBINACIÓN PERFECTA: COLOR SUAVE + ELEVACIÓN + LÍNEA EXPANSIVA */
/* ====================================================================== */
.nav-link-custom {
    position: relative;
    color: #1c2e3d; /* Tu color oscuro original */
    padding-bottom: 6px; /* Espacio perfecto para que la línea no toque las letras */
    display: inline-block;
    /* transition: Controla la suavidad del color y del movimiento al mismo tiempo */
    transition: color 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

    /* Creamos la línea base que iniciará invisible en el centro */
    .nav-link-custom::after {
        content: '';
        position: absolute;
        width: 100%;
        transform: scaleX(0); /* Inicia oculta en tamaño cero */
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: var(--teal); /* El color verde azulado de TEVAL */
        transform-origin: bottom center;
        /* transition: Controla la velocidad con la que se expande la línea */
        transition: transform 0.25s ease-out;
    }

    /* EFECTO HOVER: Ocurre todo al mismo tiempo al pasar el mouse */
    .nav-link-custom:hover {
        color: var(--teal) !important; /* El texto cambia a Teal */
        transform: translateY(-2px); /* El texto se eleva sutilmente 2 píxeles */
    }

        .nav-link-custom:hover::after {
            transform: scaleX(1); /* La línea se expande mágicamente a los lados */
        }

/* ==========================================================================
   ESTILOS DE LA CABECERA DE LA TARJETA (.tt) - CLÍNICA TEVAL
   ========================================================================== */

/* Regresamos la cabecera a su comportamiento original */
.tt {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 160px !important; 
    padding: 0 !important;
    overflow: visible !important; /* Para que el borde de la etiqueta no se corte */
}

/* Hacemos la foto de la terapeuta más grande y vistosa */
.contenedor-foto {
    width: 125px !important;   /* De 90px sube a 125px para que luzca excelente */
    height: 125px !important;  
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    z-index: 1 !important;
}

/* Ajuste perfecto de la foto redonda */
.foto-staff {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 4px solid #ffffff !important; /* Borde un poco más grueso para que resalte */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
}

/* Forzamos a la etiqueta (.tbg) a ir abajo a la derecha y con su tamaño pequeño */
/* Forzamos a la etiqueta (.tbg) a ir abajo a la derecha, muy pequeña y fina */
.tbg {
    position: absolute !important;
    bottom: 12px !important;    
    right: 12px !important;     
    background-color: #ffffff !important;
    color: #1e465a !important;   
    font-size: 0.65rem !important; /* <--- Bajamos de 0.75rem a 0.65rem (Letra más pequeña) */
    font-weight: 700 !important;
    padding: 4px 10px !important;  /* <--- Reducimos el espacio interno para que el botón sea más chico */
    border-radius: 20px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    margin: 0 !important;
    z-index: 2 !important;
    width: auto !important;     
    white-space: nowrap !important;
}

/* ==========================================================================
   ANIMACIONES AL PASAR EL MOUSE (HOVER EFFECT)
   ========================================================================== */

/* 1. Preparamos la foto para que se mueva suavemente (Transición) */
.foto-staff {
    transition: transform 0.4s ease, border-color 0.4s ease !important;
}

/* 2. Efecto cuando el usuario pasa el mouse sobre la tarjeta (.tc) o la foto */
.tc:hover .foto-staff {
    transform: scale(1.08) !important;       /* Hace que la foto crezca un 8% sutilmente */
    border-color: #9fcfc4 !important;         /* Cambia el borde blanco a tu color verde menta/azul */
    box-shadow: 0 6px 15px rgba(0,0,0,0.25) !important; /* Aumenta la sombra para dar efecto de flotado */
}

/* 3. Animación extra: Que la etiqueta (.tbg) también reaccione un poco */
.tbg {
    transition: transform 0.3s ease, background-color 0.3s ease !important;
}

.tc:hover .tbg {
    transform: translateY(-2px) !important; /* La etiqueta sube 2 píxeles como si flotara */
    background-color: #1e465a !important;   /* Invierte los colores: fondo azul oscuro */
    color: #ffffff !important;               /* Texto blanco */
}

/* ==========================================================================
   CONTROL DE ALTURAS E IMÁGENES PARA EL CARRUSEL DE VIDEOS (#carruselVideos)
   ========================================================================== */

/* Obliga a Swiper a estirar todas las tarjetas al tamaño de la que tenga más texto */
#carruselVideos .swiper-wrapper {
    display: flex !important;
    align-items: stretch !important;
}

#carruselVideos .swiper-slide {
    height: auto !important;
    display: flex !important;
}

/* Tarjeta contenedora con su marco redondeado original */
.video-thumb-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
    cursor: pointer;
}

/* Configuración de la zona de la miniatura */
.vt {
    position: relative !important;
    height: 160px !important; 
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Filtro oscuro premium sobre la portada para resaltar el botón de play */
.vt::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(30, 70, 90, 0.25) !important;
    transition: background 0.3s ease !important;
    z-index: 1 !important;
}

/* Asegurar que tu estructura de play original flote arriba del filtro */
.vo {
    z-index: 2 !important;
    transition: transform 0.3s ease !important;
}

/* Zona inferior blanca estirable */
.vb {
    padding: 20px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    background: #ffffff !important;
}

.vb h6 {
    color: #1e465a !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
}

/* ==========================================================================
   INTERACCIÓN (HOVER EFFECT)
   ========================================================================== */
.video-thumb-card:hover .vt::before {
    background: rgba(30, 70, 90, 0.4) !important; /* Se oscurece un poco al pasar el mouse */
}

.video-thumb-card:hover .vo {
    transform: scale(1.15) !important; /* Tu botón de play crece sutilmente */
}

