:root {
    --brand-red: #E43B3B;     
    --brand-red-dark: #b52929;
    --brand-blue: #1A365D;    
    --brand-yellow: #fcd757;  
    --bg-main: #060913; /* Even darker for V4 modern contrast */
    --bg-card: rgba(11, 17, 32, 0.7);
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
}

html {
    scroll-behavior: smooth; /* Enables smooth scrolling for navigation anchors */
}

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

/* Proteccion basica anti-descarga y anti-arrastre */
img, video {
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}
body {
    -webkit-touch-callout: none;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at top right, rgba(228, 59, 59, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(252, 215, 87, 0.08), transparent 40%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.83v58.34l-.83.83H.83l-.83-.83V.83L.83 0h53.797zm-1.041 1.041H1.041v57.918h52.545V1.041z' fill='%23ffffff' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: 1px; }

/* Utilities */
.text-red { color: var(--brand-red); }
.text-blue { color: #60a5fa; }
.text-yellow { color: var(--brand-yellow); }
.text-white { color: #fff; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-3 { padding: 1.5rem; }

/* Classic Navbar */
.navbar {
    background-color: var(--brand-red);
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 3%;
    border-bottom: 2px solid rgba(0,0,0,0.5);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.nav-brand {
    position: relative;
    top: 15px; /* Overlap effect downwards */
    z-index: 1001;
}

.main-logo {
    height: 130px; /* Reduced slightly to prevent overwhelming the header */
    transition: transform 0.3s ease;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    background-color: #fff;
}
.main-logo:hover { transform: scale(1.05); }

.nav-links { display: flex; gap: 1rem; list-style: none; }
.nav-links a {
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.5rem 0.6rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--brand-yellow);
    background: rgba(0,0,0,0.2);
}
.highlight-nav {
    border: 2px solid var(--brand-yellow);
    box-shadow: 0 0 10px rgba(252,215,87,0.3);
}

.mobile-menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Layout & Reveal Animation */
.layout-container { max-width: 1600px; margin: 0 auto; padding: 0 2rem; }
.content-section { padding: 6rem 0; }

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Glass Cards & Grids */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}
.glass-alt {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

/* Dividers */
.divider { width: 60px; height: 4px; background: var(--brand-red); margin: 1rem auto; border-radius: 2px; }
.grid-2 .divider { margin: 1rem 0; }

/* Hero Section */
.hero-section { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 5rem 2rem; position: relative; }
.hero-content h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 1rem; color: var(--brand-yellow); text-shadow: 0 0 30px rgba(252,215,87,0.4); }
.hero-subtitle { font-size: 1.3rem; max-width: 700px; margin: 0 auto; color: #fff; font-weight: 300; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; }

/* Video & Images Placeholder */
.video-container { position: relative; width: 100%; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.video-container video { width: 100%; display: block; }
.img-placeholder { height: 300px; background: rgba(0,0,0,0.4); border: 2px dashed rgba(255,255,255,0.2); border-radius: 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--text-muted); font-weight: bold; }
.img-placeholder i { margin-bottom: 10px; color: var(--brand-red); }

/* Glitch Effect */
.glitch { position: relative; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.glitch::before { left: 2px; text-shadow: -2px 0 var(--brand-red); clip: rect(24px, 550px, 90px, 0); animation: glitch-anim 3s infinite linear alternate-reverse; }
.glitch::after { left: -2px; text-shadow: -2px 0 var(--brand-blue); clip: rect(85px, 550px, 140px, 0); animation: glitch-anim 2.5s infinite linear alternate-reverse; }
@keyframes glitch-anim { 0% { clip: rect(10px, 9999px, 86px, 0); } 100% { clip: rect(65px, 9999px, 149px, 0); } }

/* Buttons */
.btn {
    display: inline-block; padding: 1rem 2rem; border-radius: 30px;
    font-weight: 700; text-transform: uppercase; text-decoration: none;
    transition: all 0.3s ease; border: none; cursor: pointer; color: #fff;
    font-family: 'Montserrat', sans-serif;
}
.btn-primary { background: var(--brand-red); box-shadow: 0 5px 15px rgba(228,59,59,0.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(228,59,59,0.6); background: var(--brand-red-dark); }
.btn-outline { background: transparent; border: 2px solid var(--text-muted); color: var(--text-main); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-secondary { background: var(--brand-blue); box-shadow: 0 5px 15px rgba(26,54,93,0.4); }
.btn-secondary:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(26,54,93,0.6); }
.btn-full { width: 100%; display: block; text-align: center; }
.btn-sm { padding: 0.7rem 1.5rem; font-size: 0.8rem; }
.hover-glow:hover { box-shadow: 0 0 25px var(--brand-red); }

/* Form Elements (Pre-inscription) */
.inscription-wrapper { display: flex; flex-direction: column; align-items: center; max-width: 800px; margin: 0 auto; }
.inscription-text { text-align: center; margin-bottom: 2rem; }
.form-card { width: 100%; padding: 2.5rem; }
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 700; color: var(--brand-yellow); font-size: 0.9rem; letter-spacing: 0.5px; }
.input-modern {
    width: 100%; padding: 1.1rem;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; color: #fff;
    font-family: inherit; transition: all 0.3s; font-size: 1rem;
}
.input-modern:focus { outline: none; border-color: var(--brand-red); background: rgba(0,0,0,0.8); box-shadow: 0 0 15px rgba(228,59,59,0.3); }
.input-modern option { background: var(--bg-main); color: #fff; }
.alert-info { background: rgba(96,165,250,0.1); border-left: 4px solid var(--brand-blue); padding: 1rem; border-radius: 4px; }
.payment-box { border: 1px dashed var(--brand-red); text-align: left; }

/* Store Grid */
.store-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.store-item { text-align: center; transition: transform 0.3s; }
.store-item:hover { transform: translateY(-10px); }
.store-img { height: 150px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); border-radius: 12px; margin-bottom: 1rem; }

/* Photos Carousel */
.carousel-wrapper { position: relative; padding: 0 40px; margin-top: 2rem; }
.carousel-track { display: flex; overflow-x: auto; scroll-behavior: smooth; gap: 15px; padding: 10px 0; scrollbar-width: none; align-items: center; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .photo-card { flex: 0 0 auto; height: 250px; position: relative; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); transition: all 0.3s; overflow: hidden; }
.carousel-track .photo-card:hover { transform: scale(1.05); cursor: pointer; border: 2px solid var(--brand-red); z-index: 2; }
.carousel-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(228, 59, 59, 0.8); color: white; border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 20px; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.carousel-nav-btn:hover { background: rgba(228, 59, 59, 1); box-shadow: 0 0 10px rgba(228,59,59,0.8); }
#carousel-prev { left: 0; }
#carousel-next { right: 0; }
@media (max-width: 768px) {
    .carousel-track .photo-card { height: 200px; }
    .carousel-wrapper { padding: 0 15px; }
    #carousel-prev { left: -5px; width: 35px; height: 35px; }
    #carousel-next { right: -5px; width: 35px; height: 35px; }
}

/* Soy De Minga Ad Panel */
.ad-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2rem; background: linear-gradient(135deg, rgba(26,54,93,0.8), rgba(11,17,32,0.9)); border-left: 5px solid var(--brand-red); }
.ad-info { display: flex; align-items: center; gap: 1.5rem; flex: 1; }
.yt-btn { background-color: #FF0000; color: #fff; box-shadow: 0 5px 20px rgba(255,0,0,0.4); }
.yt-btn:hover { background-color: #CC0000; box-shadow: 0 5px 30px rgba(255,0,0,0.6); }

/* Footer */
.footer { background: #000; padding: 3rem 2rem; text-align: center; margin-top: auto; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }
.social-links a { display: inline-block; margin: 0 0.8rem; color: var(--text-muted); font-size: 1.8rem; transition: all 0.3s; }
.social-links a:hover { color: var(--brand-red); transform: translateY(-5px) scale(1.1); }

/* Animations */
.fade-in { animation: fadeIn 0.8s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile Adaptations */
@media (max-width: 990px) {
    .navbar { justify-content: space-between; height: 80px; }
    .nav-brand { position: relative; left: 0; transform: none; top: 0; }
    .main-logo { height: 75px; border-width: 2px; box-shadow: none; margin-top: 10px; }
    .nav-links { display: none; }
    .mobile-menu-toggle { display: block; }
    .grid-2 { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 3rem; }
    .content-section { padding: 4rem 0; }
    .ad-banner { flex-direction: column; text-align: center; }
    .ad-info { flex-direction: column; }
    .footer-content { flex-direction: column; text-align: center; gap: 2rem; }
    .social-links { justify-content: center; }
}

/* 9. LIGHTBOX GALLERY STYLES */
.lightbox-modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}
.lightbox-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    border: 2px solid var(--brand-red);
    border-radius: 8px;
    transition: opacity 0.2s ease-in-out;
}
#lightbox-caption {
    margin: auto;
    display: block;
    width: 100%;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    position: absolute;
    bottom: 2%;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}
.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--brand-red);
    text-decoration: none;
    cursor: pointer;
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 16px;
    font-size: 30px;
    font-weight: bold;
    transition: 0.3s;
    border-radius: 50%;
    z-index: 10000;
}
.lightbox-prev:hover, .lightbox-next:hover { background-color: var(--brand-red); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Countdown Styles */
.countdown-container {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: inline-block;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    margin-top: 2rem;
}
.countdown-timer {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}
.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(228, 59, 59, 0.2);
    border: 1px solid rgba(228, 59, 59, 0.4);
    padding: 1rem;
    border-radius: 8px;
    min-width: 80px;
    box-shadow: inset 0 0 10px rgba(228, 59, 59, 0.2);
}
.time-box span {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--brand-yellow);
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 0 10px rgba(252, 215, 87, 0.5);
}
.time-box small {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #fff;
    margin-top: 0.5rem;
    letter-spacing: 1px;
}

/* Pilotos Grid Styles */
.pilotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.piloto-card {
    padding: 2rem 1rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}
.piloto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    border-color: rgba(255,255,255,0.2);
}
.piloto-icon {
    margin-bottom: 1rem;
}
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-moto { background: rgba(228, 59, 59, 0.2); color: var(--brand-red); border: 1px solid var(--brand-red); }
.badge-utv { background: rgba(96, 165, 250, 0.2); color: #60a5fa; border: 1px solid #60a5fa; }
.badge-quad { background: rgba(252, 215, 87, 0.2); color: var(--brand-yellow); border: 1px solid var(--brand-yellow); }

@media (max-width: 600px) {
    .countdown-timer { gap: 0.5rem; }
    .time-box { min-width: 60px; padding: 0.8rem; }
    .time-box span { font-size: 1.8rem; }
}

/* Pilotos Table Styles */
.pilotos-table-container {
    background: #191919;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    margin: 0 auto;
    max-width: 1000px;
}
.pilotos-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    text-align: left;
    font-size: 0.95rem;
}
.pilotos-table thead tr {
    background-color: #db3a3a; /* Exact match to the red from image */
}
.pilotos-table th {
    padding: 1.2rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}
.pilotos-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pilotos-table tbody tr:nth-child(even) {
    background-color: rgba(255,255,255,0.02);
}
.pilotos-table td {
    padding: 1.2rem 1.5rem;
}
.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
}
.status-green { background-color: #22c55e; color: #fff; }
.status-yellow { background-color: #facc15; color: #000; }

/* Inscription Multi-Step Styles */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}
.step {
    flex: 1;
    text-align: center;
    padding: 10px;
    color: #888;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.step.active {
    color: var(--brand-red);
    border-bottom-color: var(--brand-red);
}
.step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}
.step-content.active {
    display: block;
}
.hidden {
    display: none !important;
}
.bg-dark {
    background-color: #222 !important;
    cursor: not-allowed;
    opacity: 0.8;
}

 / *   L I G H T B O X   M O D A L   * / 
 . l i g h t b o x - m o d a l   { 
         d i s p l a y :   n o n e ; 
         p o s i t i o n :   f i x e d ; 
         z - i n d e x :   9 9 9 9 ; 
         p a d d i n g - t o p :   5 0 p x ; 
         l e f t :   0 ; 
         t o p :   0 ; 
         w i d t h :   1 0 0 % ; 
         h e i g h t :   1 0 0 % ; 
         o v e r f l o w :   h i d d e n ; 
         b a c k g r o u n d - c o l o r :   r g b a ( 0 ,   0 ,   0 ,   0 . 9 ) ; 
 } 
 
 . l i g h t b o x - c o n t e n t - w r a p p e r   { 
         p o s i t i o n :   r e l a t i v e ; 
         m a r g i n :   a u t o ; 
         d i s p l a y :   f l e x ; 
         j u s t i f y - c o n t e n t :   c e n t e r ; 
         a l i g n - i t e m s :   c e n t e r ; 
         w i d t h :   1 0 0 % ; 
         m a x - w i d t h :   1 2 0 0 p x ; 
         h e i g h t :   8 5 v h ; 
 } 
 
 . l i g h t b o x - c o n t e n t   { 
         m a x - h e i g h t :   1 0 0 % ; 
         m a x - w i d t h :   9 0 % ; 
         o b j e c t - f i t :   c o n t a i n ; 
         b o r d e r - r a d i u s :   8 p x ; 
         b o x - s h a d o w :   0   4 p x   1 5 p x   r g b a ( 0 , 0 , 0 , 0 . 8 ) ; 
         t r a n s i t i o n :   o p a c i t y   0 . 3 s   e a s e ; 
 } 
 
 . l i g h t b o x - c l o s e   { 
         p o s i t i o n :   a b s o l u t e ; 
         t o p :   1 5 p x ; 
         r i g h t :   3 5 p x ; 
         c o l o r :   # f 1 f 1 f 1 ; 
         f o n t - s i z e :   4 0 p x ; 
         f o n t - w e i g h t :   b o l d ; 
         t r a n s i t i o n :   0 . 3 s ; 
         c u r s o r :   p o i n t e r ; 
         z - i n d e x :   1 0 0 0 0 ; 
 } 
 
 . l i g h t b o x - c l o s e : h o v e r   { 
         c o l o r :   v a r ( - - b r a n d - r e d ) ; 
 } 
 
 . l i g h t b o x - p r e v ,   . l i g h t b o x - n e x t   { 
         c u r s o r :   p o i n t e r ; 
         p o s i t i o n :   a b s o l u t e ; 
         t o p :   5 0 % ; 
         w i d t h :   a u t o ; 
         p a d d i n g :   1 6 p x ; 
         m a r g i n - t o p :   - 2 5 p x ; 
         c o l o r :   w h i t e ; 
         f o n t - w e i g h t :   b o l d ; 
         f o n t - s i z e :   2 4 p x ; 
         t r a n s i t i o n :   0 . 3 s   e a s e ; 
         b a c k g r o u n d - c o l o r :   r g b a ( 0 , 0 , 0 , 0 . 5 ) ; 
         b o r d e r :   n o n e ; 
         z - i n d e x :   1 0 0 0 0 ; 
 } 
 
 . l i g h t b o x - p r e v   { 
         l e f t :   1 0 p x ; 
         b o r d e r - r a d i u s :   4 p x ; 
 } 
 
 . l i g h t b o x - n e x t   { 
         r i g h t :   1 0 p x ; 
         b o r d e r - r a d i u s :   4 p x ; 
 } 
 
 . l i g h t b o x - p r e v : h o v e r ,   . l i g h t b o x - n e x t : h o v e r   { 
         b a c k g r o u n d - c o l o r :   v a r ( - - b r a n d - r e d ) ; 
 } 
 
 # l i g h t b o x - c a p t i o n   { 
         m a r g i n :   a u t o ; 
         d i s p l a y :   b l o c k ; 
         w i d t h :   8 0 % ; 
         t e x t - a l i g n :   c e n t e r ; 
         c o l o r :   # c c c ; 
         p a d d i n g :   1 0 p x   0 ; 
         f o n t - s i z e :   1 . 1 e m ; 
 } 
  
 