/* ==============================================
   PCEI TUNGURAHUA - Main Stylesheet
   Unidad Educativa Fiscomisional
   ============================================== */

/* CSS Variables */
:root {
    --primary: #1a237e;
    --primary-light: #283593;
    --primary-dark: #0d1442;
    --accent: #c8a952;
    --accent-light: #d4b96a;
    --accent-dark: #a88d3a;
    --secondary: #0d47a1;
    --success: #2e7d32;
    --warning: #f9a825;
    --danger: #c62828;
    --light: #f8fafc;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --black: #000000;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==============================================
   DARK MODE
   ============================================== */
[data-theme="dark"] {
    --primary: #3949ab;
    --primary-light: #5c6bc0;
    --primary-dark: #1a237e;
    --accent: #d4b96a;
    --accent-light: #e0ca85;
    --accent-dark: #b89a40;
    --secondary: #1976d2;
    --light: #1e293b;
    --gray-50: #1e293b;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #64748b;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
    --gray-700: #e2e8f0;
    --gray-800: #f1f5f9;
    --gray-900: #0f172a;
    --white: #1e293b;
    --black: #f8fafc;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.4), 0 8px 10px -6px rgba(0,0,0,0.3);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.5);
}
[data-theme="dark"] body {
    background: #0f172a;
    color: #e2e8f0;
}
[data-theme="dark"] .section-title {
    color: #f1f5f9;
}
[data-theme="dark"] .section-desc {
    color: #94a3b8;
}
[data-theme="dark"] .hero-wave svg path {
    fill: #1e293b;
}
[data-theme="dark"] .footer-wave svg path {
    fill: #0f172a;
}
[data-theme="dark"] .announcement-bar {
    background: linear-gradient(90deg, #a88d3a, #c8a952, #a88d3a);
}
[data-theme="dark"] .google-form-container {
    border-color: #334155;
}
[data-theme="dark"] .google-form-container iframe {
    filter: invert(0.88) hue-rotate(180deg);
}
[data-theme="dark"] .cta-banner {
    background: linear-gradient(135deg, #1a237e, #0d47a1);
}
[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, #0a0f2e 0%, #1a237e 50%, #0d47a1 100%);
}
[data-theme="dark"] .cost-card,
[data-theme="dark"] .modality-card {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .mv-img,
[data-theme="dark"] .gallery-img,
[data-theme="dark"] .program-img,
[data-theme="dark"] .modality-img,
[data-theme="dark"] .staff-img {
    filter: brightness(0.9);
}

/* Dark Mode Toggle Button */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    margin-right: 8px;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--accent);
    transform: rotate(30deg);
}
.theme-toggle .fa-sun {
    display: none;
}
[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}
[data-theme="dark"] .theme-toggle .fa-sun {
    display: inline;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent);
    color: var(--primary-dark);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.4);
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
    backdrop-filter: blur(4px);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-nav {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50px;
}
.btn-nav:hover {
    background: var(--accent-light);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(200, 169, 82, 0.4);
}

.btn-outline-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}
.btn-outline-sm:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    border-radius: 50px;
    box-shadow: var(--shadow);
}
.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    font-weight: 600;
}
.btn-whatsapp:hover {
    background: #1eba56;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-outline-footer {
    background: transparent;
    color: var(--gray-300);
    border-color: rgba(255,255,255,0.2);
    padding: 12px 20px;
    font-size: 0.85rem;
    border-radius: var(--radius);
    justify-content: center;
}
.btn-outline-footer:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}
.nav-seal {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    transition: var(--transition);
}
.nav-logo:hover .nav-seal {
    border-color: var(--accent-light);
    box-shadow: 0 0 20px rgba(200, 169, 82, 0.3);
}
.nav-brand-title {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}
.nav-brand-subtitle {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}
.nav-link {
    padding: 8px 16px;
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
}
.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}
.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(5px, -5px);
}

@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--gray-900);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 40px 24px;
        transform: translateX(100%);
        transition: var(--transition-slow);
    }
    .nav-menu.active {
        transform: translateX(0);
    }
    .nav-link {
        font-size: 1.2rem;
        padding: 14px 24px;
    }
    .nav-cta {
        display: none;
    }
    .hamburger {
        display: flex;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 30%, var(--secondary) 70%, #1565c0 100%);
    overflow: hidden;
    padding: 120px 24px 80px;
}
.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(26, 35, 126, 0.65) 30%, rgba(13, 71, 161, 0.6) 70%, rgba(21, 101, 192, 0.55) 100%);
}
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
}
.particle {
    position: absolute;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    animation: floatUp linear infinite;
}
@keyframes floatUp {
    0% { transform: translateY(110vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    text-align: center;
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 32px;
}
.hero-badge i {
    color: var(--accent);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.hero-highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 650px;
    margin: 0 auto;
}
.stat-item {
    text-align: center;
    padding: 20px 12px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}
.stat-item:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-4px);
}
.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.3;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}
.hero-wave svg {
    width: 100%;
    height: 80px;
}

@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}
.animate-slide-up {
    animation: slideUp 0.8s ease-out both;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

/* Section Tags & Titles */
.section-tag {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(26, 35, 126, 0.08);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 50px;
    margin-bottom: 16px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.2;
}
.section-title span {
    color: var(--primary);
}
.section-desc {
    color: var(--gray-500);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

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

/* Reveal Animations */
.reveal, .reveal-left, .reveal-right {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-slow);
}
.reveal-left {
    transform: translateX(-40px);
}
.reveal-right {
    transform: translateX(40px);
}
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===== MISSION & VISION SECTION ===== */
.mission-vision {
    padding: 100px 0;
    background: var(--white);
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.mv-card {
    background: var(--gray-50);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.mv-image {
    width: 100%;
}

.mv-image .img-placeholder {
    border-radius: 0;
    border: none;
    border-bottom: 1px dashed var(--gray-200);
}

.mv-img {
    width: 100%;
    height: 280px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.mv-img-top {
    object-position: top center;
}

@media (max-width: 768px) {
    .mv-img {
        height: 220px;
    }
}

.mv-content {
    padding: 28px 32px 36px;
}

.mv-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 12px;
}

.mv-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.mv-content p {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 0.98rem;
}

@media (max-width: 768px) {
    .mv-grid {
        grid-template-columns: 1fr;
    }
    .mv-content {
        padding: 20px 24px 28px;
    }
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 100px 0;
    background: var(--gray-50);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 72px;
    align-items: center;
}
.about-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}
.about-image {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(26,35,126,0.05) 0%, rgba(200,169,82,0.08) 100%);
    border-radius: 50%;
    padding: 40px;
}
.about-image::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 3px dashed var(--accent);
    opacity: 0.4;
    animation: spinSlow 30s linear infinite;
}
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.about-seal {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
}
.about-image-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    font-weight: 600;
    color: var(--primary);
    font-size: 0.85rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}
.about-image-badge i {
    color: var(--accent);
}

.about-text {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features {
    margin: 28px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--success);
}
.feature-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2px;
}
.feature-text p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image-wrapper {
        order: -1;
    }
    .about-image {
        width: 240px;
        height: 240px;
        padding: 30px;
    }
    .about {
        padding: 60px 0;
    }
}

/* ===== PROGRAMS SECTION ===== */
.programs {
    padding: 100px 0;
    background: var(--white);
}
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.program-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 28px 32px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}
.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}
.program-card.featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(200,169,82,0.05) 0%, var(--white) 30%);
}
.program-card.featured:hover {
    border-color: var(--accent-dark);
    box-shadow: 0 25px 50px -12px rgba(200, 169, 82, 0.25);
}

.program-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.program-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(26,35,126,0.08), rgba(26,35,126,0.04));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.program-card.featured .program-icon {
    background: linear-gradient(135deg, rgba(200,169,82,0.2), rgba(200,169,82,0.1));
    color: var(--accent-dark);
}

.program-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}
.program-level {
    display: block;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}
.program-courses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.course-tag {
    padding: 4px 12px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 50px;
}
.program-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.program-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}
.program-details li {
    font-size: 0.83rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 8px;
}
.program-details li i {
    color: var(--accent);
    font-size: 0.75rem;
    width: 16px;
    text-align: center;
}

@media (max-width: 900px) {
    .programs-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
}

/* ===== MODALITIES SECTION ===== */
.modalities {
    padding: 100px 0;
    background: var(--gray-50);
}
.modalities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.modality-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.modality-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.modality-header {
    padding: 32px 28px 24px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.modality-virtual {
    background: linear-gradient(135deg, #4a148c, #7b1fa2);
}
.modality-night {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
}
.modality-weekend {
    background: linear-gradient(135deg, #e65100, #ef6c00);
}

.modality-badge {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4rem;
    backdrop-filter: blur(4px);
}
.modality-header h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.modality-type {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

.modality-body {
    padding: 40px 28px 28px;
    position: relative;
    z-index: 1;
}
.modality-schedule {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
}
.modality-schedule i {
    color: var(--primary);
    width: 18px;
    text-align: center;
}
.modality-body p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 16px 0;
}
.modality-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tool-tag {
    padding: 5px 12px;
    background: rgba(26,35,126,0.06);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 900px) {
    .modalities-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
}

/* ===== ENROLLMENT SECTION ===== */
.enrollment {
    padding: 100px 0;
    background: var(--white);
}
.enrollment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

.enrollment-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
}
.enrollment-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.enrollment-number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(26,35,126,0.06);
    line-height: 1;
    pointer-events: none;
}
.enrollment-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.enrollment-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}
.enrollment-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}
.enrollment-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.enrollment-card ul li {
    font-size: 0.85rem;
    color: var(--gray-600);
    padding-left: 18px;
    position: relative;
}
.enrollment-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.enrollment-info {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 14px;
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 0.82rem;
    color: var(--gray-700);
}
.enrollment-info i {
    color: var(--primary);
    margin-top: 2px;
}

.enrollment-cta {
    margin-top: 20px;
}
.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}
.cta-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.cta-content p {
    font-size: 1rem;
    opacity: 0.9;
}

@media (max-width: 900px) {
    .enrollment-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto 40px;
    }
    .cta-box {
        text-align: center;
        flex-direction: column;
    }
}

/* ===== COSTS SECTION ===== */
.costs {
    padding: 100px 0;
    background: var(--gray-50);
}
.costs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.cost-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.cost-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.cost-card.featured {
    border: 2px solid var(--accent);
    background: linear-gradient(180deg, rgba(200,169,82,0.04) 0%, var(--white) 40%);
    position: relative;
}
.cost-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--primary-dark);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.cost-header {
    margin-bottom: 24px;
}
.cost-header i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
}
.cost-card.featured .cost-header i {
    color: var(--accent-dark);
}
.cost-header h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
}

.cost-amount {
    margin-bottom: 12px;
    line-height: 1;
}
.cost-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    vertical-align: super;
}
.cost-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
}
.cost-card.featured .cost-number {
    color: var(--accent-dark);
}
.cost-decimals {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-500);
}
.cost-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.payment-info {
    max-width: 700px;
    margin: 0 auto;
}
.payment-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}
.payment-header {
    background: var(--primary);
    color: var(--white);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.payment-header i {
    font-size: 1.3rem;
}
.payment-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
}
.payment-details {
    padding: 20px 28px;
}
.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    flex-wrap: wrap;
    gap: 8px;
}
.payment-item:last-child {
    border-bottom: none;
}
.payment-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}
.payment-value {
    font-weight: 600;
    color: var(--gray-800);
    text-align: right;
}
.payment-value.account-number {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    color: var(--primary);
}
.payment-value.highlight {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
}
.payment-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 28px;
    background: var(--gray-50);
    font-size: 0.82rem;
    color: var(--gray-600);
    line-height: 1.5;
    border-top: 1px solid var(--gray-200);
}
.payment-note i {
    color: var(--primary);
    margin-top: 2px;
}

@media (max-width: 768px) {
    .costs-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto 40px;
    }
}

/* ===== STAFF SECTION ===== */
.staff {
    padding: 100px 0;
    background: var(--white);
}
.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.staff-card {
    text-align: center;
    padding: 36px 20px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.staff-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.staff-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--white);
    font-size: 1.8rem;
}
.staff-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}
.staff-role {
    display: block;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}
.staff-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--gray-500);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}
.staff-contact:hover {
    color: var(--primary);
}

@media (max-width: 900px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 500px) {
    .staff-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* ===== WHY US SECTION ===== */
.why-us {
    padding: 100px 0;
    background: var(--gray-50);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-card {
    text-align: center;
    padding: 36px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.why-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(200,169,82,0.15), rgba(200,169,82,0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4rem;
    color: var(--accent-dark);
}
.why-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.why-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 500px) {
    .why-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 100px 0;
    background: var(--white);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 40px;
    align-items: stretch;
}

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

.contact-info-card,
.contact-map-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--gray-200);
}
.contact-info-card h3,
.contact-map-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--accent);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-item {
    display: flex;
    gap: 16px;
}
.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}
.contact-text h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.contact-text p {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.5;
}
.contact-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.contact-text a:hover {
    color: var(--accent-dark);
}

.map-container {
    height: 300px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}
.map-overlay {
    text-align: center;
}
.map-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    color: var(--gray-300);
}
.footer-wave svg {
    width: 100%;
    height: 60px;
    display: block;
}
.footer-content {
    background: var(--gray-900);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-seal {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 16px;
    border: 2px solid var(--accent);
}
.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.footer-brand p {
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 20px;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}
.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-links a::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}
.footer-links a:hover::before {
    opacity: 1;
}

.footer-newsletter h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}
.footer-newsletter p {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-bottom: 16px;
    line-height: 1.5;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-seal {
        margin: 0 auto 16px;
    }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-4px);
}

/* ===== FLOATING WHATSAPP ===== */
.floating-whatsapp {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 998;
    text-decoration: none;
    transition: var(--transition);
    animation: pulse 2s infinite;
}
.floating-whatsapp:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}
@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
    100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 640px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    .floating-whatsapp {
        bottom: 75px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    .section-header {
        margin-bottom: 40px;
    }
}

/* ==============================================
   PAGE HEADER (Interior Pages)
   ============================================== */
.page-header {
    position: relative;
    padding: 140px 24px 80px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
}
.page-header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1;
}
.page-header .container {
    position: relative;
    z-index: 2;
}
.page-tag {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(200, 169, 82, 0.15);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 50px;
    margin-bottom: 16px;
    border: 1px solid rgba(200, 169, 82, 0.25);
}
.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.2;
}
.page-title span {
    color: var(--accent);
}
.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.8);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Page header color variants */
.page-header-programs {
    background: linear-gradient(135deg, #0d1442 0%, #1a237e 50%, #0d47a1 100%);
}
.page-header-modalities {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #4a148c 100%);
}
.page-header-enrollment {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1a237e 100%);
}
.page-header-costs {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 50%, #00695c 100%);
}
.page-header-contact {
    background: linear-gradient(135deg, #0d1442 0%, #1a237e 50%, #0d47a1 100%);
}

/* ==============================================
   IMAGE PLACEHOLDERS
   ============================================== */
.img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--gray-400);
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}
.img-placeholder:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(200,169,82,0.05), rgba(200,169,82,0.1));
    color: var(--accent-dark);
}
.img-placeholder i {
    font-size: 2.5rem;
    opacity: 0.4;
}
.img-placeholder span {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.img-placeholder small {
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    opacity: 0.7;
}

.img-placeholder-horizontal {
    aspect-ratio: 16/9;
}

.img-placeholder-sm {
    width: 90px;
    height: 90px;
    aspect-ratio: auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    border: 2px dashed var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: var(--transition);
}
.img-placeholder-sm:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}
.img-placeholder-sm span {
    font-size: 0.6rem;
}

/* ==============================================
   GALLERY (Nosotros Page)
   ============================================== */
.gallery {
    padding: 80px 0;
    background: var(--white);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.gallery-item {
    transition: var(--transition);
    border-radius: var(--radius);
    overflow: hidden;
}
.gallery-item:hover {
    transform: translateY(-6px);
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* ==============================================
   STAFF PHOTOS
   ============================================== */
.staff-photo {
    margin-bottom: 16px;
}

.staff-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border: 3px solid var(--accent-light);
    transition: var(--transition);
}

.staff-card:hover .staff-img {
    border-color: var(--accent);
    transform: scale(1.05);
}

/* ==============================================
   PROGRAM / MODALITY IMAGES IN CARDS
   ============================================== */
.program-image,
.modality-image,
.enrollment-card-image {
    margin-bottom: 16px;
    border-radius: var(--radius);
    overflow: hidden;
}

.program-img,
.modality-img,
.enrollment-card-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

/* ==============================================
   REQUIREMENTS SECTION (Programas Page)
   ============================================== */
.requirements-section {
    margin-top: 64px;
    padding: 40px 36px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}
.requirements-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.requirements-title i {
    color: var(--accent-dark);
}
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.requirement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray-700);
    padding: 10px 14px;
    background: var(--white);
    border-radius: var(--radius-sm);
}
.requirement-item i {
    color: var(--success);
    font-size: 1rem;
}

/* ==============================================
   COSTS SUMMARY & ILLUSTRATION
   ============================================== */
.costs-summary {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 32px;
    align-items: center;
    margin: 48px 0;
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}
.summary-image {
    border-radius: var(--radius);
    overflow: hidden;
}

.summary-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}
.summary-text p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 12px;
}
.payment-illustration {
    max-width: 500px;
    margin: 40px auto 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.payment-illustration-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

/* ==============================================
   CONTACT BUILDING IMAGE
   ============================================== */
.contact-building-image {
    margin-bottom: 20px;
    border-radius: var(--radius);
    overflow: hidden;
}

.contact-building-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* ==============================================
   PAGE SPACING
   ============================================== */
.about-page,
.programs-page,
.modalities-page,
.enrollment-page,
.costs-page,
.contact-page {
    padding: 80px 0;
}

/* ==============================================
   RESPONSIVE FOR NEW ELEMENTS
   ============================================== */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    .costs-summary {
        grid-template-columns: 1fr;
    }
    .page-header {
        padding: 120px 20px 60px;
    }
}
@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ==============================================
   PRELOADER
   ============================================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-seal {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    animation: preloaderPulse 1.5s ease-in-out infinite;
    margin-bottom: 24px;
}
.preloader-text {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    opacity: 0.9;
}
.preloader-bar {
    width: 120px;
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    margin-top: 20px;
    overflow: hidden;
}
.preloader-bar::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    animation: preloaderBar 1.2s ease-in-out infinite;
}
@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200,169,82,0.4); }
    50% { transform: scale(1.08); box-shadow: 0 0 30px 10px rgba(200,169,82,0.2); }
}
@keyframes preloaderBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* ==============================================
   HOMEPAGE PREVIEW SECTIONS
   ============================================== */
.home-section {
    padding: 80px 0;
}
.home-section.bg-light {
    background: var(--gray-50);
}
.home-section.bg-white {
    background: var(--white);
}

/* Why Choose Us cards on homepage */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-card {
    text-align: center;
    padding: 36px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.feature-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(200,169,82,0.15), rgba(200,169,82,0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4rem;
    color: var(--accent-dark);
}
.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 500px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* Modalities preview on homepage */
.modalities-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.modality-preview-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}
.modality-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}
.modality-preview-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.modality-preview-body {
    padding: 24px;
}
.modality-preview-body h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.modality-preview-body p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: 16px;
}
.modality-preview-schedule {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
}
.modality-preview-schedule i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .modalities-preview-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Costs preview on homepage */
.costs-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}
.cost-preview-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.cost-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.cost-preview-card.highlight {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(200,169,82,0.06) 0%, var(--white) 40%);
}
.cost-preview-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-500);
    margin-bottom: 12px;
}
.cost-preview-amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}
.cost-preview-card.highlight .cost-preview-amount {
    color: var(--accent-dark);
}
.cost-preview-desc {
    font-size: 0.82rem;
    color: var(--gray-500);
}

@media (max-width: 600px) {
    .costs-preview {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
}

/* ==============================================
   TESTIMONIALS SECTION
   ============================================== */
.testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.testimonials::before {
    content: '\201c';
    position: absolute;
    top: 30px;
    left: 5%;
    font-size: 20rem;
    font-family: var(--font-display);
    color: rgba(255,255,255,0.03);
    line-height: 1;
    pointer-events: none;
}
.testimonials .section-tag {
    background: rgba(200, 169, 82, 0.2);
    color: var(--accent);
    border-color: rgba(200, 169, 82, 0.3);
}
.testimonials .section-title {
    color: var(--white);
}
.testimonials .section-title span {
    color: var(--accent);
}
.testimonials .section-desc {
    color: rgba(255,255,255,0.7);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: var(--transition);
}
.testimonial-card:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-4px);
}
.testimonial-stars {
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}
.testimonial-text {
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary-dark);
    flex-shrink: 0;
}
.testimonial-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--white);
    display: block;
}
.testimonial-role {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
}

/* ==============================================
   FAQ SECTION
   ============================================== */
.faq {
    padding: 80px 0;
    background: var(--white);
}
.faq-grid {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
}
.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    text-align: left;
    gap: 16px;
    transition: var(--transition);
}
.faq-question:hover {
    color: var(--primary);
}
.faq-question i {
    font-size: 0.85rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 300px;
}
.faq-answer p {
    padding: 0 24px 20px;
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ==============================================
   LIGHTBOX
   ============================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
}
.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.lightbox.active img {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.lightbox-close:hover {
    background: rgba(255,255,255,0.25);
}

/* ==============================================
   HERO TYPING CURSOR
   ============================================== */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--accent);
    font-weight: 400;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ==============================================
   HOMEPAGE CTA BANNER
   ============================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 60px 24px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.cta-banner::before,
.cta-banner::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(200,169,82,0.1);
    pointer-events: none;
}
.cta-banner::before {
    top: -100px;
    left: -100px;
}
.cta-banner::after {
    bottom: -100px;
    right: -100px;
}
.cta-banner h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.cta-banner p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 550px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
}
.cta-banner-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ==============================================
   MOBILE CTA FIX
   ============================================== */
@media (max-width: 1024px) {
    .nav-cta {
        display: none;
    }
    .nav-menu .nav-cta-mobile {
        display: block;
        text-align: center;
        padding: 16px 24px 0;
    }
    .nav-cta-mobile .btn {
        width: 100%;
        justify-content: center;
    }
}
@media (min-width: 1025px) {
    .nav-cta-mobile {
        display: none !important;
    }
}

/* ==============================================
   INSCRIPTIONS OPEN BANNER
   ============================================== */
.announcement-bar {
    background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-dark));
    color: var(--primary-dark);
    text-align: center;
    padding: 10px 24px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    position: relative;
    z-index: 1001;
}
.announcement-bar a {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.announcement-bar i {
    margin-right: 6px;
}

/* ==============================================
   GOOGLE FORM EMBED
   ============================================== */
.google-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}
.google-form-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}
.google-form-container iframe {
    display: block;
    width: 100%;
    min-height: 900px;
}
.google-form-alt {
    text-align: center;
    margin-top: 16px;
}
.google-form-alt p {
    font-size: 0.82rem;
    color: var(--gray-500);
}
.google-form-alt a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}
.google-form-alt i {
    margin-right: 4px;
    font-size: 0.75rem;
}
@media (max-width: 640px) {
    .google-form-container iframe {
        min-height: 1100px;
    }
}
