/* Estilos Compartidos */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-overlay h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    padding: 0 20px;
    z-index: 1;
}

.hero-overlay p {
    font-size: 1.2rem;
    color: #fff;
    padding: 0 20px;
    margin-top: 10px;
    z-index: 1;
}

.intro-section {
    margin-bottom: 40px;
    text-align: center;
}

.intro-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    padding: 0 15px;
}

.modelo-educativo-section,
.vida-estudiantil-section,
.programas-academicos-section,
.compromiso-section {
    margin-bottom: 40px;
    text-align: center;
}

.modelo-educativo-section h2,
.vida-estudiantil-section h2,
.programas-academicos-section h2,
.compromiso-section h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.modelo-educativo-section p,
.vida-estudiantil-section p,
.programas-academicos-section p,
.compromiso-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    padding: 0 15px;
    margin-bottom: 20px;
}

.cta-section {
    text-align: center;
    padding: 2rem 0;
}

.cta-section h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    padding: 0 15px;
    margin-bottom: 20px;
}

.btn-cta {
    display: inline-block;
    padding: 12px 30px;
    background-color: #D32F2F;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-cta:hover {
    background-color: #b71c1c; 
    transform: translateY(-3px); 
}

/* Estilos de Cards */
.modelo-grid,
.vida-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px;
    padding: 0 15px;
}

.modelo-item,
.vida-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modelo-item img,
.vida-item img {
    width: 100%;
    height: 200px; 
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.modelo-item h3,
.vida-item h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.modelo-item p,
.vida-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    text-align: justify;
    flex-grow: 1;
}

/* Estilos Específicos de Bachillerato */
.bachillerato-hero {
    position: relative;
    height: 400px;
    background-image: url('../images/bachillerato-hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.bachillerato-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Estilos Específicos de Secundaria */
.secundaria-hero {
    position: relative;
    height: 400px;
    background-image: url('../images/secundaria-hero.webp');
    background-size: cover;
    background-position: center 30%; 
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.secundaria-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Estilos para las listas en Secundaria */
.modelo-list,
.vida-list,
.programas-list {
    list-style: none;
    padding: 0 15px;
    margin: 20px 0;
}

.modelo-list li,
.vida-list li,
.programas-list li {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    text-align: center;
}

.modelo-list li h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.modelo-list li p,
.vida-list li {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    text-align: justify;
}

.programas-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.programas-list li {
    flex: 0 0 auto;
    width: 150px;
    padding: 10px 20px;
}

/* Galería en Secundaria */
.galeria-section {
    margin-bottom: 40px;
    text-align: center;
}

.galeria-section h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 0 15px;
}

.galeria-item {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.galeria-item:hover {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.prev-lightbox,
.next-lightbox {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
}

.prev-lightbox {
    left: 20px;
}

.next-lightbox {
    right: 20px;
}

/* Responsividad */
@media (max-width: 768px) {
    .bachillerato-hero,
    .secundaria-hero {
        height: 300px;
    }

    .hero-overlay h1 {
        font-size: 2rem;
    }

    .hero-overlay p {
        font-size: 1rem;
    }

    .bachillerato-content,
    .secundaria-content {
        padding: 30px 15px;
    }

    .intro-section p,
    .modelo-educativo-section p,
    .programas-academicos-section p,
    .vida-estudiantil-section p,
    .compromiso-section p,
    .cta-section p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .modelo-educativo-section h2,
    .programas-academicos-section h2,
    .vida-estudiantil-section h2,
    .compromiso-section h2,
    .cta-section h2,
    .galeria-section h2 {
        font-size: 1.8rem;
    }

    .modelo-item h3,
    .vida-item h3,
    .modelo-list li h3 {
        font-size: 1.3rem;
    }

    .modelo-item p,
    .vida-item p,
    .modelo-list li p,
    .vida-list li,
    .programas-list li {
        font-size: 0.9rem;
    }

    .modelo-item img,
    .vida-item img {
        height: 150px;
    }

    .galeria-item {
        height: 120px;
    }

    .programas-list li {
        width: 120px;
        padding: 8px 15px;
    }

    .btn-cta {
        padding: 10px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .bachillerato-hero,
    .secundaria-hero {
        height: 250px;
    }

    .hero-overlay h1 {
        font-size: 1.5rem;
    }

    .hero-overlay p {
        font-size: 0.9rem;
    }

    .modelo-educativo-section h2,
    .programas-academicos-section h2,
    .vida-estudiantil-section h2,
    .compromiso-section h2,
    .cta-section h2,
    .galeria-section h2 {
        font-size: 1.5rem;
    }

    .intro-section p,
    .modelo-educativo-section p,
    .programas-academicos-section p,
    .vida-estudiantil-section p,
    .compromiso-section p,
    .cta-section p {
        font-size: 0.9rem;
    }

    .modelo-item img,
    .vida-item img {
        height: 120px; 
    }

    .galeria-item {
        height: 100px;
    }

    .programas-list li {
        width: 100px;
        padding: 6px 10px;
    }

    .btn-cta {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* Estilos Específicos de Idiomas */
.idiomas-hero {
    position: relative;
    height: 400px;
    background-image: url('../images/len8.webp');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 8px;
}

.hero-overlay h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-overlay p {
    font-size: 1.2rem;
}

.idiomas-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.intro-section {
    margin-bottom: 40px;
}

.intro-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    text-align: justify;
}

/* Imagen Principal */
.idiomas-main-image {
    margin-bottom: 40px;
    text-align: center;
}

.idiomas-main-image h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.main-image-container {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.main-image-container img {
    width: 50%;
    height: 300px;
    object-fit: contain;
    object-position: top;
    border-radius: 8px;
}

.main-image-text {
    width: 50%;
    text-align: left;
}

.main-image-text h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.main-image-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

/* Galería */
.galeria-section {
    margin-bottom: 40px;
    text-align: center;
}

.galeria-section h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 0 15px;
}

.galeria-item {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.galeria-item:hover {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

.prev-lightbox,
.next-lightbox {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    padding: 10px;
}

.prev-lightbox {
    left: 20px;
}

.next-lightbox {
    right: 20px;
}

/* Llamado a la Acción */
.cta-section {
    text-align: center;
    padding: 40px 20px;
    background: #f8f8f8;
    border-radius: 8px;
    margin: 40px 0;
}

.cta-section h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.cta-section .btn-cta {
    display: inline-block;
    padding: 12px 30px;
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
}

.cta-section .btn-cta:hover {
    background: var(--color-secondary);
}

/* Responsividad */
@media (max-width: 768px) {
    /* Hero */
    .idiomas-hero {
        height: 300px;
        background-position: center 40%;
    }

    .hero-overlay h1 {
        font-size: 2.5rem;
    }

    .hero-overlay p {
        font-size: 1rem;
    }

    /* Contenido */
    .idiomas-content {
        padding: 30px 15px;
    }

    .intro-section p {
        font-size: 1rem;
    }

    /* Imagen Principal */
    .idiomas-main-image h2 {
        font-size: 1.8rem;
    }

    .main-image-container {
        flex-direction: column;
        gap: 15px;
    }

    .main-image-container img {
        width: 100%;
        height: 200px;
        object-fit: contain;
        object-position: top;
    }

    .main-image-text {
        width: 100%;
        text-align: center;
    }

    .main-image-text h3 {
        font-size: 1.3rem;
    }

    .main-image-text p {
        font-size: 0.9rem;
    }

    /* Galería */
    .galeria-section h2 {
        font-size: 1.8rem;
    }

    .galeria-item {
        height: 120px;
    }

    /* Llamado a la Acción */
    .cta-section {
        padding: 30px 15px;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Hero */
    .idiomas-hero {
        height: 250px;
        background-position: center 40%;
    }

    .hero-overlay h1 {
        font-size: 2rem;
    }

    .hero-overlay p {
        font-size: 0.9rem;
    }

    /* Imagen Principal */
    .idiomas-main-image h2 {
        font-size: 1.5rem;
    }

    .main-image-container img {
        height: 150px;
        object-fit: contain;
        object-position: top;
    }

    /* Galería */
    .galeria-section h2 {
        font-size: 1.5rem;
    }

    .galeria-item {
        height: 100px;
    }

    /* Llamado a la Acción */
    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 0.9rem;
        text-align: center;
    }
}

/* Estilos Específicos de Deportes */
.deportes-hero {
    position: relative;
    height: 400px;
    background-image: url('../images/sports-hero.webp');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.deportes-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Imágenes Principales */
.deportes-main-images {
    margin-bottom: 40px;
    text-align: center;
}

.deportes-main-images h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.main-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.main-image-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.main-image-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    margin-bottom: 15px;
}

.main-image-item h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.main-image-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    text-align: justify;
}

/* Responsividad */
@media (max-width: 768px) {
    .deportes-hero {
        height: 300px;
        background-position: center 40%;
    }

    .deportes-content {
        padding: 30px 15px;
    }

    .deportes-main-images h2 {
        font-size: 1.8rem;
    }

    .main-images-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .main-image-item img {
        height: 250px;
    }

    .main-image-item h3 {
        font-size: 1.3rem;
    }

    .main-image-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .deportes-hero {
        height: 250px;
        background-position: center 40%;
    }

    .deportes-main-images h2 {
        font-size: 1.5rem;
    }

    .main-images-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .main-image-item img {
        height: 220px;
    }
}

/* Estilos Específicos de Arte y Cultura */
.artes-hero {
    position: relative;
    height: 400px;
    background-image: url('../images/art-hero.webp');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.artes-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Estilos para las secciones con imagen y texto */
.artes-secundaria,
.artes-talleres,
.artes-bachillerato,
.artes-eventos {
    margin-bottom: 40px;
}

.artes-secundaria h2,
.artes-talleres h2,
.artes-bachillerato h2,
.artes-eventos h2,
.artes-programas h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    text-align: center;
}

.content-with-image {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.text-content {
    width: 50%;
}

.text-content p,
.text-content ul {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.text-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

.image-content {
    width: 50%;
}

.image-content img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

/* Programas */
.artes-programas ul {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    list-style-type: disc;
    padding-left: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsividad */
@media (max-width: 768px) {
    .artes-hero {
        height: 300px;
        background-position: center 40%;
    }

    .artes-content {
        padding: 30px 15px;
    }

    .artes-secundaria h2,
    .artes-talleres h2,
    .artes-bachillerato h2,
    .artes-eventos h2,
    .artes-programas h2 {
        font-size: 1.8rem;
    }

    .content-with-image {
        flex-direction: column;
        gap: 15px;
    }

    .text-content,
    .image-content {
        width: 100%;
    }

    .image-content img {
        height: 250px;
    }

    .text-content p,
    .text-content ul,
    .artes-programas ul {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .artes-hero {
        height: 250px;
        background-position: center 40%;
    }

    .artes-secundaria h2,
    .artes-talleres h2,
    .artes-bachillerato h2,
    .artes-eventos h2,
    .artes-programas h2 {
        font-size: 1.5rem;
    }

    .image-content img {
        height: 200px;
    }

    .text-content p,
    .text-content ul,
    .artes-programas ul {
        font-size: 0.9rem;
    }
}
