:root {
    --primary: #D50000;
    --secondary: #0A0A0A;
    --accent: #FFD600;
    --gray: #1A1A1A;
    --text: #EAEAEA;
}

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

/* BASE */
body {
    font-family: 'Inter', sans-serif;
    background: var(--secondary);
    color: var(--text);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/asfalt-light.png');
    opacity: 0.05;
    z-index: -1;
}

/* NAV PRO */
nav {
    position: fixed;
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    background: linear-gradient(to right, #000, #111, #000);
    border-bottom: 2px solid rgba(213, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s;
}

nav a:hover {
    color: var(--primary);
}

/* HERO PRO */
.hero {
    height: 100vh;
    background: url('../img/hero.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 80px 0 0;
    overflow: hidden;
}

/* overlay oscuro + rojo */
.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.95) 15%,
            rgba(139, 0, 0, 0.7) 45%,
            rgba(0, 0, 0, 0.4) 75%);
}

/* línea racing decorativa */
.hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), transparent);
    left: 0;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 90px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, #E10600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    margin: 20px 0;
    color: #ccc;
    padding-left: 20px;
}

.stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    background: #E10600;
    padding: 40px;
}

.stat h3 {
    font-size: 40px;
    color: white;
}

.stat p {
    color: #ffd6d6;
}

/* BUTTON */
.btn {
    background: linear-gradient(45deg, #E10600, #ff2a2a);
    padding: 14px 30px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    letter-spacing: 1px;
    border-left: 4px solid #FFC400;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(225, 6, 0, 0.4);
}

/* SECTIONS */
section {
    padding: 100px 60px;
    background: linear-gradient(180deg, #0a0a0a, #111);
}

section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    border-left: 5px solid #E10600;
    padding-left: 15px;
}

/* CARDS */
.card {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border-left: 4px solid #E10600;
    padding: 20px;
    margin: 20px 0;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 100%;
    background: #FFC400;
    right: 0;
    top: 0;
    opacity: 0.7;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(225, 6, 0, 0.2);
}

/* GRID */
.grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.grid img {
    width: 300px;
    border-radius: 10px;
    transition: 0.3s;
}

.grid img:hover {
    transform: scale(1.05);
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.stat {
    animation: fadeInUp 1s ease;
}

.hero h1 {
    animation: fadeInUp 1s ease;
}

/* FOOTER PRO */
.footer {
    background: linear-gradient(180deg, #0a0a0a, #000);
    position: relative;
    padding-top: 60px;
}

/* línea roja racing arriba */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #E10600, #FFC400, #E10600);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 40px 60px;
    gap: 40px;
}

/* columnas */
.footer h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: white;
}

.footer h4 {
    margin-bottom: 15px;
    color: #E10600;
}

.footer p {
    color: #aaa;
    margin-bottom: 8px;
}

.footer a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 8px;
    transition: 0.3s;
}

/* hover PRO */
.footer a:hover {
    color: #E10600;
    transform: translateX(5px);
}

/* bottom */
.footer-bottom {
    border-top: 1px solid #111;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #666;
}

.footer-container>div {
    animation: fadeInUp 1s ease;
}

.biografia {
    padding: 120px 60px;
}

.bio-hero {
    text-align: center;
    margin-bottom: 40px;
}

.bio-hero img {
    width: 25%;
    border-radius: 15px;
    border: 3px solid #E10600;
}

.biografia h2 {
    font-size: 40px;
    margin-bottom: 40px;
    border-left: 5px solid #E10600;
    padding-left: 15px;
}

.biografia .card {
    margin-bottom: 25px;
    line-height: 1.6;
}

/* SPONSORS */
.sponsors {
    padding: 80px 0;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.95) 15%,
            rgba(139, 0, 0, 0.7) 45%,
            rgba(0, 0, 0, 0.4) 75%);
    text-align: center;
    overflow: hidden;
}

.sponsors h2 {
    margin-bottom: 40px;
    font-size: 30px;
    border-left: 5px solid var(--primary);
    padding-left: 15px;
    display: inline-block;
}

/* contenedor */
.sponsor-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* track animado */
.sponsor-track {
    display: flex;
    gap: 40px;
    width: calc(250px * 10);
    /* width: max-content; */
    animation: scroll 20s linear infinite;
}

/* logos */
.sponsor-track img {
    width: 180px;
    margin: 0 40px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s;
}

/* hover PRO */
.sponsor-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* cada sponsor */
.sponsor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.sponsor-item a {
    text-decoration: none;
}

/* imagen */
.sponsor-item img {
    width: 140px;
    margin-bottom: 10px;
}

/* texto */
.sponsor-item span {
    font-size: 12px;
    color: #aaa;
    letter-spacing: 1px;
    transition: 0.3s;
}

/* hover conjunto */
.sponsor-item:hover span {
    color: #fff;
}

/* animación infinita */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.sponsor-slider::before,
.sponsor-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.sponsor-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--gray), transparent);
}

.sponsor-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--gray), transparent);
}

/* NEWSLETTER */
.newsletter {
    background: linear-gradient(135deg, #111, #1a1a1a);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.newsletter p {
    font-size: 1rem;
    margin-bottom: 25px;
    color: #ccc;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 12px 20px;
    border: none;
    background: #ff6600;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: #e65c00;
}