/*
Theme Name: St James Oficial
Theme URI: https://saintjamesschool.cl/
Author: Taller Común
Author URI: https://tallercomun.cl/
Description: Tema Oficial e Independiente (Standalone) desarrollado desde cero. No depende de Elementor ni de Hello Theme. Construido para máximo rendimiento.
Version: 1.0.0
*/

/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    --color-green-dark: #2c4f2e;
    --color-green-primary: #3b5a3e;
    --color-green-light: #496c46;
    --color-yellow: #f2bc35;
    --color-yellow-hover: #dfa824;
    --color-gray-light: #f4f4f4;
    --color-gray-text: #666666;
    --color-white: #ffffff;
    --color-black: #222222;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif; /* Or keep Inter if preferred */
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-main);
    color: var(--color-black);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--color-white);
}

* {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    color: var(--color-green-dark);
    font-weight: 700;
}

a {
    color: var(--color-green-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-yellow);
}

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

/* ==========================================================================
   BASIC CSS RESETS (Sustituyendo a Elementor)
   ========================================================================== */
ul, ol { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}
li {
    margin: 0;
    padding: 0;
}

.section-padding {
    padding: 80px 0;
}

/* ==========================================================================
   2. BUTTONS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-yellow {
    background-color: var(--color-yellow);
    color: var(--color-black);
}
.btn-yellow:hover {
    background-color: var(--color-yellow-hover);
    color: var(--color-black);
}

.btn-green {
    background-color: var(--color-green-dark);
    color: var(--color-white);
}
.btn-green:hover {
    background-color: var(--color-green-primary);
    color: var(--color-white);
}

.btn-outline {
    border: 1px solid var(--color-green-dark);
    color: var(--color-green-dark);
    background-color: transparent;
}
.btn-outline:hover {
    background-color: var(--color-green-dark);
    color: var(--color-white);
}

.btn-full {
    width: 100%;
    display: block;
    margin-bottom: 10px;
}

.btn-text-link {
    display: inline-block;
    color: var(--color-green-dark);
    font-weight: 600;
    text-decoration: underline;
    margin-top: 10px;
}

/* ==========================================================================
   3. CSS DEL HEADER ELIMINADO EN FAVOR DE TAILWIND CSS
   ========================================================================== */
.dropdown-list a::after { display: none !important; }
.dropdown-list a:hover {
    background-color: var(--color-gray-light);
    color: var(--color-green-dark) !important;
    padding-left: 20px; /* Slight indent animation */
}

/* Mega Menu Panel */
.mega-menu-panel {
    width: 600px;
    padding: 30px;
}
.mega-menu-panel.panel-right {
    left: auto; right: -50px; transform: translateY(20px);
}
.nav-item.has-dropdown:hover .mega-menu-panel.panel-right {
    transform: translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.mega-title {
    color: var(--color-green-dark);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--color-gray-light);
    padding-bottom: 10px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
}

/* ==========================================================================
   4. HERO & CALENDAR & NOTICES (Figma overlay layout)
   ========================================================================== */
.st-hero {
    position: relative;
    width: 100%;
    min-height: 750px; /* Aumentado para apreciar la foto */
    display: flex;
    align-items: flex-end;
}

.st-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.st-hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 0; /* Modules snap to bottom */
}

.hero-modules-wrapper {
    display: flex;
    width: 100%;
}

/* Calendario en Hero */
.hero-module-calendario {
    flex: 1.5;
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    min-height: 140px; /* Caja más compacta */
}

.calendario-title {
    background-color: var(--color-yellow);
    padding: 10px 15px; /* Reducido drásticamente */
    display: flex;
    align-items: center;
    justify-content: center;
}
.calendario-title span {
    transform: rotate(-90deg);
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap; /* Impide que el título se quiebre en múltiples líneas */
}

.calendario-events {
    display: flex;
    padding: 15px 20px;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.event-item {
    display: flex;
    gap: 15px;
    width: calc(50% - 10px);
    margin-bottom: 10px;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--color-green-dark);
    padding: 5px 10px;
    color: var(--color-green-dark);
    min-width: 60px;
}
.event-date .day { font-size: 20px; font-weight: 700; }
.event-date .month { font-size: 12px; text-transform: uppercase; }

.event-detail h6 {
    margin-bottom: 2px;
    font-size: 13px;
    line-height: 1.2;
}
.event-detail p {
    margin: 0;
    font-size: 12px;
    color: var(--color-gray-text);
}

/* Avisos en Hero */
.hero-module-avisos {
    flex: 1;
    background: var(--color-gray-light);
    display: flex;
    flex-direction: column;
    min-height: 140px;
}

.avisos-list {
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.aviso-item { margin-bottom: 15px; }
.aviso-item:last-child { margin-bottom: 0; }
.aviso-title { font-size: 14px; margin-bottom: 2px; }
.aviso-item p { font-size: 12px; margin: 0; line-height: 1.4; color: var(--color-gray-text); }

.avisos-cta-block {
    background-color: var(--color-green-dark);
    color: var(--color-white);
    padding: 15px 20px; /* Reducido */
    margin-top: auto;
}
.avisos-cta-block p { margin: 0; font-size: 13px; }

/* ==========================================================================
   5. CONTACT BAR
   ========================================================================== */
.st-contact-bar {
    background-color: var(--color-green-dark);
    padding: 20px 0;
}

.quick-contact-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.quick-contact-form .form-group {
    flex: 1;
}

.quick-contact-form input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    color: var(--color-white);
    padding: 10px 5px;
    font-family: inherit;
}
.quick-contact-form input::placeholder {
    color: rgba(255,255,255,0.7);
}
.quick-contact-form .btn-submit {
    min-width: 150px;
}

/* ==========================================================================
   6. BIENVENIDOS
   ========================================================================== */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.welcome-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
}
.welcome-text p {
    color: var(--color-gray-text);
    margin-bottom: 30px;
    font-size: 15px;
}

.welcome-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.module-card {
    border: 1px solid #eaeaea;
    padding-bottom: 20px;
}
.module-card .card-img img {
    width: 100%;
    height: auto;
    display: block;
}
.module-card .card-content {
    padding: 20px 20px 0;
}
.module-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}
.module-card p {
    font-size: 14px;
    color: var(--color-gray-text);
    margin-bottom: 15px;
}
.card-link {
    font-size: 14px;
    font-weight: 600;
}

/* ==========================================================================
   7. EDUCACIÓN & MISION
   ========================================================================== */
.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.edu-text h2 { font-size: 28px; }
.edu-text p { color: var(--color-gray-text); margin-bottom: 20px; }

.edu-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 40px;
}
.edu-images-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edu-image-large img {
    width: 100%;
    border-radius: 4px;
    display: block;
}

.st-mission {
    position: relative;
    background-color: var(--color-white);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
}
.mission-text-box {
    background-color: var(--color-white);
    padding: 40px;
    border-left: 2px solid var(--color-green-dark);
    border-bottom: 2px solid var(--color-green-dark);
    position: relative;
    z-index: 2;
    margin-right: -100px;
}
.mission-text-box h2 { font-size: 28px; }

.mission-image-large img {
    width: 100%;
    display: block;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ==========================================================================
   8. CARACTERISTICAS TABS
   ========================================================================== */
.st-features {
    background-color: var(--color-gray-light);
}

.features-header h2 {
    font-size: 28px;
    margin-bottom: 40px;
}

.tab-links {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 40px;
}
.tab-links li {
    margin-right: 40px;
}
.tab-links a {
    display: block;
    padding-bottom: 15px;
    color: var(--color-gray-text);
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.tab-links li.active a {
    color: var(--color-yellow);
    border-bottom-color: var(--color-yellow);
}

.features-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.feature-card img {
    width: 100%;
    display: block;
    margin-bottom: 15px;
}
.feature-card p {
    font-size: 13px;
    margin-bottom: 10px;
}
.card-link-small {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--color-green-dark);
    color: var(--color-white);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 50px;
    padding-bottom: 40px;
}

.footer-logo { margin-bottom: 20px; }
.footer-address-info p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-nav .footer-menu {
    column-count: 2;
    column-gap: 40px;
}
.footer-nav a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height: 2.5;
}
.footer-nav a:hover { color: var(--color-yellow); }

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 40px);
    gap: 10px;
}
.social-box {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.2);
    display: block;
}

.footer-bottom {
    background-color: var(--color-yellow);
    padding: 15px 0;
    text-align: center;
}
.footer-bottom p {
    margin: 0;
    color: var(--color-green-dark);
    font-size: 13px;
    font-weight: 500;
}

/* RESPONSIVE BASIC */
@media (max-width: 992px) {
    .header-right { display: none; }
    .mobile-menu-toggle { display: block; }
    .hero-modules-wrapper { flex-direction: column; }
    
    /* FIX: Calendario on Mobile */
    .hero-module-calendario { flex-direction: column; }
    .calendario-title { padding: 15px; }
    .calendario-title span { transform: none; white-space: normal; text-align: center; font-size: 16px; }
    .calendario-events { flex-direction: column; align-items: stretch; gap: 10px; }
    .event-item { width: 100%; }

    .welcome-grid, .education-grid, .mission-grid { grid-template-columns: 1fr; }
    .mission-text-box { margin-right: 0; margin-bottom: 20px; }
    .features-cards { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
}

/* FIN ARCHIVO CSS */
