: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);
}

/* Responsividad Menú */
@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;
    }
}

/* ==========================================================================
   HERO SECTION Y HORARIOS 
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 85px);
    display: flex;
    align-items: center;
    background-image: url('../img/inicio/banner1.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section::before {
    content: '';
    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;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 50px;
    align-items: center;
}

.hero-content {
    color: var(--blanco);
}

.hero-subtitle {
    display: inline-block;
    background-color: var(--verde-thera);
    color: var(--blanco);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    max-width: 620px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-main {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-azul {
    background-color: var(--azul-thera);
    color: var(--blanco);
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.4);
}

.btn-azul:hover {
    background-color: var(--azul-hover);
    transform: translateY(-2px);
}

.btn-verde {
    background-color: var(--verde-thera);
    color: var(--blanco);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn-verde:hover {
    background-color: var(--verde-hover);
    transform: translateY(-2px);
}

.horario-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border-top: 6px solid var(--verde-thera);
    text-align: center;
    width: 100%;
}

.horario-card h3 {
    color: var(--azul-thera);
    font-size: 20px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.horario-row {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.horario-row:last-of-type {
    border-bottom: none;
    margin-bottom: 5px;
}

.horario-row span {
    display: block;
    font-size: 12px;
    color: var(--texto-mutado);
    text-transform: uppercase;
    font-weight: bold;
}

.horario-row strong {
    font-size: 18px;
    color: var(--texto-oscuro);
}

.telefonos-box {
    background-color: var(--gris-fondo);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.telefonos-box p {
    font-size: 12px;
    font-weight: bold;
    color: var(--azul-thera);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.telefonos-box a {
    display: block;
    color: var(--texto-oscuro);
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    margin: 4px 0;
    transition: color 0.2s;
}

.telefonos-box a:hover {
    color: var(--verde-thera);
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { margin: 0 auto 35px auto; }
    .hero-buttons { justify-content: center; }
    .horario-card { max-width: 450px; margin: 0 auto; }
}
@media (max-width: 576px) {
    .hero-content h1 { font-size: 1.8rem; }
    .btn-main { width: 100%; }
}

.bienvenida-section {
    padding: 80px 20px;
    background-color: var(--gris-fondo);
    text-align: center;
}

.container-mini {
    max-width: 1000px;
    margin: 0 auto;
}

.bienvenida-section h2 {
    font-size: 2.2rem;
    color: var(--azul-thera);
    margin-bottom: 15px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--texto-mutado);
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    background-color: var(--blanco);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s;
    width: 100%;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 40px;
    color: var(--verde-thera);
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 18px;
    color: var(--azul-thera);
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 14px;
    color: var(--texto-mutado);
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 450px;
        margin: 0 auto;
    }
}
@media (max-width: 576px) {
    .bienvenida-section { padding: 50px 15px; }
    .bienvenida-section h2 { font-size: 1.7rem; }
}

.stats-bar {
    background-color: var(--azul-thera);
    color: var(--blanco) !important;
    padding: 50px 20px;
    width: 100%;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.stat-item {
    flex: 1;
    min-width: 200px;
}

.stat-item strong.stat-number {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    color: var(--verde-thera) !important;
    line-height: 1 !important;
    margin-bottom: 10px;
}

.stat-item strong.stat-number .counter {
    font-size: 3rem !important;
    font-weight: 700 !important;
    color: var(--verde-thera) !important;
    display: inline-block !important;
    line-height: 1 !important;
}

.stat-item span {
    display: block;
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: var(--blanco) !important;
}

@media (max-width: 992px) {
    .stats-container { 
        display: flex !important;
        flex-direction: column !important; 
        align-items: center !important;
        gap: 40px !important; 
    }
    
    .stat-item strong.stat-number,
    .stat-item strong.stat-number .counter { 
        font-size: 2.6rem !important;
    }
}

/* ==========================================================================
   AVISOS
   ========================================================================== */
@media (max-width: 768px) {
    .pizarra-header h2 {
        font-size: 1.8rem;
    }
    .pizarra-header .section-desc {
        font-size: 1rem;
        padding: 0 15px;
    }
}
   .pizarra-section {
    padding: 80px 0;
    background-color: var(--gris-fondo);
    width: 100%;
    overflow: hidden;
}

.container-pizarra {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pizarra-header {
    text-align: center;
    margin-bottom: 50px;
}
.pizarra-header h2 {
    font-size: 2.2rem;
    color: var(--azul-thera);
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.pizarra-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin:-0 auto;
}
.pizarra-header .section-desc {
    font-size: 1.1rem;
    color: var(--texto-mutado);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.pizarra-window {
    width: 100%;
    max-width: 580px; 
    overflow: visible;
}

.pizarra-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.aviso-slide {
    flex: 0 0 100%;
    max-width: 100%;
    background: var(--blanco);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.06);
    box-sizing: border-box;
    transition: transform 0.45s ease, opacity 0.45s ease;
    opacity: 0.35;
    transform: scale(0.88);
    pointer-events: none;
}

.aviso-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.aviso-title {
    font-size: 20px;
    color: var(--azul-thera);
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.aviso-flyer-box {
    width: 100%;
    height: 360px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.aviso-flyer-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #fafafa;
}

.aviso-info-box {
    margin-top: 15px;
    text-align: left;
}

.aviso-meta {
    display: block;
    font-size: 13px;
    color: var(--texto-mutado);
    margin-bottom: 5px;
}

.aviso-desc {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.btn-pizarra-nav {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background-color: var(--blanco);
    border: none;
    border-radius: 50%;
    color: var(--azul-thera);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    z-index: 10;
    transition: all 0.3s ease;
}

.btn-pizarra-nav:hover {
    background-color: var(--verde-thera);
    color: var(--blanco);
}

.btn-pizarra-nav.prev { left: calc(50% - 340px); }
.btn-pizarra-nav.next { right: calc(50% - 340px); }

.flyer-lightbox { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.85); justify-content: center; align-items: center; padding: 20px;}
.lightbox-content { max-width: 90%; max-height: 85vh; object-fit: contain; border-radius: 8px; animation: zoomEffect 0.3s ease; }
@keyframes zoomEffect { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: var(--blanco); font-size: 40px; font-weight: bold; cursor: pointer; }

/* ==========================================================================
   ADAPTACIÓN RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .pizarra-section {
        padding: 50px 0;
    }

    .pizarra-window {
        max-width: 290px; 
    }

    .aviso-slide {
        padding: 15px;
    }

    .aviso-title {
        font-size: 16px;
    }

    .aviso-flyer-box {
        height: 260px;
    }

    .btn-pizarra-nav.prev { left: 10px; top: 35%; }
    .btn-pizarra-nav.next { right: 10px; top: 35%; }
    
    .btn-pizarra-nav {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}
/* ==========================================================================
   CONVENIOS
   ========================================================================== */
.convenios-section {
    padding: 80px 20px;
    background-color: var(--blanco);
    text-align: center;
    width: 100%;
}

.container-convenios {
    max-width: 1000px;
    margin: 0 auto;
}

.convenios-slider {
    position: relative;
    margin-bottom: 40px;
    min-height: 380px;
}

.convenio-slide {
    display: none;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
    background: var(--gris-fondo);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.convenio-slide.active {
    display: grid;
    opacity: 1;
}

.convenio-img {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.convenio-img img {
    width: 100%;
    height: 100%;
    object-fit: auto;
}

.convenio-info h3 {
    font-size: 50px;
    color: var(--verde-hover);
    margin-bottom: 15px;
}

.convenio-info p {
    font-size: 15px;
    color: var(--texto-mutado);
    line-height: 1.6;
}

.logos-convenios-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.logo-nav-item {
    width: 110px;
    height: 80px;
    padding: 10px;
    background: var(--gris-fondo);
    border: 2px solid transparent;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.logo-nav-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-nav-item:hover,
.logo-nav-item.active {
    filter: grayscale(0%);
    opacity: 1;
    background: var(--blanco);
    border-color: var(--verde-thera);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.15);
}

@media (max-width: 768px) {
    .convenios-slider {
        min-height: auto;
    }

    .convenio-slide.active {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .convenio-img {
        height: 200px;
    }

    .convenio-info {
        text-align: center;
    }

    .convenio-info h3 {
        font-size: 20px;
    }

    .logos-convenios-nav {
        gap: 15px;
    }

    .logo-nav-item {
        width: 85px;
        height: 65px;
    }
}

.convenias-header {
    text-align: center;
    margin-bottom: 50px;
}

.convenias-header h2 {
    font-size: 2.2rem;
    color: var(--azul-thera);
    margin-bottom: 15px;
    font-weight: 700;
}

.convenias-header .section-desc {
    font-size: 1.1rem;
    color: var(--texto-mutado);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 576px) {
    .convenias-header h2 {
        font-size: 1.8rem;
    }
    .convenias-header .section-desc {
        font-size: 1rem;
        padding: 0 10px;
    }
}
/* ==========================================================================
   UBICACIÓN Y MAPA
   ========================================================================== */
.ubicacion-section {
    padding: 60px 20px;
    background-color: var(--blanco);
}

.container-mapa {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.ubicacion-texto {
    flex: 1;
}

.ubicacion-texto h2 {
    font-size: 2rem;
    color: var(--azul-thera);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ubicacion-texto i {
    color: var(--verde-thera);
}

.direccion-detalle {
    margin: 20px 0 30px 0;
    padding: 15px;
    background-color: var(--gris-fondo);
    border-left: 4px solid var(--verde-thera);
    border-radius: 4px;
    font-size: 15px;
    text-align: left;
}

.mapa-wrapper {
    flex: 1;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.mapa-wrapper iframe {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .container-mapa {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    .mapa-wrapper {
        width: 100%;
        height: 350px;
    }
}
@media (max-width: 576px) {
    .ubicacion-section { padding: 40px 15px; }
    .ubicacion-texto h2 { font-size: 1.6rem; justify-content: center; }
    .ubicacion-texto p { text-align: center; }
    .ubicacion-texto .btn-main { width: 100%; }
}

/* ==========================================================================
   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;
}

@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;
    }
}
.stat-item strong {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--verde-thera);
    line-height: 1;
    margin-bottom: 8px;
}