* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--font-heading: 'Oswald', 'Inter', sans-serif;
--color-black: #000000;
--color-dark: #0a0a0a;
--color-gray-900: #111111;
--color-gray-800: #1a1a1a;
--color-gray-700: #2a2a2a;
--color-gray-600: #444444;
--color-gray-500: #666666;
--color-gray-400: #888888;
--color-gray-300: #aaaaaa;
--color-white: #ffffff;
--color-off-white: #f5f5f5;
--color-primary: #ff6b00;
--color-primary-dark: #e85d00;
--color-primary-light: #ff8533;
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
--shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.35);
--shadow-glow: 0 0 40px rgba(255, 107, 0, 0.3);
--gradient-primary: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
--gradient-dark: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
--gradient-card: linear-gradient(145deg, rgba(26,26,26,0.95) 0%, rgba(17,17,17,0.98) 100%);
--transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
--transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
--transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
--transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
--container-max: 1400px;
--container-narrow: 900px;
--spacing-xs: 8px;
--spacing-sm: 16px;
--spacing-md: 32px;
--spacing-lg: 64px;
--spacing-xl: 96px;
--spacing-2xl: 128px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
font-family: var(--font-body);
background-color: var(--color-black);
color: var(--color-white);
font-size: 16px;
line-height: 1.7;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
position: relative;
}

body::before {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
z-index: 99999;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
opacity: 0.03;
mix-blend-mode: overlay;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Header */
.header {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
padding: 24px 40px;
transition: var(--transition-normal);
background: transparent;
backdrop-filter: none;
}

.header.scrolled {
background: transparent;
backdrop-filter: none;
padding: 24px 40px;
border-bottom: none;
box-shadow: none;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
}

.logo img {
    height: 48px;
    width: auto;
    transition: var(--transition-normal);
}

.header.scrolled .logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-link {
font-size: 12px;
font-weight: 600;
letter-spacing: 1.5px;
text-transform: uppercase;
opacity: 0.85;
transition: var(--transition-fast);
position: relative;
color: var(--color-white);
}

.nav-link:hover {
opacity: 1;
color: var(--color-primary);
}

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

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--color-white);
    transition: var(--transition-normal);
}

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

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.5) 100%);
z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 2rem;
}

.hero-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 70vh;
    text-align: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hero-badge {
display: inline-block;
font-size: 11px;
font-weight: 600;
letter-spacing: 2px;
color: #e0e0e0;
border: 1px solid rgba(255, 255, 255, 0.3);
padding: 8px 20px;
margin-bottom: 28px;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
opacity: 0;
animation: fadeUp 1s 0.3s forwards;
transition: var(--transition-normal);
box-shadow: none;
}

.hero-badge:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.5);
color: #ffffff;
box-shadow: none;
transform: translateY(-2px);
}

.hero-top-logo {
    height: 95px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeUp 1s 0.5s forwards;
}

.hero-title {
font-family: var(--font-heading);
font-size: clamp(40px, 8vw, 72px);
font-weight: 700;
letter-spacing: 6px;
line-height: 1.05;
margin-bottom: 12px;
color: #ffffff;
text-transform: uppercase;
text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
opacity: 0;
animation: fadeUp 1s 0.7s forwards;
}

.hero-subtitle {
font-size: clamp(11px, 1.6vw, 15px);
font-weight: 600;
letter-spacing: 4px;
color: rgba(255, 255, 255, 0.9);
margin-bottom: 40px;
opacity: 0;
animation: fadeUp 1s 0.9s forwards;
text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-scroll-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 600;
    animation: fadeIn 1s 1.2s forwards, scrollBounce 2s 1.2s infinite;
    text-decoration: none;
}

.hero-scroll-indicator:hover {
    color: var(--color-white);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Rodadas Grid */
.rodadas-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1rem;
padding: 1rem 0;
}

.rodada-card {
    position: relative;
    height: 600px;
    overflow: hidden;
    cursor: pointer;
}

.rodada-card video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.rodada-card::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.9) 100%);
transition: var(--transition-normal);
}

.rodada-card:hover::after {
background: linear-gradient(180deg, transparent 20%, rgba(255, 107, 0, 0.2) 50%, rgba(0, 0, 0, 0.95) 100%);
}

.rodada-card:hover video {
transform: scale(1.08);
}

.rodada-info {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 32px 24px 24px;
z-index: 2;
transform: translateY(8px);
transition: var(--transition-normal);
}

.rodada-card:hover .rodada-info {
transform: translateY(0);
}

.rodada-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 2;
}

.rodada-tag {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 8px;
}

.rodada-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.rodada-desc {
    font-size: 14px;
    opacity: 0.7;
    line-height: 1.6;
}

/* Race Promo */
.rodada-promo {
background: var(--color-gray-900);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 40px;
position: relative;
overflow: hidden;
}

.rodada-promo video {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 0;
}

.rodada-promo::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.9) 100%);
z-index: 1;
}

.rodada-promo > * {
position: relative;
z-index: 2;
}

.promo-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 24px;
}

.promo-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.promo-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.promo-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

.promo-detail i {
    width: 16px;
    text-align: center;
    opacity: 0.8;
}

.btn-primary {
display: inline-block;
font-size: 12px;
font-weight: 700;
letter-spacing: 2px;
text-transform: uppercase;
padding: 18px 44px;
background: var(--gradient-primary);
color: var(--color-white);
border: none;
border-radius: 4px;
cursor: pointer;
transition: var(--transition-normal);
box-shadow: 0 4px 20px rgba(255, 107, 0, 0.35);
position: relative;
overflow: hidden;
}

.btn-primary::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: var(--transition-slow);
}

.btn-primary:hover::before {
left: 100%;
}

.btn-primary:hover {
transform: translateY(-3px);
box-shadow: 0 8px 32px rgba(255, 107, 0, 0.5);
}

.btn-primary:active {
transform: translateY(-1px);
}

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

/* Routes Catalog */
.routes-section {
padding: 2rem 2rem 3rem 2rem;
background: var(--color-black);
}

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

.section-label {
font-size: 10px;
font-weight: 600;
letter-spacing: 2px;
text-transform: uppercase;
color: var(--color-primary);
margin-bottom: 8px;
display: inline-block;
position: relative;
}

.section-title {
font-family: var(--font-heading);
font-size: clamp(24px, 4vw, 36px);
font-weight: 700;
letter-spacing: 1.5px;
line-height: 1.1;
margin-bottom: 8px;
color: var(--color-white);
text-transform: uppercase;
}

.section-subtitle {
font-size: 13px;
line-height: 1.5;
opacity: 0.5;
max-width: 450px;
margin: 0 auto;
}

.routes-header {
margin-bottom: 16px;
}

.routes-header-line {
height: 1px;
background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 20%, rgba(255,255,255,0.15) 80%, transparent 100%);
}

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

.route-card {
position: relative;
background: rgba(20, 20, 20, 0.6);
padding: 0;
display: flex;
flex-direction: column;
transition: all var(--transition-normal);
border: none;
overflow: hidden;
backdrop-filter: blur(10px);
border-radius: 0;
box-shadow: none;
}

.route-card::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(145deg, rgba(30,30,30,0.4) 0%, rgba(15,15,15,0.6) 100%);
opacity: 1;
transition: opacity var(--transition-normal);
z-index: 0;
}

.route-card::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%, rgba(255,255,255,0.02) 100%);
opacity: 0;
transition: opacity var(--transition-normal);
z-index: 0;
}

.route-card:hover::after {
opacity: 1;
}

.route-card:hover {
transform: translateY(-2px);
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.route-card-inner {
position: relative;
z-index: 1;
padding: 0;
}


.route-card:hover .route-number {
color: rgba(255, 255, 255, 0.08);
transform: scale(1.05);
}

.route-card {
position: relative;
background: var(--gradient-card);
padding: 20px 18px 18px !important;
display: flex;
flex-direction: column;
transition: var(--transition-normal);
border: 1px solid rgba(255, 255, 255, 0.06);
overflow: hidden;
border-radius: 6px;
box-shadow: var(--shadow-md);
}

.route-card::before {
content: '';
position: absolute;
left: 0;
top: 0;
width: 4px;
height: 0;
transition: height var(--transition-normal);
border-radius: 0 4px 4px 0;
}

.route-card::after {
content: '';
position: absolute;
inset: 0;
border-radius: 12px;
padding: 1px;
background: linear-gradient(180deg, rgba(255,255,255,0.1), transparent);
-webkit-mask: linear-gradient(black, black) content-box, linear-gradient(black, black);
-webkit-mask-composite: xor;
mask-composite: exclude;
opacity: 0;
transition: opacity var(--transition-normal);
}

.route-card:hover::after {
opacity: 1;
}

.route-card:hover {
transform: translateY(-4px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.route-number {
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    transition: var(--transition-normal);
}

.route-card:hover .route-number {
    color: rgba(255, 255, 255, 0.06);
}

.route-difficulty {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 9px;
font-weight: 600;
letter-spacing: 1.5px;
text-transform: uppercase;
padding: 5px 12px;
margin-bottom: 12px;
border-radius: 16px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
backdrop-filter: blur(5px);
}

.route-difficulty::before {
width: 5px;
height: 5px;
border-radius: 50%;
background: currentColor;
box-shadow: 0 0 6px currentColor;
}

.route-name {
font-family: var(--font-heading);
font-size: 20px;
font-weight: 600;
letter-spacing: 0.3px;
text-transform: uppercase;
margin-bottom: 8px;
color: #ffffff;
line-height: 1.2;
}

.route-desc {
font-size: 13px;
line-height: 1.6;
color: rgba(255, 255, 255, 0.6);
margin-bottom: 16px;
flex: 1;
font-weight: 300;
}

.route-elevation {
display: flex;
align-items: flex-end;
gap: 2px;
height: 32px;
margin-bottom: 14px;
padding-top: 6px;
border-bottom: 1px solid rgba(255,255,255,0.06);
position: relative;
}

.route-elevation span {
flex: 1;
border-radius: 2px 2px 0 0;
background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
transition: all var(--transition-normal);
position: relative;
overflow: hidden;
}

.route-card:hover .route-elevation span {
background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.05) 100%);
}

.route-glow-expert .route-elevation span { 
background: linear-gradient(180deg, rgba(255,68,68,0.15) 0%, rgba(255,68,68,0.04) 100%);
}
.route-glow-expert:hover .route-elevation span { 
background: linear-gradient(180deg, rgba(255,68,68,0.25) 0%, rgba(255,68,68,0.08) 100%);
}
.route-glow-intermediate .route-elevation span { 
background: linear-gradient(180deg, rgba(255,170,0,0.15) 0%, rgba(255,170,0,0.04) 100%);
}
.route-glow-intermediate:hover .route-elevation span { 
background: linear-gradient(180deg, rgba(255,170,0,0.25) 0%, rgba(255,170,0,0.08) 100%);
}
.route-glow-beginner .route-elevation span { 
background: linear-gradient(180deg, rgba(102,187,106,0.15) 0%, rgba(102,187,106,0.04) 100%);
}
.route-glow-beginner:hover .route-elevation span { 
background: linear-gradient(180deg, rgba(102,187,106,0.25) 0%, rgba(102,187,106,0.08) 100%);
}

.route-stats {
display: flex;
gap: 20px;
padding-top: 16px;
border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.route-stat-value {
display: block;
font-family: var(--font-heading);
font-size: 18px;
font-weight: 700;
color: #ffffff;
letter-spacing: 0.5px;
line-height: 1;
margin-bottom: 4px;
}

.route-stat-label {
font-size: 10px;
font-weight: 500;
letter-spacing: 1px;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.4);
}

.route-stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.route-stat-label {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.4;
}

/* Route Image Card */
.route-card-image {
    grid-column: span 2;
    padding: 0;
    min-height: 380px;
    overflow: hidden;
    position: relative;
    border: none;
}

.route-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.route-card-image:hover img {
    transform: scale(1.04);
}

.route-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 44px;
}

.route-image-overlay .route-name {
    font-size: 32px;
    margin-bottom: 10px;
}

.route-image-overlay .route-desc {
    opacity: 0.7;
    max-width: 450px;
    margin-bottom: 0;
}

/* Race Section */
.race-section {
padding: 0;
}

.race-hero {
position: relative;
height: 600px;
overflow: hidden;
}

.race-hero-video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 0;
}

.race-hero img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}

.race-label {
font-size: 10px;
font-weight: 500;
letter-spacing: 4px;
text-transform: uppercase;
padding: 8px 20px;
border: 1px solid rgba(255, 255, 255, 0.3);
margin-bottom: 24px;
}

.race-title {
font-size: clamp(48px, 10vw, 96px);
font-weight: 700;
letter-spacing: -2px;
line-height: 1;
margin-bottom: 16px;
}

.race-date {
display: flex;
align-items: baseline;
gap: 16px;
margin-bottom: 8px;
}

.race-date-num {
font-size: clamp(56px, 12vw, 96px);
font-weight: 700;
line-height: 1;
}

.race-date-month {
font-size: 18px;
letter-spacing: 4px;
text-transform: uppercase;
opacity: 0.7;
}

.race-location {
font-size: clamp(16px, 3vw, 24px);
font-weight: 500;
letter-spacing: 2px;
opacity: 0.8;
}

/* Race Flyer Section */
.race-flyer-section {
padding: 60px 20px;
background: linear-gradient(180deg, rgba(10,10,10,0.95) 0%, rgba(17,17,17,0.98) 100%);
}

.race-flyer-container {
max-width: 800px;
margin: 0 auto;
position: relative;
}

.race-flyer-image {
width: 100%;
height: auto;
display: block;
border-radius: 12px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
transition: var(--transition-normal);
}

.race-flyer-video {
width: 100%;
height: auto;
display: block;
border-radius: 12px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
object-fit: cover;
}

.race-flyer-image:hover {
transform: scale(1.02);
box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.race-details {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2px;
max-width: var(--container-max);
margin: 0 auto;
}

.race-detail {
background: var(--color-gray-900);
padding: 48px 40px;
text-align: center;
}

.race-detail-icon {
width: 48px;
height: 48px;
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 24px;
font-size: 18px;
opacity: 0.7;
}

.race-detail-title {
font-size: 14px;
font-weight: 600;
letter-spacing: 2px;
text-transform: uppercase;
margin-bottom: 16px;
}

.race-detail-desc {
font-size: 14px;
line-height: 1.7;
opacity: 0.5;
margin-bottom: 24px;
}

.race-detail-list {
list-style: none;
text-align: left;
}

.race-detail-list li {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 0;
font-size: 13px;
opacity: 0.7;
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.race-detail-list li:last-child {
border-bottom: none;
}

.race-detail-list li i {
width: 16px;
text-align: center;
opacity: 0.6;
}

.race-cta {
text-align: center;
padding: var(--spacing-xl) 40px;
border-top: 1px solid rgba(255, 255, 255, 0.06);
max-width: var(--container-max);
margin: 0 auto;
}

.race-cta-sub {
font-size: 12px;
letter-spacing: 2px;
opacity: 0.4;
margin-top: 16px;
}

.btn-inscripcion-online {
display: inline-block;
padding: 18px 40px;
font-size: 16px;
font-weight: 600;
letter-spacing: 1px;
text-transform: uppercase;
border: none;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
background: var(--color-primary);
color: #fff;
}

.btn-inscripcion-online:hover {
background: var(--color-primary-dark);
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 750px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  z-index: 10;
}

.btn-back-modal {
  position: absolute;
  top: -50px;
  left: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.btn-back-modal:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(-3px);
}

.btn-back-modal i {
  font-size: 14px;
}

.modal-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.modal-form-container {
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Race Registration Form - Multistep */
.race-form-container {
  max-width: 750px;
  margin: 0 auto;
  padding: 48px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.multistep-form {
  position: relative;
}

.form-progress {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 40px;
  overflow: hidden;
}

.form-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.form-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 36px;
  color: #fff;
  text-align: center;
  letter-spacing: 0.5px;
}

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

.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 15px;
  color: #fff;
  font-family: var(--font-main);
  resize: vertical;
  transition: all 0.3s ease;
}

.form-textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.responsiva-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.checkbox-group:last-child {
  margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
  cursor: pointer;
  margin-top: 2px;
}

.checkbox-group label {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.link-reglamento {
  color: var(--color-primary);
  text-decoration: underline;
}

.link-reglamento:hover {
  color: var(--color-primary-dark);
}

.number-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.number-option {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.number-option:hover {
  border-color: var(--color-primary);
  background: rgba(255, 107, 53, 0.1);
}

.number-option.selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.number-option.occupied {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

.number-help {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-top: 8px;
}

.form-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.summary-value {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-align: right;
}

.summary-note {
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.summary-note p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0;
}


.form-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
}

.btn-next,
.btn-prev,
.btn-submit {
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-main);
}

.btn-prev {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-prev:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-next {
  background: var(--color-primary);
  color: #fff;
  margin-left: auto;
}

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

.btn-submit {
  background: var(--color-primary);
  color: #fff;
  width: 100%;
  font-size: 16px;
  padding: 16px;
}

.btn-submit:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.btn-submit:disabled {
  background: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 768px) {
  .modal-close {
    top: 15px;
    right: 15px;
  }
  
  .btn-back-modal {
    top: 15px;
    left: 15px;
    font-size: 13px;
    padding: 8px 14px;
  }

  .modal-content {
    max-height: 95vh;
  }

  .race-form-container,
  .modal-form-container {
    padding: 24px;
  }

  .step-title {
    font-size: 20px;
    margin-bottom: 24px;
  }

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

  .number-selector {
    grid-template-columns: repeat(4, 1fr);
  }

  .form-navigation {
    flex-direction: column;
  }

  .btn-next,
  .btn-prev,
  .btn-submit {
    width: 100%;
    margin-left: 0;
  }

  .btn-inscripcion-online {
    padding: 16px 32px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .number-selector {
    grid-template-columns: repeat(3, 1fr);
  }

  .race-form-container {
    padding: 20px;
  }
}

.race-form-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: #fff;
}

.race-form-subtitle {
  font-size: 14px;
  text-align: center;
  opacity: 0.6;
  margin-bottom: 32px;
  line-height: 1.5;
}

.race-registration-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 4px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.form-input,
.form-select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 15px;
  color: #fff;
  transition: all 0.3s ease;
  font-family: var(--font-main);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.6)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-select option {
  background: #1a1a1a;
  color: #fff;
  padding: 10px;
}

.btn-submit {
  margin-top: 8px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--color-primary);
  color: #fff;
}

.btn-submit:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Fondo fijo grande desde Trailbuilding hasta el final */
.fixed-bottom-bg {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-image: url('imagenes/hero-bg.webp');
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
opacity: 0.15;
z-index: -1;
pointer-events: none;
}

.fixed-bg-accent {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-image: url('imagenes/hero-bg.webp');
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
opacity: 0.15;
z-index: -1;
pointer-events: none;
}

.bg-bottom-sections {
position: relative;
background-color: var(--color-dark);
}

.bg-bottom-sections > * {
position: relative;
z-index: 1;
}

.footer-brand h3 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.5;
    margin-bottom: 24px;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social-link {
width: 44px;
height: 44px;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
opacity: 0.7;
transition: var(--transition-normal);
background: rgba(255, 255, 255, 0.02);
}

.footer-social-link:hover {
opacity: 1;
border-color: var(--color-primary);
background: rgba(255, 107, 0, 0.1);
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(255, 107, 0, 0.25);
}

.footer-nav h3 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-nav-list {
    list-style: none;
}

.footer-nav-list li {
    padding: 6px 0;
}

.footer-nav-list a {
font-size: 14px;
color: rgba(255, 255, 255, 0.5);
transition: var(--transition-fast);
position: relative;
padding-left: 0;
}

.footer-nav-list a:hover {
color: var(--color-primary);
padding-left: 8px;
}

.footer-nav-list a::before {
content: '';
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 4px;
height: 4px;
border-radius: 50%;
background: var(--color-primary);
opacity: 0;
transition: var(--transition-fast);
}

.footer-nav-list a:hover::before {
opacity: 1;
}

.footer-newsletter h3 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-newsletter p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.5;
    margin-bottom: 20px;
}

.footer-form {
display: flex;
gap: 0;
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 8px;
overflow: hidden;
transition: var(--transition-normal);
}

.footer-form:focus-within {
border-color: var(--color-primary);
box-shadow: 0 0 20px rgba(255, 107, 0, 0.15);
background: rgba(255, 255, 255, 0.04);
}

.footer-input {
flex: 1;
padding: 14px 20px;
background: transparent;
border: none;
color: var(--color-white);
font-size: 14px;
font-family: var(--font-body);
}

.footer-input:focus {
outline: none;
}

.footer-input::placeholder {
color: rgba(255, 255, 255, 0.4);
}

.footer-btn {
padding: 14px 28px;
background: var(--gradient-primary);
color: var(--color-white);
border: none;
font-size: 11px;
font-weight: 700;
letter-spacing: 1.5px;
text-transform: uppercase;
cursor: pointer;
transition: var(--transition-normal);
font-family: var(--font-body);
box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.footer-btn:hover {
background: var(--gradient-primary);
box-shadow: 0 6px 25px rgba(255, 107, 0, 0.45);
transform: translateY(-2px);
}

.footer-bottom {
border-top: 1px solid rgba(255, 255, 255, 0.06);
padding: 32px 40px;
text-align: center;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 32px;
background: linear-gradient(180deg, rgba(17,17,17,0.95) 0%, rgba(10,10,10,0.98) 100%);
}

.footer-copy {
font-size: 11px;
color: rgba(255, 255, 255, 0.3);
letter-spacing: 1px;
}

.visit-counter {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 20px;
background: rgba(255, 107, 0, 0.08);
border: 1px solid rgba(255, 107, 0, 0.25);
border-radius: 8px;
backdrop-filter: blur(10px);
box-shadow: 0 4px 16px rgba(255, 107, 0, 0.15);
animation: pulse 2s infinite;
}

.visit-label {
font-size: 11px;
font-weight: 600;
letter-spacing: 1px;
color: rgba(255, 255, 255, 0.7);
display: flex;
align-items: center;
gap: 6px;
}

.visit-label i {
color: var(--color-primary);
font-size: 12px;
}

.visit-number {
font-family: var(--font-heading);
font-size: 18px;
font-weight: 700;
color: var(--color-primary);
letter-spacing: 2px;
text-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
min-width: 80px;
text-align: right;
}

@keyframes counterPulse {
0%, 100% {
box-shadow: 0 4px 16px rgba(255, 107, 0, 0.15);
}
50% {
box-shadow: 0 4px 24px rgba(255, 107, 0, 0.3);
}
}

.visit-counter-banner {
  background: #0a0a0a;
  padding: 10px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.visit-counter-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.visit-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}

.visit-label i {
  color: var(--color-primary);
  font-size: 12px;
}

.visit-number-banner {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
}

@media (max-width: 768px) {
  .visit-counter-banner {
    padding: 8px 16px;
  }
  .visit-number-banner {
    font-size: 14px;
  }
}

.discount-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.85);
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition: opacity 0.4s ease, visibility 0.4s ease;
backdrop-filter: blur(8px);
}

.discount-overlay.active {
opacity: 1;
visibility: visible;
}

.discount-popup {
background: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
border: 2px solid rgba(255, 107, 0, 0.4);
border-radius: 20px;
padding: 48px 40px 36px;
max-width: 420px;
width: 90%;
text-align: center;
position: relative;
transform: scale(0.8) translateY(30px);
transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
box-shadow: 0 0 60px rgba(255, 107, 0, 0.2), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.discount-overlay.active .discount-popup {
transform: scale(1) translateY(0);
}

.discount-close {
position: absolute;
top: 12px;
right: 16px;
background: none;
border: none;
color: #666;
font-size: 24px;
cursor: pointer;
transition: color 0.3s ease;
line-height: 1;
}

.discount-close:hover {
color: #fff;
}

.discount-badge {
display: inline-block;
background: linear-gradient(135deg, #ff6b00, #ff8533);
color: #fff;
font-family: var(--font-heading);
font-size: 32px;
font-weight: 700;
padding: 8px 24px;
border-radius: 12px;
margin-bottom: 16px;
letter-spacing: 2px;
animation: discountPulse 2s infinite;
}

@keyframes discountPulse {
0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 0, 0.3); }
50% { box-shadow: 0 0 40px rgba(255, 107, 0, 0.6); }
}

.discount-title {
font-family: var(--font-heading);
font-size: 28px;
font-weight: 700;
color: #fff;
margin-bottom: 12px;
letter-spacing: 2px;
}

.discount-desc {
font-size: 15px;
color: #ccc;
line-height: 1.6;
margin-bottom: 24px;
}

.discount-desc strong {
color: var(--color-primary);
}

.discount-cta {
display: inline-block;
background: linear-gradient(135deg, #ff6b00, #ff8533);
color: #fff;
font-family: var(--font-heading);
font-size: 16px;
font-weight: 600;
padding: 14px 32px;
border-radius: 50px;
text-decoration: none;
letter-spacing: 1px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discount-cta:hover {
transform: scale(1.05);
box-shadow: 0 0 30px rgba(255, 107, 0, 0.5);
}

.discount-valid {
font-size: 12px;
color: #666;
margin-top: 16px;
letter-spacing: 0.5px;
}

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

@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

@keyframes scaleIn {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}

@keyframes slideInLeft {
from {
opacity: 0;
transform: translateX(-30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}

@keyframes slideInRight {
from {
opacity: 0;
transform: translateX(30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}

@keyframes shimmer {
0% { background-position: -1000px 0; }
100% { background-position: 1000px 0; }
}

@keyframes scrollLine {
    0%, 100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Scroll Reveal */
.reveal {
opacity: 0;
transform: translateY(40px);
transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
opacity: 0;
transform: translateX(-40px);
transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
opacity: 1;
transform: translateX(0);
}

.reveal-right {
opacity: 0;
transform: translateX(40px);
transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
opacity: 1;
transform: translateX(0);
}

.reveal-scale {
opacity: 0;
transform: scale(0.95);
transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
opacity: 1;
transform: scale(1);
}

.reveal-delay-100 { transition-delay: 0.1s; }
.reveal-delay-200 { transition-delay: 0.2s; }
.reveal-delay-300 { transition-delay: 0.3s; }
.reveal-delay-400 { transition-delay: 0.4s; }
.reveal-delay-500 { transition-delay: 0.5s; }

/* Preloader */
.preloader {
position: fixed;
inset: 0;
z-index: 9999;
background: linear-gradient(135deg, #0a0a0a 0%, #111111 100%);
display: flex;
align-items: center;
justify-content: center;
transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.5);
}

.preloader.loaded {
opacity: 0;
visibility: hidden;
pointer-events: none;
}

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

.preloader-logo {
height: 70px;
width: auto;
margin-bottom: 40px;
opacity: 0;
animation: fadeUp 0.8s 0.2s forwards, scaleIn 0.8s 0.2s forwards;
filter: drop-shadow(0 4px 20px rgba(255, 107, 0, 0.3));
}

.preloader-bar {
width: 160px;
height: 3px;
background: rgba(255, 255, 255, 0.08);
margin: 0 auto;
overflow: hidden;
border-radius: 3px;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
position: relative;
}

.preloader-bar-fill {
height: 100%;
width: 0;
background: var(--gradient-primary);
animation: preloaderFill 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
border-radius: 3px;
position: relative;
box-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
}

.preloader-bar-fill::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
animation: shimmer 1.5s infinite;
}

@keyframes preloaderFill {
0% { width: 0; }
40% { width: 30%; }
70% { width: 70%; }
100% { width: 100%; }
}

body.loading {
    overflow: hidden;
}

/* Scroll Progress Bar */
.scroll-progress {
position: fixed;
top: 0;
left: 0;
height: 3px;
width: 0;
background: var(--gradient-primary);
z-index: 1001;
transition: width 0.1s linear;
box-shadow: 0 2px 10px rgba(255, 107, 0, 0.4);
}

/* Marquee */
.marquee {
    overflow: hidden;
    background: var(--color-black);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 0;
}

.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
    white-space: nowrap;
}

.marquee-track span {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.4;
}

.marquee-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 24px;
    display: inline-block;
    font-size: 0;
}

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

/* Full-bleed Section */
.fullbleed-section {
width: 100%;
height: 280px;
overflow: hidden;
position: relative;
}

.fullbleed-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.fullbleed-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--color-black) 0%, transparent 15%, transparent 85%, var(--color-black) 100%);
}

/* Counter Animation */
.community-number {
    font-variant-numeric: tabular-nums;
}

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

.promo-title {
    font-family: var(--font-heading);
}

.rodada-title {
    font-family: var(--font-heading);
}

.trailbuilding-title {
    font-family: var(--font-heading);
}

.race-title {
    font-family: var(--font-heading);
}

/* Video Overlays */
.rodada-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.85) 100%);
    transition: var(--transition-normal);
}

.rodada-card:hover::after {
    background: linear-gradient(180deg, transparent 10%, rgba(0, 0, 0, 0.7) 100%);
}

/* Route Image Overlay Enhancement */
.route-image-overlay {
    background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.9) 100%);
}

/* Final CTA Section */
.final-cta {
position: relative;
overflow: hidden;
background: var(--color-black);
}

.cta-hero {
position: relative;
height: 600px;
overflow: hidden;
}

.cta-hero-img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 0;
}

.cta-hero-overlay {
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.9) 100%);
z-index: 1;
backdrop-filter: brightness(0.9);
}

.cta-hero-content {
position: absolute;
inset: 0;
z-index: 2;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 0 40px;
max-width: 800px;
margin: 0 auto;
}

.final-cta-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 24px;
}

.final-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.final-cta-desc {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp i {
    font-size: 18px;
}

.btn-outline {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 16px 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    transition: var(--transition-normal);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
}

/* Active Nav Link */
.nav-link.active {
    opacity: 1;
}

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

/* Responsive */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s forwards;
}

.mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mobile-close span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--color-white);
}

.mobile-close span:first-child {
    transform: rotate(45deg);
}

.mobile-close span:last-child {
    transform: rotate(-45deg);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-nav-link {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.mobile-nav-link:hover {
    opacity: 1;
}

/* WhatsApp Float Button */
.whatsapp-float {
position: fixed;
bottom: 24px;
left: 24px;
width: 56px;
height: 56px;
background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: var(--transition-normal);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #ffffff;
}

/* Section Dividers */
.section-divider {
width: 100%;
padding: 10px 40px;
display: flex;
align-items: center;
justify-content: center;
}

.section-divider::before {
    content: '';
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

/* Quote / Manifesto Section */
.quote-section {
padding: 2rem 40px;
display: flex;
align-items: center;
justify-content: center;
min-height: 40vh;
position: relative;
background: var(--color-black);
}

.quote-content {
max-width: 900px;
text-align: center;
position: relative;
}

.quote-mark {
display: block;
font-family: Georgia, serif;
font-size: 80px;
line-height: 1;
opacity: 0.08;
position: absolute;
top: -40px;
left: 50%;
transform: translateX(-50%);
pointer-events: none;
}

.quote-text {
font-family: var(--font-heading);
font-size: clamp(16px, 2.5vw, 24px);
font-weight: 400;
line-height: 1.5;
letter-spacing: 0.3px;
opacity: 0.85;
margin-bottom: 20px;
position: relative;
font-style: normal;
}

.quote-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.quote-line {
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.2);
}

.quote-author-text {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.4;
}

/* Race Hero Overlay Enhancement */
.race-hero-overlay {
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.9) 100%);
z-index: 1;
backdrop-filter: brightness(0.9);
}

.race-hero-content {
position: absolute;
inset: 0;
z-index: 2;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 0 20px;
}

.race-hero-inner {
display: flex;
flex-direction: column;
align-items: center;
gap: 0;
max-width: 900px;
}

.race-label {
font-size: 11px;
font-weight: 600;
letter-spacing: 3px;
text-transform: uppercase;
padding: 10px 24px;
border: 1px solid rgba(255, 255, 255, 0.4);
background: rgba(0, 0, 0, 0.3);
margin-bottom: 28px;
border-radius: 4px;
backdrop-filter: blur(5px);
}

.race-title {
font-size: clamp(48px, 10vw, 96px);
font-weight: 700;
letter-spacing: -2px;
line-height: 1;
margin-bottom: 20px;
color: #ffffff;
text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.race-date {
display: flex;
align-items: baseline;
gap: 20px;
margin-bottom: 12px;
}

.race-date-num {
font-size: clamp(56px, 12vw, 96px);
font-weight: 700;
line-height: 1;
color: #ffffff;
text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.race-date-month {
font-size: 20px;
letter-spacing: 3px;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.9);
font-weight: 500;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.race-location {
font-size: 16px;
letter-spacing: 1px;
color: rgba(255, 255, 255, 0.85);
font-weight: 400;
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Rodada Promo Gradient Border */
.rodada-promo {
    background: var(--color-gray-900);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.rodada-promo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px);
}

.rodada-promo::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05), rgba(255,255,255,0.1));
    z-index: 0;
    pointer-events: none;
}

.rodada-promo > * {
    position: relative;
    z-index: 1;
}

.rodada-promo:hover::after {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08), rgba(255,255,255,0.15));
}

/* Trailbuilding Pattern Background */
.trailbuilding-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.02) 1px, transparent 1px),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px;
    pointer-events: none;
    z-index: 0;
}

.trailbuilding-section {
padding: 0 2rem 1.5rem;
}

.trailbuilding-section .section-narrow {
position: relative;
z-index: 1;
}

.trailbuilding-section .section-header {
margin-bottom: 12px;
}

.trailbuilding-section .section-title {
font-size: clamp(20px, 3vw, 28px);
margin-bottom: 8px;
}

.trailbuilding-section .section-subtitle {
font-size: 13px;
max-width: 400px;
}

.trailbuilding-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 1rem;
margin: 16px 0 16px 0;
}

/* Trailbuilding Video Gallery */
.trailbuilding-videos {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
max-width: 1100px;
margin: 24px auto 0;
}

.trailbuilding-video-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    transition: var(--transition-normal);
    aspect-ratio: 16 / 9;
}

.trailbuilding-video-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.trailbuilding-video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.trailbuilding-video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trailbuilding-video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 16px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    z-index: 2;
}

/* Community Section - Minimalist Stats Bar */
.community-section {
padding: 1.5rem 0;
}

.community-section .section-narrow {
position: relative;
z-index: 1;
max-width: 100%;
margin: 0;
padding: 0;
}

/* Stats Bar - Horizontal Minimalist Layout */
.community-stats-bar {
display: flex;
align-items: center;
justify-content: center;
gap: 2rem;
padding: 1.5rem 2rem;
background: rgba(255, 255, 255, 0.02);
backdrop-filter: blur(20px);
border-top: 1px solid rgba(255, 255, 255, 0.06);
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.community-stat-item {
display: flex;
align-items: center;
gap: 1rem;
padding: 0.75rem 1.25rem;
transition: all var(--transition-normal);
}

.community-stat-item:hover {
transform: translateY(-2px);
}

.community-stat-icon {
width: 40px;
height: 40px;
min-width: 40px;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
color: rgba(255, 107, 0, 0.8);
opacity: 0.7;
transition: all var(--transition-normal);
}

.community-stat-item:hover .community-stat-icon {
color: #ff6b00;
opacity: 1;
transform: scale(1.1);
}

.community-stat-content {
display: flex;
flex-direction: column;
gap: 0.125rem;
}

.community-stat-number {
font-family: var(--font-heading);
font-size: 24px;
font-weight: 700;
line-height: 1;
color: var(--color-white);
letter-spacing: -0.5px;
}

.community-stat-label {
font-size: 10px;
font-weight: 500;
letter-spacing: 0.75px;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.5);
}

.community-stat-divider {
width: 1px;
height: 40px;
background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* Responsive */
@media (max-width: 768px) {
.community-stats-bar {
flex-wrap: wrap;
gap: 1rem;
padding: 1rem;
justify-content: flex-start;
overflow-x: auto;
}

.community-stat-divider {
display: none;
}

.community-stat-item {
padding: 0.5rem 1rem;
flex: 0 0 auto;
}

.community-stat-number {
font-size: 20px;
}

.community-stat-label {
font-size: 9px;
}
}

/* Final CTA Enhancements */
.parallax-section {
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    inset: -50px;
    background-image: url('IMG-20260428-WA0007.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.12;
    z-index: 0;
}

.final-cta-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

.cta-animated-line {
    position: absolute;
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: ctaLinePulse 3s ease-in-out infinite;
}

.cta-line-left {
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
}

.cta-line-right {
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}

@keyframes ctaLinePulse {
    0%, 100% { opacity: 0.3; transform: translateY(-50%) scaleY(1); }
    50% { opacity: 0.8; transform: translateY(-50%) scaleY(1.2); }
}

.final-cta-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 24px;
}

.final-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.final-cta-desc {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer Top Border */
.footer-top-border {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.footer {
    border-top: none;
    position: relative;
    background: var(--color-dark);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 80px 40px;
}

/* Button Shadow Enhancements */
.btn-primary {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 16px 40px;
    background: var(--color-white);
    color: var(--color-black);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

.btn-primary:hover {
    background: var(--color-gray-300);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.15);
}

.btn-outline {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 16px 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    transition: var(--transition-normal);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
    box-shadow: 0 6px 20px rgba(255,255,255,0.1);
}

/* Card Micro-interactions */
.route-card {
  /* padding: 40px 36px 36px; - REMOVIDO PARA EVITAR CONFLICTOS */
}

.route-card:hover {
    background: var(--color-gray-800);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.trailbuilding-card {
    background: var(--color-gray-900);
    padding: 48px 32px;
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.trailbuilding-card:hover {
    background: var(--color-gray-800);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* Grain Overlay Global */
.grain-overlay {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9998;
    opacity: 0.4;
}

/* Section Spacing Improvements */
.section {
padding: 2rem 2rem;
}

.routes-section {
padding: 2rem 2rem 2rem 2rem;
}

/* Reveal Animation Enhancement */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }
.reveal[data-delay="7"] { transition-delay: 0.7s; }

@media (max-width: 1024px) {
    :root {
        --spacing-2xl: 96px;
        --spacing-xl: 64px;
    }

    .rodadas-grid {
        grid-template-columns: 1fr;
    }

    .rodada-card {
        height: 500px;
    }

    .routes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .route-card-image {
        grid-column: span 2;
    }

.route-card {
  /* padding: 28px 24px 24px; - REMOVIDO */
}

    .route-number {
        font-size: 48px;
        right: 16px;
        top: 12px;
    }

    .route-elevation {
        height: 28px;
    }

.race-details {
grid-template-columns: 1fr;
}

.trailbuilding-grid {
        grid-template-columns: 1fr;
    }

    .trailbuilding-videos {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
    }

    .nav-links {
        display: none;
    }

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

    .section {
        padding: var(--spacing-xl) 20px;
    }

    .hero-inner {
        min-height: 60vh;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-top-logo {
        height: 70px;
    }

    .rodada-card {
        height: 400px;
    }

    .rodada-content {
        padding: 24px;
    }

    .marquee {
        padding: 12px 0;
    }

    .marquee-track span {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .marquee-dot {
        margin: 0 16px;
    }

.fullbleed-section {
height: 400px;
}

.final-cta {
padding: 0;
}

.cta-hero {
height: 450px;
}

.cta-hero-content {
padding: 0 20px;
}

.final-cta-title {
        font-size: 42px;
    }

    .final-cta-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center;
    }

    .routes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .route-card-image {
        grid-column: span 1;
        min-height: 280px;
    }

.route-card {
  /* padding: 24px 20px 20px; - REMOVIDO */
}

    .route-number {
        font-size: 52px;
        right: 20px;
    }

    .route-elevation {
        height: 24px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .race-hero {
        height: 500px;
    }

    .trailbuilding-videos {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .community-grid {
        grid-template-columns: 1fr;
    }

    .footer-form {
        flex-direction: column;
    }

    .footer-input {
        border-right: 1px solid rgba(255, 255, 255, 0.15);
        margin-bottom: 8px;
    }

    .footer-btn {
        width: 100%;
    }

.whatsapp-float {
width: 50px;
height: 50px;
bottom: 16px;
left: 16px;
font-size: 24px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
position: fixed;
bottom: 24px;
left: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(12deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    animation: none;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.7); }
}

/* Button Microinteractions */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

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

.btn-outline::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(255, 255, 255, 0.08);
    transition: height 0.3s ease;
}

.btn-outline:hover::before {
    height: 100%;
}

/* Parallax */
.fullbleed-section {
    overflow: hidden;
}

.fullbleed-image {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Cache Buster - 1777585065 */
.routes-grid .route-card {
  padding: 20px 18px 18px !important;
}

/* Rider Slide-in Banner */
.rider-slide {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  transform: translateX(calc(100% + 40px));
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rider-slide.active {
  transform: translateX(0);
}

.rider-slide__close {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition-normal);
  margin-right: 2px;
}

.rider-slide__close:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.rider-slide__card {
  position: relative;
  width: 200px;
  height: 150px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 30px rgba(255,107,0,0.08);
  isolation: isolate;
  cursor: default;
}

.rider-slide__bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.rider-slide__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.5) saturate(0.6);
}

.rider-slide__bg-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, transparent 30%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
}

.rider-slide__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 7px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rider-slide__badge i {
  font-size: 6px;
}

.rider-slide__number {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%) skewX(-6deg);
  z-index: 3;
  font-family: 'Arial Black', 'Impact', 'Oswald', sans-serif;
  font-size: 60px;
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: #e7bf4c;
  -webkit-text-stroke: 2.5px #2a1a0e;
  paint-order: stroke fill;
  text-shadow:
    0 2px 0 #2a1a0e,
    0 4px 0 #1a0e05,
    0 6px 12px rgba(0,0,0,0.5),
    0 0 20px rgba(231,191,76,0.15);
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
  filter: drop-shadow(0 0 6px rgba(231,191,76,0.2));
}

.rider-slide__name {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  z-index: 4;
  font-family: 'Impact', 'Arial Black', 'Oswald', sans-serif;
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    0 1px 3px rgba(0,0,0,0.9),
    0 0 10px rgba(255,107,0,0.5),
    0 0 20px rgba(255,107,0,0.2);
  -webkit-text-stroke: 0.5px var(--color-primary);
  paint-order: stroke fill;
  transition: opacity 0.3s ease;
}

.rider-slide__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 4px;
}

.rider-slide__arrow {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(17,17,17,0.9);
  color: rgba(255,255,255,0.5);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  transition: var(--transition-normal);
  display: grid;
  place-items: center;
}

.rider-slide__arrow:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.rider-slide__counter {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1px;
  min-width: 36px;
  text-align: center;
}

@media (max-width: 768px) {
  .rider-slide {
    bottom: 14px;
    right: 14px;
  }

  .rider-slide__card {
    width: 170px;
    height: 128px;
  }

  .rider-slide__number {
    font-size: 48px;
    -webkit-text-stroke: 2px #2a1a0e;
    text-shadow:
      0 2px 0 #2a1a0e,
      0 3px 0 #1a0e05,
      0 4px 8px rgba(0,0,0,0.5);
  }

  .rider-slide__name {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
.rider-slide {
bottom: 10px;
right: 10px;
}

.rider-slide__card {
width: 140px;
height: 105px;
}

.rider-slide__number {
font-size: 38px;
-webkit-text-stroke: 1.5px #2a1a0e;
text-shadow:
0 1px 0 #2a1a0e,
0 2px 0 #1a0e05,
0 3px 6px rgba(0,0,0,0.5);
}

.rider-slide__name {
font-size: 10px;
bottom: 10%;
}

.rider-slide__badge {
font-size: 6px;
padding: 2px 5px;
}

.rider-slide__arrow {
width: 22px;
height: 22px;
font-size: 8px;
}

.discount-popup {
padding: 36px 24px 28px;
}

.discount-badge {
font-size: 24px;
padding: 6px 18px;
}

.discount-title {
font-size: 22px;
}
}



