:root {
    /* Color System (Dark Mode Pure) */
    --bg-base: #000000;
    --bg-surface: #111113;
    --bg-surface-elevated: #1a1a1c;
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-highlight: rgba(255, 255, 255, 0.2);
    
    --primary-cyan: #00E5FF;
    --primary-glow: rgba(0, 229, 255, 0.4);
    
    --text-primary: #FFFFFF;
    --text-secondary: #8c8c93;
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
    
    /* Spacing System (8pt grid) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-6: 48px;
    --space-8: 64px;
    --space-12: 96px;
    --space-16: 128px;
    --space-24: 192px;
    
    /* Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Utilities */
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

/* Typography Rules (Apple Design) */
.display-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 8rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 700;
}
.display-title-sm {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    font-weight: 600;
    color: var(--text-primary);
}
.text-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--primary-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary-cyan);
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

/* Lenis */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* Loader */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-base);
    z-index: 9999;
}

/* Navigation (Glassmorphism) */
.nav-glass {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: var(--space-3) 5vw;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(17, 17, 19, 0.6);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border-subtle);
    border-top: 1px solid var(--border-highlight);
    border-radius: 100px;
    padding: 12px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}
.brand-logo { height: 24px; }
.nav-links {
    display: flex;
    gap: var(--space-4);
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text-primary); }

/* Buttons */
.btn-primary-sm, .btn-primary-lg {
    background: var(--primary-cyan);
    color: #000;
    border: none;
    font-family: var(--font-sans);
    font-weight: 600;
    cursor: pointer;
    border-radius: 100px;
    will-change: transform;
}
.btn-primary-sm { padding: 10px 20px; font-size: 0.95rem; }
.btn-primary-lg { padding: 18px 36px; font-size: 1.1rem; box-shadow: 0 8px 24px var(--primary-glow); }

/* Interactive Elements (Spring ready) */
.interactive {
    transition: filter 0.2s ease;
}
.interactive:hover { filter: brightness(1.1); }

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    padding: 0 5vw;
    overflow: hidden;
}
.hero-media {
    position: absolute;
    top: -15%; bottom: -15%; left: 0; right: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    background: url('./images/hero.png') center/cover no-repeat;
    will-change: transform;
}
.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%),
                radial-gradient(circle at top right, rgba(0,229,255,0.1) 0%, transparent 60%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding-top: var(--space-12);
}
.line-reveal {
    display: block;
    overflow: hidden;
}
.line-reveal > span {
    display: block;
    will-change: transform;
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: var(--space-4) 0 var(--space-6);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* Sections */
.section-layout {
    padding: var(--space-24) 5vw;
    background: var(--bg-base);
    position: relative;
    z-index: 10;
}
.section-header {
    margin-bottom: var(--space-12);
    max-width: 700px;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 350px;
    gap: var(--space-3);
}
.bento-card {
    position: relative;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    will-change: transform;
}
.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(to bottom, var(--border-highlight), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
}
.bento-span-2x2 {
    grid-column: span 2;
    grid-row: span 2;
}
.bento-span-3x1 {
    grid-column: span 3;
}
.bento-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-map { background-image: url('./images/dashboard_gps_night.png'); }
.bento-checkpoints { background-image: url('./images/car_enthusiasts_gas_station.png'); }
.bento-community { background-image: url('./images/riders_high_five.png'); }

.bento-card-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.bento-card-scrim-horizontal {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}
.bento-content {
    position: relative;
    z-index: 2;
    padding: var(--space-6);
    margin-top: auto;
}
.centered-content {
    margin: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.horizontal-layout {
    margin-top: 0;
    height: 100%;
    display: flex;
    align-items: center;
}
.bento-text-area { max-width: 400px; }
.bento-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-2);
}
.bento-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Walkie Talkie Visual */
.voice-indicator {
    position: relative;
    width: 80px; height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.mic-icon {
    position: relative;
    z-index: 2;
    color: var(--primary-cyan);
}
.pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--primary-cyan);
    animation: pulse 2.5s infinite cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Parallax Marquee Section */
.parallax-section {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.parallax-media {
    position: absolute;
    inset: -20% 0;
    z-index: 0;
}
.parallax-img {
    position: absolute;
    inset: 0;
    background: url('./images/club_gathering.png') center/cover no-repeat;
    will-change: transform;
}
.parallax-scrim {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85); /* Más oscuro para mayor contraste */
}
.marquee-container {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
    transform: rotate(-3deg) scale(1.1);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-text {
    display: flex;
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
    will-change: transform;
}
.marquee-text span {
    font-family: var(--font-display);
    font-size: clamp(5rem, 15vw, 15rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
    -webkit-text-stroke: 0;
    white-space: nowrap;
}

/* Stats Section */
.stats-section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}
.stats-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: var(--space-6) 0;
}
.stat-item {
    flex: 1;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.05);
}
.stat-item:last-child {
    border-right: none;
}
.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #4785ff;
    margin-bottom: 4px;
}
.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Footer */
.footer {
    padding: var(--space-12) 5vw var(--space-12);
    background: #050505; /* Slightly darker than base */
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--border-subtle);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
}
.footer-brand-col {
    padding-right: var(--space-8);
}
.footer-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.footer-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--space-4);
    font-size: 1rem;
}
.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.footer-links-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.footer-links-col a:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .bento-span-2x2, .bento-span-3x1 {
        grid-column: span 1;
        grid-row: auto;
    }
    .bento-card { min-height: 400px; }
    .nav-links { display: none; }
    .stats-grid {
        flex-wrap: wrap;
    }
    .stat-item {
        flex: 1 1 50%;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: var(--space-4) 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

/* Modal (Glassmorphism) */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-box {
    background: rgba(17, 17, 19, 0.85);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-4);
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 24px 48px rgba(0,229,255,0.1);
    text-align: center;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}
.modal-close:hover { color: var(--text-primary); }
.modal-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}
.modal-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}
.modal-btn-close {
    width: 100%;
    font-size: 1rem;
}

/* Formularios (Global) */
.support-form-group {
    margin-bottom: 20px;
    text-align: left;
}
.support-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}
.support-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.support-input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    background-color: rgba(255, 255, 255, 0.05);
}
.support-input::placeholder {
    color: #555A75;
}
select.support-input option {
    background-color: var(--bg-surface-elevated);
    color: var(--text-primary);
}
