/* Importación de fuentes deportivas y modernas */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,600;0,700;1,700&family=Inter:wght@400;500;600&display=swap');

/* --- DESPLAZAMIENTO FLUIDO (SMOOTH SCROLL) --- */
html {
    scroll-behavior: smooth;
    max-width: 100% !important;
    width: 100% !important;
    position: relative;
}

:root {
    /* Paleta Corporativa Oscura (Calcada de la App VRG) */
    --bg-main-dark: #0f1115;       /* Fondo general oscuro */
    --bg-card-dark: #16191f;       /* Fondo de paneles y tarjetas */
    --bg-card-hover: #1f232b;
    --color-border: #2a2e37;       /* Borde fino gris */
    
    --color-red-speed: #e50914;    /* Rojo Racing VRG */
    --color-red-hover: #b80710;
    
    --color-text-main: #f8fafc;    /* Texto principal blanco */
    --color-text-muted: #94a3b8;   /* Texto secundario gris */
    
    /* Tipografías */
    --font-heading: 'Chakra Petch', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transiciones */
    --transition-fast: 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FONDO GENERAL ÚNICO PARA TODA LA WEB */
body {
    font-family: var(--font-body);
    /* Imagen fija de fondo con degradado oscuro superpuesto */
    background: linear-gradient(180deg, rgba(15, 17, 21, 0.7) 0%, rgba(15, 17, 21, 0.7) 100%),
                url('../img/hero-racing-bg.jpg') center top / cover no-repeat fixed !important;
    color: var(--color-text-main) !important;
    line-height: 1.6;
    min-height: 100vh;
    max-width: 100% !important;
    width: 100% !important;
    position: relative;
}

/* --- LOGO Y BRANDING --- */
.logo-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 4px 0;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.logo-brand:hover .logo-img {
    transform: scale(1.03);
}

/* --- CONTENEDOR RECOGIDO Y CENTRADO GLOBAL --- */
.container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
}

/* --- HEADER & NAV (ESTILO APP: OSCURO Y TRANSLÚCIDO) --- */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 17, 21, 0.85) !important;
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--color-red-speed);
    z-index: 1000;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a.nav-link-item {
    color: var(--color-text-main);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.nav-links a.nav-link-item:hover {
    color: var(--color-red-speed);
}

/* BOTONES HEADER */
.btn {
    padding: 0.5rem 1.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition-fast);
    display: inline-block;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--color-red-speed);
    color: #ffffff;
    border: 1px solid var(--color-red-speed);
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-red-hover);
    border-color: var(--color-red-hover);
    color: #ffffff;
}

.btn-outline-primary, .btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    background: transparent;
}

.btn-outline-primary:hover, .btn-secondary:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* --- HERO SECTION --- */
.hero-wrapper {
    position: relative;
    background: transparent !important;
    border-bottom: 0px solid var(--color-red-speed);
}

.hero {
    padding: 5rem 5% 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    color: var(--color-text-main);
}

.hero-tag {
    display: inline-block;
    background-color: rgba(229, 9, 20, 0.15);
    color: var(--color-red-speed);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-left: 4px solid var(--color-red-speed);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-badge-card {
    background: var(--bg-card-dark);
    color: var(--color-text-main);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    border-bottom: 4px solid var(--color-red-speed);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.hero-badge-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-style: italic;
    color: #ffffff;
}

/* --- STATS BAR --- */
.stats-bar {
    background-color: rgba(11, 12, 14, 0.5);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 2.5rem 5%;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    font-style: italic;
}

.stat-number span {
    color: var(--color-red-speed);
}

.stat-label {
    color: var(--color-text-muted);
    font-weight: 500;
}

/* --- SECCIONES GENERALES --- */
.section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent !important;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* --- LEMA DE LA COMUNIDAD CON SEPARADOR ROJO --- */
.motto-banner-wrapper {
    background: rgba(11, 12, 14, 0.6) !important;
    backdrop-filter: blur(4px);
    border-top: 2px solid var(--color-red-speed);
    border-bottom: 2px solid var(--color-red-speed);
    padding: 2.5rem 5%;
}

.motto-banner {
    color: #ffffff;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.motto-banner h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.motto-banner h2 span {
    color: var(--color-red-speed);
}

/* --- SEMANA DE PISTA (LUNES Y JUEVES) --- */
.schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.schedule-card {
    background: var(--bg-card-dark);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2.5rem;
    transition: var(--transition-fast);
}

.schedule-card:hover {
    border-color: var(--color-red-speed);
    transform: translateY(-4px);
}

.schedule-day {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.schedule-day-red, .schedule-card.competicion .schedule-day {
    background-color: var(--color-red-speed);
}

.schedule-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-style: italic;
    color: #ffffff;
}

.schedule-desc {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.schedule-target-dark { color: #ffffff; }
.schedule-target-red { color: var(--color-red-speed); }

/* --- SOPORTE Y TICKETS --- */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.support-item-dark {
    background: var(--bg-card-dark);
    border: 1px solid var(--color-border);
    padding: 1.8rem;
    border-radius: 6px;
    border-top: 3px solid var(--color-red-speed);
    transition: var(--transition-fast);
}

.support-item-dark:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}

.support-item-dark h4 {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.support-item-dark p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* --- CARNET POR PUNTOS Y LICENCIA --- */
.license-box {
    background: var(--bg-card-dark);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    padding: 3rem;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.license-tag {
    color: var(--color-red-speed);
    font-family: var(--font-heading);
    font-weight: bold;
    text-transform: uppercase;
}

.license-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin: 0.5rem 0 1rem;
    font-style: italic;
    color: #ffffff;
}

.license-desc {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.license-badge {
    border: 2px dashed var(--color-red-speed);
    padding: 2rem;
    text-align: center;
    border-radius: 6px;
    background: rgba(229, 9, 20, 0.05);
}

.license-badge h3 {
    font-family: var(--font-heading);
    color: var(--color-red-speed);
    font-size: 1.8rem;
    font-style: italic;
}

/* --- SECCIÓN VIRTUAL RACE POINTS (VRP) --- */
.vrp-box {
    background: var(--bg-card-dark);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-red-speed);
    border-radius: 8px;
    padding: 3rem;
    color: var(--color-text-main);
    margin: 1rem auto;
    max-width: 1200px;
}

.vrp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.5rem;
}

.vrp-tag {
    color: var(--color-red-speed);
    font-family: var(--font-heading);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vrp-title-group h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    text-transform: uppercase;
    color: #ffffff;
}

.vrp-title-group h2 span {
    color: var(--color-red-speed);
}

.vrp-badge {
    background: var(--color-red-speed);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 1.05rem;
    text-transform: uppercase;
}

.vrp-desc {
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 800px;
    font-size: 1.05rem;
}

.vrp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.vrp-step-card {
    background: #0f1115;
    border: 1px solid var(--color-border);
    padding: 1.8rem;
    border-radius: 6px;
    text-align: center;
}

.vrp-step-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-red-speed);
    margin-bottom: 0.5rem;
}

.vrp-step-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: #ffffff;
}

.vrp-step-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* --- TARJETA DE MEMBRESÍA FINAL --- */
.pricing-card {
    background: var(--bg-card-dark);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-red-speed);
    border-radius: 8px;
    padding: 3rem;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.pricing-badge {
    background: var(--color-red-speed);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.pricing-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #ffffff;
    margin-top: 0.5rem;
}

.pricing-desc {
    color: var(--color-text-muted);
    margin: 0.5rem 0 1.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-main);
    font-size: 0.95rem;
}

.pricing-features li::before {
    content: "✓ ";
    color: var(--color-red-speed);
    font-weight: bold;
}

.btn-full-width {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
}

/* --- MÓVIL Y MENÚ BOCADILLO --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: var(--transition-fast);
}

@media (max-width: 900px) {
    html, body {
        overflow-x: hidden !important;
        position: relative;
    }
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 3rem;
    }
    .hero-actions { justify-content: center; }
    .stats-container { grid-template-columns: 1fr; gap: 1.5rem; }
    .schedule-grid, .license-box, .vrp-steps { grid-template-columns: 1fr; }
    .motto-banner h2 { font-size: 1.5rem; }

   /* BOTÓN HAMBURGUESA / CRUZ */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        position: relative;
        z-index: 1005 !important; /* QUEDA POR ENCIMA DEL MENÚ DESPLEGADO */
    }

 /* MENÚ DESPLEGABLE MÓVIL */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0; /* Lo fijamos a la derecha */
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: rgba(22, 25, 31, 0.98) !important;
        backdrop-filter: blur(12px);
        border-left: 1px solid var(--color-border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
        padding: 2rem;
        margin: 0;

        /* EN LUGAR DE RIGHT -100%, USAMOS TRANSFORM + VISIBILITY */
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }
    /* AL ACTIVARSE SE MUESTRA Y SE DESPLAZA A SU SITIO */
    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--color-red-speed);
    }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--color-red-speed);
    }
}

/* --- FOOTER ESTILO APP --- */
.footer {
    color: var(--color-text-muted);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    font-size: 14px;
    border-top: 1px solid var(--color-border);
}

.enlaces_footer { margin: 10px 0; }
.redes_footer i { color: #ffffff; }

.custom-button-discord, .custom-button-whatsapp {
    padding: 8px;
    text-align: center;
    text-decoration: none;
    background-color: #1f232b;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin-top: 5px;
    display: block;
    width: 100%;
}

.custom-button-discord { color: #7289DA; }
.custom-button-discord:hover { background-color: #7289DA; color: white; }
.custom-button-whatsapp { color: #17d244; }
.custom-button-whatsapp:hover { background-color: #17d244; color: white; }

/* TARJETAS CON EFECTO TRANSLÚCIDO E INTEGRADO */
.schedule-card, 
.support-item-dark, 
.hero-badge-card, 
.license-box, 
.vrp-box, 
.pricing-card {
    background: rgba(22, 25, 31, 0.75) !important; /* Semi-transparente estilo App */
    backdrop-filter: blur(8px);                    /* Desenfoque fino de fondo */
    border: 1px solid var(--color-border) !important;
    border-radius: 8px;
    color: var(--color-text-main);
}