/**
 * Estilos específicos para la sección Hero de sportRCBike
 * Optimización responsiva refinada para dispositivos móviles.
 */

:root {
    --color-neon: #76ff03; /* El color verde brillante de acento del mockup */
    --color-white: #ffffff;
    --color-card-bg: rgba(22, 22, 22, 0.72); /* Fondo oscuro semi-transparente */
    --font-title: 'Kanit', 'Impact', 'Arial Black', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

.hero-section {
    /* Combinamos el degradado del mockup con la variable de la imagen */
    background-image: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.7) 100%), var(--hero-bg);
    background-size: cover;
    background-repeat: no-repeat;
    
    /* Parallax Setup */
    background-position-x: center;
    background-position-y: var(--parallax-offset, 0px); /* Controlado dinámicamente por JS */
    will-change: background-position; /* Optimización de rendimiento de hardware */
    
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--color-white);
    padding: 100px 20px 60px 20px; /* Ajuste balanceado para dar espacio a la barra de navegación móvil */
    box-sizing: border-box;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px; /* Reducción de separación global en móvil */
}

/* --- Bloque Izquierdo: Contenido --- */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrado por defecto para una lectura impecable en móvil */
    text-align: center;
    max-width: 100%;
    width: 100%;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 2.15rem; /* Ajuste sutil para evitar cortes tipográficos bruscos en 360px */
    font-weight: 900;
    font-style: italic;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0 0 16px 0;
    letter-spacing: -1px;
}

.hero-title span {
    display: block;
}

.hero-title .highlight-text {
    color: var(--color-neon);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.45;
    max-width: 500px;
    margin: 0 0 30px 0;
    opacity: 0.9;
    font-weight: 400;
}

/* Botón CTA del mockup - Píldora redondeada */
.btn-cta {
    display: inline-block;
    background-color: var(--color-neon);
    color: #000000;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 100px; /* Estilo píldora */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(118, 255, 3, 0.25);
    width: auto;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(118, 255, 3, 0.4);
}

/* --- NUEVO BANNER: CUENTA REGRESIVA --- */
.hero-countdown-container {
    margin-top: 35px;
    width: 100%;
    max-width: 440px;
}

.countdown-title {
    font-family: var(--font-title);
    font-size: 1rem;
    font-style: italic;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: 1.5px;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    text-align: center;
}

.countdown-timer {
    display: flex;
    gap: 10px;
    width: 100%;
}

.countdown-item {
    flex: 1;
    background: rgba(18, 18, 18, 0.75); /* Un toque más oscuro para aumentar el contraste sobre el fondo */
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 10px 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.countdown-number {
    font-family: var(--font-title);
    font-size: 1.65rem; /* Ajustado para que los dos dígitos entren sin desbordar el contenedor */
    font-weight: 900;
    font-style: italic;
    color: var(--color-neon);
    line-height: 1;
    font-variant-numeric: tabular-nums; 
    display: inline-block;
    will-change: transform, color;
}

.countdown-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    margin-top: 5px;
    text-transform: uppercase;
}

/* Clase de animación inyectada por JS al retroceder un número */
.tick-animate {
    animation: tickPulse 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes tickPulse {
    0% { transform: scale(1); color: var(--color-neon); }
    50% { transform: scale(1.15); color: #ffffff; text-shadow: 0 0 8px var(--color-neon); }
    100% { transform: scale(1); color: var(--color-neon); }
}

/* --- Bloque Derecho: Tarjeta de Información Rápida --- */
.hero-info-card {
    background-color: var(--color-card-bg);
    border-radius: 20px;
    padding: 24px; /* Un poco más compacto en móvil para optimizar la pantalla */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin-top: 15px;
}

.info-card-title {
    font-family: var(--font-title);
    color: var(--color-neon);
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    letter-spacing: 1.5px;
    text-align: center;
}

.info-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.info-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.info-text {
    font-family: var(--font-body);
    font-size: 1rem; /* Proporción ideal para celulares */
    font-weight: 700;
    line-height: 1.35;
}

/* --- CLASES DE ANIMACIONES (Preparadas para JS) --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
    transform: translateX(-30px); /* Menor desplazamiento inicial en móvil */
}

.fade-in-right {
    transform: translateX(30px);
}

/* Clase activa inyectada por JS */
.animate-active {
    opacity: 1;
    transform: translateX(0);
}


/* ==========================================================================
   MEDIA QUERY PARA ESCRITORIO (Restaura la estructura asimétrica original)
   ========================================================================== */
@media (min-width: 992px) {
    .hero-section {
        padding: 80px 20px;
    }

    .hero-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .hero-content {
        align-items: flex-start; /* Retorna la alineación original a la izquierda */
        text-align: left;
        max-width: 55%;
    }

    .hero-title {
        font-size: 4.5rem; /* El tamaño masivo e impactante original de PC */
        line-height: 0.95;
        letter-spacing: -1.5px;
    }

    .hero-subtitle {
        font-size: 1.35rem;
        margin: 0 0 35px 0;
    }

    .hero-countdown-container {
        margin-top: 45px;
        text-align: left;
    }

    .countdown-number {
        font-size: 2.3rem;
    }

    .hero-info-card {
        max-width: 410px;
        padding: 35px;
        margin-top: 0;
        margin-right: 60px;
    }

    .info-card-title {
        text-align: left;
        font-size: 1.25rem;
    }

    .info-card-list {
        gap: 25px;
    }

    .info-item {
        gap: 20px;
    }

    .info-icon {
        width: 44px;
        height: 44px;
    }

    .info-text {
        font-size: 1.15rem;
    }

    .fade-in-left {
        transform: translateX(-50px);
    }

    .fade-in-right {
        transform: translateX(50px);
    }
}