/* VICTORY RACE II — DESIGN SYSTEM */

:root {
    /* Colors */
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #111111;
    --accent: #00aaff;
    --accent-dark: #0077cc;
    --accent-glow: rgba(0, 170, 255, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;

    /* Typography */
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Exo 2', sans-serif;
    --font-accent: 'Rajdhani', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 20px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
.bebas {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

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

.btn-accent:hover {
    background: var(--accent);
    color: white;
}

.btn-glow {
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-lg {
    padding: 18px 45px;
    font-size: 1.3rem;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-fast);
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 170, 255, 0.2);
}

#navbar nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-family: var(--font-heading);
}

.logo .victory {
    color: white;
}

.logo .race {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-secondary);
}

.nav-links a:not(.btn):hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: var(--transition-fast);
}

/* Hero Section */
#hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('assets/img/hero-bg.jpg');
    /* Real Hero Image */
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.4) 0%, rgba(10, 10, 10, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 60px;
}

/* Legacy Lightning (Removed) */
.lightning-container,
.lightning-bolt,
#lightning-canvas {
    display: none !important;
}

#lightning-svg {
    z-index: 1;
}

.hero-title {
    font-size: clamp(4rem, 10vw, 8rem);
    margin: 0;
    line-height: 0.9;
    color: white;
    text-shadow: 0 0 20px var(--accent-glow);
    opacity: 0;
    /* Animated */
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--accent);
    margin-top: -10px;
    opacity: 0;
    /* Animated */
}

.hero-info {
    margin-top: 30px;
    font-family: var(--font-accent);
    opacity: 0;
    /* Animated */
}

.hero-date {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.hero-location {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Countdown */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    opacity: 0;
    /* Animated */
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-item span {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
    color: white;
}

.countdown-item label {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
}

/* Animations */
.pulsate {
    animation: pulsate 2s infinite;
}

@keyframes pulsate {
    0% {
        box-shadow: 0 0 5px var(--accent-glow);
    }

    50% {
        box-shadow: 0 0 20px var(--accent);
    }

    100% {
        box-shadow: 0 0 5px var(--accent-glow);
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent);
    border-radius: 15px;
}

.scroll-down span {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

.section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.alt-bg {
    background-color: var(--bg-card);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: white;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60%;
    height: 4px;
    background: var(--accent);
    transform: skewX(-20deg);
}

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

/* CARDS: Pillars */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.pillar-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-fast);
}

.pillar-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--accent);
    background: #1a1a2e;
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.pillar-card h3 {
    font-family: var(--font-accent);
    margin-bottom: 15px;
    color: white;
}

/* CARDS: Categories */
.category-group {
    margin-bottom: 60px;
}

.group-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--accent);
    border-left: 5px solid var(--accent);
    padding-left: 15px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.category-card {
    background: var(--bg-dark);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #222;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.category-card:hover {
    border-color: var(--accent);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.15);
}

.cat-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #222;
    color: #888;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    border-bottom-left-radius: 10px;
}

.category-card h4 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.cat-level {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.cat-level.recreativo {
    background: #4a4a4a;
    color: white;
}

.cat-level.principiante {
    background: #2ecc71;
    color: white;
}

.cat-level.intermedio {
    background: #f1c40f;
    color: #000;
}

.cat-level.avanzado {
    background: #e74c3c;
    color: white;
}

.cat-sex {
    font-family: var(--font-accent);
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.cat-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.1rem;
}

/* Animations Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* WODs Coming Soon */
.coming-soon-box {
    background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 170, 255, 0.2);
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.cs-content h3 {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.loading-bar {
    width: 100%;
    height: 4px;
    background: #333;
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
}

.bar-progress {
    width: 70%;
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: progress-pulse 2s infinite ease-in-out;
}

@keyframes progress-pulse {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.gallery-item {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 170, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.gallery-overlay span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: white;
    border: 2px solid white;
    padding: 5px 15px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover {
    color: var(--accent);
}

/* Sponsors */
.sponsors-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.sponsor-logo-placeholder {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-muted);
    border: 2px dashed #333;
    padding: 20px 40px;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.sponsor-card:hover .sponsor-logo-placeholder {
    color: var(--accent);
    border-color: var(--accent);
}

/* Registration Form */
.registration-form-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-dark);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 991px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(15px);
        padding: 100px 40px;
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 20px;
        opacity: 0;
    }

    .menu-toggle {
        display: flex;
        z-index: 1000;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

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

    .registration-form-container {
        padding: 30px 20px;
    }
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-accent);
    color: var(--text-secondary);
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: #111;
    border: 1px solid #333;
    color: white;
    border-radius: 5px;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 5px var(--accent-glow);
}

.categories-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    background: #111;
    padding: 20px;
    border-radius: 5px;
}

.cat-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-option label {
    margin-bottom: 0;
    font-size: 0.9rem;
    cursor: pointer;
}

.form-substep {
    border-top: 1px solid #222;
    padding-top: 30px;
    margin: 40px 0 20px;
    /* Increased top margin */
    color: var(--accent);
    font-family: var(--font-heading);
}

.disclaimer-box {
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.1);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.disclaimer-box input {
    margin-top: 5px;
    width: 20px;
    height: 20px;
}

.disclaimer-box label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-block {
    width: 100%;
}

#submit-btn:disabled {
    background: #444;
    cursor: not-allowed;
    box-shadow: none;
}

/* Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #111;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin: 0 auto 20px;
}

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

/* Footer */
#footer {
    background: var(--bg-darker);
    padding: 60px 20px;
    border-top: 1px solid #111;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-info {
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.footer-socials a {
    color: var(--accent);
    font-weight: 700;
}

.footer-legal {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Confirmation Screen */
.confirmation-screen {
    text-align: center;
    padding: 20px;
    position: relative;
}

.conf-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--accent);
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.payment-steps {
    background: #111;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: left;
    border: 1px solid #222;
}

.payment-steps h4 {
    margin-bottom: 25px;
    color: white;
    font-family: var(--font-accent);
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.step-num {
    background: var(--accent);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
}

.final-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti-particle {
    position: absolute;
    width: 10px;
    height: 10px;
}

/* Base Responsive Final */
@media (max-width: 768px) {
    .section {
        padding: 60px 20px;
    }
}

/* Nav Active Link */
.nav-links a.active {
    color: var(--blue-electric);
    text-shadow: 0 0 10px var(--blue-electric);
}

.nav-links a.active::after {
    width: 100%;
}

/* Multi-step Form */
.form-step {
    display: none;
    opacity: 0;
}

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

.form-steps-container {
    min-height: 400px;
    position: relative;
}

.step-title {
    font-family: 'Rajdhani', sans-serif;
    color: var(--blue-electric);
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--blue-electric);
    color: var(--white);
    padding: 12px 25px;
    cursor: pointer;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

.btn-outline:hover {
    background: var(--blue-electric);
    color: black;
}

/* Animations item initial states */
.anime-item {
    opacity: 0;
}

.form-step.active .anime-item {
    opacity: 1;
    /* Fallback if script fails */
}

/* Registration Page specific */
.registration-page {
    background: radial-gradient(circle at top, #111 0%, #050505 100%);
}

.registration-form-container {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 170, 255, 0.2);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 8px;
}

/* Input validation feedback */
input:focus {
    box-shadow: 0 0 15px var(--blue-electric);
    transform: translateY(-2px);
}

@keyframes pulse-border {
    0% {
        border-color: rgba(0, 170, 255, 0.3);
    }

    50% {
        border-color: rgba(0, 170, 255, 1);
    }

    100% {
        border-color: rgba(0, 170, 255, 0.3);
    }
}

.registration-form input:focus {
    animation: pulse-border 2s infinite;
}

/* Confetti particles */
.confetti-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    z-index: 100;
}