:root {
    --neon-blue: #00d4ff;
    --neon-purple: #9d00ff;
    --neon-pink: #ff0055;
    --dark-bg: #050505;
    --card-bg: #111115;
}

body {
    background-color: var(--dark-bg);
    color: white;
    font-family: 'Arial Black', Gadget, sans-serif;
    margin: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

header {
    text-align: center;
    padding: 60px 20px;
}

.neon-title {
    font-size: 4rem;
    color: #fff;
    text-shadow: 
        0 0 7px #fff, 0 0 10px #fff, 0 0 21px #fff, 
        0 0 42px var(--neon-blue), 0 0 82px var(--neon-blue), 0 0 150px var(--neon-blue);
    animation: flicker 1.5s infinite alternate;
}

.subtitle {
    color: var(--neon-purple);
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.prizes-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
}

.car-card {
    background: var(--card-bg);
    border-radius: 20px;
    width: 350px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s ease;
    overflow: hidden;
}

.car-card:hover {
    transform: scale(1.05) translateY(-10px);
    border-color: var(--neon-purple);
    box-shadow: 0 0 30px rgba(157, 0, 255, 0.4);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--neon-pink);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

.car-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: brightness(0.8);
    transition: 0.3s;
}

.car-card:hover .car-image {
    filter: brightness(1.1);
}

.car-info {
    padding: 25px;
    text-align: center;
}

.car-title {
    color: var(--neon-blue);
    margin: 0 0 15px 0;
}

.car-details {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 25px;
    font-family: 'Segoe UI', sans-serif;
    color: #bbb;
}

.car-details span { color: white; font-weight: bold; }

.btn-details {
    background: transparent;
    color: white;
    border: 2px solid var(--neon-blue);
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-details:hover {
    background: var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-blue);
    color: black;
}

/* EL BOTÓN COMPRA YA */
.cta-section { 
    padding: 80px 0; 
    text-align: center; /* Asegura que el enlace se centre en su contenedor */
}

.btn-buy {
    position: relative;
    display: inline-block; /* CLAVE: Para que acepte el padding y las transformaciones */
    text-decoration: none; /* CLAVE: Quita el subrayado azul por defecto */
    text-align: center;    /* CLAVE: Centra el texto dentro del enlace */
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    background-size: 200%;
    color: white;
    border: none;
    padding: 30px 80px;
    font-size: 1.8rem;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 900;
    transition: 0.5s;
    animation: moveGradient 3s infinite, heartbeat 1.5s infinite;
}

/* Evita que el color cambie al hacer clic o visitar el enlace */
.btn-buy:visited, .btn-buy:active {
    color: white;
}

@keyframes moveGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes heartbeat {
    0% { transform: scale(1); box-shadow: 0 0 20px var(--neon-purple); }
    50% { transform: scale(1.08); box-shadow: 0 0 50px var(--neon-blue); }
    100% { transform: scale(1); box-shadow: 0 0 20px var(--neon-purple); }
}

@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { text-shadow: 0 0 20px var(--neon-blue); }
    20%, 24%, 55% { text-shadow: none; }
}