/* ========================================
   HYPERDRIVE LEAGUE
   Estilos principales
======================================== */

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

:root {
    --yellow: #ffd500;
    --black: #08090b;
    --dark: #0e1013;
    --dark-light: #17191e;
    --white: #ffffff;
    --grey: #9b9da3;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
}


/* ========================================
   CABECERA
======================================== */

.main-header {
    width: 100%;
    height: 82px;

    display: flex;
    align-items: center;

    padding: 0 42px;

    background: rgba(8, 9, 11, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    position: sticky;
    top: 0;
    z-index: 1000;
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 45px;
}

.logo img {
    display: block;
    width: 115px;
    height: auto;
}


/* NAVEGACIÓN */

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;

    flex: 1;
}

.main-nav a,
.more-menu {
    color: var(--white);
    text-decoration: none;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;

    transition: color 0.2s ease;
}

.main-nav a:hover,
.more-menu:hover {
    color: var(--yellow);
}

.main-nav a.active,
.more-menu:has(a.active) {
    color: var(--yellow);
}

.more-menu {
    cursor: pointer;
}


/* BOTÓN DISCORD */

.discord-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 21px;

    background: var(--yellow);
    color: #000000;

    text-decoration: none;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;

    border-radius: 3px;

    white-space: nowrap;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.discord-button:hover {
    background: #ffe13b;
    transform: translateY(-2px);
}


/* ========================================
   HERO PRINCIPAL
======================================== */

.hero {
    min-height: calc(100vh - 82px);
    position: relative;

    display: flex;
    align-items: center;

    padding: 90px 7% 110px;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(8, 9, 11, 1) 0%,
            rgba(8, 9, 11, 0.98) 30%,
            rgba(8, 9, 11, 0.78) 48%,
            rgba(8, 9, 11, 0.18) 72%,
            rgba(8, 9, 11, 0.05) 100%
        ),
        url("../images/hero/hero-hyperdrive.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Línea amarilla decorativa */

.hero::before {
    content: "";
    position: absolute;

    left: 0;
    top: 22%;

    width: 5px;
    height: 56%;

    background: var(--yellow);
}


/* CONTENIDO */

.hero-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 950px;
}

.hero-season {
    display: inline-block;

    margin-bottom: 25px;

    color: var(--yellow);

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 4px;
}

.hero h1 {
    margin: 0;

    color: var(--white);

    font-size: clamp(55px, 6vw, 105px);
    font-weight: 900;

    line-height: 0.9;
    letter-spacing: -4px;
}

.hero h1 span {
    color: var(--yellow);
}

.hero-description {
    max-width: 660px;

    margin-top: 32px;

    color: #b7b9be;

    font-size: 17px;
    line-height: 1.7;
}


/* BOTONES */

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-top: 38px;
}

.hero-primary,
.hero-secondary {
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 26px;

    text-decoration: none;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.7px;

    border-radius: 3px;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.hero-primary {
    background: var(--yellow);
    color: #000;
}

.hero-primary:hover {
    background: #ffe13b;
    transform: translateY(-2px);
}

.hero-secondary {
    color: var(--white);

    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
}

.hero-secondary:hover {
    border-color: var(--yellow);
    color: var(--yellow);
    transform: translateY(-2px);
}


/* PRÓXIMA CARRERA */

.hero-next-race {
    position: absolute;

    right: 7%;
    bottom: 45px;

    z-index: 2;

    min-width: 260px;

    padding: 19px 22px;

    border-left: 3px solid var(--yellow);

    background: rgba(14, 16, 19, 0.8);
    backdrop-filter: blur(8px);
}

.next-label {
    display: block;

    margin-bottom: 7px;

    color: var(--yellow);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero-next-race strong {
    display: block;

    font-size: 21px;
    font-weight: 900;
}

.next-info {
    display: block;

    margin-top: 5px;

    color: var(--grey);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}
/* ========================================
   PRÓXIMA CARRERA / RACE HUB
======================================== */

.next-race-section {
    position: relative;
    padding: 95px 7%;
    background: #0d0f12;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.next-race-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 7%;
    width: 86%;
    height: 1px;
    background: linear-gradient(
        90deg,
        var(--yellow),
        rgba(255, 213, 0, 0)
    );
}


/* TÍTULO */

.next-race-heading {
    margin-bottom: 42px;
}

.next-race-heading > span {
    display: block;
    margin-bottom: 12px;

    color: var(--yellow);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}

.next-race-heading h2 {
    margin: 0;

    font-size: clamp(38px, 4vw, 65px);
    font-weight: 900;
    letter-spacing: -2px;
}

.next-race-heading p {
    margin-top: 10px;

    color: var(--grey);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}


/* GRID */

.next-race-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 15px;
}


/* INFORMACIÓN PRINCIPAL */

.race-main-info {
    min-height: 230px;

    display: flex;
    align-items: center;

    padding: 35px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 213, 0, 0.09),
            rgba(255, 213, 0, 0)
        ),
        #15171b;

    border: 1px solid rgba(255, 255, 255, 0.08);
}

.race-round {
    padding-right: 30px;
    margin-right: 30px;

    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.race-round span {
    display: block;

    color: var(--grey);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.race-round strong {
    display: block;

    color: var(--yellow);

    font-size: 70px;
    line-height: 1;
    font-weight: 900;
}

.race-name > span {
    color: var(--grey);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.race-name h3 {
    margin: 5px 0 16px;

    font-size: clamp(30px, 3vw, 48px);
    font-weight: 900;
    letter-spacing: -1px;
}

.race-special {
    display: inline-block;

    padding: 7px 12px;

    background: var(--yellow);
    color: #000;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
}


/* DIVISIONES */

.division-card {
    min-height: 230px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 32px;

    background: #15171b;

    border: 1px solid rgba(255, 255, 255, 0.08);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.division-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 213, 0, 0.45);
}

.division-label {
    margin-bottom: 22px;

    color: var(--yellow);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
}

.division-card strong {
    font-size: 25px;
    font-weight: 900;
}

.division-date {
    margin-top: 7px;

    color: var(--grey);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.division-time {
    margin-top: 20px;

    font-size: 40px;
    line-height: 1;
    font-weight: 900;
}


/* BOTONES */

.next-race-actions {
    display: flex;
    gap: 12px;

    margin-top: 25px;
}

.racehub-button,
.twitch-button {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 24px;

    text-decoration: none;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.8px;

    border-radius: 3px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.racehub-button {
    background: var(--yellow);
    color: #000;
}

.twitch-button {
    color: var(--white);

    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.racehub-button:hover,
.twitch-button:hover {
    transform: translateY(-2px);
}

.twitch-button:hover {
    border-color: var(--yellow);
}
/* ========================================
   RESPONSIVE
======================================== */
/* ========================================
   CLASIFICACIÓN
======================================== */

.standings-section {
    padding: 90px 6%;
    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(255, 213, 0, 0.06),
            transparent 28%
        ),
        #08090b;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.standings-heading {
    max-width: 1200px;
    margin: 0 auto 35px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.standings-heading > div:first-child > span {
    display: block;
    margin-bottom: 8px;

    color: var(--yellow);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.standings-heading h2 {
    margin: 0;

    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
}


/* PESTAÑAS */

.standings-tabs {
    display: flex;
    padding: 5px;

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.standings-tab {
    min-width: 145px;
    padding: 12px 20px;

    border: 0;
    border-radius: 7px;

    background: transparent;
    color: rgba(255, 255, 255, 0.55);

    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.standings-tab:hover {
    color: #ffffff;
}

.standings-tab.active {
    background: var(--yellow);
    color: #090a0c;
}


/* TABLA */

.standings-table {
    max-width: 1200px;
    margin: 0 auto;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.standings-header,
.standings-row {
    display: grid;
    grid-template-columns: 90px minmax(220px, 1.6fr) minmax(180px, 1fr) 100px;
    align-items: center;
}

.standings-header {
    min-height: 50px;
    padding: 0 24px;

    background: rgba(255, 255, 255, 0.035);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    color: rgba(255, 255, 255, 0.38);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.standings-header span:last-child {
    text-align: right;
}


/* FILAS */

.standings-row {
    position: relative;

    min-height: 72px;
    padding: 0 24px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.055);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.standings-row:last-child {
    border-bottom: 0;
}

.standings-row:hover {
    background: rgba(255, 255, 255, 0.035);
}

.standings-position {
    color: rgba(255, 255, 255, 0.35);
    font-size: 1.1rem;
    font-weight: 900;
}

.standings-driver {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
}

.standings-team {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    font-weight: 600;
}

.standings-points {
    text-align: right;

    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 900;
}


/* LÍDER */

.standings-row:first-child {
    background:
        linear-gradient(
            90deg,
            rgba(255, 213, 0, 0.08),
            transparent 55%
        );
}

.standings-row:first-child::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;

    width: 4px;

    background: var(--yellow);
}

.standings-row:first-child .standings-position {
    color: var(--yellow);
}

.standings-row:first-child .standings-points {
    color: var(--yellow);
}


/* CARGA */

.standings-loading {
    padding: 45px 24px;

    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-align: center;
}


/* BOTÓN INFERIOR */

.standings-footer {
    max-width: 1200px;
    margin: 28px auto 0;

    display: flex;
    justify-content: flex-end;
}

.standings-full-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 22px;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;

    color: #ffffff;
    text-decoration: none;

    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.standings-full-button:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.28);
}
/* ========================================
   FOTOS DE PILOTOS EN CLASIFICACIÓN
======================================== */

.standings-driver {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 72px;
    overflow: hidden;
}

.driver-photo-wrapper {
    width: 68px;
    height: 72px;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    overflow: hidden;
    flex-shrink: 0;
}

.driver-photo {
    width: 68px;
    height: 68px;

    object-fit: contain;

    transform: scale(1.85);
    transform-origin: 50% 10%;

    margin-top: 3px;
}

.driver-name {
    position: relative;
    z-index: 2;
}
/* ========================================
   ÚLTIMOS RESULTADOS
======================================== */

.results-section {
    padding: 90px 6%;
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(255, 213, 0, 0.05),
            transparent 28%
        ),
        #0b0c0f;

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}


.results-heading {
    max-width: 1200px;
    margin: 0 auto 38px;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 30px;
}


.results-heading > div:first-child > span {
    display: block;

    margin-bottom: 8px;

    color: var(--yellow);

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}


.results-heading h2 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900;

    line-height: 0.95;
    letter-spacing: -0.04em;
}


#latest-results-event {
    margin: 12px 0 0;

    color: rgba(255, 255, 255, 0.5);

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}


/* PESTAÑAS */

.results-tabs {
    display: flex;

    padding: 5px;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}


.results-tab {
    min-width: 145px;

    padding: 12px 20px;

    border: 0;
    border-radius: 7px;

    background: transparent;

    color: rgba(255, 255, 255, 0.55);

    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 800;

    letter-spacing: 0.08em;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.results-tab:hover {
    color: #ffffff;
}


.results-tab.active {
    background: var(--yellow);
    color: #090a0c;
}


/* CONTENEDOR DEL PODIO */

#latest-results-list {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}


/* TARJETA */

.result-card {
    position: relative;

    min-height: 310px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.015)
        );

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}


.result-card:hover {
    transform: translateY(-4px);

    border-color: rgba(255, 255, 255, 0.18);
}


/* POSICIÓN */

.result-position {
    position: absolute;

    top: 18px;
    left: 20px;

    z-index: 4;

    color: rgba(255, 255, 255, 0.35);

    font-size: 2rem;
    font-weight: 900;

    letter-spacing: -0.05em;
}


/* FOTO */

.result-driver-image {
    height: 205px;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center bottom,
            rgba(255, 255, 255, 0.08),
            transparent 65%
        );
}


.result-driver-image img {
    height: 260px;
    width: auto;

    object-fit: contain;

    transform: scale(1.1);
    transform-origin: center top;

    margin-top: 5px;
}


/* INFORMACIÓN */

.result-driver-info {
    position: relative;

    z-index: 2;

    padding: 18px 20px 5px;
}


.result-driver-info strong {
    display: block;

    color: #ffffff;

    font-size: 1.1rem;
    font-weight: 900;

    line-height: 1.1;
}


.result-driver-info span {
    display: block;

    margin-top: 5px;

    color: rgba(255, 255, 255, 0.5);

    font-size: 0.78rem;
    font-weight: 700;
}


/* PUNTOS */

.result-points {
    margin-top: auto;

    padding: 12px 20px 18px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 0.8rem;
    font-weight: 800;

    letter-spacing: 0.08em;
}


/* GANADOR */

.result-card:first-child {
    background:
        linear-gradient(
            180deg,
            rgba(255, 213, 0, 0.10),
            rgba(255, 213, 0, 0.025)
        );

    border-color: rgba(255, 213, 0, 0.28);
}


.result-card:first-child::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    top: 0;

    height: 4px;

    background: var(--yellow);
}


.result-card:first-child .result-position {
    color: var(--yellow);
}


.result-card:first-child .result-points {
    color: var(--yellow);
}


/* BOTÓN INFERIOR */

.results-footer {
    max-width: 1200px;

    margin: 28px auto 0;

    display: flex;
    justify-content: flex-end;
}


.results-full-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 13px 22px;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;

    color: #ffffff;

    text-decoration: none;

    font-size: 0.74rem;
    font-weight: 800;

    letter-spacing: 0.08em;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}


.results-full-button:hover {
    background: rgba(255, 255, 255, 0.06);

    border-color: rgba(255, 255, 255, 0.28);
}


/* CARGA */

.results-loading {
    grid-column: 1 / -1;

    padding: 50px 24px;

    color: rgba(255, 255, 255, 0.45);

    text-align: center;

    font-size: 0.75rem;
    font-weight: 800;

    letter-spacing: 0.1em;
}
/* ========================================
   NOTICIAS
======================================== */

.news-section {
    padding: 90px 6%;
    background: #08090b;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.news-heading {
    max-width: 1200px;
    margin: 0 auto 38px;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 30px;
}

.news-heading > div > span {
    display: block;
    margin-bottom: 8px;

    color: var(--yellow);

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.news-heading h2 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900;

    line-height: 0.95;
    letter-spacing: -0.04em;
}

.news-all-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 22px;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;

    color: #ffffff;
    text-decoration: none;

    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.news-all-button:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.28);
}


/* GRID */

.news-grid {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;

    gap: 18px;
}


/* TARJETAS */

.news-card {
    overflow: hidden;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
}


/* IMAGEN TEMPORAL */

.news-image-placeholder {
    min-height: 180px;

    display: flex;
    align-items: flex-end;

    padding: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 213, 0, 0.10),
            rgba(255, 255, 255, 0.02)
        );

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.news-card-main .news-image-placeholder {
    min-height: 260px;
}

.news-image-placeholder span {
    color: rgba(255, 255, 255, 0.35);

    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}


/* CONTENIDO */

.news-content {
    padding: 20px;
}

.news-category {
    display: block;
    margin-bottom: 10px;

    color: var(--yellow);

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.news-content h3 {
    margin: 0;

    color: #ffffff;

    font-size: 1.15rem;
    font-weight: 900;

    line-height: 1.15;
}

.news-card-main .news-content h3 {
    font-size: 1.4rem;
}

.news-content p {
    margin: 10px 0 0;

    color: rgba(255, 255, 255, 0.5);

    font-size: 0.85rem;
    line-height: 1.6;
}
/* ========================================
   PÁGINA INDIVIDUAL DE NOTICIA
======================================== */

.article-page {
    min-height: 100vh;
    padding: 80px 6% 100px;
    background:
        radial-gradient(
            circle at 85% 5%,
            rgba(255, 213, 0, 0.05),
            transparent 28%
        ),
        #08090b;
}


.article-loading {
    max-width: 1000px;
    margin: 80px auto;

    color: rgba(255, 255, 255, 0.45);

    text-align: center;

    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}


.article-container {
    max-width: 1000px;
    margin: 0 auto;
}


.article-back {
    display: inline-flex;
    align-items: center;

    margin-bottom: 40px;

    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;

    transition: color 0.2s ease;
}


.article-back:hover {
    color: #ffffff;
}


/* CATEGORÍA */

.article-category {
    display: block;

    margin-bottom: 14px;

    color: var(--yellow);

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}


/* TÍTULO */

.article-container h1 {
    max-width: 900px;

    margin: 0;

    color: #ffffff;

    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;

    line-height: 0.98;
    letter-spacing: -0.05em;
}


/* FECHA */

.article-date {
    margin-top: 20px;

    color: rgba(255, 255, 255, 0.4);

    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}


/* IMAGEN */

.article-image {
    width: 100%;

    margin-top: 45px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.025);
}


.article-image img {
    display: block;

    width: 100%;
    max-height: 620px;

    object-fit: cover;
}


/* CUERPO */

.article-body {
    max-width: 820px;

    margin: 50px auto 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 1.02rem;
    line-height: 1.85;
}


.article-body p {
    margin: 0 0 26px;
}


.article-body p:last-child {
    margin-bottom: 0;
}


/* PRIMER PÁRRAFO */

.article-body p:first-child {
    color: rgba(255, 255, 255, 0.92);

    font-size: 1.15rem;
    line-height: 1.8;
}
/* ========================================
   PÁGINA GENERAL DE NOTICIAS
======================================== */

.news-page {
    min-height: 100vh;
    padding: 90px 6% 110px;

    background:
        radial-gradient(
            circle at 85% 5%,
            rgba(255, 213, 0, 0.05),
            transparent 30%
        ),
        #08090b;
}


/* CABECERA */

.news-page-heading {
    max-width: 1200px;
    margin: 0 auto 50px;
}

.news-page-heading > span {
    display: block;

    margin-bottom: 10px;

    color: var(--yellow);

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.news-page-heading h1 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;

    line-height: 0.9;
    letter-spacing: -0.06em;
}

.news-page-heading p {
    max-width: 620px;

    margin: 20px 0 0;

    color: rgba(255, 255, 255, 0.5);

    font-size: 0.95rem;
    line-height: 1.7;
}


/* GRID */

.news-page-grid {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}


/* TARJETA */

.news-page-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    min-height: 430px;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;

    color: inherit;
    text-decoration: none;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.news-page-card:hover {
    transform: translateY(-5px);

    background: rgba(255, 255, 255, 0.04);

    border-color: rgba(255, 255, 255, 0.18);
}


/* IMAGEN */

.news-page-card-image {
    height: 220px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.03);
}

.news-page-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.news-page-card:hover .news-page-card-image img {
    transform: scale(1.035);
}


/* SIN IMAGEN */

.news-page-card-placeholder {
    display: flex;
    align-items: flex-end;

    padding: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 213, 0, 0.11),
            rgba(255, 255, 255, 0.02)
        );
}

.news-page-card-placeholder span {
    color: rgba(255, 255, 255, 0.3);

    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}


/* CONTENIDO */

.news-page-card-content {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 22px;
}


/* META */

.news-page-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 14px;
}

.news-page-card-category {
    color: var(--yellow);

    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.news-page-card-date {
    color: rgba(255, 255, 255, 0.32);

    font-size: 0.68rem;
    font-weight: 700;
}


/* TÍTULO */

.news-page-card h2 {
    margin: 0;

    color: #ffffff;

    font-size: 1.25rem;
    font-weight: 900;

    line-height: 1.2;
}


/* RESUMEN */

.news-page-card p {
    margin: 13px 0 22px;

    color: rgba(255, 255, 255, 0.5);

    font-size: 0.84rem;
    line-height: 1.65;
}


/* LEER */

.news-page-card-read {
    margin-top: auto;

    color: rgba(255, 255, 255, 0.75);

    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.news-page-card:hover .news-page-card-read {
    color: var(--yellow);
}
/* ========================================
   SOBRE HYPERDRIVE
======================================== */

.about-section {
    padding: 100px 6%;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(255, 213, 0, 0.055),
            transparent 30%
        ),
        #0b0c0f;

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}


.about-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* INTRO */

.about-intro {
    max-width: 820px;
    margin-bottom: 55px;
}


.about-label {
    display: block;

    margin-bottom: 12px;

    color: var(--yellow);

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}


.about-intro h2 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;

    line-height: 0.9;
    letter-spacing: -0.06em;
}


.about-intro h2 span {
    color: var(--yellow);
}


.about-intro > p {
    max-width: 720px;

    margin: 28px 0 0;

    color: rgba(255, 255, 255, 0.55);

    font-size: 1rem;
    line-height: 1.8;
}


/* TARJETAS */

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}


.about-card {
    position: relative;

    min-height: 280px;

    padding: 28px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}


.about-card:hover {
    transform: translateY(-4px);

    background:
        linear-gradient(
            145deg,
            rgba(255, 213, 0, 0.055),
            rgba(255, 255, 255, 0.018)
        );

    border-color: rgba(255, 213, 0, 0.20);
}


/* NÚMERO */

.about-number {
    display: block;

    margin-bottom: 45px;

    color: rgba(255, 255, 255, 0.17);

    font-size: 2.4rem;
    font-weight: 900;

    letter-spacing: -0.06em;
}


/* TÍTULO */

.about-card h3 {
    margin: 0;

    color: #ffffff;

    font-size: 1.08rem;
    font-weight: 900;

    letter-spacing: -0.02em;
}


/* TEXTO */

.about-card p {
    margin: 14px 0 0;

    color: rgba(255, 255, 255, 0.5);

    font-size: 0.84rem;
    line-height: 1.7;
}


/* DETALLE SUPERIOR */

.about-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 28px;

    width: 42px;
    height: 3px;

    background: var(--yellow);
}
/* ========================================
   RETRANSMISIONES / TWITCH
======================================== */

.live-section {
    position: relative;
    padding: 105px 6%;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 82% 35%,
            rgba(145, 70, 255, 0.16),
            transparent 34%
        ),
        radial-gradient(
            circle at 12% 10%,
            rgba(255, 213, 0, 0.045),
            transparent 30%
        ),
        #08090b;

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.live-section::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            115deg,
            transparent 0%,
            transparent 67%,
            rgba(145, 70, 255, 0.035) 67%,
            rgba(145, 70, 255, 0.035) 68%,
            transparent 68%
        );
}

.live-container {
    position: relative;
    z-index: 2;

    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 70px;
    align-items: center;
}


/* CONTENIDO */

.live-content {
    max-width: 650px;
}

.live-label {
    display: block;

    margin-bottom: 13px;

    color: var(--yellow);

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.live-content h2 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(3rem, 6vw, 5.7rem);
    font-weight: 900;

    line-height: 0.91;
    letter-spacing: -0.06em;
}

.live-content h2 span {
    color: #a970ff;
}

.live-content > p {
    max-width: 610px;

    margin: 27px 0 0;

    color: rgba(255, 255, 255, 0.55);

    font-size: 0.96rem;
    line-height: 1.8;
}


/* HORARIOS */

.live-schedule {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;

    max-width: 610px;

    margin-top: 35px;
}

.live-schedule-item {
    padding: 18px 20px;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.live-schedule-item span {
    display: block;

    margin-bottom: 7px;

    color: rgba(255, 255, 255, 0.42);

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.live-schedule-item strong {
    color: #ffffff;

    font-size: 0.86rem;
    font-weight: 900;
}


/* BOTÓN TWITCH */

.live-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    margin-top: 26px;
    padding: 0 25px;

    background: #9146ff;
    color: #ffffff;

    border-radius: 4px;

    text-decoration: none;

    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.live-button:hover {
    transform: translateY(-2px);
    background: #a970ff;
    box-shadow: 0 12px 30px rgba(145, 70, 255, 0.20);
}


/* VISUAL DERECHO */

.live-visual {
    position: relative;

    min-height: 450px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 35px;

    background:
        linear-gradient(
            145deg,
            rgba(145, 70, 255, 0.13),
            rgba(255, 255, 255, 0.018) 52%,
            rgba(255, 213, 0, 0.025)
        );

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;

    overflow: hidden;
}

.live-visual::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.018) 0,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px,
            transparent 18px
        );
}

.live-status {
    position: absolute;
    top: 22px;
    right: 24px;

    z-index: 3;

    padding: 8px 11px;

    background: rgba(145, 70, 255, 0.14);
    color: #b88cff;

    border: 1px solid rgba(169, 112, 255, 0.25);
    border-radius: 999px;

    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.live-screen {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 430px;
    min-height: 280px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 30px;

    background:
        linear-gradient(
            180deg,
            rgba(8, 9, 11, 0.10),
            rgba(8, 9, 11, 0.88)
        ),
        radial-gradient(
            circle at 72% 25%,
            rgba(145, 70, 255, 0.38),
            transparent 38%
        ),
        #111318;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;

    box-shadow:
        0 25px 65px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(145, 70, 255, 0.04);
}

.live-screen span {
    display: block;

    margin-bottom: 12px;

    color: #a970ff;

    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.live-screen strong {
    color: #ffffff;

    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 900;

    line-height: 0.82;
    letter-spacing: -0.07em;
}



/* ========================================
   INSCRIPCIONES / DISCORD
======================================== */

.join-section {
    position: relative;
    padding: 110px 6%;

    background:
        radial-gradient(
            circle at 18% 15%,
            rgba(255, 213, 0, 0.10),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #0a0b0d,
            #101216 60%,
            #0a0b0d
        );

    border-top: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.join-section::before {
    content: "";

    position: absolute;
    top: 0;
    left: 6%;

    width: 88%;
    height: 1px;

    background: linear-gradient(
        90deg,
        var(--yellow),
        rgba(255, 213, 0, 0)
    );
}

.join-container {
    position: relative;
    z-index: 2;

    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 70px;
    align-items: center;
}


/* BLOQUE PRINCIPAL */

.join-main {
    max-width: 650px;
}

.join-label {
    display: block;
    margin-bottom: 12px;

    color: var(--yellow);

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.join-main h2 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(3.2rem, 7vw, 6.2rem);
    font-weight: 900;

    line-height: 0.88;
    letter-spacing: -0.065em;
}

.join-main h2 span {
    color: var(--yellow);
}

.join-main > p {
    max-width: 590px;
    margin: 28px 0 0;

    color: rgba(255, 255, 255, 0.56);

    font-size: 0.98rem;
    line-height: 1.8;
}

.join-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    margin-top: 32px;
    padding: 0 27px;

    background: var(--yellow);
    color: #090a0c;

    border-radius: 4px;

    text-decoration: none;

    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.join-button:hover {
    transform: translateY(-2px);
    background: #ffe13b;
    box-shadow: 0 14px 34px rgba(255, 213, 0, 0.14);
}


/* PASOS */

.join-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.join-step {
    position: relative;

    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    gap: 20px;

    min-height: 120px;
    padding: 22px 24px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

.join-step:hover {
    transform: translateX(5px);
    border-color: rgba(255, 213, 0, 0.26);
    background:
        linear-gradient(
            135deg,
            rgba(255, 213, 0, 0.055),
            rgba(255, 255, 255, 0.018)
        );
}

.join-step-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    background: rgba(255, 213, 0, 0.08);
    color: var(--yellow);

    border: 1px solid rgba(255, 213, 0, 0.20);
    border-radius: 12px;

    font-size: 1.05rem;
    font-weight: 900;
}

.join-step h3 {
    margin: 0;

    color: #ffffff;

    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.01em;
}

.join-step p {
    margin: 8px 0 0;

    color: rgba(255, 255, 255, 0.48);

    font-size: 0.80rem;
    line-height: 1.6;
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
    position: relative;

    padding: 72px 6% 0;

    background:
        radial-gradient(
            circle at 88% 0%,
            rgba(255, 213, 0, 0.045),
            transparent 26%
        ),
        #07080a;

    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.site-footer::before {
    content: "";

    position: absolute;
    top: 0;
    left: 6%;

    width: 88%;
    height: 1px;

    background: linear-gradient(
        90deg,
        rgba(255, 213, 0, 0.95),
        rgba(255, 213, 0, 0.10) 38%,
        rgba(255, 213, 0, 0)
    );
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(260px, 1.15fr) 2fr;
    gap: 90px;

    padding-bottom: 58px;
}


/* MARCA */

.footer-brand {
    max-width: 330px;
}

.footer-brand img {
    display: block;

    width: 150px;
    height: auto;

    margin-bottom: 23px;
}

.footer-brand p {
    margin: 0;

    color: rgba(255, 255, 255, 0.46);

    font-size: 0.88rem;
    line-height: 1.75;
}


/* ENLACES */

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    gap: 45px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column > span {
    display: block;

    margin-bottom: 20px;

    color: var(--yellow);

    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.footer-column a {
    position: relative;

    display: inline-block;

    margin-bottom: 13px;

    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;

    font-size: 0.82rem;
    font-weight: 700;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-column a:last-child {
    margin-bottom: 0;
}

.footer-column a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.footer-column a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -4px;

    width: 0;
    height: 1px;

    background: var(--yellow);

    transition: width 0.2s ease;
}

.footer-column a:hover::after {
    width: 100%;
}


/* FRANJA INFERIOR */

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;

    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.07);

    color: rgba(255, 255, 255, 0.28);

    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.footer-bottom span:last-child {
    color: rgba(255, 213, 0, 0.62);
}

/* ========================================
   RESPONSIVE - TABLET Y MÓVIL
======================================== */

@media (max-width: 1200px) {

    .main-header {
        padding: 0 25px;
    }

    .main-nav {
        gap: 16px;
    }

    .main-nav a {
        font-size: 11px;
    }

    .logo {
        margin-right: 25px;
    }

    .logo img {
        width: 100px;
    }

    .hero,
    .next-race-section,
    .standings-section,
    .results-section,
    .news-section,
    .about-section,
    .live-section,
    .join-section {
        padding-left: 5%;
        padding-right: 5%;
    }

    .next-race-grid {
        grid-template-columns: 1.35fr 1fr 1fr;
    }

    .footer-container {
        gap: 55px;
    }
}


@media (max-width: 1024px) {

    body {
        overflow-x: hidden;
    }

    /* Cabecera provisional hasta crear el menú móvil */

    .main-header {
        height: 74px;
        padding: 0 22px;
        justify-content: space-between;
    }

    .main-nav {
        display: none;
    }

    .logo {
        margin-right: 0;
    }

    .logo img {
        width: 105px;
    }

    .discord-button {
        min-height: 40px;
        padding: 0 16px;
        font-size: 10px;
    }

    /* Hero */

    .hero {
        min-height: auto;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 95px;
        padding-bottom: 78px;
        background-position: 62% center;
    }

    .hero::before {
        top: 15%;
        height: 62%;
    }

    .hero-content {
        max-width: 760px;
    }

    .hero h1 {
        font-size: clamp(50px, 8vw, 78px);
        letter-spacing: -3px;
    }

    .hero-description {
        max-width: 600px;
    }

    .hero-next-race {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: 430px;
        margin-top: 55px;
    }

    /* Próxima carrera */

    .next-race-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .next-race-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .race-main-info {
        grid-column: 1 / -1;
        min-height: 210px;
    }

    .division-card {
        min-height: 200px;
    }

    /* Clasificación */

    .standings-section,
    .results-section,
    .news-section {
        padding-top: 78px;
        padding-bottom: 78px;
    }

    .standings-header,
    .standings-row {
        grid-template-columns: 75px minmax(200px, 1.5fr) minmax(150px, 1fr) 80px;
    }

    /* Resultados */

    #latest-results-list {
        gap: 14px;
    }

    .result-card {
        min-height: 290px;
    }

    .result-driver-image {
        height: 185px;
    }

    .result-driver-image img {
        height: 235px;
    }

    /* Noticias */

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-card-main {
        grid-column: 1 / -1;
    }

    /* Sobre HyperDrive */

    .about-section {
        padding-top: 85px;
        padding-bottom: 85px;
    }

    .about-grid {
        gap: 14px;
    }

    .about-card {
        min-height: 255px;
        padding: 24px;
    }

    /* Twitch */

    .live-section {
        padding-top: 88px;
        padding-bottom: 88px;
    }

    .live-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .live-content {
        max-width: 760px;
    }

    .live-visual {
        min-height: 380px;
    }

    .live-screen {
        max-width: 520px;
    }

    /* Inscripciones */

    .join-section {
        padding-top: 88px;
        padding-bottom: 88px;
    }

    .join-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .join-main {
        max-width: 760px;
    }

    .join-steps {
        max-width: 760px;
    }

    /* Footer */

    .site-footer {
        padding-left: 5%;
        padding-right: 5%;
    }

    .site-footer::before {
        left: 5%;
        width: 90%;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .footer-brand {
        max-width: 470px;
    }

    .footer-links {
        gap: 30px;
    }

    /* Páginas de noticias */

    .news-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 768px) {

    /* Cabecera */

    .main-header {
        height: 68px;
        padding: 0 18px;
    }

    .logo img {
        width: 96px;
    }

    .discord-button {
        min-height: 38px;
        padding: 0 13px;
        font-size: 9px;
        letter-spacing: 0.35px;
    }

    /* Hero */

    .hero {
        padding: 72px 6% 60px;
        background:
            linear-gradient(
                90deg,
                rgba(8, 9, 11, 0.98) 0%,
                rgba(8, 9, 11, 0.92) 50%,
                rgba(8, 9, 11, 0.55) 100%
            ),
            url("../images/hero/hero-hyperdrive.png");
        background-size: cover;
        background-position: 67% center;
    }

    .hero::before {
        width: 3px;
    }

    .hero-season {
        margin-bottom: 18px;
        font-size: 11px;
        letter-spacing: 2.8px;
    }

    .hero h1 {
        font-size: clamp(42px, 12vw, 64px);
        line-height: 0.92;
        letter-spacing: -2.4px;
    }

    .hero-description {
        margin-top: 24px;
        font-size: 15px;
        line-height: 1.65;
    }

    .hero-buttons {
        margin-top: 30px;
        flex-wrap: wrap;
    }

    .hero-next-race {
        max-width: 100%;
        margin-top: 42px;
    }

    /* Títulos de sección */

    .next-race-heading h2,
    .standings-heading h2,
    .results-heading h2,
    .news-heading h2 {
        letter-spacing: -1.5px;
    }

    /* Próxima carrera */

    .next-race-section,
    .standings-section,
    .results-section,
    .news-section,
    .about-section,
    .live-section,
    .join-section {
        padding-left: 6%;
        padding-right: 6%;
    }

    .next-race-section {
        padding-top: 68px;
        padding-bottom: 68px;
    }

    .next-race-heading {
        margin-bottom: 30px;
    }

    .next-race-grid {
        grid-template-columns: 1fr;
    }

    .race-main-info {
        grid-column: auto;
        min-height: 190px;
        padding: 28px;
    }

    .race-round {
        padding-right: 22px;
        margin-right: 22px;
    }

    .race-round strong {
        font-size: 58px;
    }

    .division-card {
        min-height: 170px;
        padding: 27px;
    }

    .division-label {
        margin-bottom: 15px;
    }

    .division-time {
        margin-top: 14px;
        font-size: 34px;
    }

    .next-race-actions {
        flex-wrap: wrap;
    }

    /* Clasificación */

    .standings-heading,
    .results-heading,
    .news-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .standings-tabs,
    .results-tabs {
        width: 100%;
    }

    .standings-tab,
    .results-tab {
        flex: 1;
        min-width: 0;
    }

    .standings-table {
        border-radius: 10px;
    }

    .standings-header,
    .standings-row {
        grid-template-columns: 58px minmax(0, 1fr) 72px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .standings-header span:nth-child(3),
    .standings-row .standings-team {
        display: none;
    }

    .standings-row {
        min-height: 66px;
    }

    .standings-driver {
        height: 66px;
        gap: 10px;
        min-width: 0;
    }

    .driver-photo-wrapper {
        width: 56px;
        height: 66px;
    }

    .driver-photo {
        width: 58px;
        height: 58px;
    }

    .driver-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .standings-footer,
    .results-footer {
        justify-content: stretch;
    }

    .standings-full-button,
    .results-full-button,
    .news-all-button {
        width: 100%;
    }

    /* Resultados */

    #latest-results-list {
        grid-template-columns: 1fr;
    }

    .result-card {
        min-height: 305px;
    }

    .result-driver-image {
        height: 205px;
    }

    .result-driver-image img {
        height: 265px;
    }

    /* Noticias */

    .news-grid,
    .news-page-grid {
        grid-template-columns: 1fr;
    }

    .news-card-main {
        grid-column: auto;
    }

    .news-card-main .news-image-placeholder,
    .news-image-placeholder {
        min-height: 210px;
    }

    .news-page-card {
        min-height: 0;
    }

    /* Sobre HyperDrive */

    .about-section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .about-intro {
        margin-bottom: 38px;
    }

    .about-intro h2 {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        min-height: 0;
    }

    .about-number {
        margin-bottom: 32px;
    }

    /* Twitch */

    .live-section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .live-content h2 {
        font-size: clamp(3rem, 13vw, 5rem);
    }

    .live-schedule {
        grid-template-columns: 1fr;
    }

    .live-visual {
        min-height: 330px;
        padding: 24px;
    }

    .live-screen {
        min-height: 245px;
        padding: 24px;
    }

    .live-screen strong {
        font-size: clamp(3rem, 14vw, 4.5rem);
    }

    /* Inscripciones */

    .join-section {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .join-main h2 {
        font-size: clamp(3rem, 14vw, 5.2rem);
    }

    .join-step {
        grid-template-columns: 62px 1fr;
        gap: 16px;
        min-height: 108px;
        padding: 18px;
    }

    .join-step-number {
        width: 52px;
        height: 52px;
    }

    /* Footer */

    .site-footer {
        padding: 58px 6% 0;
    }

    .site-footer::before {
        left: 6%;
        width: 88%;
    }

    .footer-container {
        padding-bottom: 45px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 38px 28px;
    }

    .footer-column:last-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        min-height: 76px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 8px;
    }

    /* Noticia individual */

    .article-page,
    .news-page {
        padding-left: 6%;
        padding-right: 6%;
    }

    .article-page {
        padding-top: 58px;
        padding-bottom: 78px;
    }

    .article-container h1 {
        font-size: clamp(2.6rem, 11vw, 4.2rem);
    }

    .article-image {
        margin-top: 32px;
    }

    .article-body {
        margin-top: 36px;
    }
}


@media (max-width: 560px) {

    /* Cabecera */

    .main-header {
        padding: 0 14px;
    }

    .logo img {
        width: 88px;
    }

    .discord-button {
        padding: 0 11px;
        font-size: 8.5px;
    }

    /* Hero */

    .hero {
        padding-top: 58px;
        padding-bottom: 52px;
    }

    .hero h1 {
        font-size: clamp(38px, 12.5vw, 54px);
        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-buttons {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-primary,
    .hero-secondary {
        width: 100%;
    }

    .hero-next-race {
        min-width: 0;
        padding: 16px 18px;
    }

    /* Próxima carrera */

    .next-race-heading h2 {
        font-size: clamp(34px, 10.5vw, 48px);
    }

    .next-race-heading p {
        line-height: 1.5;
    }

    .race-main-info {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .race-round {
        width: 100%;
        padding-right: 0;
        padding-bottom: 18px;
        margin-right: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .race-round strong {
        font-size: 50px;
    }

    .race-name h3 {
        font-size: 34px;
    }

    .next-race-actions {
        flex-direction: column;
    }

    .racehub-button,
    .twitch-button {
        width: 100%;
    }

    /* Clasificación */

    .standings-header,
    .standings-row {
        grid-template-columns: 48px minmax(0, 1fr) 58px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .standings-header {
        font-size: 0.58rem;
    }

    .standings-position {
        font-size: 0.95rem;
    }

    .standings-driver {
        font-size: 0.86rem;
    }

    .driver-photo-wrapper {
        width: 46px;
    }

    .driver-photo {
        width: 50px;
        height: 50px;
    }

    .standings-points {
        font-size: 0.98rem;
    }

    .standings-tab,
    .results-tab {
        padding: 11px 8px;
        font-size: 0.67rem;
    }

    /* Noticias */

    .news-content,
    .news-page-card-content {
        padding: 18px;
    }

    .news-page-card-image {
        height: 195px;
    }

    /* Sobre HyperDrive */

    .about-intro h2,
    .live-content h2,
    .join-main h2 {
        letter-spacing: -0.045em;
    }

    /* Twitch */

    .live-button,
    .join-button {
        width: 100%;
    }

    .live-visual {
        min-height: 280px;
        padding: 18px;
        border-radius: 14px;
    }

    .live-status {
        top: 14px;
        right: 14px;
    }

    .live-screen {
        min-height: 215px;
        padding: 20px;
    }

    /* Inscripciones */

    .join-step {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .join-step:hover {
        transform: none;
    }

    /* Footer */

    .footer-brand img {
        width: 130px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-column:last-child {
        grid-column: auto;
    }

    .footer-column > span {
        margin-bottom: 15px;
    }

    /* Noticia individual */

    .article-back {
        margin-bottom: 28px;
    }

    .article-container h1 {
        font-size: clamp(2.35rem, 12vw, 3.5rem);
    }

    .article-body,
    .article-body p:first-child {
        font-size: 0.98rem;
        line-height: 1.75;
    }
}


/* ========================================
   MENÚ MÓVIL
======================================== */

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.mobile-menu-toggle:hover {
    border-color: rgba(255, 213, 0, 0.45);
    background: rgba(255, 213, 0, 0.05);
}

.mobile-menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transition:
        transform 0.25s ease,
        opacity 0.2s ease,
        background 0.2s ease;
}

.mobile-menu-toggle.open span {
    background: var(--yellow);
}

.mobile-menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
}

@media (max-width: 1024px) {

    .mobile-menu-toggle {
        display: inline-flex;
        position: relative;
        z-index: 1102;
    }

    .main-header {
        gap: 12px;
    }

    .main-header .discord-button {
        margin-left: auto;
    }

    .mobile-menu {
        position: fixed;
        top: 74px;
        left: 0;
        right: 0;
        z-index: 1100;

        max-height: calc(100vh - 74px);
        overflow-y: auto;

        padding: 20px 22px 26px;

        background:
            radial-gradient(
                circle at 90% 5%,
                rgba(255, 213, 0, 0.08),
                transparent 28%
            ),
            rgba(8, 9, 11, 0.985);

        border-top: 1px solid rgba(255, 255, 255, 0.06);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(16px);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        pointer-events: none;

        transition:
            opacity 0.22s ease,
            visibility 0.22s ease,
            transform 0.22s ease;
    }

    .mobile-menu.open {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .mobile-menu-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .mobile-menu-nav a {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 0 15px;

        color: rgba(255, 255, 255, 0.78);
        text-decoration: none;

        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.08em;

        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.025);

        transition:
            color 0.2s ease,
            border-color 0.2s ease,
            background 0.2s ease;
    }

    .mobile-menu-nav a:hover {
        color: var(--yellow);
        border-color: rgba(255, 213, 0, 0.26);
        background: rgba(255, 213, 0, 0.04);
    }

    .mobile-menu-nav a.active {
        color: var(--yellow);
        border-color: rgba(255, 213, 0, 0.22);
        background: rgba(255, 213, 0, 0.045);
    }

    .mobile-menu-social {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;

        margin-top: 20px;
        padding-top: 20px;

        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-menu-social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        min-height: 42px;
        padding: 0 16px;

        color: rgba(255, 255, 255, 0.72);
        text-decoration: none;

        font-size: 0.68rem;
        font-weight: 900;
        letter-spacing: 0.09em;

        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 7px;
        background: rgba(255, 255, 255, 0.025);
    }

    .mobile-menu-social a:hover {
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.22);
    }
}

@media (max-width: 768px) {

    .mobile-menu {
        top: 68px;
        max-height: calc(100vh - 68px);
        padding: 18px 18px 24px;
    }

    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }

    .mobile-menu-nav {
        grid-template-columns: 1fr;
    }

    .mobile-menu-nav a {
        min-height: 44px;
    }
}

@media (max-width: 560px) {

    .main-header .discord-button {
        display: none;
    }

    .mobile-menu {
        top: 68px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .mobile-menu-social {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .mobile-menu-social a {
        min-width: 0;
        padding: 0 8px;
        font-size: 0.61rem;
    }
}
