:root {
    --azul-thera: #0d47a1;
    --azul-hover: #0a3980;
    --verde-thera: #4caf50;
    --verde-hover: #3d8b40;
    --texto-oscuro: #2c3e50;
    --texto-mutado: #64748b;
    --blanco: #ffffff;
    --gris-fondo: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    color: var(--texto-oscuro);
    background-color: var(--blanco);
    line-height: 1.6;
}

/* ==========================================================================
   HEADER Y NAVBAR
   ========================================================================== */
header {
    background-color: var(--blanco);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
    object-fit: contain;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--azul-thera);
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--azul-thera);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 10px 14px;
    border-radius: 6px;
    white-space: nowrap;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--blanco);
    background-color: var(--azul-thera);
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 85px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 85px);
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        gap: 20px;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }
}

/* ==========================================================================
   BANNER HERO
   ========================================================================== */
.staff-hero {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background-image: url('../img/nosotros/banner.jpeg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.staff-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.75) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.staff-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: #ffffff;
    padding: 10px;
}

.staff-tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-color: rgba(41, 221, 71, 0.616);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
    font-weight: 600;
}

.staff-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.staff-hero-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: 10px;
}

.bloque-kids {
    padding: 70px 0;
    background-color: #ffffff;
}

.bloque-kids.fondo-kids-alterno {
    background-color: #fafbfc;
}

.container-kids {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.fila-kids {
    display: flex;
    flex-direction: column;
    gap: 35px;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
}

.fila-kids.aparecer {
    opacity: 1;
    transform: translateY(0);
}

.col-img-kids {
    width: 100%;
    height: 380px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.col-img-kids img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center center;
}

.col-txt-kids {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.categoria-kids {
    color: #2e7d32;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.col-txt-kids h2 {
    color: #0d47a1;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.col-txt-kids p {
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.cuadro-sesiones {
    background: #f8fafc;
    border-left: 4px solid #0d47a1;
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 25px;
}

.cuadro-sesiones h4, .detalles-abordaje h4 {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.cuadro-sesiones ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cuadro-sesiones ul li {
    font-size: 0.92rem;
    color: #475569;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cuadro-sesiones ul li i {
    color: #0d47a1;
}

.sub-protocolo {
    font-size: 0.9rem;
    color: #0d47a1;
    margin-top: 15px;
    font-weight: 600;
}

.nota-sesiones {
    margin-bottom: 0 !important;
    margin-top: 5px;
    color: #64748b !important;
}

.tags-contenedor {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.tag-clinico {
    background: #edf2f7;
    color: #2d3748;
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 30px;
    font-weight: 500;
}

.btn-kids {
    align-self: flex-start;
    background-color: #2e7d32;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
    transition: all 0.3s ease;
}

.btn-kids:hover {
    background-color: #1b5e20;
    transform: translateY(-2px);
}

.cabecera-kids-grupos {
    text-align: center;
    margin-bottom: 50px;
}
.imagen-separador-programa {
    width: 100% !important;
    flex: 0 0 100% !important;
    height: 140px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}
.imagen-separador-programa img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
@media screen and (min-width: 900px) {
    .cuerpo-programa {
        display: flex;
        flex-wrap: wrap;
    }

    .imagen-separador-programa {
        height: 180px;
        margin-bottom: 25px;
    }

    .bloque-p-detalles {
        width: 58% !important;
    }
    
    .bloque-p-docente {
        width: 38% !important;
    }
}
.cabecera-kids-grupos h2 {
    color: #0d47a1;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cabecera-kids-grupos p {
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

.fila-kids-programa {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 35px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.info-programa-cabecera {
    background: #0d47a1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-programa-cabecera h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.badge-edad {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    align-self: flex-start;
}

.cuerpo-programa {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.lista-actividades {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.lista-actividades li {
    font-size: 0.92rem;
    color: #475569;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.lista-actividades li i {
    color: #2e7d32;
    margin-top: 3px;
}

.tarjeta-docente {
    background: #f8fafc;
    padding: 18px;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
    margin-bottom: 20px;
}

.tarjeta-docente h5 {
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.nombre-docente {
    color: #0d47a1;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px !important;
}

.perfil-docente {
    font-size: 0.85rem !important;
    color: #64748b !important;
    margin-bottom: 0 !important;
    line-height: 1.4;
}

.btn-kids-programa {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #2e7d32;
    color: #ffffff;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.3s;
}

.btn-kids-programa:hover {
    background: #1b5e20;
}

@media screen and (min-width: 900px) {
    .fila-kids {
        flex-direction: row;
        gap: 60px;
    }

    .col-img-kids, .col-txt-kids {
        width: 50%;
    }

    .col-img-kids {
        max-height: 440px;
    }

    .bloque-kids:nth-of-type(even) .fila-kids {
        flex-direction: row-reverse;
    }

    .cuerpo-programa {
        flex-direction: row;
    }

    .bloque-p-detalles {
        width: 60%;
        border-right: 1px solid #e2e8f0;
        padding-right: 30px;
    }

    .bloque-p-docente {
        width: 40%;
        padding-left: 5px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .tarjeta-docente {
        margin-bottom: 0;
    }
    
    .info-programa-cabecera {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px 30px;
    }
    
    .badge-edad {
        align-self: auto;
    }
}

@media screen and (min-width: 768px) {
    .tf-hero h1 { font-size: 3.2rem; }
    .tf-grid-3-columnas { flex-direction: row; flex-wrap: wrap; }
    .tf-tarjeta-especialidad { flex: 1 1 calc(33.333% - 20px); }
    
    .tf-grid-2-columnas { flex-direction: row; flex-wrap: wrap; }
    .tf-tarjeta-horizontal { flex: 1 1 calc(50% - 20px); }

    /* Procedimientos con imágenes al lado de forma alternada */
    .tf-procedimiento-row { flex-direction: row; align-items: center; justify-content: space-between; }
    .tf-proced-text, .tf-proced-img { flex: 1; }
    .tf-procedimiento-row:nth-child(even) { flex-direction: row-reverse; }
    .prog-detalles-grid { display: flex; gap: 30px; }
    .prog-detalles-grid > div { flex: 1; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-section {
    background-color: #092c63; 
    color: #e2e8f0;
    padding: 70px 0 0 0;
    border-top: 5px solid #4caf50;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 50px 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1.2fr;
    gap: 40px;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background-color: #4caf50;
    border-radius: 2px;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 20px 0;
}

.footer-logo {
    max-height: 65px;
    width: auto;
    background: #ffffff; 
    padding: 5px 10px;
    border-radius: 6px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background-color: #4caf50;
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 10px;
    color: #4caf50;
    transition: transform 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-links a:hover i {
    transform: translateX(4px);
}

.footer-info {
    list-style: none;
}

.footer-info li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 14px;
    color: #cbd5e1;
}

.footer-info li i {
    color: #4caf50;
    font-size: 16px;
    margin-top: 3px;
    width: 20px;
    text-align: center;
}

.footer-info a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-info a:hover {
    color: #ffffff;
}

.footer-bottom {
    background-color: #061f47;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: #94a3b8;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Responsividad Footer */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
    }
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-socials { justify-content: center; }
    .footer-info li { justify-content: center; text-align: center; }
    .footer-bottom-container { flex-direction: column; text-align: center; gap: 10px; }
}

/* ==========================================================================
   WHATSAPP FLOTANTE
   ========================================================================== */
.wsp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.wsp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

@media (max-width: 576px) {
    .wsp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}