/* ============================================================
   Colegio El Encuentro — Main Stylesheet
   ============================================================ */

/* ===== 1. CSS Variables ===== */
:root {
    --verde-claro: #49A942;
    --verde-oscuro: #1E6B4A;
    --verde-hover: #2A8A5F;
    --amarillo: #E8E337;
    --naranja: #F39931;
    --blanco: #ffffff;
    --gris-claro: #f5f5f5;
    --gris-oscuro: #333333;
    --sombra: rgba(0, 0, 0, 0.1);
    --sombra-fuerte: rgba(0, 0, 0, 0.3);
    --transicion: all 0.3s ease;
    --cubic-bezier: cubic-bezier(0.4, 0, 0.2, 1);

    --amarillo-claro: #F7EF8A;
    --naranja-claro: #F7B66A;
    --crema: #FFF9E6;
    --verde-mint: #E8F5E9;
    --azul-suave: #E3F2FD;

    --hero-from-color: #1E6B4A;
    --hero-mid-color: #2E8B5A;
    --hero-to-color: #49A942;
    --hero-end-color: #6ABF5A;
}

/* ===== 2. Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--verde-oscuro);
    background-color: var(--gris-claro);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(73, 169, 66, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(232, 227, 55, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(243, 153, 49, 0.02) 0%, transparent 40%);
    font-weight: 400;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

:focus-visible {
    outline: 3px solid var(--verde-claro);
    outline-offset: 3px;
}

::selection {
    background: var(--verde-claro);
    color: var(--blanco);
}

/* ===== 3. Typography ===== */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ===== 4. Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 3.2rem;
    font-weight: 600;
    color: var(--verde-oscuro);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--verde-claro), var(--amarillo));
    border-radius: 2px;
}

.section-subtitle {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 5. Page Loader ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #2E8B5A 0%, var(--verde-claro) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    margin-bottom: 30px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--amarillo), var(--naranja));
    border-radius: 2px;
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

/* ===== 6. Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 18px 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(13, 91, 64, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(13, 91, 64, 0.05);
}

.header.scrolled {
    padding: 12px 0;
    background: #ffffff !important;
    box-shadow: 0 8px 40px rgba(13, 91, 64, 0.12);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--verde-oscuro);
    letter-spacing: 0.02em;
}

.logo img {
    height: 45px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo i {
    color: var(--naranja);
    font-size: 2rem;
}

.nav-menu ul {
    display: flex;
    gap: 20px;
}

/* More space for mid-size screens */
@media (min-width: 1200px) {
    .nav-menu ul {
        gap: 28px;
    }
}

.nav-menu a {
    color: var(--verde-oscuro);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 0;
    text-shadow: none;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--verde-claro), var(--amarillo));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--verde-oscuro);
    text-shadow: none;
}

/* ===== Dropdown Menu Styles ===== */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children > a {
    position: relative;
    padding-right: 16px;
    white-space: nowrap;
}

.menu-item-has-children > a::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f078';
    font-size: 0.5rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.menu-item-has-children:hover > a::before {
    transform: translateY(-50%) rotate(180deg);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 200px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(13, 91, 64, 0.15);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    border: 1px solid rgba(13, 91, 64, 0.08);
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(12px);
}

.sub-menu li {
    list-style: none;
}

.sub-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--verde-oscuro) !important;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0.02em;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-weight: 500 !important;
    white-space: nowrap;
}

.sub-menu a::after {
    display: none !important;
}

.sub-menu a:hover {
    background: var(--verde-mint);
    color: var(--verde-oscuro) !important;
    padding-left: 24px;
}

.sub-menu .active {
    background: var(--verde-mint);
    font-weight: 700 !important;
}

/* Parent highlight when child is active */
.menu-item-active > a {
    position: relative;
}

.menu-item-active > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--verde-claro), var(--amarillo));
    border-radius: 2px;
    /* Reset chevron properties that leak from .menu-item-has-children > a::before */
    right: auto;
    top: auto;
    transform: none;
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--verde-oscuro);
    transition: var(--transicion);
}

/* ===== 7. Hero ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg,
        var(--hero-from-color) 0%,
        var(--hero-mid-color) 40%,
        var(--hero-to-color) 70%,
        var(--hero-end-color) 100%
    );
    overflow: hidden;
}

/* ===== Hero Slider ===== */
.hero-slider .hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slider .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 0;
}

.hero-slider .hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero-slider .hero-slide.active {
    opacity: 1;
}

.hero-slider .slider-dots {
    position: absolute;
    bottom: 160px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.hero-slider .slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider .slider-dots .dot.active {
    background: var(--amarillo);
    border-color: var(--amarillo);
    transform: scale(1.2);
}

.hero-slider .slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider .hero-slide {
        transition: none;
    }
}

/* Override hero gradient for slider mode */
.hero.hero-slider {
    background: var(--verde-oscuro);
}
.hero.hero-slider::before {
    display: none;
}
.hero.hero-slider .hero-particles {
    display: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(73, 169, 66, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(232, 227, 55, 0.2) 0%, transparent 40%);
    background-image:
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>'),
        radial-gradient(ellipse at 30% 20%, rgba(73, 169, 66, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(232, 227, 55, 0.2) 0%, transparent 40%);
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 10px); }
}

/* Smooth gradient animation (CSS-only, replaces JS `initGradientAnimation`) */
.hero {
    background-size: 200% 200%;
    animation: heroGradientShift 8s ease-in-out infinite alternate;
}

@keyframes heroGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .hero {
        animation: none;
    }
}

/* Floating hero particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(232, 227, 55, 0.6);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

.particle:nth-child(2n) {
    background: rgba(255, 255, 255, 0.4);
    width: 4px;
    height: 4px;
}

.particle:nth-child(3n) {
    background: rgba(243, 153, 49, 0.5);
    width: 8px;
    height: 8px;
}

.particle:nth-child(1)  { left: 10%; animation-delay: 0s;   animation-duration: 18s; }
.particle:nth-child(2)  { left: 20%; animation-delay: 2s;   animation-duration: 22s; }
.particle:nth-child(3)  { left: 30%; animation-delay: 4s;   animation-duration: 16s; }
.particle:nth-child(4)  { left: 40%; animation-delay: 1s;   animation-duration: 20s; }
.particle:nth-child(5)  { left: 50%; animation-delay: 3s;   animation-duration: 24s; }
.particle:nth-child(6)  { left: 60%; animation-delay: 5s;   animation-duration: 19s; }
.particle:nth-child(7)  { left: 70%; animation-delay: 2.5s; animation-duration: 21s; }
.particle:nth-child(8)  { left: 80%; animation-delay: 0.5s; animation-duration: 17s; }
.particle:nth-child(9)  { left: 90%; animation-delay: 3.5s; animation-duration: 23s; }
.particle:nth-child(10) { left: 15%; animation-delay: 1.5s; animation-duration: 25s; }
.particle:nth-child(11) { left: 35%; animation-delay: 4.5s; animation-duration: 20s; }
.particle:nth-child(12) { left: 55%; animation-delay: 2s;   animation-duration: 18s; }
.particle:nth-child(13) { left: 75%; animation-delay: 0s;   animation-duration: 22s; }
.particle:nth-child(14) { left: 85%; animation-delay: 3s;   animation-duration: 16s; }
.particle:nth-child(15) { left: 25%; animation-delay: 5s;   animation-duration: 24s; }

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.hero-overlay {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 150px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 150"><path fill="%23ffffff" d="M0,64L48,69.3C96,75,192,85,288,90.7C384,96,480,96,576,85.3C672,75,768,53,864,48C960,43,1056,53,1152,58.7C1248,64,1344,64,1392,64L1440,64L1440,150L1392,150C1344,150,1248,150,1152,150C1056,150,960,150,864,150C768,150,672,150,576,150C480,150,384,150,288,150C192,150,96,150,48,150L0,150Z"/></svg>');
    background-size: cover;
    background-position: bottom;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 900px;
}

.hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--blanco);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.03em;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out;
}

.hero-title span {
    color: var(--amarillo);
    position: relative;
}

.hero-subtitle {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 48px;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.15);
    padding: 12px 30px;
    border-radius: 50px;
    display: inline-block;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

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

/* ===== 8. Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    border-radius: 60px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--naranja) 0%, #E88A20 100%);
    color: var(--blanco);
    box-shadow: 0 8px 30px rgba(243, 153, 49, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E88A20 0%, var(--naranja) 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(243, 153, 49, 0.5);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--blanco);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--blanco);
    color: var(--blanco);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

.btn-link {
    background: none;
    border: none;
    color: var(--verde-claro);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicion);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-link:hover {
    color: var(--naranja);
}

.btn-link i {
    transition: var(--transicion);
}

.btn-link:hover i {
    transform: translateX(5px);
}

.btn-block {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* ===== 9. About Section ===== */
.about {
    padding: 100px 0;
    background: var(--verde-mint);
}

.about-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    flex-wrap: nowrap;
}

.about-grid .about-card {
    flex: 1;
    max-width: 350px;
    min-width: 280px;
}

.about-card {
    background: var(--blanco);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(13, 91, 64, 0.08);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--verde-claro), var(--amarillo), var(--naranja));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card:hover {
    transform: translateY(-12px) perspective(1000px) rotateX(2deg);
    box-shadow: 0 30px 60px rgba(13, 91, 64, 0.15);
    border-color: transparent;
}

.about-card i {
    font-size: 3rem;
    color: var(--verde-claro);
    margin-bottom: 20px;
}

.about-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    color: var(--verde-oscuro);
    margin-bottom: 15px;
}

.about-card p {
    color: #666;
}

/* ===== 10. Programs Section ===== */
.programs {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--verde-oscuro) 0%, #2E8B5A 50%, var(--verde-claro) 100%);
    position: relative;
    overflow: hidden;
}

.programs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><circle cx="40" cy="40" r="2" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 80px 80px;
}

.programs .section-header h2 {
    color: var(--blanco);
}

.programs .section-header h2::after {
    background: linear-gradient(90deg, var(--amarillo), var(--naranja));
    width: 100px;
    height: 5px;
    border-radius: 3px;
}

.programs .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    position: relative;
    z-index: 1;
}

.program-card {
    background: var(--blanco);
    padding: 35px 25px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(13, 91, 64, 0.08);
    transform-style: preserve-3d;
}

.program-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(232, 227, 55, 0.3) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.program-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.program-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
    box-shadow:
        20px 20px 60px rgba(13, 91, 64, 0.2),
        -5px -5px 20px rgba(255, 255, 255, 0.8);
}

.program-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--verde-claro) 0%, var(--verde-oscuro) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(13, 91, 64, 0.3);
}

.program-card:hover .program-icon {
    background: linear-gradient(135deg, var(--naranja) 0%, var(--amarillo) 100%);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 15px 40px rgba(243, 153, 49, 0.4);
}

.program-icon i {
    font-size: 2.2rem;
    color: var(--blanco);
}

.program-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--verde-oscuro);
    margin-bottom: 12px;
}

.program-card p {
    color: #666;
    margin-bottom: 18px;
    line-height: 1.6;
}

/* ===== 11. Faculty Section ===== */
.faculty {
    padding: 100px 0;
    background: var(--verde-mint);
}

.faculty-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.faculty-card {
    flex: 1 1 280px;
    max-width: 350px;
    background: var(--blanco);
    padding: 30px 20px 35px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(13, 91, 64, 0.08);
    position: relative;
}

.faculty-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(13, 91, 64, 0.12);
}

.faculty-image {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 3 / 2;
    background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde-claro) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 3px solid rgba(232, 227, 55, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.faculty-card:hover .faculty-image {
    border-color: var(--amarillo);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(13, 91, 64, 0.3);
}

.faculty-image i {
    font-size: 4rem;
    color: var(--blanco);
    opacity: 0.8;
}

.faculty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.faculty-email {
    display: inline-block;
    color: var(--verde-claro);
    font-size: 0.85rem;
    margin-top: 8px;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-all;
}

.faculty-email:hover {
    color: var(--verde-oscuro);
    text-decoration: underline;
}

.faculty-section {
    margin-bottom: 60px;
}

.faculty-section:last-child {
    margin-bottom: 0;
}

.faculty-section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    color: var(--verde-oscuro);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.faculty-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--amarillo);
    margin: 10px auto 0;
    border-radius: 2px;
}

.faculty-card .faculty-description {
    color: #666;
    font-size: 0.9rem;
    margin-top: 4px;
}

.faculty-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    color: var(--verde-oscuro);
    margin-bottom: 5px;
}

.faculty-role {
    color: var(--naranja);
    font-weight: 600;
    margin-bottom: 10px;
}

.faculty-card p {
    color: #666;
    font-size: 0.9rem;
}

/* ===== 12. Admissions Section ===== */
.admissions {
    padding: 120px 0;
    background: linear-gradient(180deg, #2E8B5A 0%, #4CAF50 50%, #81C784 100%);
    position: relative;
}

.admissions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><circle cx="30" cy="30" r="1.5" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 60px 60px;
    pointer-events: none;
}

.admissions .section-header h2 {
    color: var(--blanco);
}

.admissions .section-header h2::after {
    background: linear-gradient(90deg, var(--amarillo), var(--naranja));
    width: 100px;
    height: 5px;
    border-radius: 3px;
}

.admissions .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.admissions .contact-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.admissions .contact-header p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
}

.admissions .contact-header a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.admissions .contact-header a:hover {
    color: var(--amarillo);
}

.admissions .contact-header i {
    margin-right: 4px;
}

.admissions-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.admissions-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 45px;
    border-radius: 28px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admissions-info h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    color: var(--verde-oscuro);
    margin-bottom: 20px;
}

.requirements-list {
    margin-bottom: 30px;
}

.requirements-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gris-claro);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transicion);
}

.requirements-list li:hover {
    padding-left: 10px;
    background: var(--gris-claro);
    border-radius: 5px;
}

.requirements-list li i {
    color: var(--verde-claro);
}

.important-dates {
    background: var(--amarillo);
    padding: 20px;
    border-radius: 15px;
}

.important-dates h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--verde-oscuro);
}

.important-dates p {
    margin-bottom: 5px;
    color: var(--verde-oscuro);
}

.admissions-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 45px;
    border-radius: 28px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admissions-form h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    color: var(--verde-oscuro);
    margin-bottom: 20px;
    text-align: center;
}

.google-form-wrapper {
    width: 100%;
    min-height: 600px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.google-form-wrapper iframe {
    display: block;
    width: 100%;
    min-height: 800px;
    border: none;
}

/* ===== 12b. Admissions Blocks ===== */
.admissions-block {
    background: #fff;
    border-radius: 12px;
    padding: 30px 35px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--verde-claro);
}

.admissions-block h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    color: var(--verde-oscuro);
    margin-bottom: 16px;
}

.admissions-block h3 i {
    margin-right: 8px;
    color: var(--verde-claro);
}

.admissions-block h4 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--verde-oscuro);
    margin: 20px 0 10px;
}

.admissions-block p {
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
}

/* Process list */
.process-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: none;
}

.process-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.process-list li:last-child {
    border-bottom: none;
}

.process-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--verde-claro);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

.process-list li div p {
    margin: 4px 0 0;
    font-size: 0.95rem;
    color: #555;
}

/* FAQ accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-item[open] {
    border-color: var(--verde-claro);
}

.faq-item summary {
    padding: 14px 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--verde-oscuro);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--verde-claro);
    transition: transform 0.25s;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item summary:hover {
    background: #f7fdf7;
}

.faq-answer {
    padding: 0 18px 16px;
    color: #444;
    line-height: 1.7;
}

.faq-answer ul {
    margin: 8px 0;
    padding-left: 20px;
}

.faq-answer ul li {
    margin-bottom: 4px;
}

/* ===== 13. Form Styles ===== */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--verde-oscuro);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(13, 91, 64, 0.1);
    border-radius: 14px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(245, 245, 245, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--verde-claro);
    background: var(--blanco);
    box-shadow: 0 0 0 4px rgba(73, 169, 66, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== 14. Activities Section ===== */
.activities {
    padding: 100px 0;
    background: var(--verde-mint);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.activity-card {
    background: var(--blanco);
    padding: 35px 25px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(13, 91, 64, 0.08);
    position: relative;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--verde-claro) 0%, var(--verde-oscuro) 100%);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.activity-card:hover::before {
    opacity: 1;
}

.activity-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 30px 60px rgba(13, 91, 64, 0.2);
}

.activity-card:hover .activity-icon {
    background: var(--blanco);
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.activity-card:hover .activity-icon i {
    color: var(--verde-oscuro);
}

.activity-card:hover h3,
.activity-card:hover p {
    color: var(--blanco);
    position: relative;
    z-index: 1;
}

.activity-icon {
    width: 80px;
    height: 80px;
    background: var(--verde-oscuro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transicion);
}

.activity-icon i {
    font-size: 2rem;
    color: var(--blanco);
    transition: var(--transicion);
}

.activity-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    color: var(--verde-oscuro);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.activity-card p {
    color: #666;
    position: relative;
    z-index: 1;
}

/* ===== 15. Contact Section ===== */
.contact {
    padding: 120px 0;
    background: var(--verde-mint);
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info {
    background: linear-gradient(135deg, var(--verde-oscuro) 0%, #2E8B5A 100%);
    padding: 50px;
    border-radius: 28px;
    color: var(--blanco);
    box-shadow: 0 25px 80px rgba(13, 91, 64, 0.25);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(232, 227, 55, 0.1) 0%, transparent 50%);
    animation: floatBg 8s ease-in-out infinite;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--amarillo);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover i {
    background: var(--amarillo);
    color: var(--verde-oscuro);
    transform: rotate(10deg) scale(1.1);
}

.contact-item h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-item p {
    opacity: 0.9;
    line-height: 1.6;
}

.social-media {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.social-media a {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-media a:hover {
    background: var(--amarillo);
    transform: translateY(-8px) rotate(10deg);
    box-shadow: 0 10px 30px rgba(232, 227, 55, 0.4);
}

.social-media i {
    font-size: 1.3rem;
    color: var(--blanco);
}

.social-media a:hover i {
    color: var(--verde-oscuro);
}

.contact-form {
    background: var(--blanco);
    padding: 50px;
    border-radius: 28px;
    box-shadow: 0 25px 80px rgba(13, 91, 64, 0.12);
    border: 1px solid rgba(13, 91, 64, 0.05);
}

.contact-form h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    color: var(--verde-oscuro);
    margin-bottom: 20px;
    text-align: center;
}

/* ===== 16. Footer ===== */
.footer {
    background: linear-gradient(180deg, var(--verde-oscuro) 0%, #2E8B5A 100%);
    padding: 80px 0 30px;
    color: var(--blanco);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 150"><path fill="rgba(255,255,255,0.03)" d="M0,64L48,69.3C96,75,192,85,288,90.7C384,96,480,96,576,85.3C672,75,768,53,864,48C960,43,1056,53,1152,58.7C1248,64,1344,64,1392,64L1440,64L1440,0L0,0Z"/></svg>');
    background-size: cover;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--amarillo);
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--verde-claro), var(--amarillo));
    border-radius: 2px;
}

.footer-section h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--amarillo);
}

.footer-section p {
    opacity: 0.85;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.footer-section ul li {
    margin-bottom: 14px;
}

.footer-section a {
    opacity: 0.85;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
}

.footer-section a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--amarillo);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section a:hover {
    color: var(--amarillo);
    padding-left: 8px;
}

.footer-section a:hover::before {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ===== 17. News Section ===== */
.news-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--verde-mint) 0%, var(--blanco) 30%, var(--crema) 100%);
    position: relative;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, var(--verde-mint), transparent);
    pointer-events: none;
}

.news-section .section-header h2 {
    color: var(--verde-oscuro);
}

.news-section .section-header h2::after {
    background: linear-gradient(90deg, var(--verde-claro), var(--amarillo));
}

.news-section .section-subtitle {
    color: #666;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.instagram-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.instagram-feed-grid .instagram-media {
    width: calc(100% - 2px) !important;
    min-width: 280px !important;
    margin: 0 auto !important;
}

.news-card {
    background: var(--blanco);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(13, 91, 64, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(13, 91, 64, 0.08);
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--verde-claro), var(--amarillo), var(--naranja));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.news-card:hover::before {
    opacity: 1;
}

.news-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 80px rgba(13, 91, 64, 0.2);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(30, 107, 74, 0.4), transparent);
}

.news-content {
    padding: 30px 25px;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--naranja);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-date i {
    font-size: 0.9rem;
    color: var(--naranja);
}

.news-content h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--verde-oscuro);
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--verde-claro);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: var(--naranja);
    gap: 12px;
}

.news-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.news-link:hover i {
    transform: translateX(5px);
}

.news-follow {
    text-align: center;
    margin-top: 50px;
}

.news-follow .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 45px;
}

/* ===== 18. Instagram Feed ===== */
.instagram-feed {
    padding: 80px 0;
    background: #f5f5f5;
}

.instagram-feed .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.instagram-feed .section-header h2 {
    color: var(--verde-oscuro);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.instagram-feed .section-subtitle {
    color: var(--amarillo);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===== 19. Calendar Section ===== */
.calendar-section {
    padding: 100px 0;
    background: var(--verde-mint);
}

.calendar-events-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
}

.calendar-column,
.events-column {
    flex: 1;
    max-width: 450px;
}

.column-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    color: var(--verde-oscuro);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.calendar-wrapper {
    background: var(--blanco);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--verde-oscuro);
}

.calendar-nav {
    background: var(--verde-claro);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--blanco);
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-nav:hover {
    background: var(--verde-oscuro);
    transform: scale(1.1);
}

.calendar-nav i {
    font-size: 0.75rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 10px;
}

.calendar-weekdays span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #888;
    padding: 5px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.calendar-day:hover {
    background: var(--verde-mint);
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day.today {
    background: var(--amarillo);
    color: var(--verde-oscuro);
    font-weight: 700;
}

.calendar-day.has-event {
    background: var(--verde-claro);
    color: var(--blanco);
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 3px;
    width: 4px;
    height: 4px;
    background: var(--naranja);
    border-radius: 50%;
}

.calendar-day.range {
    background: rgba(73, 169, 66, 0.25);
    color: var(--verde-oscuro);
    border-radius: 0;
}

.calendar-day.range:first-child,
.calendar-day.range.has-event:not(.range) {
    border-radius: 50% 0 0 50%;
}

.calendar-day.range:last-child {
    border-radius: 0 50% 50% 0;
}

.calendar-tooltip {
    position: absolute;
    z-index: 9999;
    background: var(--verde-oscuro);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: pre-line;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    max-width: 260px;
    text-align: center;
}

.calendar-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--verde-oscuro);
}

.no-events-msg {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 30px 10px;
}

.event-details h4 i {
    margin-right: 6px;
    color: var(--verde-claro);
    font-size: 0.9rem;
}

.events-list {
    max-width: 100%;
}

.events-list h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--verde-oscuro);
    margin-bottom: 25px;
    text-align: left;
}

.event-item {
    display: flex;
    gap: 14px;
    background: var(--blanco);
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.event-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.event-date {
    background: var(--verde-claro);
    color: var(--blanco);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    min-width: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-day {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.7rem;
    text-transform: uppercase;
}

.event-details {
    flex: 1;
}

.event-details h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--verde-oscuro);
    margin-bottom: 3px;
}

.event-details p {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.event-time {
    font-size: 0.75rem;
    color: var(--naranja);
    font-weight: 500;
}

/* ===== Modal content classes (replaces inline styles in JS) ===== */
.modal-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--verde-oscuro);
    margin-bottom: 20px;
    font-size: 2rem;
}

.modal-subtitle {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--verde-oscuro);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.modal-body-text {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.modal-info-box {
    background: var(--gris-claro);
    padding: 20px;
    border-radius: 15px;
}

.modal-info-box ul {
    list-style: none;
    padding: 0;
}

.modal-info-box li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-info-box li i {
    color: var(--verde-claro);
}

.modal-role {
    color: var(--naranja);
    font-weight: 600;
    margin-bottom: 20px;
}

.modal-close-btn {
    margin-top: 20px;
    width: 100%;
    padding: 15px;
}

/* ===== 20. Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--blanco);
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--verde-oscuro);
    transition: var(--transicion);
}

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

/* ===== 21. Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--naranja);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transicion);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--verde-oscuro);
    transform: translateY(-5px);
}

/* ===== 22. Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gris-claro);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--verde-claro), var(--verde-oscuro));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--verde-oscuro), var(--verde-claro));
}

/* ============================================================
   Project Pages — Nosotros / Proyecto
   ============================================================ */

.project-hero {
    padding: 80px 0 60px;
    background: linear-gradient(160deg, #2E8B5A 0%, var(--verde-claro) 100%);
    color: var(--blanco);
    text-align: center;
    position: relative;
}

.project-hero h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--blanco);
}

.project-hero .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.project-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.5s ease, border-color 0.3s ease;
}

.project-gallery img:hover {
    transform: scale(1.05);
    border-color: var(--amarillo);
}

.project-intro {
    padding: 100px 0;
    background: var(--blanco);
    text-align: center;
}

.project-intro h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.5rem;
    color: var(--verde-oscuro);
    margin-bottom: 30px;
}

.project-intro p {
    max-width: 800px;
    margin: 0 auto;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
}

.project-cards-section {
    padding: 100px 0;
    background: var(--verde-mint);
}

.project-cards-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.project-card {
    flex: 1 1 300px;
    max-width: 400px;
    background: var(--blanco);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(13, 91, 64, 0.08);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(13, 91, 64, 0.12);
}

.project-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde-claro) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border: 3px solid rgba(232, 227, 55, 0.3);
    transition: all 0.5s ease;
}

.project-card:hover .project-card-icon {
    border-color: var(--amarillo);
    transform: scale(1.1) rotate(5deg);
}

.project-card-icon i {
    font-size: 2rem;
    color: var(--blanco);
}

.project-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    color: var(--verde-oscuro);
    margin-bottom: 15px;
}

.project-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

.project-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
    text-align: left;
}

.project-list li {
    position: relative;
    padding: 8px 0 8px 28px;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(13, 91, 64, 0.06);
}

.project-list li:last-child {
    border-bottom: none;
}

.project-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 9px;
    color: var(--verde-claro);
    font-size: 0.8rem;
}

.project-card-wide {
    flex: 1 1 100%;
    max-width: 100%;
}

.project-card-wide .project-list {
    max-width: 800px;
    margin: 15px auto 0;
}

.project-card-wide h3 {
    text-align: center;
}

.project-card-wide p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.project-orientacion {
    padding: 100px 0;
    background: var(--blanco);
}

.project-orientacion h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.2rem;
    color: var(--verde-oscuro);
    text-align: center;
    margin-bottom: 10px;
}

.project-orientacion > .container > .section-subtitle {
    text-align: center;
    color: #666;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1rem;
    line-height: 1.7;
}

.orientacion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.orientacion-item {
    background: var(--verde-mint);
    padding: 30px;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.orientacion-item:hover {
    transform: translateY(-5px);
}

.orientacion-item h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem;
    color: var(--verde-oscuro);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.orientacion-item h4 i {
    color: var(--verde-claro);
    font-size: 1.1rem;
}

.orientacion-item p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.7;
}

.project-extra-bg {
    background: var(--verde-mint);
}

/* ============================================================
   Documentos / Planes y Protocolos
   ============================================================ */
.documentos-hero {
    padding: 80px 0 60px;
    background: linear-gradient(160deg, #2E8B5A 0%, var(--verde-claro) 100%);
    color: var(--blanco);
    text-align: center;
    position: relative;
}

.documentos-hero h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--blanco);
}

.documentos-hero .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.documentos-section {
    padding: 100px 0;
    background: var(--verde-mint);
}

.documentos-section .section-header {
    margin-bottom: 60px;
}

.documentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.documento-card {
    background: var(--blanco);
    border-radius: 20px;
    padding: 28px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(13, 91, 64, 0.08);
    box-shadow: 0 4px 15px rgba(13, 91, 64, 0.06);
    position: relative;
    overflow: hidden;
}

.documento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--verde-claro), var(--verde-oscuro));
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.documento-card:hover::before {
    opacity: 1;
}

.documento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(13, 91, 64, 0.12);
}

.documento-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde-claro) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.documento-card:hover .documento-icon {
    background: linear-gradient(135deg, var(--naranja) 0%, var(--amarillo) 100%);
    transform: scale(1.05) rotate(-5deg);
}

.documento-icon i {
    font-size: 1.4rem;
    color: var(--blanco);
}

.documento-info {
    flex: 1;
    min-width: 0;
}

.documento-info h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    color: var(--verde-oscuro);
    margin-bottom: 4px;
    font-weight: 600;
    line-height: 1.3;
}

.documento-info .documento-meta {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.documento-info .documento-meta i {
    font-size: 0.7rem;
    color: var(--naranja);
}

.documento-link {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--verde-mint);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--verde-claro);
    transition: all 0.3s ease;
    text-decoration: none;
}

.documento-card:hover .documento-link {
    background: var(--naranja);
    color: var(--blanco);
    transform: translateX(3px);
}

.documento-link i {
    font-size: 1.1rem;
}

.documento-link:hover {
    background: var(--naranja) !important;
    color: var(--blanco) !important;
}

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

    .documentos-hero h2 {
        font-size: 2.2rem;
    }

    .documento-card {
        padding: 20px;
    }

    .documento-icon {
        width: 48px;
        height: 48px;
    }

    .documento-icon i {
        font-size: 1.2rem;
    }

    .documento-info h3 {
        font-size: 1rem;
    }
}

/* ============================================================
   Animations (migrated from JS)
   ============================================================ */

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.about-card { transition-delay: 0s; }
.about-card:nth-child(2) { transition-delay: 0.15s; }
.about-card:nth-child(3) { transition-delay: 0.3s; }

.program-card { transition-delay: 0s; }
.program-card:nth-child(2) { transition-delay: 0.12s; }
.program-card:nth-child(3) { transition-delay: 0.24s; }
.program-card:nth-child(4) { transition-delay: 0.36s; }

.faculty-card { transition-delay: 0s; }
.faculty-card:nth-child(2) { transition-delay: 0.1s; }
.faculty-card:nth-child(3) { transition-delay: 0.2s; }
.faculty-card:nth-child(4) { transition-delay: 0.3s; }

.activity-card { transition-delay: 0s; }
.activity-card:nth-child(2) { transition-delay: 0.1s; }
.activity-card:nth-child(3) { transition-delay: 0.2s; }
.activity-card:nth-child(4) { transition-delay: 0.3s; }
.activity-card:nth-child(5) { transition-delay: 0.4s; }
.activity-card:nth-child(6) { transition-delay: 0.5s; }

.contact-item { transition-delay: 0s; }
.contact-item:nth-child(2) { transition-delay: 0.15s; }
.contact-item:nth-child(3) { transition-delay: 0.3s; }
.contact-item:nth-child(4) { transition-delay: 0.45s; }

.news-card { transition-delay: 0s; }
.news-card:nth-child(2) { transition-delay: 0.1s; }
.news-card:nth-child(3) { transition-delay: 0.2s; }

/* Typewriter cursor */
@keyframes blink {
    0%, 50% { border-color: #E8E337; }
    51%, 100% { border-color: transparent; }
}

/* Button ripple effect */
@keyframes ripple {
    to {
        transform: scale(20);
        opacity: 0;
    }
}

/* Morphing background blobs */
.morphing-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 227, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

.about,
.programs,
.faculty,
.admissions {
    position: relative;
    overflow: hidden;
}

/* Notification toast */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 3000;
    animation: notificationSlideIn 0.3s ease;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.notification-success {
    background: var(--verde-claro);
}

.notification-error {
    background: var(--naranja);
}

.notification button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================
   Media Queries (section-level)
   ============================================================ */

/* Mobile menu backdrop */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 991px) {
    .header {
        padding: 12px 0;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo img {
        height: 40px !important;
        width: auto !important;
        max-width: 150px;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        background: #ffffff;
        padding: 20px;
        transition: all 0.4s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        z-index: 999;
    }

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

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(13, 91, 64, 0.1);
    }

    .nav-menu a {
        display: block;
        padding: 15px 20px;
        text-align: left;
        color: var(--verde-oscuro);
    }

    .nav-menu a::after {
        display: none;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .admissions-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .about, .programs, .faculty, .admissions, .activities, .contact {
        padding: 80px 0;
    }

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

    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Calendar */
    .calendar-events-container {
        flex-direction: column;
        align-items: center;
    }

    .calendar-column,
    .events-column {
        width: 100%;
        max-width: 450px;
    }

    .column-title {
        font-size: 1.4rem;
        text-align: center;
    }

    .calendar-wrapper {
        padding: 15px;
    }

    .calendar-header h3 {
        font-size: 1rem;
    }

    .calendar-nav {
        width: 28px;
        height: 28px;
    }

    .calendar-nav i {
        font-size: 0.7rem;
    }

    .calendar-weekdays span {
        font-size: 0.6rem;
    }

    .calendar-day {
        font-size: 0.7rem;
    }

    .events-list h3 {
        font-size: 1.4rem;
        text-align: center;
    }

    .event-item {
        padding: 12px;
        gap: 12px;
    }

    .event-date {
        padding: 10px;
        min-width: 50px;
    }

    .event-day {
        font-size: 1.1rem;
    }

    .event-month {
        font-size: 0.65rem;
    }

    .event-details h4 {
        font-size: 1rem;
    }

    .event-details p {
        font-size: 0.8rem;
    }

    .event-time {
        font-size: 0.75rem;
    }

    /* Project pages */
    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-gallery img {
        height: 150px;
    }

    .orientacion-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        flex: 1 1 100%;
    }

    .project-hero h2 {
        font-size: 2.2rem;
    }

    .project-intro h2 {
        font-size: 2rem;
    }

    /* Mobile dropdown (991 and below) */
    .menu-item-has-children > a::before {
        font-size: 0.65rem;
    }
    .menu-item-has-children.open > a::before {
        transform: translateY(-50%) rotate(180deg);
    }
    .sub-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0 0 5px 20px;
        border-radius: 0;
        min-width: auto;
    }
    .menu-item-has-children.open .sub-menu {
        display: block;
    }
    .sub-menu a {
        color: var(--verde-oscuro) !important;
        padding: 10px 18px;
        font-size: 0.85rem;
        text-transform: none;
        font-weight: 500 !important;
    }
    .sub-menu a:hover {
        background: var(--verde-mint);
    }
    .sub-menu .active {
        background: var(--verde-mint);
        font-weight: 700 !important;
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: 500px;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -0.02em;
    }

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

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        background: rgba(13, 91, 64, 0.98);
        backdrop-filter: blur(20px);
        padding: 30px 20px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

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

    .nav-menu ul {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .nav-menu a {
        color: var(--naranja);
        font-size: 1.1rem;
        display: block;
        padding: 15px 20px;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a::after {
        display: none;
    }

    /* Sub-menu text on dark background */
    .sub-menu a {
        color: rgba(255, 255, 255, 0.85) !important;
        text-align: center;
        font-size: 0.95rem;
    }
    .sub-menu a:hover,
    .sub-menu .active {
        background: rgba(255, 255, 255, 0.1);
        color: var(--blanco) !important;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    .hamburger span {
        background: var(--verde-oscuro);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .about, .programs, .faculty, .admissions, .activities, .contact {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .about-grid,
    .programs-grid,
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faculty-grid {
        gap: 20px;
    }

    .faculty-card {
        flex: 1 1 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.3rem;
    }

    .footer {
        padding: 50px 0 20px;
    }

    .admissions-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .modal-content {
        padding: 20px;
        margin: 15px;
    }

    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    /* Calendar */
    .calendar-events-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .calendar-column,
    .events-column {
        max-width: 100%;
    }

    .column-title {
        font-size: 1.25rem;
    }

    .calendar-wrapper {
        padding: 12px;
    }

    .calendar-header h3 {
        font-size: 0.9rem;
    }

    .calendar-nav {
        width: 24px;
        height: 24px;
    }

    .calendar-nav i {
        font-size: 0.6rem;
    }

    .calendar-weekdays span {
        font-size: 0.55rem;
        padding: 2px 0;
    }

    .calendar-day {
        font-size: 0.6rem;
    }

    .events-list h3 {
        font-size: 1.25rem;
    }

    .event-item {
        padding: 10px;
        gap: 10px;
    }

    .event-date {
        padding: 8px;
        min-width: 42px;
    }

    .event-day {
        font-size: 1rem;
    }

    .event-month {
        font-size: 0.55rem;
    }

    .event-details h4 {
        font-size: 0.9rem;
    }

    .event-details p {
        font-size: 0.75rem;
    }

    .event-time {
        font-size: 0.7rem;
    }

    /* Slider dots on mobile */
    .hero-slider .slider-dots {
        bottom: 120px;
        gap: 10px;
    }
    .hero-slider .slider-dots .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .about, .programs, .faculty, .admissions, .activities, .contact {
        padding: 60px 0;
    }

    .about-grid,
    .programs-grid,
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faculty-grid {
        gap: 20px;
    }

    .faculty-card {
        flex: 1 1 100%;
    }

    .about-card,
    .program-card,
    .faculty-card,
    .activity-card {
        padding: 20px;
    }

    .admissions-info,
    .admissions-form,
    .contact-info,
    .contact-form {
        padding: 20px;
        border-radius: 15px;
    }

    .requirements-list li {
        font-size: 0.9rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.2rem;
    }

    .modal-content {
        padding: 20px;
        margin: 15px;
    }

    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    /* Calendar */
    .calendar-events-container {
        gap: 25px;
    }

    .calendar-wrapper {
        padding: 10px;
    }

    .column-title {
        font-size: 1.1rem;
    }

    .calendar-header h3 {
        font-size: 0.85rem;
    }

    .calendar-nav {
        width: 22px;
        height: 22px;
    }

    .calendar-nav i {
        font-size: 0.55rem;
    }

    .calendar-weekdays span {
        font-size: 0.5rem;
    }

    .calendar-day {
        font-size: 0.55rem;
    }

    .events-list h3 {
        font-size: 1.1rem;
    }

    .event-item {
        padding: 8px;
        gap: 8px;
    }

    .event-date {
        padding: 6px;
        min-width: 38px;
    }

    .event-day {
        font-size: 0.9rem;
    }

    .event-month {
        font-size: 0.5rem;
    }

    .event-details h4 {
        font-size: 0.85rem;
    }

    .event-details p {
        font-size: 0.7rem;
    }

    .event-time {
        font-size: 0.65rem;
    }

    /* project pages */
    .project-hero {
        padding: 60px 0 40px;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }

    .project-gallery img {
        height: 200px;
    }

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

    .project-intro,
    .project-cards-section,
    .project-orientacion {
        padding: 60px 0;
    }

    .project-intro h2 {
        font-size: 1.6rem;
    }

    /* Mobile dropdown (767 and below — dark bg) */
    .sub-menu a {
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 0.9rem;
        padding: 10px 20px;
        text-align: center;
    }
    .sub-menu a:hover,
    .sub-menu .active {
        background: rgba(255, 255, 255, 0.1);
        color: var(--blanco) !important;
    }
    .menu-item-has-children {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* ===== Touch devices: disable hover transforms ===== */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }

    .about-card:hover,
    .program-card:hover,
    .faculty-card:hover,
    .activity-card:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.98);
    }

    .nav-menu a:active {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

