:root {
    --bg-dark: #0a110a;
    --bg-accent: #151d15;
    --gold: #c5a059;
    --gold-bright: #e5c07b;
    --olive: #2d3a2d;
    --text-light: #e0e7e0;
    --text-dim: #a0b0a0;
    --glass: rgba(26, 36, 24, 0.6);
    --glass-border: rgba(197, 160, 89, 0.2);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Misty Background */
.misty-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 20%, rgba(26, 46, 26, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(197, 160, 89, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--olive);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 8%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    backdrop-filter: blur(0px);
}

nav.scrolled {
    padding: 1rem 8%;
    background: rgba(10, 17, 10, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s;
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--gold);
    opacity: 1;
}

.nav-socials {
    display: flex;
    gap: 1.2rem;
    margin-right: 0.5rem;
    padding-right: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-socials a {
    color: #8fa68f !important;
    font-size: 1.1rem !important;
    opacity: 1 !important;
}

.nav-socials a:hover {
    color: var(--gold) !important;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .nav-socials {
        display: none;
    }
}

/* Map Styling */
.map-wrapper {
    position: relative;
    background: radial-gradient(circle at center, rgba(197, 160, 89, 0.05), transparent);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

#latam-svg-map {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.graduate-card {
    border: 1px solid rgba(197, 160, 89, 0.1);
    background: rgba(26, 36, 24, 0.4) !important;
}

.graduate-photo-container {
    padding: 10px;
    background: linear-gradient(135deg, var(--gold), transparent);
    border-radius: 50%;
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
        /* Already handled by .mobile-toggle in existing logic */
    }
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 10%;
    position: relative;
    background: linear-gradient(rgba(10, 17, 10, 0.4), var(--bg-dark)), url('../assets/img/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 30%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.btn-gold {
    padding: 1.2rem 2.8rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-block;
}

.btn-gold:hover {
    background: var(--gold);
    color: var(--bg-dark);
    box-shadow: 0 0 40px rgba(197, 160, 89, 0.3);
    transform: translateY(-5px);
}

/* Diplomado Banner Section */
.banner-section {
    padding: 4rem 10%;
    margin-top: -10vh;
    z-index: 5;
    position: relative;
}

.banner-img {
    width: 100%;
    max-width: 1000px;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    display: block;
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.banner-img:hover {
    transform: translateY(-10px);
}

/* Sections */
.section-container {
    padding: 3rem 10%;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title span {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: #fff;
    font-weight: 800;
}

/* Teacher Grid */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.teacher-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.teacher-card:hover {
    transform: translateY(-15px);
    border-color: var(--gold);
    background: rgba(45, 58, 45, 0.4);
}

.teacher-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 2px solid var(--gold);
    background: var(--olive);
    padding: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.teacher-card h3 {
    font-size: 1.2rem;
    color: var(--gold-bright);
    margin-bottom: 0.3rem;
}

.teacher-role {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 1rem;
    min-height: 2.5em;
}

.teacher-bio {
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.8;
    font-weight: 300;
    line-height: 1.4;
}

/* Director Section Flex */
.director-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.director-photo {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 30px;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Retiro Section Styles */
.retiro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
}

.retiro-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.retiro-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.retiro-banner {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.retiro-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.retiro-card:hover .retiro-banner img {
    transform: scale(1.1);
}

.retiro-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gold);
    color: var(--bg-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.retiro-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-accent);
    color: var(--gold);
    font-size: 3rem;
    opacity: 0.3;
}

.retiro-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.retiro-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.retiro-desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.retiro-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: auto;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coming-soon {
    opacity: 0.8;
}

.coming-soon:hover {
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .section-container {
        padding: 6rem 5%;
    }

    .director-flex {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 5%;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .director-flex {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .director-photo {
        max-width: 400px;
        margin: 0 auto;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-gold {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .flyer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    color: #FFF;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}