/* ===== RESET Y VARIABLES ===== */
:root {
    --azul-marino: #1E3A5F;
    --verde-azulado: #2E8B6C;
    --verde-hover: #1f6b52;
    --blanco: #FFFFFF;
    --gris-claro: #F8F9FA;
    --gris-medio: #6B7A8D;
    --gris-oscuro: #343A40;
    --sombra-suave: 0 5px 20px rgba(0,0,0,0.05);
    --sombra-media: 0 10px 30px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--blanco);
    color: var(--gris-medio);
    line-height: 1.6;
}

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

/* ===== TÍTULOS ===== */
.section-title {
    font-size: 2.5rem;
    color: var(--azul-marino);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gris-medio);
    margin-bottom: 3rem;
}

/* ===== HEADER ===== */
header {
    background-color: var(--azul-marino);
    color: var(--blanco);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    height: 60px;
    width: auto;
    border-radius: 8px;
    padding: 5px;
    object-fit: contain;
}

.school-name h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blanco);
}

.school-name p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: color 0.3s;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--verde-azulado);
    border-bottom-color: var(--verde-azulado);
}

/* ===== BOTÓN ESPECIAL PARA AULA VIRTUAL ===== */
.nav-item-aula {
    margin-left: 1rem;
    position: relative;
}

.nav-item-aula .aula-link {
    background: var(--verde-azulado);
    color: var(--blanco) !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(46, 139, 108, 0.3);
    position: relative;
    overflow: hidden;
}

.nav-item-aula .aula-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-item-aula .aula-link:hover {
    background: var(--verde-hover);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(46, 139, 108, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-item-aula .aula-link:hover::before {
    left: 100%;
}

.nav-item-aula .aula-link i {
    font-size: 1rem;
    transition: transform 0.3s;
}

.nav-item-aula .aula-link:hover i {
    transform: rotate(10deg) scale(1.2);
}

.nav-item-aula .aula-link.active {
    background: var(--blanco);
    color: var(--verde-azulado) !important;
    border: 2px solid var(--verde-azulado);
    box-shadow: none;
}

.nav-item-aula .aula-link.active i {
    color: var(--verde-azulado);
}

/* Efecto de pulso sutil */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 139, 108, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(46, 139, 108, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 139, 108, 0);
    }
}

.nav-item-aula .aula-link {
    animation: pulse 2s infinite;
}

.nav-item-aula .aula-link:hover {
    animation: none;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-item-aula {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-item-aula .aula-link {
        justify-content: center;
        padding: 0.8rem !important;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .nav-item-aula .aula-link i {
        margin-left: 8px;
    }
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 1.5rem; /* Aumentá este valor si querés más separación */
    align-items: center;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--blanco);
    font-size: 1.8rem;
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(rgba(30, 58, 95, 0.9), rgba(30, 58, 95, 0.9)), url('https://images.unsplash.com/photo-1577896851231-70ef18881754?ixlib=rb-4.0.3&auto=format&fit=crop&w=1170&q=80') center/cover no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--blanco);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--verde-azulado);
    color: var(--blanco);
}

.btn-primary:hover {
    background-color: var(--verde-hover);
    transform: translateY(-3px);
    box-shadow: var(--sombra-media);
}

.btn-secondary {
    background-color: transparent;
    color: var(--blanco);
    border: 2px solid var(--blanco);
}

.btn-secondary:hover {
    background-color: var(--blanco);
    color: var(--azul-marino);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* ===== SECCIONES ===== */
section {
    padding: 5rem 0;
}

.alt-bg {
    background-color: var(--gris-claro);
}

/* ===== INFO CARDS ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--blanco);
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--sombra-suave);
    transition: transform 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-media);
}

.icon-feature {
    font-size: 2.5rem;
    color: var(--verde-azulado);
    margin-bottom: 1.5rem;
    background: rgba(46, 139, 108, 0.1);
    padding: 15px;
    border-radius: 50%;
}

.info-card h3 {
    color: var(--azul-marino);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* ===== ESPECIALIDADES ===== */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.specialty-card {
    background: var(--blanco);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--sombra-suave);
    transition: transform 0.3s;
}

.specialty-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-media);
}

.specialty-icon {
    width: 70px;
    height: 70px;
    background: rgba(46, 139, 108, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.specialty-icon i {
    font-size: 2rem;
    color: var(--verde-azulado);
}

.specialty-card h3 {
    color: var(--azul-marino);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.specialty-features {
    list-style: none;
    margin-top: 1.5rem;
}

.specialty-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gris-oscuro);
}

.specialty-features i {
    color: var(--verde-azulado);
    font-size: 0.9rem;
}

/* ===== NOTICIAS ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--blanco);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-media);
}

.news-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--verde-azulado);
    color: var(--blanco);
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
}

.news-content {
    padding: 1.8rem;
}

.news-content h3 {
    color: var(--azul-marino);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.read-more {
    color: var(--verde-azulado);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
}

.read-more i {
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* ===== GALERÍA REDISEÑADA - VERSIÓN MODERNA ===== */
.gallery-section {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

/* Elementos decorativos de fondo */
.gallery-section .container {
    position: relative;
    z-index: 2;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(46, 139, 108, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.gallery-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30, 58, 95, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

/* Header de la galería */
.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.gallery-section .section-title {
    font-size: 2.5rem;
    color: var(--azul-marino);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.gallery-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--verde-azulado), var(--azul-marino));
    border-radius: 2px;
}

.gallery-section .section-subtitle {
    color: var(--gris-medio);
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

/* Grid de galería - Versión corregida */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
    margin-top: 2rem;
}

/* Distribución deseada:
   [Edificio]    [Edificio]    [Estudiantes] [Estudiantes]
   [Edificio]    [Edificio]    [Humanidades] [Cultural]
   [ActoPatrio]  [Agro]        [Agro]        [VACÍO?]
*/

.gallery-item:nth-child(1) { /* Edificio */
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.gallery-item:nth-child(2) { /* Estudiantes */
    grid-column: 3 / 5;
    grid-row: 1 / 2;
}

.gallery-item:nth-child(3) { /* Acto patrio */
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.gallery-item:nth-child(4) { /* Humanidades */
    grid-column: 3 / 4;
    grid-row: 2 / 4;
}

.gallery-item:nth-child(5) { /* Agro */
    grid-column: 2 / 4;
    grid-row: 3 / 4;
}

.gallery-item:nth-child(6) {
    grid-column: 4 / 5;
    grid-row: 3 / 4;
}


/* Diferentes tamaños para las imágenes */
.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Tamaños personalizados para cada imagen */
.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(2) {
    grid-column: span 2;
    grid-row: span 1;
}

.gallery-item:nth-child(3) {
    grid-column: span 1;
    grid-row: span 2;
}

.gallery-item:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item:nth-child(5) {
    grid-column: span 2;
    grid-row: span 1;
}

.gallery-item:nth-child(6) {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* Overlay con efecto glassmorphism */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(30, 58, 95, 0.2) 50%,
        rgba(30, 58, 95, 0.9) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: white;
    transform: translateY(20px);
    transition: transform 0.5s ease 0.1s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-caption p i {
    font-size: 0.8rem;
}

/* Icono de zoom */
.gallery-zoom {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--verde-azulado);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transform: scale(0) rotate(-90deg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.gallery-item:hover .gallery-zoom {
    transform: scale(1) rotate(0);
}

/* Efecto hover en las imágenes */
.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(30, 58, 95, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Badge de categoría */
.gallery-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--azul-marino);
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Filtros de galería (opcional) */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 25px;
    border: 2px solid var(--azul-marino);
    background: transparent;
    color: var(--azul-marino);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--azul-marino);
    color: white;
}

/* Lightbox modal */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.lightbox-content img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    right: 0;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--verde-azulado);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.lightbox-nav:hover {
    background: var(--verde-azulado);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    color: white;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .lightbox-prev {
        left: -50px;
    }
    
    .lightbox-next {
        right: -50px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5),
    .gallery-item:nth-child(6) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-overlay {
        padding: 15px;
    }
    
    .gallery-caption h4 {
        font-size: 1.1rem;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

/* ===== MODAL PARA NOTICIAS ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--blanco);
    margin: 50px auto;
    padding: 30px;
    width: 90%;
    max-width: 900px;
    border-radius: 16px;
    position: relative;
    animation: modalOpen 0.3s;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 15px;
    color: var(--gris-medio);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--azul-marino);
}

.modal-titulo {
    color: var(--azul-marino);
    margin-bottom: 10px;
    padding-right: 40px;
}

.modal-fecha {
    color: var(--verde-azulado);
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.modal-carrusel {
    position: relative;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-carrusel img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background: #f5f5f5;
}

.carrusel-prev,
.carrusel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 16px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrusel-prev:hover,
.carrusel-next:hover {
    background: rgba(0,0,0,0.8);
}

.carrusel-prev {
    left: 20px;
}

.carrusel-next {
    right: 20px;
}

.modal-contenido-texto {
    line-height: 1.8;
    color: var(--gris-oscuro);
    font-size: 1.1rem;
}

.modal-contenido-texto p {
    margin-bottom: 1rem;
}

/* Responsive del modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px auto;
        padding: 20px;
        width: 95%;
    }
    
    .modal-titulo {
        font-size: 1.5rem;
    }
    
    .carrusel-prev,
    .carrusel-next {
        padding: 12px;
        font-size: 16px;
        width: 40px;
        height: 40px;
    }
}

/* ===== AULA VIRTUAL ===== */
.virtual-classroom-banner {
    background: linear-gradient(135deg, var(--azul-marino) 0%, #15304f 100%);
    border-radius: 32px;
    padding: 3rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    box-shadow: var(--sombra-media);
    position: relative;
    overflow: hidden;
}

.virtual-classroom-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(46, 139, 108, 0.1);
    border-radius: 50%;
}

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

.banner-content h2 {
    font-size: 2.8rem;
    color: var(--blanco);
    margin-bottom: 1rem;
}

.banner-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.banner-features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.banner-features span {
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

.banner-features i {
    color: var(--verde-azulado);
}

.banner-icon {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.banner-icon i {
    font-size: 10rem;
    color: rgba(255,255,255,0.1);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== CONTACTO ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    color: var(--azul-marino);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--blanco);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 40px;
    height: 40px;
    background: var(--azul-marino);
    color: var(--blanco);
    border-radius: 50%;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: var(--verde-azulado);
}

.contact-form {
    background: var(--blanco);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--sombra-suave);
}

.contact-form h3 {
    color: var(--azul-marino);
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--verde-azulado);
    box-shadow: 0 0 0 3px rgba(46, 139, 108, 0.1);
}

.contact-form button {
    width: 100%;
}

/* ===== FOOTER REDISEÑADO ===== */
footer {
    background-color: var(--azul-marino);
    color: var(--blanco);
    padding: 1.5rem 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Parte izquierda - Copyright */
.footer-left p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.dev-link {
    color: var(--verde-azulado);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    display: inline-block;
}

.dev-link:hover {
    color: var(--blanco);
    transform: scale(1.05);
}

/* Efecto de subrayado animado */
.dev-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--verde-azulado);
    transition: width 0.3s ease;
}

.dev-link:hover::after {
    width: 100%;
}

/* Parte derecha - Acceso autorizado */
.footer-right .admin-access {
    color: var(--blanco);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    letter-spacing: 0.5px;
}

.footer-right .admin-access i {
    color: var(--verde-azulado);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.footer-right .admin-access:hover {
    background: var(--verde-azulado);
    border-color: var(--blanco);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 139, 108, 0.4);
}

.footer-right .admin-access:hover i {
    color: var(--blanco);
    transform: rotate(5deg) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-left p {
        font-size: 0.9rem;
    }
    
    .footer-right .admin-access {
        padding: 8px 20px;
        font-size: 0.9rem;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 1.2rem 0;
    }
    
    .footer-left p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .footer-right .admin-access {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }
}

/* Opcional: Efecto de pulso sutil para el acceso admin */
@keyframes subtlePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 139, 108, 0.4);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(46, 139, 108, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 139, 108, 0);
    }
}

.footer-right .admin-access {
    animation: subtlePulse 3s infinite;
}

.footer-right .admin-access:hover {
    animation: none;
}

/* ===== ESTILOS PARA EL FORMULARIO DE CONTACTO ===== */
.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--verde-azulado);
    box-shadow: 0 0 0 3px rgba(46, 139, 108, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    margin-bottom: 15px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    margin-bottom: 15px;
}

#btn-enviar {
    position: relative;
    min-width: 160px;
}

#btn-enviar:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading i {
    margin-right: 5px;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--azul-marino);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--verde-azulado);
    transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .specialties-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .virtual-classroom-banner {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
    }
    
    .banner-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .banner-features {
        justify-content: center;
    }
    
    .banner-icon i {
        font-size: 8rem;
    }
}

/* ===== VERSIÓN MÓVIL CORREGIDA ===== */
@media (max-width: 768px) {
    /* Header y menú */
    .menu-toggle {
        display: block;
        z-index: 1002;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: var(--azul-marino);
        padding: 80px 20px 30px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        z-index: 1001;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav-menu a {
        font-size: 1.2rem;
        padding: 10px 0;
        display: block;
        width: 100%;
    }


    .menu-overlay.active {
        display: block;
    }

    /* Hero */
    .hero h2 {
        font-size: 2.2rem;
    }

    /* Títulos */
    .section-title {
        font-size: 2rem;
    }

    /* Contacto */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .logo {
        height: 50px;
    }
    
    .banner-content h2 {
        font-size: 2.2rem;
    }

    /* Espaciado del contenido */
    section {
        padding: 3rem 0;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Tarjetas de información */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    /* Especialidades */
    .specialties-grid {
        gap: 1.5rem;
    }

    .specialty-card {
        padding: 1.5rem;
    }

    /* Aula Virtual banner */
    .virtual-classroom-banner {
        padding: 2rem 1.5rem;
    }

    .banner-content h2 {
        font-size: 1.8rem;
    }

    .banner-features {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

    .banner-icon i {
        font-size: 6rem;
    }

    /* Contacto */
    .contact-info {
        text-align: center;
    }

    .contact-info p {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .contact-form {
        padding: 1.5rem;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-right .admin-access {
        justify-content: center;
    }
}

/* ===== CARRUSEL PARA GALERÍA EN MÓVIL ===== */
@media (max-width: 768px) {
    .gallery-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 15px !important;
        padding: 20px 15px !important;
        margin: 0 -15px !important;
        width: calc(100% + 30px) !important;
        scrollbar-width: thin;
        scrollbar-color: var(--verde-azulado) var(--gris-claro);
        -webkit-overflow-scrolling: touch;
    }

    .gallery-grid::-webkit-scrollbar {
        height: 6px;
    }

    .gallery-grid::-webkit-scrollbar-track {
        background: var(--gris-claro);
        border-radius: 10px;
    }

    .gallery-grid::-webkit-scrollbar-thumb {
        background: var(--verde-azulado);
        border-radius: 10px;
    }

    .gallery-item {
        flex: 0 0 380px !important;
        height: 350px !important;
        scroll-snap-align: start !important;
        margin: 0 !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .gallery-item:first-child {
        margin-left: 15px !important;
    }

    .gallery-item:last-child {
        margin-right: 15px !important;
    }

    .gallery-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Overlay para móvil */
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(30, 58, 95, 0.4) 50%,
            rgba(30, 58, 95, 0.9) 100%
        );
    }

    .gallery-caption {
        transform: translateY(0);
    }

    .gallery-zoom {
        transform: scale(1) rotate(0);
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* Indicadores de carrusel */
    .gallery-carousel-indicators {
        display: flex !important;
        justify-content: center;
        gap: 8px;
        margin-top: 15px;
    }

    .gallery-indicator {
        width: 30px;
        height: 4px;
        background: var(--gris-medio);
        border-radius: 2px;
        cursor: pointer;
        transition: all 0.3s;
    }

    .gallery-indicator.active {
        background: var(--verde-azulado);
        width: 45px;
    }
}

/* ===== CARRUSEL PARA NOTICIAS EN MÓVIL ===== */
@media (max-width: 768px) {
    .news-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 15px !important;
        padding: 20px 15px !important;
        margin: 0 -15px !important;
        width: calc(100% + 30px) !important;
        scrollbar-width: thin;
        scrollbar-color: var(--verde-azulado) var(--gris-claro);
        -webkit-overflow-scrolling: touch;
    }

    .news-grid::-webkit-scrollbar {
        height: 6px;
    }

    .news-grid::-webkit-scrollbar-track {
        background: var(--gris-claro);
        border-radius: 10px;
    }

    .news-grid::-webkit-scrollbar-thumb {
        background: var(--verde-azulado);
        border-radius: 10px;
    }

    .news-card {
        flex: 0 0 380px !important;
        scroll-snap-align: start !important;
        margin: 0 !important;
        min-width: auto !important;
    }

    .news-card:first-child {
        margin-left: 15px !important;
    }

    .news-card:last-child {
        margin-right: 15px !important;
    }

    .news-img {
        height: 180px !important;
    }

    .news-content {
        padding: 1.2rem !important;
    }

    .news-content h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .news-content p {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Indicadores de carrusel */
    .news-carousel-indicators {
        display: flex !important;
        justify-content: center;
        gap: 8px;
        margin-top: 15px;
    }

    .news-indicator {
        width: 30px;
        height: 4px;
        background: var(--gris-medio);
        border-radius: 2px;
        cursor: pointer;
        transition: all 0.3s;
    }

    .news-indicator.active {
        background: var(--verde-azulado);
        width: 45px;
    }
}

/* Ajustes para móviles muy pequeños */
@media (max-width: 480px) {
    .logo {
        height: 40px;
    }

    .school-name h1 {
        font-size: 1.2rem;
    }

    .school-name p {
        font-size: 0.8rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .gallery-item {
        flex: 0 0 250px !important;
        height: 320px !important;
    }

    .news-card {
        flex: 0 0 260px !important;
    }
}