/* ===== CSS Variables ===== */
:root {
    --bg-dark: #0a0a0a;
    --bg-section: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --accent-red: #c41e3a;
    --accent-red-light: #e63956;
    --accent-gold: #d4a846;
    --accent-gold-light: #f0c75e;
    --accent-purple: #8250dc;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', 'Segoe UI', sans-serif;
    --font-script: 'Dancing Script', cursive;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 40px rgba(196, 30, 58, 0.15);
    --shadow-glow: 0 0 40px rgba(212, 168, 70, 0.15);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--accent-gold-light); }

img { max-width: 100%; display: block; }

::selection {
    background: var(--accent-red);
    color: white;
}

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    position: relative;
    display: inline-block;
}

.preloader-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%;
    animation: preloaderPulse 1.5s ease-in-out infinite, preloaderSpin 3s linear infinite;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes preloaderSpin {
    to { transform: rotate(360deg); }
}


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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    transition: transform var(--transition);
}

.nav-logo:hover .nav-logo-img {
    transform: rotate(10deg) scale(1.05);
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
}

.logo-salsa {
    color: var(--text-primary);
    font-weight: 400;
}

.logo-elite {
    color: var(--accent-gold);
    font-weight: 700;
    font-style: italic;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
}

.nav-menu a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color var(--transition);
    text-decoration: none;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
    transition: width var(--transition);
}

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

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

.nav-cta {
    background: var(--accent-red) !important;
    color: var(--text-primary) !important;
    padding: 10px 24px !important;
    border-radius: 4px;
    transition: all var(--transition) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
    background: var(--accent-red-light) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
    transform-origin: center;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(196, 30, 58, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(212, 168, 70, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(130, 80, 220, 0.06) 0%, transparent 40%),
        var(--bg-dark);
}

.hero-particles {
    position: absolute;
    inset: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: var(--font-display);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title-line {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-word {
    display: inline-block;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    opacity: 0;
    transform: translateY(80px) rotateX(40deg);
    animation: wordReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-word:nth-child(2) {
    animation-delay: 0.15s;
}

.hero-word.accent {
    color: var(--accent-gold);
    font-style: italic;
    text-shadow: 0 0 60px rgba(212, 168, 70, 0.3);
}

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.location-pin { font-size: 1.2rem; }
.location-divider {
    color: var(--accent-gold);
    font-family: var(--font-display);
    font-style: italic;
}
.location-dash { color: var(--text-muted); }

.hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-subtitle strong {
    color: var(--accent-gold);
    font-weight: 600;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-size: 1.4rem;
    font-family: var(--font-display);
    color: var(--accent-gold);
}

.hero-stat span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border-subtle);
}

/* Hero Scroll */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease 1.5s both;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.03;
    pointer-events: none;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-red);
    top: -100px;
    right: -200px;
    animation: float1 20s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-gold);
    bottom: -50px;
    left: -100px;
    animation: float2 15s ease-in-out infinite;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-purple);
    top: 40%;
    left: 60%;
    animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 40px) scale(1.1); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.05); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -30px) scale(1.15); }
}

/* ===== Marquee ===== */
.marquee-section {
    background: var(--bg-section);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 0;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-right: 32px;
    flex-shrink: 0;
}

.marquee-content span {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.marquee-dot {
    color: var(--accent-gold) !important;
    font-size: 0.6rem !important;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn:hover .btn-shine {
    left: 150%;
}

.btn-primary {
    background: var(--accent-red);
    color: var(--text-primary);
    border-radius: 4px;
}

.btn-primary:hover {
    background: var(--accent-red-light);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid rgba(212, 168, 70, 0.5);
    border-radius: 4px;
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 70, 0.3);
}

.btn-large { padding: 18px 48px; font-size: 0.95rem; }

.btn-full { width: 100%; }

.btn-ig {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.btn-ig:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(225, 48, 108, 0.3);
    color: white !important;
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-dark { background: var(--bg-section); }

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

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 16px auto 0;
}

.title-accent {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text { color: var(--text-secondary); }

.about-lead {
    font-size: 1.15rem;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-text strong { color: var(--accent-gold); }

.about-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.about-feature strong {
    display: block;
    color: var(--text-primary) !important;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.about-feature span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
    transform: scaleX(0);
    transition: transform var(--transition-slow);
}

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

.stat-card:hover {
    border-color: rgba(212, 168, 70, 0.3);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.stat-logo-wrap {
    margin-bottom: 12px;
}

.stat-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    margin: 0 auto;
    transition: transform var(--transition);
}

.stat-card:hover .stat-logo-img {
    transform: rotate(10deg) scale(1.08);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: inline;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-gold);
}

.stat-label {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Courses ===== */
.course-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.course-tab {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.course-tab.active,
.course-tab:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 40px 28px 32px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-slow);
}

.course-card-bg {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.06) 0%, transparent 50%);
    transition: all var(--transition-slow);
    pointer-events: none;
}

.course-card:hover .course-card-bg {
    top: -30%;
    right: -30%;
}

.course-card:hover {
    border-color: rgba(196, 30, 58, 0.3);
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.course-card.featured {
    border-color: rgba(196, 30, 58, 0.4);
    background: linear-gradient(180deg, rgba(196, 30, 58, 0.06) 0%, var(--bg-card) 100%);
}

.course-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--accent-red), #a01830);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
}

.course-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.course-icon-wrap {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.course-icon {
    font-size: 2.5rem;
    display: inline-block;
    transition: transform var(--transition);
}

.course-card:hover .course-icon { transform: scale(1.2) rotate(-5deg); }

.course-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.course-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.course-levels {
    list-style: none;
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.course-levels li {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-gold);
    padding: 4px 12px;
    border: 1px solid rgba(212, 168, 70, 0.25);
    border-radius: 20px;
    transition: all var(--transition);
}

.course-card:hover .course-levels li {
    border-color: rgba(212, 168, 70, 0.5);
}

.course-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-gold) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
    transition: gap var(--transition);
}

.course-link:hover { gap: 12px; }

.course-card.hiding {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* ===== Instructors ===== */
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.instructor-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-slow);
}

.instructor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(196, 30, 58, 0.3);
}

.instructor-photo {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.15), rgba(212, 168, 70, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
}

.instructor-real-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.instructor-card:hover .instructor-real-photo {
    transform: scale(1.06);
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.instructor-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.instructor-card:hover .instructor-overlay { opacity: 1; }

.instructor-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all var(--transition);
}

.instructor-social a:hover {
    background: var(--accent-red);
    transform: scale(1.1);
}

.instructor-info {
    padding: 28px;
}

.instructor-info h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.instructor-role {
    display: block;
    font-size: 0.82rem;
    color: var(--accent-gold);
    margin-bottom: 12px;
    font-weight: 500;
}

.instructor-info p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ===== Schedule ===== */
.sede-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.sede-tab {
    padding: 12px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.sede-tab.active,
.sede-tab:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

.schedule-sede { display: none; }
.schedule-sede.active { display: block; }

.schedule-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 24px;
}

.schedule-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.schedule-table th {
    background: var(--bg-card);
    color: var(--accent-gold);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 16px 12px;
    border: 1px solid var(--border-subtle);
}

.schedule-table td {
    padding: 10px;
    border: 1px solid var(--border-subtle);
    vertical-align: top;
    min-width: 120px;
}

.time-cell {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.schedule-course {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.4;
    transition: transform var(--transition);
}

.schedule-course:hover { transform: scale(1.03); }

.schedule-course small { font-weight: 400; opacity: 0.7; font-size: 0.72rem; }

.schedule-course.salsa {
    background: rgba(196, 30, 58, 0.12);
    color: var(--accent-red-light);
    border-left: 3px solid var(--accent-red);
}

.schedule-course.bachata {
    background: rgba(212, 168, 70, 0.12);
    color: var(--accent-gold-light);
    border-left: 3px solid var(--accent-gold);
}

.schedule-course.other {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border-left: 3px solid var(--text-muted);
}

.schedule-course.special {
    background: rgba(130, 80, 220, 0.12);
    color: #b08ee6;
    border-left: 3px solid var(--accent-purple);
}

.schedule-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.legend-dot.salsa { background: var(--accent-red); }
.legend-dot.bachata { background: var(--accent-gold); }
.legend-dot.other { background: var(--text-muted); }
.legend-dot.special { background: var(--accent-purple); }

/* ===== Instagram Section ===== */
.ig-profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
}

.ig-profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ig-avatar {
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    background-image: linear-gradient(var(--bg-card), var(--bg-card)),
                      linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    padding: 3px;
}

.ig-avatar img {
    border-radius: 50%;
    object-fit: contain;
}

.ig-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.ig-name h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.ig-info { flex: 1; }

.ig-bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.ig-stats-row {
    display: flex;
    gap: 20px;
}

.ig-stats-row span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.ig-stats-row strong { color: var(--text-primary); }

/* IG Highlights */
.ig-highlights {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}

.ig-highlight {
    text-align: center;
    flex-shrink: 0;
}

.ig-highlight span {
    display: block;
    margin-top: 6px;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.ig-highlight-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    cursor: pointer;
    transition: transform var(--transition);
}

.ig-highlight-ring:hover { transform: scale(1.1); }

.ig-highlight-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid var(--bg-card);
}

/* IG Posts */
.ig-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.ig-post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-slow);
}

.ig-post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.ig-post-image {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    background: #0a0a0a;
    cursor: pointer;
}

.ig-post-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.ig-post-card:hover .ig-post-video {
    transform: scale(1.05);
}

.ig-post-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: all var(--transition);
    pointer-events: none;
    z-index: 2;
}

.ig-post-card:hover .ig-post-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(196, 30, 58, 0.7);
}

.ig-post-image.playing .ig-post-play-btn {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
}

.ig-post-pin {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    color: white;
    font-weight: 600;
    z-index: 3;
}

.ig-post-caption {
    padding: 14px 16px;
}

.ig-post-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 8px;
}

.ig-action {
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform var(--transition);
}

.ig-action:hover {
    transform: scale(1.25);
}

.ig-post-caption p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ig-follow-cta { text-align: center; }

/* ===== Testimonials ===== */
.testimonials-slider {
    overflow: hidden;
    position: relative;
}

.testimonials-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 36px;
    transition: all var(--transition-slow);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 168, 70, 0.2);
    box-shadow: var(--shadow-glow);
}

.testimonial-quote {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--accent-gold);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: -10px;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.78rem; color: var(--text-muted); }

.testimonial-stars {
    color: var(--accent-gold);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* ===== CTA Banner ===== */
.cta-banner {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}

.cta-banner-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(196, 30, 58, 0.15) 0%, transparent 60%),
        var(--bg-dark);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta-content strong { color: var(--accent-gold); }

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    transition: all var(--transition);
}

.contact-item:hover .contact-icon {
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

.contact-item h4 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-link {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.social-link:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 168, 70, 0.15);
}

/* ===== Form ===== */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 40px;
}

.contact-form h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-group.floating label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.88rem;
    pointer-events: none;
    transition: all var(--transition);
}

.form-group.floating textarea ~ label {
    top: 20px;
    transform: none;
}

.form-group.floating input:focus ~ label,
.form-group.floating input:not(:placeholder-shown) ~ label,
.form-group.floating textarea:focus ~ label,
.form-group.floating textarea:not(:placeholder-shown) ~ label {
    top: -8px;
    left: 12px;
    font-size: 0.72rem;
    color: var(--accent-gold);
    background: var(--bg-card);
    padding: 0 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 70, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

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

/* ===== Footer ===== */
.footer {
    background: var(--bg-section);
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
}

.footer-logo-wrap .logo-salsa,
.footer-logo-wrap .logo-elite {
    font-family: var(--font-display);
    font-size: 1.3rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-gold);
    margin-bottom: 4px;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: color var(--transition);
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-credits {
    font-style: italic;
}

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

[data-animate] {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="fade-up"] {
    transform: translateY(40px);
}

[data-animate="fade-down"] {
    transform: translateY(-40px);
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate="zoom-in"] {
    transform: scale(0.85);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* ===== Tilt Effect ===== */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* ===== Magnetic Button ===== */
.magnetic {
    transition: transform 0.2s ease;
}

/* ===== ADVANCED ANIMATIONS & 3D EFFECTS ===== */

/* --- Glowing section dividers --- */
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), var(--accent-red), var(--accent-gold), transparent);
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.in-view::after {
    width: 60%;
}

/* --- 3D Card perspective container --- */
.course-card,
.instructor-card,
.testimonial-card,
.stat-card,
.ig-post-card {
    transform-style: preserve-3d;
    will-change: transform;
}

/* --- Shimmer / glare layer on cards --- */
.course-card::after,
.instructor-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.03) 45%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.03) 55%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 5;
}

.course-card:hover::after,
.instructor-card:hover::after {
    opacity: 1;
    animation: shimmerGlide 1.5s ease forwards;
}

@keyframes shimmerGlide {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* --- Glow pulse on stat cards --- */
.stat-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-gold), var(--accent-purple));
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.6s ease;
}

.stat-card:hover::after {
    opacity: 0.35;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.2; filter: blur(15px); }
    50% { opacity: 0.45; filter: blur(20px); }
}

/* --- Hero text reveal with 3D rotation --- */
@keyframes heroTextReveal3D {
    0% {
        opacity: 0;
        transform: perspective(800px) rotateY(25deg) translateX(-40px);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: perspective(800px) rotateY(0deg) translateX(0);
        filter: blur(0);
    }
}

.hero-badge {
    animation: heroTextReveal3D 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* --- Section header title 3D entrance --- */
.section-title {
    transition: transform 0.5s ease;
}

.section.in-view .section-title {
    animation: titleSlideIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: perspective(600px) rotateX(15deg) translateY(30px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: perspective(600px) rotateX(0deg) translateY(0);
        filter: blur(0);
    }
}

/* --- Title accent bar animation --- */
.title-accent {
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.in-view .title-accent {
    animation: accentExpand 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes accentExpand {
    0% { width: 0; opacity: 0; }
    100% { width: 60px; opacity: 1; }
}

/* --- Stagger cascade for course cards --- */
.courses-grid .course-card:nth-child(1) { transition-delay: 0.05s; }
.courses-grid .course-card:nth-child(2) { transition-delay: 0.10s; }
.courses-grid .course-card:nth-child(3) { transition-delay: 0.15s; }
.courses-grid .course-card:nth-child(4) { transition-delay: 0.20s; }
.courses-grid .course-card:nth-child(5) { transition-delay: 0.25s; }
.courses-grid .course-card:nth-child(6) { transition-delay: 0.30s; }
.courses-grid .course-card:nth-child(7) { transition-delay: 0.35s; }
.courses-grid .course-card:nth-child(8) { transition-delay: 0.40s; }
.courses-grid .course-card:nth-child(9) { transition-delay: 0.45s; }
.courses-grid .course-card:nth-child(10) { transition-delay: 0.50s; }

/* --- 3D flip hover for instructor photo --- */
.instructor-photo {
    perspective: 800px;
}

.instructor-card:hover .instructor-real-photo {
    transform: scale(1.06) rotateY(3deg);
}

/* --- Instructor card floating entrance --- */
.instructor-card[data-animate].animated {
    animation: cardFloat 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardFloat {
    0% {
        opacity: 0;
        transform: perspective(800px) rotateX(10deg) translateY(60px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: perspective(800px) rotateX(0deg) translateY(0) scale(1);
    }
}

/* --- Ripple effect on buttons --- */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    z-index: 0;
}

.btn:active::before {
    width: 300px;
    height: 300px;
    opacity: 1;
    transition: width 0s, height 0s, opacity 0s;
}

/* --- Testimonial card float-in --- */
.testimonial-card[data-animate].animated:nth-child(1) { animation: testimonialIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.testimonial-card[data-animate].animated:nth-child(2) { animation: testimonialIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both; }
.testimonial-card[data-animate].animated:nth-child(3) { animation: testimonialIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }

@keyframes testimonialIn {
    0% {
        opacity: 0;
        transform: perspective(600px) rotateY(-8deg) translateX(-30px) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: perspective(600px) rotateY(0deg) translateX(0) scale(1);
    }
}

/* --- Floating icon pulse on course cards --- */
.course-icon {
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.course-card:hover .course-icon {
    animation: iconBounce 0.5s ease;
    transform: scale(1.2) rotate(-5deg);
}

@keyframes iconBounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.35) rotate(-8deg); }
    70% { transform: scale(1.15) rotate(-3deg); }
    100% { transform: scale(1.2) rotate(-5deg); }
}

/* --- IG highlight ring spin on hover --- */
.ig-highlight-ring:hover {
    transform: scale(1.1);
    animation: highlightSpin 0.8s ease;
}

@keyframes highlightSpin {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(180deg); }
    100% { transform: scale(1.1) rotate(360deg); }
}

/* --- CTA banner parallax shimmer --- */
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(196, 30, 58, 0.05) 60deg, transparent 120deg);
    animation: ctaSpin 15s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes ctaSpin {
    to { transform: rotate(360deg); }
}

/* --- Contact icon hover bounce --- */
.contact-item:hover .contact-icon {
    animation: contactBounce 0.5s ease;
}

@keyframes contactBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.15) rotate(-3deg); }
    60% { transform: scale(1.05) rotate(2deg); }
    100% { transform: scale(1.05) rotate(0deg); }
}

/* --- Footer link underline animation --- */
.footer-col a {
    position: relative;
    overflow: hidden;
}

.footer-col a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-col a:hover::after {
    width: 100%;
}

/* --- Smooth reveal for schedule table rows --- */
.schedule-table tbody tr {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.in-view .schedule-table tbody tr {
    opacity: 1;
    transform: translateY(0);
}

.section.in-view .schedule-table tbody tr:nth-child(1) { transition-delay: 0.1s; }
.section.in-view .schedule-table tbody tr:nth-child(2) { transition-delay: 0.2s; }
.section.in-view .schedule-table tbody tr:nth-child(3) { transition-delay: 0.3s; }
.section.in-view .schedule-table tbody tr:nth-child(4) { transition-delay: 0.4s; }

/* --- Marquee speed-up on hover --- */
.marquee-section:hover .marquee-track {
    animation-duration: 15s;
}

/* --- Scroll indicator glow --- */
.hero-scroll {
    animation: fadeInUp 1s ease 1.5s both, scrollGlow 2.5s ease-in-out infinite 2.5s;
}

@keyframes scrollGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* --- Video play button pulse --- */
.ig-post-play-btn {
    animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.3); }
    50% { box-shadow: 0 0 0 12px rgba(196, 30, 58, 0); }
}

/* --- Social link 3D tilt --- */
.social-link {
    transform-style: preserve-3d;
    perspective: 200px;
}

.social-link:hover {
    transform: translateY(-3px) rotateY(10deg);
}

/* --- Nav logo 3D rotate on scroll --- */
.navbar.scrolled .nav-logo-img {
    animation: logoRotateIn 0.5s ease both;
}

@keyframes logoRotateIn {
    from { transform: rotateY(-90deg) scale(0.8); }
    to { transform: rotateY(0deg) scale(1); }
}

/* --- Gradient text on hover for section tags --- */
.section-tag {
    transition: all 0.4s ease;
    background-size: 200% auto;
}

.section.in-view .section-tag {
    animation: tagGlow 0.8s ease both;
}

@keyframes tagGlow {
    0% { opacity: 0; letter-spacing: 6px; }
    100% { opacity: 1; letter-spacing: 3px; }
}

/* --- Preloader enhanced exit --- */
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    filter: blur(10px);
    transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .instructors-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-track { grid-template-columns: repeat(2, 1fr); }
    .ig-posts-grid { grid-template-columns: repeat(2, 1fr); }
    .ig-posts-grid .ig-post-card:last-child { grid-column: span 2; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        padding: 40px;
        transition: right var(--transition);
    }

    .nav-menu.open { right: 0; }

    .nav-toggle { display: flex; }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .courses-grid { grid-template-columns: 1fr; }
    .instructors-grid { grid-template-columns: 1fr; }
    .testimonials-track { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }
    .ig-posts-grid { grid-template-columns: 1fr; }
    .ig-posts-grid .ig-post-card:last-child { grid-column: span 1; }
    .ig-profile-header { flex-direction: column; text-align: center; }
    .ig-stats-row { justify-content: center; }
    .ig-highlights { justify-content: flex-start; }
    .footer-content { grid-template-columns: 1fr; gap: 32px; }
    .footer-links { gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-stats { gap: 20px; }

    .section { padding: 72px 0; }
}

@media (max-width: 480px) {
    .about-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 24px 16px; }
    .stat-number { font-size: 2rem; }
    .contact-form { padding: 24px; }
    .hero-stats { flex-direction: column; gap: 12px; }
    .hero-stat-divider { width: 30px; height: 1px; }
    .footer-links { flex-direction: column; gap: 24px; }
    .ig-profile-card { padding: 20px; }
}
