/* ==============================
   RESET Y ESTILOS GENERALES
   ============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background-color: #e63946;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #d32f3c;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: #1a365d;
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e63946;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

/* ==============================
   HEADER
   ============================== */
.main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

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

.logo img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a365d;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.nav-menu a:hover {
    color: #e63946;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e63946;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-dropdown {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
    list-style: none;
    padding: 10px 0;
    border-radius: 5px;
}

.menu-dropdown:hover .submenu {
    display: block;
}

.submenu li {
    padding: 0;
}

.submenu a {
    display: block;
    padding: 10px 20px;
    white-space: nowrap;
}

.submenu-dropdown {
    position: relative;
}

.subsubmenu {
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
}

.submenu-dropdown:hover .subsubmenu {
    display: block;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* ==============================
   HERO SECTION CON VIDEO (MÁS PEQUEÑO)
   ============================== */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    margin-top: 90px;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.4)
    );
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero .btn {
    font-size: 1.1rem;
    padding: 12px 30px;
}

/* ==============================
   SOBRE NOSOTROS (NUEVO DISEÑO CON 3 COLUMNAS)
   ============================== */
.about-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: justify;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    
    border-top: 4px solid #e63946;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.about-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e63946, #ff6b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.about-card:hover .about-icon {
    transform: scale(1.1) rotate(5deg);
}

.about-card h3 {
    color: #1a365d;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.about-card p {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
    flex-grow: 1;
}

/* ==============================
   RESPONSIVE SOBRE NOSOTROS
   ============================== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .about-card {
        padding: 35px 25px;
    }
    
    .about-card h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-card {
        padding: 30px 20px;
    }
    
    .about-card h3 {
        font-size: 1.5rem;
    }
    
    .about-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .about-card h3 {
        font-size: 1.4rem;
    }
    
    .about-card p {
        font-size: 1rem;
    }
}
/* ==============================
   PROGRAMAS ACADÉMICOS
   ============================== */
.programs-section {
    padding: 80px 0;
    background-color: white;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.program-icon {
    font-size: 3rem;
    color: #e63946;
    margin-bottom: 20px;
}

.program-card h3 {
    color: #1a365d;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.program-card p {
    color: #666;
}

/* ==============================
   CARRUSEL DE INSTALACIONES (MÁS PEQUEÑO)
   ============================== */
.carousel-section {
    padding: 0px 0;
    background-color: #f8f9fa;
    position: relative;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.carousel {
    display: flex;
    transition: transform 0.8s ease;
    height: 450px;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.slide-image {
    height: 70%;
    position: relative;
    overflow: hidden;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.carousel-slide.active .slide-img {
    transform: scale(1.03);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.6));
}

.slide-content {
    height: 30%;
    background: white;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide-title {
    color: #1a365d;
    font-size: 1.6rem;
    margin: 0;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s ease 0.3s;
    font-weight: 600;
}

.carousel-slide.active .slide-title {
    opacity: 1;
    transform: translateY(0);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #1a365d;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    color: #e63946;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.btn-icon {
    display: block;
    line-height: 1;
    font-weight: bold;
}

.carousel-indicators {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: white;
    transform: scale(1.1);
}

.slide-counter {
    position: absolute;
    bottom: 70px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
}

.current-slide {
    color: #e63946;
    font-size: 1.1rem;
}

/* ==============================
   NOTICIAS Y EVENTOS
   ============================== */
.news-section {
    padding: 80px 0;
    background-color: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #e63946;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-date {
    background: #e63946;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.news-date .day {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.news-date .month {
    font-size: 0.9rem;
}

.news-card h3 {
    color: #1a365d;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.news-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ==============================
   FOOTER (HORIZONTAL Y FONDO NEGRO)
   ============================== */
.main-footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.footer-logo-text {
    font-size: 1.1rem;
    color: white;
    font-weight: 600;
    max-width: 250px;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-around;
}

.footer-column {
    flex: 1;
    margin: 0 20px;
}

.footer-column h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e63946;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #e63946;
}

.footer-column i {
    margin-right: 10px;
    color: #e63946;
    width: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: #999;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #e63946;
    transform: translateY(-3px);
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 992px) {
    /* Header */
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .menu-dropdown:hover .submenu {
        display: none;
    }
    
    .submenu, .subsubmenu {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 20px;
    }
    
    .submenu.active, .subsubmenu.active {
        display: block;
    }
    
    /* Hero */
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    /* Sobre Nosotros */
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        width: 100%;
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-column {
        margin: 0;
    }
}

@media (max-width: 768px) {
    /* Hero */
    .hero {
        height: 50vh;
        min-height: 350px;
        margin-top: 80px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Secciones */
    .section-title h2 {
        font-size: 2rem;
    }
    
    .programs-grid,
    .news-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Carrusel */
    .carousel {
        height: 350px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    /* Footer */
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Hero */
    .hero {
        height: 45vh;
        min-height: 300px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .btn {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    /* Sobre Nosotros */
    .about-image img {
        height: 250px;
    }
    
    /* Carrusel */
    .carousel {
        height: 300px;
    }
    
    .slide-title {
        font-size: 1.4rem;
    }
    
    .slide-counter {
        bottom: 60px;
        right: 15px;
        font-size: 0.8rem;
        padding: 5px 12px;
    }
}

/* ==============================
   SECCIÓN CONTÁCTANOS (REDISEÑADA)
   ============================== */
.contact-section {
    padding: 56px 0;
    background-color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch; /* Asegura misma altura */
}

.contact-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 7px 21px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    height: 100%; /* Toma toda la altura disponible */
}

/* HEADER COMPARTIDO */
.contact-header {
    background: linear-gradient(135deg, #1a365d, #2d4a7c);
    color: white;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-shrink: 0; /* Evita que se encoja */
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
    flex-shrink: 0;
}

.contact-header-text {
    flex: 1;
}

.contact-header h3 {
    font-size: 1.4rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.main-phone {
    font-size: 1.1rem;
    color: #ffd700; /* Amarillo como en tu imagen */
    font-weight: 600;
    margin: 0;
    background: rgba(255, 215, 0, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

.address-header {
    font-size: 0.9rem;
    color: #fff;
    margin: 5px 0 0 0;
    line-height: 1.4;
    opacity: 0.9;
}

/* CUERPO DE CONTENIDO */
.contact-body {
    padding: 20px;
    flex: 1; /* Toma el espacio restante */
    display: flex;
    flex-direction: column;
}

/* EXTENSIONES MÁS COMPACTAS */
.extensions h4 {
    color: #1a365d;
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e63946;
    font-weight: 600;
}

.extensions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.extension-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    background: white;
    border-radius: 5px;
    border-left: 3px solid #1a365d;
    transition: all 0.2s ease;
}

.extension-item:hover {
    transform: translateX(3px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.ext-number {
    display: inline-block;
    min-width: 40px;
    background: #e63946;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 700;
    margin-right: 10px;
    text-align: center;
    font-size: 0.85rem;
}

.ext-text {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.3;
}

/* MAPA */
.map-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.map-wrapper {
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    border: 2px solid #eaeaea;
    flex: 1; /* Toma todo el espacio vertical disponible */
    display: flex;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%; /* Ahora ocupa el 100% del contenedor */
    min-height: 200px;
}

/* LÍNEA AMARILLA DE REFERENCIA */
.contact-card::after {
    content: '';
    position: absolute;
    right: -15px; /* Ajusta según necesites */
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 80%;
    background-color: #ffd700;
    display: none; /* Oculta por defecto, activa para debug */
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        max-width: 700px;
        gap: 25px;
    }
    
    .contact-header {
        padding: 18px;
    }
    
    .contact-body {
        padding: 18px;
    }
    
    .extensions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 42px 0;
    }
    
    .contact-header h3 {
        font-size: 1.3rem;
    }
    
    .main-phone {
        font-size: 1rem;
    }
    
    .address-header {
        font-size: 0.85rem;
    }
    
    .extensions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .map-wrapper iframe {
        min-height: 180px;
    }
}

@media (max-width: 576px) {
    .contact-content {
        gap: 20px;
    }
    
    .contact-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 15px;
    }
    
    .contact-body {
        padding: 15px;
    }
    
    .extensions-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .map-wrapper iframe {
        min-height: 160px;
    }
}

@media (max-width: 400px) {
    .contact-section .section-title h2 {
        font-size: 1.5rem;
    }
    
    .contact-header h3 {
        font-size: 1.2rem;
    }
    
    .ext-number {
        min-width: 35px;
        font-size: 0.8rem;
    }
    
    .ext-text {
        font-size: 0.75rem;
    }
}





/*******PAGINA DE REGLAMENTOSSSSSSSSSSSSSSSSSsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssSSSSSSS****/

/* ===== RESET Y ESTILOS GENERALES ===== */
/* ===== RESET Y ESTILOS GENERALES ===== */
/* ===== RESET Y ESTILOS GENERALES ===== */
/* ===== RESET ===== */
/* ===== RESET ===== */

/* Reset y estilos base */

/* ==============================
   SECCIÓN DE REGLAMENTOS
   ============================== */

/* ==============================
   SECCIÓN DE REGLAMENTOS SIMPLIFICADA
   ============================== */

/* Contenedor principal */
/* ==============================
   SECCIÓN DE REGLAMENTOS SIMPLIFICADA
   ============================== */

/* ==============================
   SECCIÓN DE REGLAMENTOS SIMPLIFICADA
   ============================== */

/* Contenedor principal */
.title-section {
    margin-top: 100px;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #1a365d 0%, #2d4a7c 100%);
    color: white;
}

.title-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.title-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Selector de reglamentos simplificado */
.selector {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.reglamento-btn {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.reglamento-btn:hover {
    border-color: #cbd5e0;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.reglamento-btn.active {
    border-color: #e63946;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}

.reglamento-btn i {
    font-size: 3rem;
    color: #e63946;
}

.reglamento-btn span {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a365d;
}

/* ==============================
   VISOR DE PDF REDUCIDO 40%
   ============================== */

/* Contenedor del visor reducido */
.pdf-container {
    width: 100%;
    max-width: 900px; /* Reducido de 1200px */
    margin: 0 auto 40px;
    padding: 0 20px;
}

/* Visor de PDF simplificado - Vacío inicialmente */
.pdf-viewer {
    position: relative;
    width: 100%;
    height: 420px; /* Reducido 40% de 700px */
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border: 2px solid #e2e8f0;
    display: none; /* Oculto inicialmente */
}

.pdf-viewer.active {
    display: block; /* Mostrar cuando haya PDF seleccionado */
}

.pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Mensaje inicial - visible cuando no hay PDF seleccionado */
.pdf-empty {
    width: 100%;
    height: 420px; /* Reducido 40% de 700px */
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    border: 2px dashed #cbd5e0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    margin: 0 auto 40px;
    max-width: 900px;
}

.pdf-empty i {
    font-size: 4rem; /* Reducido de 5rem */
    color: #e2e8f0;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.selector:hover ~ .pdf-empty i {
    color: #e63946;
    transform: scale(1.05);
}

.pdf-empty h3 {
    color: #4a5568;
    font-size: 1.5rem; /* Reducido de 1.8rem */
    margin-bottom: 12px;
    font-weight: 600;
}

.pdf-empty p {
    color: #718096;
    font-size: 1rem; /* Reducido de 1.1rem */
    max-width: 450px; /* Reducido de 500px */
    line-height: 1.5;
}

/* Loading */
.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.spinner {
    width: 50px; /* Reducido de 60px */
    height: 50px; /* Reducido de 60px */
    border: 4px solid #e2e8f0;
    border-top: 4px solid #e63946;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #1a365d;
    font-weight: 600;
    font-size: 1rem; /* Reducido de 1.1rem */
}

/* Error del PDF */
.pdf-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    z-index: 20;
}

.pdf-fallback i {
    font-size: 3.5rem; /* Reducido de 4rem */
    color: #e63946;
    margin-bottom: 15px;
}

.pdf-fallback h3 {
    color: #1a365d;
    margin-bottom: 12px;
    font-size: 1.3rem; /* Reducido de 1.5rem */
}

.pdf-fallback p {
    color: #4a5568;
    margin-bottom: 20px;
    max-width: 350px; /* Reducido de 400px */
}

/* Botón de control simplificado */
.control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px; /* Reducido de 12px 25px */
    background: #e63946;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem; /* Reducido de 0.95rem */
    transition: all 0.3s ease;
    margin-top: 12px;
}

.control-btn:hover {
    background: #d32f3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

/* Indicador de PDF cargado */
.pdf-loaded-indicator {
    position: absolute;
    top: 15px; /* Reducido de 20px */
    right: 15px; /* Reducido de 20px */
    background: #38a169;
    color: white;
    padding: 6px 12px; /* Reducido de 8px 15px */
    border-radius: 15px;
    font-size: 0.85rem; /* Reducido de 0.9rem */
    font-weight: 600;
    z-index: 30;
    display: none;
}

.pdf-loaded-indicator i {
    margin-right: 4px;
    font-size: 0.8rem;
}

/* ==============================
   RESPONSIVE PARA REGLAMENTOS
   ============================== */

@media (max-width: 992px) {
    .title-section {
        margin-top: 80px;
    }
    
    .selector {
        flex-direction: column;
        align-items: center;
        padding: 30px 20px; /* Reducido de 40px 20px */
    }
    
    .reglamento-btn {
        width: 100%;
        max-width: 450px; /* Reducido de 500px */
    }
    
    .pdf-viewer,
    .pdf-empty {
        height: 360px; /* Reducido proporcionalmente */
    }
    
    .pdf-container {
        max-width: 700px; /* Reducido proporcionalmente */
    }
}

@media (max-width: 768px) {
    .title-section h2 {
        font-size: 2rem;
    }
    
    .reglamento-btn {
        padding: 20px;
    }
    
    .reglamento-btn i {
        font-size: 2.5rem;
    }
    
    .reglamento-btn span {
        font-size: 1.2rem;
    }
    
    .pdf-viewer,
    .pdf-empty {
        height: 320px; /* Reducido proporcionalmente */
    }
    
    .pdf-empty i {
        font-size: 3rem; /* Reducido proporcionalmente */
    }
    
    .pdf-empty h3 {
        font-size: 1.3rem; /* Reducido proporcionalmente */
    }
    
    .pdf-container {
        max-width: 600px; /* Reducido proporcionalmente */
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .title-section {
        padding: 30px 15px;
    }
    
    .title-section h2 {
        font-size: 1.8rem;
    }
    
    .pdf-viewer,
    .pdf-empty {
        height: 280px; /* Reducido proporcionalmente */
    }
    
    .reglamento-btn {
        min-width: 100%;
        padding: 18px;
    }
    
    .pdf-empty i {
        font-size: 2.5rem; /* Reducido proporcionalmente */
    }
    
    .pdf-empty h3 {
        font-size: 1.2rem; /* Reducido proporcionalmente */
    }
    
    .pdf-empty p {
        font-size: 0.95rem; /* Reducido proporcionalmente */
        padding: 0 15px;
    }
    
    .pdf-container {
        padding: 0 10px;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 360px) {
    .pdf-viewer,
    .pdf-empty {
        height: 250px; /* Aún más pequeño */
    }
    
    .reglamento-btn i {
        font-size: 2rem;
    }
    
    .reglamento-btn span {
        font-size: 1.1rem;
    }
    
    .title-section h2 {
        font-size: 1.6rem;
    }
}
/*PREPARATORIA*/
/* ===== Oferta Educativa - estilos compartidos ===== */
.section-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 380px;
  background: #fff;
  
}
.section-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 60%, #fff 100%);
  pointer-events: none;
}
.section-hero h1 {
  position: relative;
  z-index: 2;
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  background: rgba(0,0,0,0.55);
  padding: 1rem 2.5rem;
  border-radius: 6px;
  letter-spacing: 2px;
  text-align: center;
}
.section-side {
  background: #fff;
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  border-left: 6px solid #8B0000;
}
.section-side h2 {
  color: #8B0000;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #8B0000;
  padding-bottom: 0.6rem;
}
.side-btn {
  display: block;
  padding: 1.1rem 1.5rem;
  background: #e8c5c5;
  color: #2a0a0a;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  border-radius: 6px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border: 1px solid transparent;
}
.side-btn:hover {
  background: #8B0000;
  color: #fff;
  transform: translateX(-4px);
  box-shadow: 0 6px 18px rgba(139,0,0,0.35);
}
.back-btn { background: #d9b8b8; }

@media (max-width: 900px) {
  .section-page { grid-template-columns: 1fr; }
  .section-hero { min-height: 50vh; }
  .section-hero h1 { font-size: 2.4rem; padding: 0.8rem 1.5rem; }
  .section-side { padding: 2rem 1.2rem; border-left: none; border-top: 6px solid #8B0000; }
}

/* ===== Mapa Curricular ===== */
.curri-page {
  display: grid;
  grid-template-columns: 1fr 320px;
  min-height: 100vh;
  background: #faf4f4;
}
.curri-main { padding: 2.5rem 2rem; }
.curri-main h1 {
  color: #8B0000;
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  text-align: center;
}
.curri-intro {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: justify;
  color: #333;
  line-height: 1.6;
}
.curri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.cuatri {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.cuatri-head {
  background: #a08f7a;
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: 700;
}
.cuatri ul { list-style: none; padding: 0.6rem; margin: 0; }
.cuatri li {
  padding: 0.55rem 0.8rem;
  margin-bottom: 0.35rem;
  border-radius: 4px;
  font-size: 0.92rem;
}
.area-general  { background: #fff4c2; }
.area-basica   { background: #f9c8de; }
.area-terminal { background: #b6e3b6; }
.area-actual   { background: #b8dff5; }

.curri-side {
  background: #fff;
  padding: 2rem 1.2rem;
  border-left: 6px solid #8B0000;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.curri-side h2 {
  color: #8B0000;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #8B0000;
  padding-bottom: 0.5rem;
}
.curri-side a { font-size: 0.92rem; padding: 0.85rem 1rem; }
.placeholder-note {
  background: #fff8e1;
  border: 1px dashed #c2a542;
  color: #6b5400;
  padding: 1rem 1.2rem;
  border-radius: 6px;
  margin: 1.5rem auto;
  max-width: 760px;
  font-size: 0.95rem;
}
@media (max-width: 900px) {
  .curri-page { grid-template-columns: 1fr; }
  .curri-side { border-left: none; border-top: 6px solid #8B0000; }
}

/* Idiomas */
.idiomas-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.idiomas-wrap h1 { color: #8B0000; text-align: center; margin-bottom: 1rem; }
.video-frame {
  width: 100%;
  aspect-ratio: 16/9;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.top-bar {
  background: #8B0000; padding: 0.9rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.top-bar a { color: #fff; text-decoration: none; font-weight: 600; }
.top-bar a:hover { text-decoration: underline; }
/* FIN PREPRATORIA*/