@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;900&display=swap');

:root {
    /* Color Palette - Institutional CIIEC / CAVI Identity */
    --navy: #002D5B;          /* Navy Deep - Stability & Intelligence */
    --navy-light: #003d7c;
    --gold: #FDB913;          /* Gold Impact - Creativity & Excellence */
    --gold-light: #ffd15e;
    --active-green: #006739;   /* Active Green - Growth & Resilience */
    --white: #F9F9F9;
    --background: #FFFFFF;
    --black: #0E1A27;

    /* Typography - Institutional Scale */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing & Layout */
    --section-padding: 10rem 10%;
    --header-height: 100px;
    --border-radius: 4px;      /* Sharp/Institutional corners */

    /* Transitions */
    --ease-smooth: cubic-bezier(0.165, 0.84, 0.44, 1);
    --secondary: #E3E8EC;
    --text-muted: rgba(0, 45, 91, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Reset for Images/SVGs - Prevents giant icons across browsers */
img, svg {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

svg {
    fill: currentColor;
}

html {
    scroll-behavior: auto;
}

body {
    background-color: var(--background);
    color: var(--black);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.75; /* Slightly airier line height */
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.015em; /* Subtle premium letter spacing */
    transition: background-color 0.5s ease;
}

body.loading {
    overflow: hidden;
}

/* Preloader - Sophisticated Brand Reveal */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1);
}

.preloader-content {
    text-align: center;
    width: 300px;
    position: relative;
    z-index: 2;
}

.preloader-logo {
    height: 100px;
    margin-bottom: 2rem;
    filter: none;
    animation: preloaderReveal 1.5s var(--ease-smooth) forwards;
}

@keyframes preloaderReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.preloader-bar-container {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-top: 1rem;
}

.preloader-bar {
    width: 0%;
    height: 100%;
    background: var(--gold);
    transition: width 0.3s ease;
}

/* Scroll Container for Smooth Scroll */
#scroll-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 10;
}

#scroll-content {
    width: 100%;
    will-change: transform;
    display: flex;
    flex-direction: column;
}

/* Typography Animations - Letter Splitting */
.char {
    display: inline-block;
    transform: translateY(105%);
    transition: transform 0.8s var(--ease-smooth);
}

.animate-split-text {
    overflow: hidden;
}

.animate-split-text.visible .char {
    transform: translateY(0);
}

/* Quotes / Testimonials - Elite "Cita de Autor" Style */
.testimonials {
    padding: 12rem 10%;
    background: #fff;
    text-align: center;
    position: relative;
}

.testimonials p {
    text-align: center; /* Override global justify for quotes */
}

.quote-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.quote-icon {
    font-size: 8rem;
    font-family: serif;
    color: rgba(253, 185, 19, 0.15);
    position: absolute;
    top: -4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    line-height: 1;
}

.split-text-chars {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--navy);
    position: relative;
    z-index: 1;
    text-wrap: balance; /* Prevents widow/orphan in quotes */
}

.testimonials cite {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    font-style: normal;
    font-weight: 500;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: transform 0.15s ease-out, opacity 0.3s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor.expand {
    transform: translate(-50%, -50%) scale(3);
    background: rgba(212, 175, 55, 0.4);
    mix-blend-mode: normal;
}

/* Vertical Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    right: 20px;
    width: 2px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.05);
    z-index: 999;
}

.progress-fill {
    width: 100%;
    height: 0%;
    background: var(--gold);
    transition: height 0.1s linear;
}

/* Typography Defaults */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
    color: var(--navy);
    text-wrap: balance; /* Better heading layout */
    letter-spacing: -0.02em; /* Tighter headings for premium look */
}

p {
    font-size: 1.1rem;
    color: rgba(14, 26, 39, 0.8); /* Refined dark gray */
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    text-wrap: pretty; /* Prevents single words on last line */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s var(--ease-smooth);
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

.header.scrolled {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid var(--gold);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -1px;
}

.nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: all 0.4s var(--ease-smooth);
}

.nav a:hover {
    color: var(--gold);
}

.header.scrolled .nav a {
    color: var(--navy);
    text-shadow: none;
}

.btn-cta {
    background: var(--navy);
    color: white !important;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s var(--ease-smooth);
    border: 2px solid var(--gold);
}

.btn-cta:hover {
    background: transparent;
    color: var(--navy) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 45, 91, 0.1);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 10px;
    margin-right: 20px;
}

.lang-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.header.scrolled .lang-btn {
    color: var(--navy);
    border: 1px solid rgba(0, 45, 91, 0.2);
    text-shadow: none;
}

.lang-btn.active {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

.header.scrolled .lang-btn.active {
    background: var(--navy);
    border-color: var(--navy);
}

.lang-btn:hover:not(.active) {
    border-color: var(--gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
    overflow: hidden;
    pointer-events: none;
    background: #000;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh; 
    min-width: 177.77vh; 
    min-height: 56.25vw; 
    pointer-events: none;
    filter: brightness(0.6) contrast(1.1);
    opacity: 1; 
    transition: opacity 1.5s ease;
    object-fit: cover;
}

/* Remove transition during scroll to keep it snappy */
body.scrolling .hero-bg {
    transition: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 45, 91, 0.4) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2; /* Sits above the video */
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    color: white;
    margin-bottom: 2rem;
    overflow: hidden;
}

.hero h1 span {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 1.2s var(--ease-smooth);
}

body.loaded .hero h1 span {
    transform: translateY(0);
}

.hero-logo-wrapper {
    margin-top: 8rem;
    margin-bottom: 3rem;
    animation: fadeIn 2s ease;
}

.hero-logo-accent {
    height: 180px;
    width: auto;
    /* Sophisticated 3D Shadow/Relief Effect */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4)) 
            drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    opacity: 1; /* Full opacity for better detail */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-logo-accent:hover {
    transform: scale(1.05) translateY(-5px);
}


.hero p {
    font-size: 1.3rem; /* Slightly smaller for better balance */
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Ensure hero text is centered */
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* Student Journey Timeline - Refined CAVI Journey */
.student-journey {
    padding: var(--section-padding);
    background: var(--white);
    position: relative;
    text-align: center;
    border-top: 1px solid rgba(0, 45, 91, 0.05);
}

.journey-container {
    max-width: 900px;
    margin: 8rem auto 0;
    position: relative;
    padding-left: 60px;
    text-align: left;
}

.journey-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    width: 2px;
    background: rgba(0, 45, 91, 0.05);
}

.journey-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--gold);
    transition: height 0.1s linear;
}

.journey-item {
    position: relative;
    padding-bottom: 6rem;
}

.journey-item:last-child {
    padding-bottom: 0;
}

.journey-dot {
    position: absolute;
    left: -43px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: white;
    border: 2px solid var(--navy);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.5s var(--ease-smooth);
}

.journey-item.active .journey-dot {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(253, 185, 19, 0.5);
    transform: scale(1.4);
}

.journey-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--navy);
    transition: color 0.5s ease;
}

.journey-item.active .journey-content h3 {
    color: var(--gold);
}

.journey-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Manifest Section */
.manifest {
    background: white;
    text-align: center;
    padding: var(--section-padding);
}

.manifest h2 {
    text-align: center; /* Explicitly centered */
}

.manifest p {
    text-align: center; /* Manifest descriptions are better centered */
    max-width: 800px;
    margin: 0 auto;
}

.manifest-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 3rem;
    display: block;
}

.manifest h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    max-width: 1100px;
    margin: 0 auto;
    font-style: italic;
    font-weight: 300;
    letter-spacing: -2px;
    line-height: 1.1;
}

/* Extended Philosophy Section */
.philosophy-extended {
    padding: var(--section-padding);
    background: var(--navy);
    color: white;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.phil-item h3 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.phil-item p {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* Premium Gallery */
.gallery-section {
    padding: var(--section-padding);
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(10, 5vw);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s var(--ease-smooth);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gi-1 { grid-column: 1 / 7; grid-row: 1 / 6; }
.gi-2 { grid-column: 7 / 13; grid-row: 1 / 4; }
.gi-3 { grid-column: 7 / 10; grid-row: 4 / 7; }
.gi-4 { grid-column: 10 / 13; grid-row: 4 / 7; }
.gi-5 { grid-column: 1 / 4; grid-row: 6 / 11; }
.gi-6 { grid-column: 4 / 13; grid-row: 7 / 11; }

/* FAQ Accordion */
.faq-section {
    padding: var(--section-padding);
    background: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 4rem auto 0;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 45, 91, 0.1);
    padding: 1.5rem 0;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--navy);
    font-weight: 500;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-smooth), opacity 0.5s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    opacity: 1;
    margin-top: 1rem;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: transform 0.3s var(--ease-smooth);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px; /* Right side, opposite to WhatsApp */
    width: 60px;
    height: 60px;
    background: var(--navy); /* Institutional Navy */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 45, 91, 0.3);
    z-index: 999;
    opacity: 0; /* Hidden by default */
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-smooth);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--gold); /* Highlight in Gold */
    transform: scale(1.1) translateY(0);
    box-shadow: 0 10px 30px rgba(253, 185, 19, 0.3);
}

.back-to-top svg {
    width: 25px;
    height: 25px;
    fill: white;
}

.programs {
    background: var(--white);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
}

.card {
    height: 500px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s var(--ease-smooth);
}

.card:hover .card-bg {
    transform: scale(1.1);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    z-index: 2;
}

.card h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Mascot Accent */
.mascot-section {
    padding: var(--section-padding);
    background: var(--navy);
    color: white;
    display: flex;
    align-items: center;
    gap: 5%;
}

.mascot-img {
    flex: 1;
    max-width: 400px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.mascot-info {
    flex: 1.5;
}

.mascot-info h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 2rem;
}

.mascot-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    text-align: justify; /* Justify as requested */
    max-width: 600px;
}

/* Animations - Key to premium feel */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s var(--ease-smooth);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
/* Reveals & Advanced Motion */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1.2s var(--ease-smooth);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1.2s var(--ease-smooth);
}

.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-up {
    transform: scale(0.9);
    opacity: 0;
    transition: all 1.2s var(--ease-smooth);
}

.scale-up.visible {
    transform: scale(1);
    opacity: 1;
}

/* Carousel Testimonials */
.testimonial-carousel {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.testimonial-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.8s var(--ease-smooth);
}

.testimonial-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 45, 91, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--gold);
    transform: scale(1.5);
}

.carousel-prev, .carousel-next {
    background: none;
    border: 1px solid var(--navy);
    color: var(--navy);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
    background: var(--navy);
    color: white;
}

/* Split Text Animation Classes */
.word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    margin-right: 0.25em;
}

.word-inner {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.8s var(--ease-smooth);
}

.visible .word-inner {
    transform: translateY(0);
}

/* Admissions Section */
.admissions {
    padding: var(--section-padding);
    background: var(--white);
    display: flex;
    justify-content: center;
    text-align: center;
}

.admissions-container {
    max-width: 600px;
    width: 100%;
}

.admissions h2 {
    margin-bottom: 1.5rem;
}

.admissions p {
    margin-bottom: 3rem;
    text-align: center; /* Center intro text for focus */
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.admissions-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1.2rem;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-bottom-color: var(--gold);
}

.admissions-form .btn-cta {
    margin-top: 1rem;
    width: 100%;
    cursor: pointer;
}

/* Mobile Toggle & Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
}

.mobile-toggle span {
    width: 30px;
    height: 1.5px;
    background: white;
    transition: all 0.3s var(--ease-smooth);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.header.scrolled .mobile-toggle span,
.mobile-toggle.active span {
    background: var(--navy);
    box-shadow: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.6s var(--ease-smooth);
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu-inner {
    text-align: center;
}

.mobile-menu ul {
    list-style: none;
    margin-bottom: 2rem;
}

.mobile-menu li {
    margin: 1.5rem 0;
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--navy);
}

/* Magnetic Buttons Effect */
.btn-cta {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s ease-out;
    /* Smooth return to origin */
}

.btn-cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s var(--ease-smooth), height 0.6s var(--ease-smooth);
    z-index: -1;
}

.btn-cta:hover::after {
    width: 300px;
    height: 300px;
}

/* Hero Enhancements */
.hero-content h1 {
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-overlay {
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .grid {
        gap: 2rem;
    }

    .mascot-section {
        flex-direction: column;
        text-align: center;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(3.5px) rotate(45deg);
    }

    .mobile-toggle.active span:nth-child(2) {
        transform: translateY(-3.5px) rotate(-45deg);
    }
}

/* Promotional Popup */
.promo-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 15, 30, 0.6); /* Dark navy transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-smooth);
}

.promo-popup.active {
    opacity: 1;
    visibility: visible;
}

.promo-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 250, 0.98));
    border: 1px solid rgba(197, 168, 128, 0.3); /* Subtle gold border */
    border-radius: 12px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-popup.active .promo-content {
    animation: promoFloat 6s ease-in-out infinite;
    transform: translateY(0) scale(1);
}

@keyframes promoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.01); }
}

.promo-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--navy);
    cursor: pointer;
    line-height: 1;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.promo-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.promo-logo {
    height: 90px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.promo-header .manifest-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: promoShimmer 3s infinite;
    background: linear-gradient(90deg, var(--gold), #ffffff, var(--gold));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes promoShimmer {
    to { background-position: 200% center; }
}

.promo-header h3 {
    font-size: 2.3rem;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.promo-body p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    text-align: center;
}

.promo-body strong {
    color: var(--gold);
    font-weight: 800;
    font-size: 1.3rem;
    display: inline-block;
    margin: 0 5px;
    animation: promoPop 1.5s infinite ease-in-out;
}

@keyframes promoPop {
    0%, 100% { transform: scale(1); color: var(--gold); }
    50% { transform: scale(1.1); color: #ffeb3b; }
}

.promo-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.promo-actions .btn-cta {
    width: 100%;
    background: var(--navy);
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px rgba(197, 168, 128, 0.3);
    animation: promoPulse 2s infinite;
}

@keyframes promoPulse {
    0% { box-shadow: 0 0 0 0 rgba(197, 168, 128, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 25px 10px rgba(197, 168, 128, 0); transform: scale(1.02); }
    100% { box-shadow: 0 0 0 0 rgba(197, 168, 128, 0); transform: scale(1); }
}

.promo-link {
    font-size: 0.85rem;
    color: var(--navy);
    text-decoration: underline;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.promo-link:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .promo-content {
        padding: 2rem 1.5rem;
    }
    .promo-header h3 {
        font-size: 1.5rem;
    }
}

/* Mision, Vision y Valores */
.mision-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.mv-block {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 3px solid var(--gold);
    transition: transform 0.4s var(--ease-smooth);
}

.mv-block:hover {
    transform: translateY(-10px);
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.valor-card {
    background: var(--secondary);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    transition: all 0.4s var(--ease-smooth);
    border-left: 3px solid transparent;
}

.valor-card:hover {
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 45, 91, 0.1);
    border-left: 3px solid var(--gold);
    transform: translateX(5px);
}

.valor-card h3 {
    color: var(--navy);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.valor-card p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Neuralkin Footer Branding */
.neuralkin-container {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
    cursor: pointer;
}

.neuralkin-container:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.neuralkin-img {
    height: 120px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-top: -1.5rem;
    margin-bottom: -1rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    transition: filter 0.4s ease, transform 0.4s ease;
}

.neuralkin-container:hover .neuralkin-img {
    filter: drop-shadow(0 0 25px rgba(253, 185, 19, 0.6));
    transform: scale(1.05);
}

.neuralkin-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 500;
    text-transform: uppercase;
    /* Animated Gradient Text */
    background: linear-gradient(90deg, #FFFFFF, var(--gold), #FFFFFF);
    background-size: 200% auto;
    color: var(--white);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: neuralkinShimmer 4s infinite linear;
}

.neuralkin-container:hover .neuralkin-text {
    animation-duration: 2s;
}

@keyframes neuralkinShimmer {
    to { background-position: 200% center; }
}

/* ==========================================================================
   LOCATION SECTION & INTERACTIVE MAP
   ========================================================================== */
.location-section {
    padding: 6rem 10%;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.location-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.location-container h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--navy);
    margin: 1rem 0 3rem;
    line-height: 1.1;
    font-weight: 700;
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 45, 91, 0.15);
    background: #e9e9ea; /* Placeholder color before map loads */
    transform-origin: center;
    transition: transform 0.6s var(--ease-smooth), box-shadow 0.6s var(--ease-smooth);
}

.map-wrapper:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 45, 91, 0.25);
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: grayscale(80%) contrast(1.1); /* Stylized map colors */
    transition: filter 0.6s ease;
    z-index: 1;
}

.map-wrapper:hover iframe {
    filter: grayscale(0%) contrast(1);
}

.map-overlay {
    position: absolute;
    bottom: -100px; /* Start hidden */
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 2;
    transition: bottom 0.5s var(--ease-smooth);
    pointer-events: none; /* Let clicks pass through except on the button */
}

.map-wrapper:hover .map-overlay {
    bottom: 0;
}

.map-btn {
    pointer-events: auto; /* Re-enable clicks for the button */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
}

.map-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.map-btn:hover .map-icon {
    transform: translateY(-3px) scale(1.1);
}

@media (max-width: 768px) {
    .map-wrapper {
        height: 40vh;
        border-radius: 12px;
    }
    
    .map-overlay {
        bottom: 0; /* Always show button on mobile */
        padding: 1.5rem;
    }
}