/* Estilos para el Centro Educativo Innovador */

/* Variables de colores - Paleta oscura con acentos vibrantes */
:root {
    /* Colores base oscuros */
    --color-azul-marino: #0a192f;
    --color-gris-grafito: #1d2d44;
    --color-negro-carbon: #121212;

    /* Colores vibrantes para acentos */
    --color-cian: #00b4d8;
    --color-verde-esmeralda: #06d6a0;
    --color-dorado: #ffd166;

    /* Colores neutros */
    --color-blanco: #ffffff;
    --color-gris-claro: #f0f0f0;
    --color-gris-medio: #a0a0a0;

    /* Fuentes */
    --fuente-principal: 'Montserrat', sans-serif;
    --fuente-secundaria: 'Merriweather', serif;
    --fuente-terciaria: 'Poppins', sans-serif;
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fuente-principal);
    line-height: 1.6;
    color: var(--color-gris-claro);
    background-color: var(--color-negro-carbon);
}

a {
    text-decoration: none;
    color: var(--color-blanco);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--fuente-secundaria);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-blanco);
    margin-bottom: 15px;
}

.section-header.light h2 {
    color: var(--color-blanco);
}

.separator {
    width: 80px;
    height: 4px;
    background: var(--color-cian);
    margin: 0 auto;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-cian);
    color: var(--color-negro-carbon);
}

.btn-primary:hover {
    background-color: var(--color-verde-esmeralda);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-cian);
    color: var(--color-cian);
}

.btn-outline:hover {
    background-color: var(--color-cian);
    color: var(--color-negro-carbon);
    transform: translateY(-3px);
}

/* Header y Navegación */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(10, 25, 47, 0.95);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    font-family: var(--fuente-terciaria);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-blanco);
}

.logo span {
    background: linear-gradient(45deg, var(--color-gris-claro) 0%, var(--color-cian) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-gris-claro);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-cian);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-cian);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.btn-contacto {
    background-color: var(--color-cian);
    color: var(--color-negro-carbon) !important;
    padding: 10px 20px;
    border-radius: 30px;
}

.btn-contacto:hover {
    background-color: var(--color-verde-esmeralda);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.3);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-blanco);
}

/* Hero Section con Parallax */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--color-negro-carbon);
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 0.3;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    color: white;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

@media screen and (max-width: 868px) {
    .container {
        padding: 0 0px;
    }

    .carousel-btn {
        display: none;
    }

    .carousel-indicators {
        width: 100%;
        justify-content: center;
        padding: 0;
    }
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

#contacto {
    position: relative;
    background: url('../img/corrousel/1115.jpg') no-repeat center center;
    background-size: cover;
    color: var(--color-blanco);
}

#contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.85), rgba(18, 18, 18, 0.8));
    z-index: 1;
}

.hero .parallax-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.8), rgba(18, 18, 18, 0.9));
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: var(--fuente-secundaria);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-blanco);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--color-gris-claro);
}

/* Sección Nosotros */
.nosotros-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.nosotros-text {
    flex: 1;
    min-width: 300px;
}

.nosotros-text h3 {
    font-family: var(--fuente-secundaria);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-blanco);
}

.nosotros-text p {
    margin-bottom: 20px;
    color: var(--color-gris-medio);
}

.nosotros-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.valores {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.valor {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 20px;
    background-color: var(--color-gris-grafito);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.valor:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: var(--color-azul-marino);
}

.valor i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--color-cian);
}

.valor h4 {
    font-family: var(--fuente-principal);
    font-weight: 600;
    color: var(--color-blanco);
}

.equipo {
    margin-top: 60px;
}

.equipo h3 {
    font-family: var(--fuente-secundaria);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-blanco);
}

.equipo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.miembro {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    background-color: var(--color-gris-grafito);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.miembro:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.miembro-img {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.miembro-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.miembro:hover .miembro-img img {
    transform: scale(1.1);
}

.miembro h4 {
    font-family: var(--fuente-principal);
    font-weight: 600;
    font-size: 1.2rem;
    margin: 20px 0 5px;
    color: var(--color-blanco);
}

.miembro p {
    color: var(--color-cian);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Sección Oferta Educativa */
.niveles {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.nivel {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: rgba(29, 45, 68, 0.8);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.nivel:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background-color: rgba(29, 45, 68, 0.9);
}

.nivel-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: var(--color-azul-marino);
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nivel-icon i {
    font-size: 2.5rem;
    color: var(--color-cian);
}

.nivel h3 {
    font-family: var(--fuente-secundaria);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-blanco);
}

.nivel p {
    margin-bottom: 25px;
    color: var(--color-gris-claro);
}

.nivel ul {
    text-align: left;
    margin-bottom: 30px;
}

.nivel ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: var(--color-gris-medio);
}

.nivel ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--color-verde-esmeralda);
}

/* Sección Noticias */
.noticias-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.noticia {
    flex: 1;
    min-width: 300px;
    background-color: var(--color-gris-grafito);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.noticia:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.noticia-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.noticia-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.noticia:hover .noticia-img img {
    transform: scale(1.1);
}

.fecha {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--color-cian);
    color: var(--color-negro-carbon);
    padding: 8px 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.noticia-content {
    padding: 25px;
}

.noticia-content h3 {
    font-family: var(--fuente-principal);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-blanco);
}

.noticia-content p {
    margin-bottom: 20px;
    color: var(--color-gris-medio);
}

.leer-mas {
    color: var(--color-cian);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.leer-mas i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.leer-mas:hover {
    color: var(--color-verde-esmeralda);
}

.leer-mas:hover i {
    transform: translateX(5px);
}

.center-btn {
    text-align: center;
    margin-top: 20px;
}

/* Sección Galería */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.galeria-item {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

.galeria-item:hover img {
    transform: scale(1.1);
}

.galeria-overlay h3 {
    padding: 0 6px;
    text-align: center;
    color: var(--color-blanco);
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.galeria-item:hover .galeria-overlay h3 {
    transform: translateY(0);
}

.galeria-link {
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: var(--color-cian);
    color: var(--color-negro-carbon);
    border-radius: 50%;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.galeria-item:hover .galeria-link {
    transform: translateY(0);
    opacity: 1;
}

.galeria-link:hover {
    background-color: var(--color-verde-esmeralda);
}

/* Sección Requisitos de Inscripción */
.requisitos-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.requisitos-intro {
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-align: center;
}

.requisitos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.requisito-card {
    background-color: var(--color-gris-grafito);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.requisito-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.requisito-icon {
    font-size: 2.5rem;
    color: var(--color-cian);
    margin-bottom: 20px;
    text-align: center;
}

.requisito-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--color-blanco);
}

.requisitos-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.requisitos-list li i {
    color: var(--color-verde-esmeralda);
    margin-right: 10px;
}

.proceso-inscripcion {
    margin-top: 40px;
}

.proceso-inscripcion h3 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
}

.proceso-pasos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.paso {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.paso-numero {
    background-color: var(--color-cian);
    color: var(--color-negro-carbon);
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.paso-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--color-blanco);
}

.requisitos-cta {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background-color: var(--color-gris-grafito);
    border-radius: 10px;
}

.requisitos-cta p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.requisitos-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

@media screen and (max-width: 768px) {
    .requisitos-grid {
        grid-template-columns: 1fr;
    }
    .requisito-card {
        background-color: var(--color-gris-grafito);
        border-radius: 10px;
        padding: 30px 12px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .proceso-pasos {
        grid-template-columns: 1fr;
    }

    .requisitos-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Sección Contacto */
.section-header {
    position: relative;
    z-index: 2;
}

.contacto-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.contacto-info,
.contacto-form {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.8rem;
    color: var(--color-cian);
    margin-right: 20px;
    width: 40px;
    text-align: center;
}

.info-item h3 {
    font-family: var(--fuente-principal);
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--color-blanco);
}

.info-item p {
    color: var(--color-gris-medio);
}

.redes-sociales {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--color-gris-grafito);
    color: var(--color-blanco);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--color-cian);
    color: var(--color-negro-carbon);
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-blanco);
    font-family: var(--fuente-principal);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-gris-medio);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23a0a0a0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-group select option {
    background-color: var(--color-gris-grafito);
}

/* Footer */
.footer {
    background-color: var(--color-azul-marino);
    padding: 80px 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo,
.footer-links,
.footer-newsletter {
    flex: 1;
    min-width: 250px;
}

.footer-logo a {
    font-family: var(--fuente-terciaria);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-blanco);
}

.footer-logo span {
    color: var(--color-cian);
}

.footer-logo p {
    margin-top: 15px;
    color: var(--color-gris-medio);
}

.footer-links h3 {
    font-family: var(--fuente-principal);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--color-blanco);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--color-gris-medio);
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--color-cian);
    padding-left: 5px;
}

.footer-newsletter p {
    margin-bottom: 20px;
    color: var(--color-gris-medio);
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-blanco);
}

.newsletter-form button {
    width: 50px;
    border: none;
    border-radius: 0 30px 30px 0;
    background-color: var(--color-cian);
    color: var(--color-negro-carbon);
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--color-verde-esmeralda);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--color-gris-medio);
    font-size: 0.9rem;
}

.footer-bottom-links a {
    color: var(--color-gris-medio);
    margin-left: 20px;
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--color-cian);
}

/* Botón de regreso arriba */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: var(--color-cian);
    color: var(--color-negro-carbon);
    border-radius: 50%;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-verde-esmeralda);
    transform: translateY(-5px);
}

/* Media Queries */
@media screen and (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .nosotros-text h3,
    .equipo h3 {
        font-size: 1.8rem;
    }
}

/* Estilos para el menú móvil */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-blanco);
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: var(--color-cian);
}

/* Estilos responsive */
@media screen and (max-width: 1000px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-azul-marino);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.4s ease;
        padding: 20px 0;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        margin: 12px 0;
        font-size: 1.1rem;
        padding: 10px 20px;
        width: 100%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-bottom-links a {
        margin: 0 10px;
    }
}

@media screen and (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.85rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .nosotros-text h3,
    .equipo h3 {
        font-size: 1.6rem;
    }

    .nivel {
        padding: 30px 20px;
    }

    .nivel h3 {
        font-size: 1.6rem;
    }

    .galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}