/* =========================================================
   MEDIA MARATÓN DEL CALLE CALLE
   Landing Page 2027
========================================================= */

:root {
    --navy: #020b18;
    --navy-light: #08172b;
    --navy-card: #0b1b30;

    --blue: #075cff;
    --green: #8fd600;
    --green-hover: #a6f000;
    --orange: #ff6b00;

    --white: #ffffff;
    --text: #e8eef6;
    --muted: #aeb9c8;

    --border: rgba(255, 255, 255, 0.12);

    --shadow:
        0 20px 50px rgba(0, 0, 0, 0.35);

    --container: 1200px;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(
            circle at top right,
            rgba(0, 80, 180, 0.13),
            transparent 35%
        ),
        var(--navy);

    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.6;

    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(92%, var(--container));
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    background:
        rgba(2, 11, 24, 0.92);

    backdrop-filter: blur(15px);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);
}

.header__content {
    min-height: 78px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.brand {
    display: flex;

    align-items: center;

    gap: 10px;

    font-weight: 900;

    font-size: 15px;

    line-height: 1.05;

    text-transform: uppercase;
}

.brand__edition {
    font-size: 40px;

    font-style: italic;

    color: var(--blue);
}

.brand__text {
    display: flex;

    flex-direction: column;
}

.brand__text strong {
    font-size: 18px;

    color: var(--white);
}

.nav {
    display: flex;

    align-items: center;

    gap: 28px;
}

.nav a {
    position: relative;

    font-size: 14px;

    font-weight: 700;

    text-transform: uppercase;

    transition: 0.25s ease;
}

.nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 3px;

    background: var(--green);

    transition: 0.25s ease;
}

.nav a:hover {
    color: var(--green);
}

.nav a:hover::after {
    width: 100%;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 14px 25px;

    border-radius: 12px;

    font-size: 14px;

    font-weight: 900;

    text-transform: uppercase;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background:
        linear-gradient(
            135deg,
            var(--green),
            #68af00
        );

    color: #061100;

    box-shadow:
        0 8px 25px rgba(143, 214, 0, 0.28);
}

.btn--primary:hover {
    background: var(--green-hover);

    box-shadow:
        0 12px 35px rgba(143, 214, 0, 0.4);
}

.btn--orange {
    background:
        linear-gradient(
            135deg,
            #ff7b00,
            #ff4d00
        );

    color: var(--white);

    box-shadow:
        0 10px 30px rgba(255, 107, 0, 0.30);
}

.btn--orange:hover {
    box-shadow:
        0 15px 40px rgba(255, 107, 0, 0.45);
}

.btn--large {
    padding:
        17px 34px;

    font-size: 15px;

    border-radius: 14px;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 860px;

    position: relative;

    display: flex;

    align-items: center;

    padding-top: 100px;

    background-image:
        linear-gradient(
            90deg,
            rgba(0, 7, 18, 0.98) 0%,
            rgba(0, 9, 22, 0.91) 35%,
            rgba(0, 9, 22, 0.45) 62%,
            rgba(0, 9, 22, 0.15) 100%
        ),
        url("../img/hero.jpg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;
}

.hero::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 180px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            var(--navy)
        );
}

.hero__content {
    position: relative;

    z-index: 3;
}

.hero__info {
    max-width: 680px;
}

.hero__edition {
    display: inline-block;

    color: var(--blue);

    font-size: 44px;

    font-weight: 900;

    font-style: italic;

    margin-bottom: 5px;
}

.hero h1 {
    color: var(--white);

    font-size: clamp(50px, 7vw, 88px);

    line-height: 0.95;

    font-weight: 900;

    letter-spacing: -3px;

    text-transform: uppercase;

    margin-bottom: 28px;

    text-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero h1 span {
    display: block;
}

.hero__distances {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 26px;

    font-size: 45px;

    font-weight: 900;

    font-style: italic;
}

.distance--5,
.distance--21 {
    color: var(--green);
}

.distance--10 {
    color: var(--orange);
}

.hero__data {
    display: grid;

    gap: 5px;

    margin-bottom: 16px;

    font-size: 18px;
}

.hero__tagline {
    font-size: 20px;

    color: var(--muted);

    margin-bottom: 30px;
}


/* =========================================================
   COUNTDOWN
========================================================= */

.countdown {
    width: fit-content;

    display: grid;

    grid-template-columns:
        repeat(4, 100px);

    background:
        rgba(9, 26, 47, 0.85);

    border:
        1px solid rgba(255, 255, 255, 0.18);

    border-radius: 15px;

    overflow: hidden;

    margin-bottom: 28px;

    box-shadow: var(--shadow);

    backdrop-filter: blur(8px);
}

.countdown__item {
    padding:
        15px 10px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    border-right:
        1px solid rgba(255, 255, 255, 0.12);
}

.countdown__item:last-child {
    border-right: 0;
}

.countdown__item span {
    color: var(--green);

    font-size: 34px;

    font-weight: 900;

    line-height: 1;
}

.countdown__item small {
    margin-top: 7px;

    color: var(--muted);

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;
}


/* =========================================================
   GENERIC SECTIONS
========================================================= */

.section {
    padding:
        90px 0;
}

.section-title {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 18px;

    margin-bottom: 45px;

    text-align: center;
}

.section-title span {
    width: 70px;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--green)
        );
}

.section-title span:last-child {
    background:
        linear-gradient(
            90deg,
            var(--green),
            transparent
        );
}

.section-title h2 {
    color: var(--green);

    font-size: clamp(27px, 3vw, 38px);

    font-weight: 900;

    text-transform: uppercase;

    font-style: italic;
}


/* =========================================================
   EVENT
========================================================= */

.event {
    position: relative;

    background:
        linear-gradient(
            180deg,
            var(--navy),
            #061426
        );
}

.event-card {
    min-height: 470px;

    display: flex;

    align-items: center;

    border-radius: 25px;

    overflow: hidden;

    border:
        1px solid rgba(143, 214, 0, 0.35);

    box-shadow: var(--shadow);

    background-image:
        linear-gradient(
            90deg,
            rgba(1, 12, 27, 0.97) 0%,
            rgba(1, 12, 27, 0.85) 45%,
            rgba(1, 12, 27, 0.20) 80%
        ),
        url("../img/evento.jpg");

    background-position: center;

    background-size: cover;
}

.event-card__content {
    max-width: 570px;

    padding: 55px;
}

.eyebrow {
    color: var(--green);

    font-weight: 900;

    letter-spacing: 2px;
}

.event-card h2 {
    margin:
        10px 0 22px;

    font-size: clamp(35px, 5vw, 56px);

    line-height: 1;

    font-weight: 900;

    text-transform: uppercase;
}

.event-card h2 span {
    display: block;

    color: var(--green);
}

.event-card p {
    color: var(--muted);

    margin-bottom: 16px;

    font-size: 17px;
}


/* =========================================================
   DISTANCES
========================================================= */

.distances {
    background:
        #061426;
}

.distance-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 24px;
}

.race-card {
    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #10223a,
            #091629
        );

    border:
        1px solid rgba(143, 214, 0, 0.35);

    border-radius: 20px;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.2);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.race-card:hover {
    transform: translateY(-8px);

    border-color: var(--green);
}

.race-card--10 {
    border-color:
        rgba(255, 107, 0, 0.6);
}

.race-card__image {
    min-height: 260px;

    background-size: cover;

    background-position: center;

    position: relative;
}

.race-card__image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            transparent 45%,
            rgba(3, 11, 23, 0.9)
        );
}

.race-card__image--5 {
    background-image:
        url("../img/ruta-5k.jpg");
}

.race-card__image--10 {
    background-image:
        url("../img/ruta-10k.jpg");
}

.race-card__image--21 {
    background-image:
        url("../img/ruta-21k.jpg");
}

.race-card__body {
    padding:
        25px;
}

.race-card__title {
    margin-top: -60px;

    position: relative;

    z-index: 2;

    font-size: 54px;

    font-weight: 900;

    font-style: italic;

    color: var(--green);

    text-shadow:
        0 5px 15px rgba(0, 0, 0, 0.4);
}

.race-card--10 .race-card__title {
    color: var(--orange);
}

.race-card__stats {
    display: flex;

    justify-content: space-between;

    gap: 10px;

    margin:
        22px 0;

    padding-bottom: 18px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.12);

    font-weight: 700;
}

.race-card p {
    min-height: 82px;

    color: var(--muted);

    margin-bottom: 24px;
}

.btn--race {
    width: 100%;

    background: var(--green);

    color: #061200;
}


/* =========================================================
   REASONS
========================================================= */

.reasons {
    background:
        var(--navy);
}

.reasons-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.reason-card {
    display: flex;

    align-items: flex-start;

    gap: 20px;

    min-height: 180px;

    padding: 30px;

    border-radius: 18px;

    border:
        1px solid var(--border);

    background:
        linear-gradient(
            145deg,
            #0c1d33,
            #071426
        );

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.reason-card:hover {
    transform: translateY(-6px);

    border-color:
        rgba(143, 214, 0, 0.45);
}

.reason-card__icon {
    font-size: 45px;
}

.reason-card h3 {
    color: var(--white);

    margin-bottom: 10px;

    font-size: 19px;

    text-transform: uppercase;
}

.reason-card p {
    color: var(--muted);
}


/* =========================================================
   FINAL CTA
========================================================= */

.final-cta {
    position: relative;

    padding:
        110px 0;

    text-align: center;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(3, 12, 25, 0.80),
            rgba(3, 12, 25, 0.96)
        ),
        url("../img/evento.jpg");

    background-size: cover;

    background-position: center;
}

.final-cta__content {
    position: relative;

    z-index: 2;
}

.final-cta__question {
    font-size:
        clamp(38px, 6vw, 65px);

    line-height: 1;

    font-weight: 900;

    font-style: italic;

    text-transform: uppercase;

    margin-bottom: 15px;
}

.final-cta__question span {
    color: var(--green);
}

.final-cta__content > p:not(.final-cta__question) {
    color: var(--muted);

    margin-bottom: 28px;

    font-size: 18px;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    background:
        #010711;

    border-top:
        1px solid rgba(255, 255, 255, 0.08);

    padding:
        38px 0;
}

.footer__content {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    color: var(--muted);
}

.footer strong {
    display: block;

    color: var(--white);
}

.footer a {
    color: var(--green);

    font-weight: 900;
}


/* =========================================================
   FLOATING CTA
========================================================= */

.floating-cta {
    position: fixed;

    z-index: 900;

    right: 24px;
    bottom: 24px;

    padding:
        15px 25px;

    border-radius: 50px;

    background:
        linear-gradient(
            135deg,
            var(--orange),
            #ff4d00
        );

    color: var(--white);

    font-weight: 900;

    font-size: 13px;

    box-shadow:
        0 12px 40px rgba(255, 107, 0, 0.35);

    transition:
        transform 0.2s ease;
}

.floating-cta:hover {
    transform:
        translateY(-3px)
        scale(1.03);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .nav {
        display: none;
    }

    .distance-grid,
    .reasons-grid {
        grid-template-columns:
            1fr;
    }

    .race-card__image {
        min-height: 350px;
    }

    .hero {
        min-height: 800px;

        background-position:
            65% center;
    }

    .hero h1 {
        font-size: 60px;
    }

}


@media (max-width: 700px) {

    .header__content {
        min-height: 65px;
    }

    .header .btn {
        display: none;
    }

    .brand__edition {
        font-size: 30px;
    }

    .brand__text {
        font-size: 12px;
    }

    .brand__text strong {
        font-size: 14px;
    }


    /* HERO */

    .hero {
        min-height:
            auto;

        padding:
            125px 0 80px;

        background-position:
            70% center;

        background-image:
            linear-gradient(
                rgba(0, 7, 18, 0.75),
                rgba(0, 7, 18, 0.95)
            ),
            url("../img/hero.jpg");
    }

    .hero__edition {
        font-size: 34px;
    }

    .hero h1 {
        font-size:
            clamp(45px, 15vw, 62px);

        letter-spacing:
            -2px;
    }

    .hero__distances {
        font-size: 34px;
    }

    .hero__data {
        font-size: 15px;
    }

    .hero__tagline {
        font-size: 17px;
    }


    /* COUNTDOWN */

    .countdown {
        width: 100%;

        grid-template-columns:
            repeat(4, 1fr);
    }

    .countdown__item {
        padding:
            14px 5px;
    }

    .countdown__item span {
        font-size: 27px;
    }

    .countdown__item small {
        font-size: 9px;
    }


    /* EVENT */

    .section {
        padding:
            65px 0;
    }

    .section-title span {
        width: 30px;
    }

    .event-card {
        min-height: 500px;

        align-items: flex-end;

        background-image:
            linear-gradient(
                rgba(1, 12, 27, 0.2),
                rgba(1, 12, 27, 0.95)
            ),
            url("../img/evento.jpg");
    }

    .event-card__content {
        padding:
            30px;
    }

    .event-card h2 {
        font-size:
            38px;
    }


    /* CARDS */

    .race-card__image {
        min-height:
            250px;
    }

    .race-card__title {
        font-size:
            45px;
    }


    /* FINAL CTA */

    .final-cta {
        padding:
            80px 0;
    }


    /* FOOTER */

    .footer__content {
        flex-direction:
            column;

        text-align:
            center;
    }

    .floating-cta {
        right:
            14px;

        bottom:
            14px;
    }

}