/* ==========================================================================
   DESIGN SYSTEM & CUSTOM STYLES: HHI COLOMBIA (3D & DUAL-THEME & PRELOADER)
   ========================================================================== */

/* --- Google Fonts & Variables --- */
body.dark-theme, :root {
    --color-bg-darkest: #030108;
    --color-bg-dark: #0a0614;
    --color-bg-card: rgba(16, 10, 32, 0.65);
    --color-bg-glass: rgba(15, 10, 25, 0.45);
    --color-text-bright: #ffffff;
    --color-text-muted: #abb8c3;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-glow: rgba(0, 210, 255, 0.35);
    --color-shadow: rgba(0, 0, 0, 0.6);
    --color-primary: #00d2ff;      /* Neon Cyan */
    --color-secondary: #ff003c;    /* Neon Crimson */
    --color-gold: #ffd700;         /* Metallic Gold */
    --color-gold-dark: #b8860b;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius: 12px;
}

body.light-theme {
    --color-bg-darkest: #f4f3f8;
    --color-bg-dark: #e9e8f1;
    --color-bg-card: rgba(255, 255, 255, 0.75);
    --color-bg-glass: rgba(255, 255, 255, 0.55);
    --color-text-bright: #140f35;
    --color-text-muted: #4e4b66;
    --color-border: rgba(20, 15, 53, 0.1);
    --color-border-glow: rgba(0, 142, 184, 0.25);
    --color-shadow: rgba(20, 15, 53, 0.08);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-darkest);
    transition: background-color 0.4s ease;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-color: var(--color-bg-darkest);
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* --- Preloader Screen (Controlled Sequence) --- */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #030108;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s ease;
}

.preloader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.brand-logo.large {
    transform: scale(1.4);
}

.brand-logo.large.pulse {
    animation: logoPulse 2s infinite ease-in-out;
}

.preloader-bar {
    width: 260px;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.preloader-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 0 12px var(--color-primary);
    transition: width 0.15s cubic-bezier(0.1, 0.8, 0.1, 1);
}

.preloader-percentage {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 0 15px var(--color-border-glow);
}

.preloader-loading-text {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-primary);
    letter-spacing: 3px;
    animation: blinkText 1.5s infinite alternate ease-in-out;
    font-weight: 500;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1.4); filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.2)); }
    50% { transform: scale(1.5); filter: drop-shadow(0 0 30px rgba(255, 0, 60, 0.5)); }
}

@keyframes blinkText {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* --- Interactive Canvas Particles --- */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1; /* Position above nebula overlays, but below section content */
    pointer-events: none;
}

/* --- Background Nebula & Stars Overlay --- */
.nebula-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(circle at 80% 20%, rgba(13, 0, 36, 0.8), transparent),
                      radial-gradient(circle at 10% 80%, rgba(0, 36, 50, 0.55), transparent),
                      url('assets/cosmic_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -3;
    opacity: 0.9;
    transition: opacity 0.4s ease, background-image 0.4s ease;
}

body.light-theme .nebula-bg-overlay {
    background-image: radial-gradient(circle at 80% 20%, rgba(220, 210, 245, 0.9), transparent),
                      radial-gradient(circle at 10% 80%, rgba(200, 235, 255, 0.85), transparent),
                      url('assets/cosmic_bg.jpg');
    background-blend-mode: color-dodge;
    opacity: 0.8;
}

.stars-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2.5px 2.5px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.25;
    z-index: -2;
    animation: starsPulse 12s infinite alternate ease-in-out;
}

body.light-theme .stars-layer {
    opacity: 0.05;
}

/* --- Floating Theme Switcher Button --- */
.theme-toggle-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
    cursor: pointer;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px var(--color-shadow);
    transition: var(--transition-smooth);
    outline: none;
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--color-primary);
    box-shadow: 0 8px 25px var(--color-border-glow);
}

.theme-toggle-btn svg {
    width: 24px;
    height: 24px;
    transition: var(--transition-smooth);
}

body.dark-theme .theme-toggle-btn .sun-icon {
    display: block;
    fill: var(--color-gold);
}

body.dark-theme .theme-toggle-btn .moon-icon {
    display: none;
}

body.light-theme .theme-toggle-btn .sun-icon {
    display: none;
}

body.light-theme .theme-toggle-btn .moon-icon {
    display: block;
    fill: #140f35;
}

/* --- Helper Classes --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-text-bright);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-bright);
    letter-spacing: 0.5px;
    transition: color 0.4s ease;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 1.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #008eb8 100%);
    color: #000;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) translateZ(10px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
    background: linear-gradient(135deg, #4edeff 0%, var(--color-primary) 100%);
    color: #000;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-bright);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(5px);
}

body.light-theme .btn-secondary {
    background: rgba(20, 15, 53, 0.06);
    color: var(--color-text-bright);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px) translateZ(10px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-outline:hover {
    background: rgba(0, 210, 255, 0.08);
    color: var(--color-text-bright);
    border-color: var(--color-text-bright);
}

body.light-theme .btn-outline:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(0, 210, 255, 0.05);
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: #000;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 215, 0, 0.45);
    background: linear-gradient(135deg, #fff 0%, var(--color-gold) 100%);
    color: #000;
}

.btn-glowing {
    position: relative;
    overflow: hidden;
}

.btn-glowing::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}

.btn-glowing:hover::after {
    left: 120%;
    opacity: 1;
    transition: 0.7s ease;
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1.05rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-primary);
    padding: 0;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition-smooth);
}

.btn-link:hover {
    color: var(--color-text-bright);
    gap: 0.5rem;
}

/* --- Header / Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.2rem 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.main-header.scrolled {
    padding: 0.7rem 0;
    background: rgba(6, 3, 14, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

body.light-theme .main-header.scrolled {
    background: rgba(244, 243, 248, 0.88);
    box-shadow: 0 4px 30px rgba(20, 15, 53, 0.08);
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.logo-box {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 2px 6px;
    letter-spacing: 1px;
}

.red-plate {
    background-color: var(--color-secondary);
    color: #fff;
    border-radius: 3px 3px 0 0;
    transform: rotate(-1deg);
    display: inline-block;
}

.gold-plate {
    background-color: var(--color-gold);
    color: #000;
    border-radius: 0 0 3px 3px;
    transform: rotate(1deg);
    margin-top: -1px;
    font-size: 0.85rem;
    display: inline-block;
}

.logo-sub {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--color-text-bright);
    letter-spacing: 2px;
    margin-top: 3px;
    margin-left: 2px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-bright);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* --- Mobile Toggle --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.mobile-menu-toggle span {
    display: block;
    height: 2.5px;
    width: 100%;
    background-color: var(--color-text-bright);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    padding-top: 8rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 5; /* Positioned above the particles canvas */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: 3px;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.hero-tagline::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--color-primary);
    margin-top: 4px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.highlight-text {
    background: linear-gradient(135deg, var(--color-text-bright) 40%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 210, 255, 0.2);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 540px;
    margin-bottom: 2.2rem;
}

.hero-ctas {
    display: flex;
    gap: 1.2rem;
}

/* --- 3D Hero Graphic Layout --- */
.hero-graphics-container {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    width: 100%;
}

.hero-graphics-3d-wrap {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 360px;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

.hero-dancer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: translateZ(20px);
    transition: var(--transition-smooth);
}

body.light-theme .hero-dancer-img {
    border-color: rgba(20, 15, 53, 0.12);
    box-shadow: 0 15px 40px rgba(20, 15, 53, 0.25);
}

.qualifier-seal-wrapper {
    position: absolute;
    top: -25px;
    right: -25px;
    width: 160px;
    height: 160px;
    z-index: 5;
    transform: translateZ(80px); /* Massive Z distance for true 3D float */
}

.qualifier-seal {
    width: 100%;
    height: 100%;
    animation: floatCard 4s infinite ease-in-out alternate;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.qualifier-seal:hover {
    transform: scale(1.05) rotate(3deg);
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.45));
}

.seal-inner {
    width: 100%;
    height: 100%;
}

.spikes {
    transform-origin: 100px 100px;
    animation: rotateSeal 24s infinite linear;
}

/* --- Scroll Reveal Animations --- */
.reveal-left, .reveal-right, .reveal-up {
    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);
    will-change: transform, opacity;
}

.reveal-left {
    transform: translateX(-60px);
}

.reveal-right {
    transform: translateX(60px);
}

.reveal-up {
    transform: translateY(60px);
}

.reveal-left.active, .reveal-right.active, .reveal-up.active {
    opacity: 1;
    transform: translate(0);
}

/* --- Sections Common Layout --- */
section {
    padding: 8rem 0;
    position: relative;
    z-index: 5; /* Sit above the canvas particles */
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 0.5rem auto 1.5rem auto;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--color-gold);
    top: -3.5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

/* --- 3D Cards --- */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s ease-out;
}

/* Give inside elements some translation depth */
.tilt-card > * {
    transform: translateZ(40px);
}

/* --- Championship Divisions Section --- */
.championship-section {
    background-color: rgba(6, 3, 14, 0.4);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

body.light-theme .championship-section {
    background-color: rgba(20, 15, 53, 0.02);
}

.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.division-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2.2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth), transform 0.15s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-shadow: 0 10px 30px var(--color-shadow);
}

.division-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 15px 35px var(--color-border-glow);
}

.div-card-header {
    margin-bottom: 1.5rem;
}

.div-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(0, 210, 255, 0.12);
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.division-card h3 {
    font-size: 1.6rem;
    font-weight: 500;
}

.division-card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.division-card ul li {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.division-card ul li::before {
    content: '✦';
    color: var(--color-primary);
    font-size: 0.75rem;
}

.division-card ul li strong {
    color: var(--color-text-bright);
}

/* --- Workshops Section --- */
.workshop-featured-card {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4rem;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 3rem;
    backdrop-filter: blur(15px);
    margin-bottom: 6rem;
    align-items: center;
    box-shadow: 0 15px 40px var(--color-shadow);
}

.featured-flyer-wrap {
    display: flex;
    justify-content: center;
}

.flyer-glow-card {
    position: relative;
    max-width: 320px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

body.light-theme .flyer-glow-card {
    border-color: rgba(20, 15, 53, 0.1);
    box-shadow: 0 10px 30px rgba(20, 15, 53, 0.2);
}

.flyer-glow-card:hover {
    transform: scale(1.03) rotate(-1deg);
    box-shadow: 0 20px 50px var(--color-border-glow);
    border-color: var(--color-primary);
}

.event-flyer {
    width: 100%;
    display: block;
    object-fit: cover;
}

.flyer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #fff;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 1.5px;
}

.featured-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.workshop-badge {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 0.25rem 0.8rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

.location-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.dates-range, .location-address {
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-text-bright);
    margin-bottom: 0.75rem;
}

.dates-range svg, .location-address svg {
    width: 20px;
    height: 20px;
    fill: var(--color-primary);
}

.quote-box {
    margin: 1.5rem 0;
    border-left: 3px solid var(--color-secondary);
    padding-left: 1.2rem;
}

.quote-box blockquote {
    font-style: italic;
    color: var(--color-text-bright);
    font-size: 1.15rem;
    line-height: 1.4;
}

.workshop-promo-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* --- Instructors Grid --- */
.subsection-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 3.5rem;
    letter-spacing: 1px;
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.instructor-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px var(--color-shadow);
}

.instructor-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 15px 35px var(--color-border-glow);
}

.instructor-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.instructor-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.instructor-card:hover .instructor-img-wrap img {
    transform: scale(1.06);
}

.instructor-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1rem 0.8rem 1rem;
    background: linear-gradient(to top, rgba(10, 6, 20, 0.95) 40%, transparent 100%);
    text-align: center;
}

body.light-theme .instructor-overlay-info {
    background: linear-gradient(to top, rgba(244, 243, 248, 0.98) 40%, transparent 100%);
}

.dance-style {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(0, 210, 255, 0.15);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    border-radius: 4px;
}

.instructor-meta {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex-grow: 1;
}

.instructor-meta h4 {
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.instructor-meta .role {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.8rem;
}

/* --- Schedule Section --- */
.schedule-section {
    background-color: rgba(6, 3, 14, 0.4);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

body.light-theme .schedule-section {
    background-color: rgba(20, 15, 53, 0.02);
}

.schedule-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.tab-btn {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.6rem 1.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

body.light-theme .tab-btn {
    background: rgba(20, 15, 53, 0.04);
}

.tab-btn:hover, .tab-btn.active {
    background: rgba(0, 210, 255, 0.10);
    border-color: var(--color-primary);
    color: var(--color-text-bright);
}

.schedule-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.day-pane {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
}

.day-pane.active {
    display: flex;
}

.timeline-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding: 1.8rem;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px var(--color-shadow);
}

.timeline-item:hover {
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

body.light-theme .timeline-item:hover {
    background: rgba(20, 15, 53, 0.03);
}

.timeline-item.main-class {
    border-left: 3px solid var(--color-primary);
}

.timeline-item.event-special {
    border-left: 3px solid var(--color-gold);
}

.timeline-item.highlight-item {
    border-left: 3px solid var(--color-secondary);
    background: rgba(255, 0, 60, 0.04);
}

.timeline-item .time {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-primary);
    display: flex;
    align-items: center;
}

.timeline-item .details h4 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.timeline-item .details .location {
    font-size: 0.9rem;
    color: var(--color-gold);
}

.timeline-item .details .desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.instructor-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-text-bright);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 0.4rem;
}

body.light-theme .instructor-badge {
    background: rgba(20, 15, 53, 0.08);
    border-color: rgba(20, 15, 53, 0.15);
}

.tag-highlight {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 0, 60, 0.15);
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

/* --- Registration Section --- */
.registration-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 40px var(--color-shadow);
}

.reg-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--color-border);
}

.reg-tab-btn {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

body.light-theme .reg-tab-btn {
    background: rgba(20, 15, 53, 0.02);
}

.reg-tab-btn:hover {
    color: var(--color-text-bright);
    background: rgba(255, 255, 255, 0.04);
}

body.light-theme .reg-tab-btn:hover {
    background: rgba(20, 15, 53, 0.04);
}

.reg-tab-btn.active {
    background: transparent;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

.reg-form-pane {
    display: none;
    padding: 3rem;
}

.reg-form-pane.active {
    display: block;
}

/* Form Steps */
.form-step-indicators {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
}

.form-step-indicators::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-border);
    z-index: 1;
    transform: translateY(-50%);
}

.step-dot {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    background: var(--color-bg-dark);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    z-index: 2;
    position: relative;
    transition: var(--transition-smooth);
}

body.light-theme .step-dot {
    background: #fff;
    border-color: rgba(20, 15, 53, 0.12);
}

.step-dot.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

body.light-theme .step-dot.active {
    box-shadow: 0 0 10px rgba(0, 142, 184, 0.18);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.form-group.checkbox-group input {
    width: auto;
    margin-top: 4px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--color-text-bright);
}

input[type="text"], input[type="email"], input[type="number"], select {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--color-border);
    color: var(--color-text-bright);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

body.light-theme input[type="text"], 
body.light-theme input[type="email"], 
body.light-theme input[type="number"], 
body.light-theme select {
    background: rgba(20, 15, 53, 0.04);
    color: #140f35;
    border-color: rgba(20, 15, 53, 0.12);
}

input[type="text"]:focus, input[type="email"]:focus, input[type="number"]:focus, select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.25);
    background: rgba(0, 0, 0, 0.55);
    outline: none;
}

body.light-theme input[type="text"]:focus, 
body.light-theme input[type="email"]:focus, 
body.light-theme input[type="number"]:focus, 
body.light-theme select:focus {
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 8px rgba(0, 142, 184, 0.2);
}

select option {
    background-color: var(--color-bg-darkest);
    color: #fff;
}

body.light-theme select option {
    background-color: #fff;
    color: #140f35;
}

/* Roster Design */
.step-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.roster-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.roster-member-row {
    display: grid;
    grid-template-columns: 40px 1fr 100px 40px;
    gap: 1rem;
    align-items: center;
}

.row-num {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-text-muted);
    text-align: center;
}

.btn-remove-member {
    background: none;
    border: none;
    color: var(--color-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.btn-remove-member:hover {
    color: var(--color-text-bright);
    transform: scale(1.1);
}

.roster-actions {
    margin-bottom: 2rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions.text-right {
    justify-content: flex-end;
}

.form-actions.space-between {
    justify-content: space-between;
}

/* Summary Card */
.summary-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.8rem;
    margin-bottom: 2rem;
}

body.light-theme .summary-card {
    background: rgba(20, 15, 53, 0.03);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.summary-row strong {
    color: var(--color-text-bright);
}

.summary-divider {
    height: 1px;
    background: var(--color-border);
    margin: 1.2rem 0;
}

.summary-row.total {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--color-text-bright);
}

.price-highlight {
    color: var(--color-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

body.light-theme .price-highlight {
    color: #c79c00;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: rgba(0,0,0,0.25);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

body.light-theme .checkbox-grid {
    background: rgba(20, 15, 53, 0.04);
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-option label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: none;
    cursor: pointer;
}

/* --- Gallery Section --- */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3.5rem;
}

.filter-btn {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.4rem 1.4rem;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    border-color: var(--color-primary);
    color: var(--color-text-bright);
    background: rgba(0, 210, 255, 0.08);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1.4;
    cursor: pointer;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    box-shadow: 0 10px 25px var(--color-shadow);
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: var(--color-primary);
    box-shadow: 0 10px 20px var(--color-border-glow);
}

.item-img-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.item-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover .item-img-container img {
    transform: scale(1.05);
}

.item-mock-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.85);
    background: rgba(0,0,0,0.5);
    border: 2px solid #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    transition: var(--transition-smooth);
}

.gallery-item:hover .play-icon {
    transform: scale(1.1);
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #000;
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 2;
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

body.light-theme .item-overlay {
    background: linear-gradient(to top, rgba(244, 243, 248, 0.98), transparent);
}

.gallery-item:hover .item-overlay {
    transform: translateY(0);
}

.item-overlay h4 {
    font-size: 1.15rem;
    font-weight: 500;
}

.item-overlay span {
    font-size: 0.8rem;
    color: var(--color-primary);
}

/* --- Footer --- */
.main-footer {
    background-color: #04020a;
    border-top: 1px solid var(--color-border);
    padding: 6rem 0 2rem 0;
    transition: background-color 0.4s ease;
}

body.light-theme .main-footer {
    background-color: #e3e2ea;
    border-top-color: rgba(20, 15, 53, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
}

.brand-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

body.light-theme .social-links a {
    background: rgba(20, 15, 53, 0.04);
    border-color: rgba(20, 15, 53, 0.08);
}

.social-links a svg {
    width: 18px;
    height: 18px;
    fill: var(--color-text-muted);
    transition: var(--transition-smooth);
}

body.light-theme .social-links a svg {
    fill: #140f35;
}

.social-links a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.social-links a:hover svg {
    fill: #000;
    transform: scale(1.1);
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-primary);
    margin-top: 4px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links ul a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-links ul a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.footer-contact p strong {
    color: var(--color-text-bright);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

body.light-theme .footer-bottom {
    border-top-color: rgba(20, 15, 53, 0.08);
    color: rgba(20, 15, 53, 0.5);
}

/* --- Modals --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 200;
    background: rgba(3, 1, 8, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal.open {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: rgba(18, 10, 35, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 750px;
    padding: 3rem;
    position: relative;
    transform: scale(0.9) translateZ(0);
    transition: var(--transition-smooth);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

body.light-theme .modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(20, 15, 53, 0.1);
    box-shadow: 0 30px 80px rgba(20, 15, 53, 0.18);
}

.modal.open .modal-content {
    transform: scale(1) translateZ(30px);
}

.modal-content.max-sm {
    max-width: 500px;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.modal-body-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: start;
}

.modal-img-column {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.modal-img-column img {
    width: 100%;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
}

.modal-info-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.modal-badge {
    background: rgba(0,210,255,0.12);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 0.8rem;
}

.modal-badge.gold {
    background: rgba(255, 215, 0, 0.12);
    border-color: var(--color-gold);
    color: var(--color-gold);
}

#modal-instructor-name {
    font-size: 2.2rem;
    font-weight: 600;
}

.modal-role {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.2rem;
}

.modal-divider {
    width: 100%;
    height: 1px;
    background: var(--color-border);
    margin: 1rem 0 1.5rem 0;
}

.modal-section {
    margin-bottom: 1.5rem;
    width: 100%;
}

.modal-section h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.modal-section p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.modal-classes-list {
    list-style: none;
}

.modal-classes-list li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
}

body.light-theme .modal-classes-list li {
    border-bottom-color: rgba(20, 15, 53, 0.08);
}

.modal-classes-list li strong {
    color: var(--color-primary);
}

.rules-section {
    margin-bottom: 1.8rem;
}

.rules-section h4 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.rules-section p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.rules-points {
    list-style: none;
    padding-left: 0.5rem;
}

.rules-points li {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 1.2rem;
}

.rules-points li::before {
    content: '✓';
    color: var(--color-primary);
    position: absolute;
    left: 0;
}

.rules-points.warning li::before {
    content: '⚠';
    color: var(--color-secondary);
}

.rules-points li strong {
    color: var(--color-text-bright);
}

/* --- Animations Keyframes --- */
@keyframes floatCard {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-10px) rotate(1.5deg); }
}

@keyframes rotateSeal {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes starsPulse {
    0% { opacity: 0.15; }
    100% { opacity: 0.35; }
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVIDAD DE EXCELENCIA)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 10rem;
        gap: 4rem;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-tagline::after {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .workshop-featured-card {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2.2rem;
    }

    .featured-details {
        align-items: center;
        text-align: center;
    }

    .quote-box {
        border-left: none;
        border-top: 2px solid var(--color-secondary);
        border-bottom: 2px solid var(--color-secondary);
        padding: 1rem 0;
        margin: 1.5rem auto;
        max-width: 450px;
    }
    
    .footer-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 3rem;
    }
    
    .footer-contact {
        grid-column: span 2;
    }
}

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

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: rgba(6, 3, 14, 0.98);
        backdrop-filter: blur(20px);
        padding: 8rem 3rem 3rem 3rem;
        transition: var(--transition-smooth);
        border-left: 1px solid var(--color-border);
        box-shadow: -5px 0 30px rgba(0,0,0,0.5);
    }

    body.light-theme .nav-menu {
        background: rgba(244, 243, 248, 0.98);
        box-shadow: -5px 0 30px rgba(20,15,53,0.1);
    }

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

    .nav-menu ul {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }

    .nav-link {
        font-size: 1.3rem;
    }

    .header-actions {
        margin-right: 3rem;
    }

    .main-header.scrolled .header-actions {
        margin-right: 0;
    }
    
    .header-actions #nav-register-btn {
        display: none;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .timeline-item .time {
        margin-bottom: 0.25rem;
    }

    .form-grid, .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .reg-form-pane {
        padding: 1.8rem;
    }

    .roster-member-row {
        grid-template-columns: 30px 1fr 70px 30px;
        gap: 0.5rem;
    }

    .modal-body-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .modal-img-column {
        max-width: 250px;
        margin: 0 auto;
    }

    .modal-content {
        padding: 2.2rem;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-contact {
        grid-column: span 1;
    }
}

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

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .hero-graphics-3d-wrap {
        height: 280px;
    }

    .qualifier-seal-wrapper {
        width: 120px;
        height: 120px;
        top: -15px;
        right: -15px;
    }
    
    .reg-tabs {
        grid-template-columns: 1fr;
    }
    
    .reg-tab-btn {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
}
