/* --- VARIABLES Y RESET --- */
:root {
    --primary-color: #0b2246; /* Azul oscuro institucional */
    --secondary-color: #164081; /* Azul medio */
    --accent-color: #f6b426; /* Amarillo/Dorado */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- TOPBAR --- */
.topbar {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
}
.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.contact-info span {
    margin-right: 20px;
}
.topbar .social-links a {
    color: var(--white);
    margin-left: 15px;
}
.topbar .social-links a:hover {
    color: var(--accent-color);
}

/* --- NAVBAR --- */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}
.logo-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
}
.logo-text h1 {
    font-size: 1.2rem;
    line-height: 1.1;
}
.logo-text p {
    font-size: 0.7rem;
    color: var(--accent-color);
    font-weight: 600;
}
.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    margin: 0 15px;
    font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--accent-color);
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- BOTONES --- */
.btn {
    padding: 10px 24px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--secondary-color);
}
.btn-accent {
    background-color: var(--accent-color);
    color: var(--primary-color);
}
.btn-accent:hover {
    background-color: #e5a41c;
}
.btn-outline {
    border-color: var(--white);
    color: var(--white);
}
.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}
.btn-outline-dark {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-outline-dark:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- HERO SECTION --- */
.hero {
    /* Aquí se coloca la imagen real del colegio en background-image */
    background: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover;
    height: 500px;
    position: relative;
}
.hero-overlay {
    background: linear-gradient(to right, rgba(11, 34, 70, 1) 0%, rgba(11, 34, 70, 0.8) 50%, rgba(11, 34, 70, 0) 100%);
    height: 100%;
    display: flex;
    align-items: center;
}
.hero-content {
    color: var(--white);
    max-width: 600px;
}
.hero-content h2 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 15px;
}
.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}
.hero-buttons {
    display: flex;
    gap: 15px;
}

/* --- FEATURES (Tarjetas de pilares) --- */
.features {
    padding: 40px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.feature-card {
    background: var(--white);
    padding: 25px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
}
.feature-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}
.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.feature-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* --- NOSOTROS --- */
.about {
    padding: 60px 0;
}
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}
.about-image {
    flex: 1;
}
.about-text {
    flex: 1;
}
.badge {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.about-text h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 10px 0 20px;
}
.mission-vision {
    margin: 30px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.mv-item {
    display: flex;
    gap: 15px;
}
.mv-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}
.mv-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}
.mv-item p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* --- NIVELES EDUCATIVOS --- */
.bg-light {
    background-color: var(--bg-light);
}
.levels {
    padding: 60px 0;
}
.text-center { text-align: center; }
.section-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 10px 0 40px;
}
.levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.level-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.icon-wrapper {
    background: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* --- ADMISIONES --- */
.admissions {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
}
.admissions-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.badge-yellow {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
}
.admissions-text h2 {
    font-size: 2rem;
    margin: 10px 0 15px;
}
.admissions-text p {
    margin-bottom: 20px;
    color: #cbd5e1;
}
.admissions-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: center;
}
.step {
    flex: 1;
    position: relative;
    padding: 0 10px;
}
.step-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
    border: 3px solid var(--accent-color);
}
.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.2);
    margin-top: 30px;
}

/* --- NOTICIAS --- */
.news {
    padding: 60px 0;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.news-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.news-body {
    padding: 20px;
}
.news-body h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}
.news-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}
.news-body a {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- FOOTER / CONTACTO --- */
.footer {
    background-color: var(--bg-light);
    padding: 60px 0 20px;
    border-top: 1px solid #e2e8f0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}
.footer-info ul li {
    margin-bottom: 15px;
    color: var(--text-light);
    display: flex;
    gap: 10px;
    align-items: center;
}
.footer-info i {
    color: var(--secondary-color);
}
.footer-form input, .footer-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-family: var(--font-main);
}
.w-100 { width: 100%; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.footer-bottom {
    font-size: 0.85rem;
    color: var(--text-light);
    border-top: 1px solid #cbd5e1;
    padding-top: 20px;
}

/* --- BOTÓN WHATSAPP --- */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}
.whatsapp-btn:hover { background-color: #20b858; color: white;}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .about-content { flex-direction: column; }
    .levels-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .admissions-steps { flex-direction: column; gap: 20px; }
    .step-line { display: none; }
    .step { display: flex; align-items: center; text-align: left; gap: 20px; width: 100%;}
    .step-icon { margin: 0; }
}
@media (max-width: 768px) {
    .nav-links { display: none; } /* Ocultar menú en móviles, requiere JS para abrir */
    .mobile-menu-btn { display: block; }
    .navbar .btn-primary { display: none; }
    .hero-content h1 { font-size: 2.5rem; }
    .features-grid, .levels-grid, .news-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
}

/* ==========================================================================
   ESTILOS ADICIONALES PARA PÁGINAS SECUNDARIAS (Nosotros y Admisiones)
   ========================================================================== */

/* Clases de Utilidad Global */
.padding-section {
    padding: 60px 0;
}
.max-width-md {
    max-width: 800px;
    margin: 0 auto;
}
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2.5rem; }

/* Banners Generales de Páginas Secundarias */
.page-banner {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}
.page-banner h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}
.page-banner p {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Estilos Nosotros.html --- */
.about-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}
.about-detail-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 10px 0 20px;
}
.about-detail-text p {
    margin-bottom: 15px;
    color: var(--text-light);
}
.bg-dark-placeholder {
    background-color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: bold;
}

/* Tarjetas Misión y Visión */
.mvv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.mvv-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.mvv-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}
.mvv-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}
.mvv-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Grilla de Valores */
.values-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}
.value-item {
    background: var(--white);
    padding: 20px;
    border-left: 4px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.value-item h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.value-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Grilla Equipo Directivo */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.team-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.team-card:hover {
    transform: translateY(-5px);
}
.team-card .placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
}
.team-info {
    padding: 20px;
}
.team-info h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}
.team-info .role {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.team-info .desc {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* --- Estilos Admisiones.html --- */
.admissions-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.requirements-box h3, .schedule-box h3 {
    color: var(--primary-color);
    margin: 10px 0 20px;
}
.styled-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-color);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.styled-list i {
    color: #10b981; /* Verde éxito */
    margin-top: 3px;
}

/* Tablas de Datos Dinámicas */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: var(--white);
    font-size: 0.95rem;
}
.custom-table th, .custom-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.custom-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}
.custom-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}
.center-table th, .center-table td {
    text-align: center;
}
.table-note {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* Contenedor y Diseño del Formulario Detallado */
.form-container-box {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    max-width: 900px;
    margin: 0 auto;
}
.detailed-form {
    margin-top: 30px;
}
.form-group-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.form-control-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-control-wrapper label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}
.form-control-wrapper input, 
.form-control-wrapper select, 
.form-control-wrapper textarea {
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    background-color: #f8fafc;
    transition: 0.3s;
}
.form-control-wrapper input:focus, 
.form-control-wrapper select:focus, 
.form-control-wrapper textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(22, 64, 129, 0.1);
}
.full-width-input {
    margin-bottom: 20px;
}
.btn-large {
    padding: 14px 35px;
    font-size: 1.05rem;
    box-shadow: 0 4px 10px rgba(246, 180, 38, 0.3);
}

/* Adaptabilidad para Dispositivos Móviles (Media Queries) */
@media (max-width: 992px) {
    .about-detail-grid, 
    .mvv-grid, 
    .values-list-grid, 
    .team-grid, 
    .admissions-layout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .form-group-row {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 0;
    }
    .form-control-wrapper {
        margin-bottom: 20px;
    }
    .form-container-box {
        padding: 20px;
    }
}

/* ==========================================================================
   ESTILOS ADICIONALES: GALERÍA (MOCKUP) Y NOTICIAS EXTENDIDAS
   ========================================================================== */

/* Grid de Galería de 6 Columnas */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 30px;
}
.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(11, 34, 70, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox.show {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
}

/* Sección Noticias Extendida */
.news-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}
.news-filters .btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}
.news-grid-extended {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.extended-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.extended-body {
    padding: 25px;
}
.news-date {
    font-size: 0.8rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 10px;
}
.extended-body h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.3;
}
.extended-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}
.read-more-link {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.page-num {
    width: 40px;
    height: 40px;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: var(--primary-color);
    font-weight: 600;
}
.page-num.active, .page-num:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .news-grid-extended { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid-extended { grid-template-columns: 1fr; }
    .news-filters { flex-wrap: wrap; }
}