/* ============================= */
/* SM RACING - TYPOGRAPHY GLOBAL */
/* ============================= */

:root {
    /* Colores principales */
    --sm-red: #ff2a2a;
    --sm-white: #ffffff;
    --sm-black: #050505;
    --sm-gray: rgba(255, 255, 255, 0.72);

    /* Fuentes */
    --font-title: 'Anton', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Tamaños desktop */
    --h1-size: clamp(3.8rem, 7vw, 6rem);
    --h2-size: clamp(1.4rem, 2.4vw, 2.1rem);
    --h3-size: clamp(1.1rem, 1.8vw, 1.45rem);
    --p-size: clamp(0.95rem, 1.2vw, 1.05rem);
    --button-size: 0.95rem;
}

/* RESET GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: #111;
    color: var(--sm-white);
    overflow-x: hidden;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}

/* Anclas bajo el navbar fijo */
[id] {
    scroll-margin-top: 84px;
}

img {
    max-width: 100%;
}

/* ============================= */
/* HEADINGS */
/* ============================= */

h1,
.h1 {
    font-family: var(--font-title);
    font-size: var(--h1-size);
    line-height: 0.95;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
}

h2,
.h2 {
    font-family: var(--font-body);
    font-size: var(--h2-size);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

h3,
.h3 {
    font-family: var(--font-body);
    font-size: var(--h3-size);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================= */
/* PARAGRAPH */
/* ============================= */

p,
.text-body {
    font-family: var(--font-body);
    font-size: var(--p-size);
    line-height: 1.65;
    font-weight: 400;
    color: var(--sm-gray);
}

/* ============================= */
/* LINKS */
/* ============================= */

a {
    color: inherit;
    text-decoration: none;
}

/* ============================= */
/* BUTTON GLOBAL */
/* ============================= */

button,
.btn {
    font-family: var(--font-body);
    font-size: var(--button-size);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Botón racing reutilizable */
.btn-racing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: transparent;
    border: none;
    cursor: pointer;
}

.btn-racing .btn-text {
    display: inline-block;

    background: var(--sm-red);
    color: var(--sm-black);

    padding: 13px 42px;

    font-family: var(--font-body);
    font-size: var(--button-size);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;

    transform: skew(-20deg);

    transition: background 0.25s ease, color 0.25s ease;
}

.btn-racing .btn-line {
    width: 14px;
    height: 32px;

    background: var(--sm-red);
    transform: skew(-20deg);

    transition: background 0.25s ease;
}

.btn-racing:hover .btn-text {
    background: var(--sm-white);
    color: var(--sm-black);
}

.btn-racing:hover .btn-line {
    background: var(--sm-white);
}

/* ============================= */
/* SPANS ÚTILES */
/* ============================= */

.text-red {
    color: var(--sm-red);
}

.text-white {
    color: var(--sm-white);
}

.text-muted {
    color: var(--sm-gray);
}

/* ============================= */
/* RESPONSIVE TABLET */
/* ============================= */

@media (max-width: 1024px) {
    :root {
        --h1-size: clamp(3.2rem, 8vw, 5rem);
        --h2-size: clamp(1.2rem, 2.4vw, 1.7rem);
        --h3-size: clamp(1rem, 2vw, 1.25rem);
        --p-size: 0.95rem;
        --button-size: 0.9rem;
    }
}

/* ============================= */
/* RESPONSIVE MOBILE */
/* ============================= */

@media (max-width: 768px) {
    :root {
        --h1-size: clamp(2.9rem, 12vw, 4.2rem);
        --h2-size: 1rem;
        --h3-size: 0.95rem;
        --p-size: 0.88rem;
        --button-size: 0.85rem;
    }

    h1,
    .h1 {
        letter-spacing: 1.5px;
    }

    h2,
    .h2 {
        letter-spacing: 1px;
    }

    h3,
    .h3 {
        letter-spacing: 0.8px;
    }

    p,
    .text-body {
        line-height: 1.55;
    }

    .btn-racing .btn-text {
        padding: 11px 28px;
    }

    .btn-racing .btn-line {
        width: 10px;
        height: 27px;
    }
}

/* ============================= */
/* MOBILE SMALL */
/* ============================= */

@media (max-width: 480px) {
    :root {
        --h1-size: 3rem;
        --h2-size: 0.9rem;
        --h3-size: 0.85rem;
        --p-size: 0.82rem;
        --button-size: 0.8rem;
    }

    h1,
    .h1 {
        letter-spacing: 1px;
    }

    .btn-racing .btn-text {
        padding: 10px 22px;
    }

    .btn-racing .btn-line {
        width: 8px;
        height: 24px;
    }
}

/* ============================= */
/* MOBILE EXTRA SMALL */
/* ============================= */

@media (max-width: 360px) {
    :root {
        --h1-size: 2.55rem;
        --h2-size: 0.78rem;
        --h3-size: 0.78rem;
        --p-size: 0.78rem;
        --button-size: 0.75rem;
    }

    .btn-racing .btn-text {
        padding: 9px 18px;
    }
}