:root {
    --red: #e62c20;
    --red-dark: #7e100f;
    --purple: #4e4b95;
    --purple-dark: #17153f;
    --ink: #160d18;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    margin: 0;
    font-family: "Archivo", Arial, sans-serif;
    color: var(--white);
    background: var(--white);
    overflow-x: hidden;
    --scroll-flow: 0;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

body::before {
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 92, 72, .75), transparent 28%),
        radial-gradient(circle at 82% 22%, rgba(108, 88, 210, .76), transparent 30%),
        radial-gradient(circle at 52% 82%, rgba(230, 44, 32, .55), transparent 32%),
        linear-gradient(135deg, #e62c20 0%, #a41755 46%, #4e4b95 100%);
    background-size: 140% 140%;
    animation: gradientFlow 16s ease-in-out infinite alternate;
}

body::after {
    opacity: .36;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .2), transparent 18%),
        radial-gradient(circle at 74% 62%, rgba(255, 255, 255, .16), transparent 20%);
    filter: blur(8px);
    transform: translate3d(calc(var(--scroll-flow) * -18px), calc(var(--scroll-flow) * 24px), 0);
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

main,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(18px, 4vw, 58px);
    background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, 0));
    transition: background .32s ease, box-shadow .32s ease, backdrop-filter .32s ease;
}

.rules-page .site-header,
.site-header.is-solid {
    background: var(--white);
    box-shadow: 0 1px 22px rgba(22, 13, 24, .08);
    backdrop-filter: blur(14px);
}

.brand img {
    width: clamp(132px, 15vw, 215px);
    height: auto;
    filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .25));
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 28px);
    padding: 0;
    color: var(--ink);
}

.main-nav a {
    position: relative;
    padding: 8px 0;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}

.main-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--red), var(--purple));
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform .34s cubic-bezier(.2, .9, .2, 1);
}

.main-nav a:not(.nav-cta)::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: linear-gradient(90deg, rgba(230, 44, 32, .34), rgba(78, 75, 149, .34));
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .34s ease, transform .34s ease;
}

.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta).is-active::after,
.main-nav a:not(.nav-cta)[aria-current]::after {
    transform: scaleX(1);
}

.main-nav a:not(.nav-cta):hover::before,
.main-nav a:not(.nav-cta).is-active::before,
.main-nav a:not(.nav-cta)[aria-current]::before {
    opacity: 1;
    transform: translateY(0);
}

.main-nav .nav-cta {
    padding: 10px 18px;
    color: var(--ink);
    background: var(--white);
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(22, 13, 24, .12);
    transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
}

.main-nav .nav-cta:hover {
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--purple));
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 18px 38px rgba(8, 7, 18, .22);
}

.menu-toggle {
    display: none;
    position: relative;
    z-index: 31;
    width: 46px;
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--ink);
    background: var(--white);
    box-shadow: 0 12px 30px rgba(22, 13, 24, .14);
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    left: 13px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .25s ease, opacity .25s ease, top .25s ease;
}

.menu-toggle span:nth-child(1) {
    top: 15px;
}

.menu-toggle span:nth-child(2) {
    top: 22px;
}

.menu-toggle span:nth-child(3) {
    top: 29px;
}

body.menu-open .menu-toggle span:nth-child(1) {
    top: 22px;
    transform: rotate(45deg);
}

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

body.menu-open .menu-toggle span:nth-child(3) {
    top: 22px;
    transform: rotate(-45deg);
}

.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 10px;
    padding: 112px clamp(16px, 4vw, 58px) 34px;
    color: var(--ink);
    background:
        linear-gradient(120deg, rgba(230, 44, 32, .16) 0 12%, transparent 12% 22%, rgba(78, 75, 149, .18) 22% 34%, transparent 34% 48%, rgba(230, 44, 32, .12) 48% 58%, transparent 58% 100%),
        var(--white);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -8vw -20vw -8vw;
    height: 46vw;
    min-height: 420px;
    background: linear-gradient(90deg, rgba(230, 44, 32, .22), rgba(78, 75, 149, .22));
    border-radius: 50% 50% 0 0;
    transform: rotate(-2deg);
    z-index: 0;
    pointer-events: none;
}

.stripe-field {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .75;
    background-image:
        linear-gradient(110deg, transparent 0 18%, rgba(230, 44, 32, .35) 18% 21%, transparent 21% 37%, rgba(78, 75, 149, .34) 37% 40%, transparent 40% 100%),
        linear-gradient(70deg, transparent 0 28%, rgba(78, 75, 149, .26) 28% 31%, transparent 31% 62%, rgba(230, 44, 32, .24) 62% 65%, transparent 65% 100%);
    transform: translateY(calc(var(--scroll-flow) * -26px));
}

.hero-copy,
.hero-date-card,
.hero-teams {
    position: relative;
    z-index: 2;
}

.hero-copy {
    grid-row: 2;
    align-self: start;
    max-width: 980px;
    justify-self: center;
    text-align: center;
    margin-top: 90px;
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .18em;
}

.hero h1 {
    margin: 0;
    max-width: 900px;
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: clamp(38px, 6vw, 92px);
    line-height: .86;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero-lead {
    max-width: 620px;
    margin: 18px auto 0;
    font-size: clamp(17px, 1.8vw, 22px);
    line-height: 1.2;
    font-weight: 650;
}

.hero-actions {
    position: relative;
    z-index: 3;
    grid-row: 4;
    justify-self: center;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
}

.hero-actions .button {
    position: relative;
    z-index: 4;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 15px 22px;
    border-radius: 999px;
    font-weight: 900;
    text-transform: uppercase;
    transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.button-light {
    color: var(--ink);
    background: var(--white);
    border: 1px solid rgba(22, 13, 24, .12);
    box-shadow: 0 14px 34px rgba(8, 7, 18, .12);
}

.button-light:hover {
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--purple));
    border-color: rgba(255, 255, 255, .35);
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 22px 46px rgba(8, 7, 18, .26);
}

.button-ghost {
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .1);
}

.hero-date-card {
    align-self: center;
    justify-self: center;
    width: min(100%, 860px);
    padding: clamp(24px, 4vw, 42px);
    margin-top: 0;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 34px;
    text-align: center;
    background: rgba(20, 12, 26, .42);
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 90px rgba(0, 0, 0, .18);
}

.countdown-section {
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    display: grid;
    place-items: center;
    padding: clamp(74px, 10vw, 136px) clamp(18px, 5vw, 74px);
    background: transparent;
}

.countdown-section::before {
    content: "";
    position: absolute;
    inset: 4vw auto auto -4vw;
    width: min(34vw, 430px);
    aspect-ratio: 1;
    opacity: .46;
    background-image:
        url("../img/adorno_morado.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: drop-shadow(0 28px 34px rgba(58, 9, 20, .2));
    transform: translate3d(calc(var(--scroll-flow) * -18px), calc(var(--scroll-flow) * 20px), 0) rotate(-9deg);
}

.countdown-section::after {
    content: "";
    position: absolute;
    inset: auto -5vw 3vw auto;
    width: min(33vw, 420px);
    aspect-ratio: 1;
    opacity: .42;
    background-image:
        url("../img/adorno_rojo.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: drop-shadow(0 28px 34px rgba(28, 18, 66, .22));
    transform: translate3d(calc(var(--scroll-flow) * 18px), calc(var(--scroll-flow) * -18px), 0) rotate(10deg);
}

.countdown-section .hero-date-card {
    position: relative;
    z-index: 2;
    width: min(100%, 1120px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.countdown-section .hero-date-card::before {
    content: "";
    display: block;
    width: min(100%, 820px);
    height: 1px;
    margin: 0 auto clamp(22px, 3vw, 38px);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
}

.date-label {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .18em;
}

.hero-date-card time {
    display: block;
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: clamp(28px, 4.8vw, 72px);
    line-height: .88;
    font-weight: 950;
    text-transform: uppercase;
    text-wrap: balance;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(10px, 1.6vw, 20px);
    margin-top: clamp(30px, 4vw, 48px);
}

.countdown div {
    position: relative;
    min-width: 0;
    padding: clamp(18px, 3vw, 28px) clamp(10px, 2vw, 18px);
    border-top: 1px solid rgba(255, 255, 255, .52);
    border-bottom: 1px solid rgba(255, 255, 255, .22);
    border-radius: 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06));
    backdrop-filter: blur(12px);
}

.countdown div::before,
.countdown div::after {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .42), transparent);
}

.countdown div::before {
    left: 0;
}

.countdown div::after {
    right: 0;
}

.countdown strong {
    display: block;
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: clamp(42px, 7vw, 92px);
    line-height: .78;
}

.countdown span {
    display: block;
    margin-top: 8px;
    font-size: clamp(11px, 1.2vw, 15px);
    font-weight: 900;
    text-transform: uppercase;
}

.hero-teams {
    grid-row: 1;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0;
    width: min(1360px, 100%);
    margin: 0 auto;
    align-self: end;
    transform: translateY(calc(var(--scroll-flow) * -34px));
}

.team-art {
    width: min(50vw, 650px);
    max-height: 50vh;
    object-fit: contain;
    filter: drop-shadow(0 30px 34px rgba(25, 10, 24, .22));
    transition: transform .16s linear;
}

.team-art-left {
    justify-self: start;
    transform: translateX(calc(20px + var(--scroll-flow) * 70px)) rotate(calc(-2deg + var(--scroll-flow) * -3deg));
}

.team-art-right {
    justify-self: end;
    transform: translateX(calc(-20px + var(--scroll-flow) * -70px)) rotate(calc(2deg + var(--scroll-flow) * 3deg));
}

.versus {
    align-self: center;
    display: grid;
    place-items: center;
    width: clamp(72px, 11vw, 142px);
    aspect-ratio: 1;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--purple));
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: clamp(27px, 4vw, 60px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
    transform: scale(calc(1 + var(--scroll-flow) * .12)) rotate(calc(var(--scroll-flow) * 18deg));
}

.hero-bottom {
    position: relative;
    z-index: 2;
    grid-row: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--ink);
}

.hero-bottom time {
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: clamp(22px, 3vw, 44px);
    text-transform: uppercase;
}

.ticker {
    position: relative;
    z-index: 2;
    overflow: hidden;
    color: var(--ink);
    background: var(--white);
    border-top: 1px solid rgba(22, 13, 24, .18);
    border-bottom: 1px solid rgba(22, 13, 24, .18);
}

.ticker::before,
.ticker::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: clamp(72px, 12vw, 190px);
    pointer-events: none;
}

.ticker::before {
    left: 0;
    background: linear-gradient(90deg, var(--white), rgba(255, 248, 235, 0));
}

.ticker::after {
    right: 0;
    background: linear-gradient(270deg, var(--white), rgba(255, 248, 235, 0));
}

.ticker div {
    display: flex;
    width: max-content;
    animation: ticker 24s linear infinite;
}

.ticker span {
    padding: 18px 24px;
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: clamp(24px, 4vw, 58px);
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.section {
    padding: clamp(72px, 10vw, 130px) clamp(20px, 5vw, 74px);
}

.section-heading {
    position: relative;
    max-width: 920px;
    margin-bottom: 34px;
    padding-top: 22px;
}

.section-heading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: min(220px, 42vw);
    height: 7px;
    background:
        linear-gradient(90deg, var(--red) 0 44%, transparent 44% 56%, var(--purple) 56% 100%);
    filter:
        drop-shadow(0 1px 0 rgba(255, 255, 255, .75))
        drop-shadow(0 -1px 0 rgba(255, 255, 255, .75))
        drop-shadow(1px 0 0 rgba(255, 255, 255, .75))
        drop-shadow(-1px 0 0 rgba(255, 255, 255, .75));
}

.section-heading h2 {
    margin: 0;
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: clamp(38px, 6vw, 65px);
    line-height: .9;
    text-transform: uppercase;
}

.duel-section,
.teams-section {
    color: var(--white);
    background: transparent;
}

.duel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.duel-grid article {
    min-height: 290px;
    padding: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .14);
}

.duel-grid span {
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: 54px;
    color: rgba(255, 255, 255, .28);
}

.duel-grid h3 {
    margin: 60px 0 12px;
    font-size: 26px;
    text-transform: uppercase;
}

.duel-grid p,
.team-card p,
.split-info p,
.info-panel p {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 600;
}

.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.gradient-section {
    color: var(--white);
    background: transparent;
}

.split-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-width: 1160px;
}

.split-info .button {
    margin-top: clamp(28px, 4vw, 48px);
}

.split-info p,
.info-panel p {
    max-width: 760px;
    font-size: clamp(20px, 2vw, 22px);
}

.rules-section {
    color: var(--white);
    background: transparent;
}

.route-section {
    color: var(--white);
    background: transparent;
    --route-progress: 0;
    min-height: 210vh;
}

.route-layout {
    position: sticky;
    top: 96px;
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(420px, 1fr);
    align-items: stretch;
    gap: clamp(20px, 4vw, 52px);
}

.route-copy {
    position: relative;
    min-height: min(86vh, 860px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 28px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .28);
}

.route-copy p {
    max-width: 560px;
    margin: 0;
    font-size: clamp(20px, 2vw, 22px);
    line-height: 1.28;
    font-weight: 620;
}

.route-detail {
    position: sticky;
    top: clamp(210px, 34vh, 360px);
    max-width: 520px;
    margin-top: clamp(28px, 8vh, 96px);
    margin-bottom: clamp(82px, 14vh, 170px);
    padding: 22px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .3);
    transform: translateY(calc(var(--route-progress) * 7vh));
    transition: transform .24s ease;
}

.route-detail span {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.route-detail strong {
    display: block;
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: clamp(30px, 3vw, 52px);
    line-height: .9;
    text-transform: uppercase;
}

.route-detail p {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.35;
}

.route-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    max-width: 520px;
    margin-top: auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .24);
}

.route-stats div {
    padding: 16px 14px;
    background: rgba(255, 255, 255, .1);
}

.route-stats strong,
.route-stats span {
    display: block;
}

.route-stats strong {
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: clamp(22px, 2vw, 34px);
    line-height: .9;
    text-transform: uppercase;
}

.route-stats span {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .72;
}

.route-section .button-light {
    align-self: flex-start;
    color: var(--ink);
    background: var(--white);
}

.route-map {
    position: relative;
    overflow: hidden;
    min-height: min(86vh, 860px);
    margin: 0;
    background: transparent;
}

.route-svg {
    width: 100%;
    height: 100%;
    min-height: min(86vh, 860px);
    display: block;
}

.city-lines path {
    fill: none;
    stroke: rgba(255, 255, 255, .28);
    stroke-width: 1.2;
}

.district-labels text,
.street-labels text,
.landmark-labels text {
    fill: rgba(255, 255, 255, .86);
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: 12px;
    text-transform: uppercase;
}

.street-labels text {
    font-size: 10px;
}

.landmark-labels text {
    font-size: 17px;
}

.route-shadow,
.route-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.route-shadow {
    stroke: rgba(255, 255, 255, .18);
    stroke-width: 17;
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - var(--route-progress));
}

.route-line {
    stroke: var(--white);
    stroke-width: 7;
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - var(--route-progress));
}

.route-label circle {
    fill: var(--white);
}

.route-label text {
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: 18px;
    fill: var(--white);
}

.route-label text + text {
    font-size: 11px;
}

.route-finish-label text + text,
.route-start-label text + text {
    font-size: 10px;
}

.route-finish-label circle {
    fill: var(--white);
}

.route-finish-label text {
    fill: var(--white);
}

.map-point,
.water-point {
    cursor: pointer;
    outline: none;
}

.map-point circle {
    fill: rgba(255, 255, 255, .08);
    stroke: var(--white);
    stroke-width: 5;
    transform-box: fill-box;
    transform-origin: center;
    animation: routePointPulse 1.9s ease-in-out infinite;
    transition: fill .2s ease, stroke .2s ease, transform .2s ease;
}

.map-point text,
.water-point text {
    fill: var(--white);
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: 13px;
    text-anchor: middle;
}

.map-point:hover circle,
.map-point:focus circle,
.map-point.is-active circle {
    fill: var(--white);
    stroke: var(--white);
    animation-play-state: paused;
    transform: scale(1.12);
}

.map-point:hover text,
.map-point:focus text,
.map-point.is-active text {
    fill: var(--white);
}

.water-point circle {
    fill: rgba(255, 255, 255, .16);
    stroke: var(--white);
    stroke-width: 4;
}

.water-point text {
    text-anchor: start;
    font-size: 14px;
}

.water-point:hover circle,
.water-point:focus circle {
    fill: rgba(255, 255, 255, .32);
}

@keyframes routePointPulse {
    0%,
    100% {
        stroke-width: 5;
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }

    50% {
        stroke-width: 8;
        transform: scale(1.14);
        filter: drop-shadow(0 0 11px rgba(255, 255, 255, .72));
    }
}

.info-panel {
    max-width: 980px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .28);
}

.rules-section .button-light {
    color: var(--ink);
    background: var(--white);
}

.rules-section .button-ghost,
.edition-section .button-ghost {
    color: var(--ink);
    border-color: rgba(22, 13, 24, .35);
    background: rgba(255, 255, 255, .42);
}

.edition-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: grid;
    align-items: center;
    color: var(--white);
    background: transparent;
}

.edition-layout {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(34px, 6vw, 96px);
}

.edition-panel {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.edition-panel p {
    max-width: 520px;
    margin: 0 0 28px;
    font-size: clamp(18px, 1.7vw, 24px);
    line-height: 1.32;
    font-weight: 620;
}

.edition-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, .74);
    border-bottom: 1px solid rgba(255, 255, 255, .74);
}

.link-resultado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 650;
}

.link-resultado:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.arrow {
  flex: 0 0 auto;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.link-resultado:hover .arrow {
  transform: translateX(8px);
  opacity: 1;
}


.photo-river {
    position: relative;
    height: min(72vh, 680px);
    min-height: 520px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    overflow: hidden;
    mask-image: linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent);
}

.photo-river::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 24%;
    background: linear-gradient(180deg, transparent, rgba(8, 10, 18, .72));
    pointer-events: none;
}

.photo-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
    will-change: transform;
}

.photo-column-up {
    animation: photoRiverUp 28s linear infinite;
}

.photo-column-down {
    animation: photoRiverDown 30s linear infinite;
    transform: translateY(-50%);
}

.photo-column img {
    width: 100%;
    aspect-ratio: 1.45;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 22px 60px rgba(7, 8, 15, .24);
}

.registration-info {
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(360px, 1.3fr);
    gap: 14px;
    margin: clamp(28px, 4vw, 46px) 0 clamp(24px, 4vw, 42px);
    color: var(--white);
}

.registration-info__intro,
.registration-prices article {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid rgba(255, 255, 255, .18);
    background: linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .045));
}

.registration-info__intro::before,
.registration-prices article::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    width: 122px;
    height: 6px;
    background: linear-gradient(90deg, var(--red) 0 42%, transparent 42% 55%, var(--purple) 55% 100%);
    filter:
        drop-shadow(0 1px 0 rgba(255, 255, 255, .72))
        drop-shadow(0 -1px 0 rgba(255, 255, 255, .72))
        drop-shadow(1px 0 0 rgba(255, 255, 255, .72))
        drop-shadow(-1px 0 0 rgba(255, 255, 255, .72));
}

.registration-info__intro {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.registration-info__intro span,
.registration-prices article > span,
.registration-prices small {
    display: block;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.registration-info__intro span,
.registration-prices article > span {
    margin-bottom: 14px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
}

.registration-info__intro p {
    max-width: 360px;
    margin: 0;
    font-size: clamp(20px, 2vw, 24px);
    line-height: 1.1;
    font-weight: 850;
}

.registration-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.registration-prices article {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.registration-prices strong {
    display: block;
    margin-bottom: 14px;
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: clamp(40px, 5vw, 60px);
    line-height: .78;
    letter-spacing: 0;
}

.registration-prices p {
    max-width: 410px;
    margin: 0 0 16px;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.18;
    font-weight: 760;
}

.registration-prices small {
    color: rgba(255, 255, 255, .7);
    font-size: 11px;
}

.team-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.team-card {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(22px, 4vw, 42px);
    border-radius: 30px;
    isolation: isolate;
}

.team-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0));
}

.red-team {
    background: linear-gradient(145deg, #ff4a3f, #b51219 65%, #4b090c);
}

.purple-team {
    background: linear-gradient(145deg, #7c72ff, #4e4b95 62%, #17153f);
}

.team-card img {
    position: absolute;
    right: -6%;
    bottom: 8%;
    z-index: -1;
    width: min(66%, 520px);
    max-height: 84%;
    object-fit: contain;
    opacity: .95;
    transition: transform .45s ease;
}

.team-card:hover img {
    transform: translateY(-10px) scale(1.04);
}

.team-card h3 {
    margin: 4px 0 0;
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: clamp(42px, 6vw, 84px);
    line-height: .86;
    text-transform: uppercase;
}

.impact-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    color: var(--ink);
   background: linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .14);
}

.impact-band div {
    min-height: 170px;
    padding: 26px;
    border-right: 1px solid rgba(22, 13, 24, .18);
}

.impact-band strong {
    display: block;
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: clamp(44px, 7vw, 104px);
    line-height: .82;
}

.impact-band span {
    display: block;
    margin-top: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.sponsors-section {
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 1));
    backdrop-filter: blur(18px);
}

.sponsor-group {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 24px;
    padding: 26px 0;
    border-top: 1px solid rgba(22, 13, 24, .16);
}

.sponsor-group p {
    margin: 0;
    font-weight: 900;
    text-transform: uppercase;
}

.sponsor-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 26px 38px;
}

.sponsor-logos img {
    width: auto;
    max-width: 148px;
    max-height: 58px;
    filter: grayscale(1);
}

.subpage-hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 82px);
    padding: 132px clamp(20px, 5vw, 74px) 56px;
    color: var(--white);
    overflow: hidden;
}

.subpage-hero::before {
    content: none;
}

.subpage-hero-copy {
    max-width: 760px;
}

.subpage-hero h1 {
    margin: 0;
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: clamp(36px, 5.1vw, 70px);
    line-height: .86;
    text-transform: uppercase;
}

.subpage-hero-copy p:not(.eyebrow) {
    max-width: 620px;
    margin: 28px 0 0;
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1.22;
    font-weight: 680;
}

.subpage-hero .button {
    margin-top: 34px;
}

.subpage-hero-art {
    position: relative;
}

.subpage-hero-art::before {
    content: "";
    position: absolute;
    inset: 12% 8% 4%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 62%);
    filter: blur(10px);
}

.subpage-hero-art img {
    position: relative;
    width: min(100%, 780px);
    margin-left: auto;
    filter: drop-shadow(0 34px 38px rgba(8, 7, 18, .24));
}

.rules-content {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.rules-intro {
    max-width: 980px;
    margin-bottom: clamp(36px, 5vw, 68px);
}

.rules-intro h2 {
    margin: 0;
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: clamp(46px, 7vw, 54px);
    line-height: .9;
    text-transform: uppercase;
}

.rules-list {
    display: grid;
    gap: 10px;
}

.rule-card {
    border-top: 1px solid rgba(255, 255, 255, .28);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(12px);
}

.rule-card summary {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 18px;
    min-height: 86px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
}

.rule-card summary::-webkit-details-marker {
    display: none;
}

.rule-card summary::after {
    content: "+";
    justify-self: end;
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: 38px;
    line-height: 1;
    color: rgba(255, 255, 255, .82);
    transition: transform .32s ease, color .32s ease;
}

.rule-card[open] summary::after {
    transform: rotate(45deg);
    color: var(--white);
}

.rule-card summary span {
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: 30px;
    color: rgba(255, 255, 255, .45);
}

.rule-card summary strong {
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: clamp(15px, 1.53vw, 25px);
    line-height: .95;
    text-transform: uppercase;
}

.rule-body {
    max-width: 980px;
    padding: 0 22px 28px 116px;
    opacity: 0;
    transform: translateY(14px);
    transition:
        height .48s cubic-bezier(.2, .72, .18, 1),
        opacity .48s cubic-bezier(.2, .72, .18, 1),
        transform .48s cubic-bezier(.2, .72, .18, 1);
}

.rule-card[open] .rule-body {
    opacity: 1;
    transform: translateY(0);
}

.rule-card.is-closing .rule-body {
    opacity: 0;
    transform: translateY(8px);
}

.rule-body p,
.rule-body li {
    font-size: 18px;
    line-height: 1.45;
    font-weight: 620;
}

.rule-body p {
    margin: 0 0 14px;
}

.rule-body ul {
    margin: 0 0 16px;
    padding-left: 22px;
}

.rule-body a {
    color: var(--white);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.redes_sociales{
    display: flex;
    justify-content: center;
    align-items: center;

}

.fb {
    background: url(../img/fb.svg) no-repeat center center;
    width: 23px;
    height: 36px;
    display: block;
    padding: 6px 30px;
    margin-top: 13px;
}

a:hover .fb {
    background: url(../img/fb_blanco.svg) no-repeat center center;
}

.tw {
    background: url(../img/tw.svg) no-repeat center center;
    width: 36px;
    height: 37px;
    display: block;
    padding: 2px 18px;
    margin-top: 14px;
    margin-left: 12px;
}

a:hover .tw {
    background: url(../img/tw_blanco.svg) no-repeat center center;
}

.ig {
    background: url(../img/ig.svg) no-repeat center center;
    width: 36px;
    height: 34px;
    display: block;
    padding: 2px 18px;
    margin-top: 14px;
    margin-left: 12px;
}

a:hover .ig {
    background: url(../img/ig_blanco.svg) no-repeat center center;
}

.mail {
    background: url(../img/sobre.svg) no-repeat center center;
    width: 36px;
    height: 34px;
    display: block;
    padding: 2px 18px;
    margin-top: 14px;
    margin-left: 12px;
}

a:hover .mail {
    background: url(../img/sobre_blanco.svg) no-repeat center center;
}

.btn-floating {
    width: 65px;
    height: 65px;
    position: relative;
    z-index: 1;
    vertical-align: middle;
    display: inline-block;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    margin: 15px;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
}
.btn-floating {
    border: 1px solid #160d18;
}

.btn-floating:hover {
    background: #160d18;
    box-shadow: 0 8px 17px 0 rgba(51,8,110,0.2),0 6px 20px 0 rgba(51, 8, 110, 0.19)
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px clamp(20px, 5vw, 74px);
    color: var(--ink);
    background: var(--white);
}
.colaboradores{
    text-align: center;
    border-bottom: 1px solid #9f9f9f;
    width: 50%;
    margin: 0 auto;
    display: table;
    padding-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
    margin-top:60px;
}
.cont_logos{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(14px, 3vw, 34px);
    margin-top: 45px;
}
.cont_logos img{
    max-width: min(190px, 42vw);
    height: auto;
    margin: 10px 0;
}
    .sanitas{
        width: 150px;
        height: auto;
    }

    .bm{
        width: 150px;
        height: auto;
    }
  

    .plaza_rio{
        width:200px;
        height: auto;
    }
    .amix{
        width: 150px;
        height: auto;
    }
    .sanicentro{
        width:100px;
        height: auto;
    }
    .lastlap{
        width: 110px;
        height: auto;
    }
    .juver{
        width: 96px;
        height: auto;
    }
    .hoka{
        width: 160px;
        height: auto;
    }
    .ue_events{
        width: 110px;
        height: auto;
    }
    .madrid{
        width: 150px;
        height: auto;
    }
    .rafael{
        width: 130px;
        height: auto;
    }
.classification-page {
    color: var(--white);
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 92, 72, .72), transparent 30%),
        radial-gradient(circle at 82% 22%, rgba(108, 88, 210, .72), transparent 32%),
        linear-gradient(135deg, var(--red) 0%, #a41755 48%, var(--purple) 100%);
    background-attachment: fixed;
}

.classification-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding-top: 90px;
}

.classification-hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, .8fr);
    align-items: center;
    gap: clamp(20px, 5vw, 80px);
    padding: clamp(54px, 8vw, 112px) clamp(20px, 6vw, 86px);
    color: var(--ink);
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--team-accent) 18%, transparent) 0 13%, transparent 13% 28%, color-mix(in srgb, var(--team-accent) 12%, transparent) 28% 31%, transparent 31%),
        var(--white);
}

.classification-hero::before {
    content: "";
    position: absolute;
    inset: -12% -8% auto auto;
    width: min(48vw, 620px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--team-accent) 42%, transparent), transparent 64%);
    opacity: .9;
}

.classification-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.classification-hero h1 {
    margin: 0;
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: clamp(40px, 10vw, 90px);
    line-height: .78;
    text-transform: uppercase;
}

.classification-hero p:not(.eyebrow) {
    max-width: 610px;
    margin: 22px 0 0;
    font-size: clamp(18px, 2vw, 25px);
    font-weight: 760;
    line-height: 1.08;
}

.classification-team-art {
    position: relative;
    z-index: 1;
    justify-self: center;
    width: min(100%, 560px);
    max-height: 430px;
    object-fit: contain;
    filter: drop-shadow(0 26px 34px rgba(22, 13, 24, .24));
}

.back-link {
    display: inline-flex;
    margin-bottom: 28px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.back-link::before {
    content: "";
    width: 36px;
    height: 2px;
    margin: .6em 10px 0 0;
    background: currentColor;
}

.classification-shell {
    position: relative;
    width: min(1180px, calc(100% - 36px));
    margin: 10px auto 15px;
    padding: clamp(30px, 5vw, 58px);
}

.classification-section-head {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.classification-section-head h2,
.classification-search-card h2 {
    margin: 0;
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: clamp(34px, 5vw, 42px);
    line-height: .84;
    text-transform: uppercase;
}

.classification-section-head p:not(.eyebrow),
.classification-search-card p {
    max-width: 660px;
    margin: 0;
    font-size: 17px;
    font-weight: 720;
    line-height: 1.35;
}

.podium-grid,
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: clamp(42px, 7vw, 82px);
}

.podium-grid article,
.category-grid article,
.classification-search-card {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, .46);
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
}

.podium-grid article,
.category-grid article {
    padding: clamp(22px, 3vw, 34px);
}

.category-grid article {
    padding-block: clamp(18px, 2.5vw, 28px);
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, .74);
    border-bottom: 1px solid rgba(255, 255, 255, .74);
}

.podium-grid h3,
.category-grid h3 {
    margin: 0 0 18px;
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: clamp(20px, 2vw, 24px);
    line-height: .9;
    text-transform: uppercase;
}

.podium-list {
    display: grid;
    gap: 12px;
}

.podium-list a,
.category-grid a {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 66px;
    color: var(--white);
    transition: transform .22s ease, color .22s ease, background .22s ease;
}

.podium-list a {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.podium-list a:hover {
    transform: translateX(10px);
    color: color-mix(in srgb, var(--team-accent) 68%, white);
}


.podium-list span {
    display: grid;
    place-items: center;
    width: 42px;
    aspect-ratio: 1;
    border-radius: 50%;
    color: var(--ink);
    background: var(--white);
    font-family: "Archivo Black", "Archivo", sans-serif;
}

.podium-list strong {
    min-width: 0;
    font-size: clamp(16px, 2vw, 22px);
    text-transform: uppercase;
}

.podium-list em {
    font-style: normal;
    font-weight: 900;
}

.classification-search-card {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(280px, .6fr);
    align-items: end;
    gap: 24px;
    margin-bottom: clamp(42px, 7vw, 82px);
    padding: clamp(24px, 4vw, 42px);
}

.classification-search-card form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.classification-search-card input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, .12);
    font: inherit;
    font-weight: 800;
}

.classification-search-card input::placeholder {
    color: rgba(255, 255, 255, .72);
}

.category-grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 70px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .2);
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: clamp(20px, 2vw, 24px);
    line-height: .92;
    text-transform: uppercase;
}

.category-grid a::after {
    content: "→";
    flex: 0 0 auto;
    font-family: "Archivo", Arial, sans-serif;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 300;
    line-height: 1;
    opacity: .9;
    transition: transform .22s ease, opacity .22s ease;
}

.category-grid a:hover::after {
    opacity: 1;
    transform: translateX(8px);
}

.classification-table-wrap {
    overflow-x: auto;
    margin-top: 20px;
}

.classification-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.classification-table th,
.classification-table td {
    padding: 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    text-align: left;
}

.classification-table th {
    color: color-mix(in srgb, var(--team-accent) 52%, white);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.classification-table td {
    font-size: 16px;
    font-weight: 760;
}

.classification-table td:first-child {
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: 24px;
}

.classification-table a {
    color: var(--white);
    text-transform: uppercase;
    transition: color .2s ease;
}

.classification-table a:hover {
    color: color-mix(in srgb, var(--team-accent) 64%, white);
}

.classification-pagination {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
}

.classification-pagination span {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    color: rgba(255, 255, 255, .5);
    font-weight: 900;
    text-transform: uppercase;
}

.classification-back-button {
    margin-top: 32px;
}

.classification-empty {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .24);
    font-weight: 850;
    text-transform: uppercase;
}

.runner-hero h1 {
    font-size: clamp(30px, 7vw, 70px);
}


.runner-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.runner-stat-grid article {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(18px, 3vw, 28px);
    border-top: 1px solid rgba(255, 255, 255, .42);
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    background: rgba(10, 6, 18, .22);
}

.runner-stat-grid span {
    color: color-mix(in srgb, var(--team-accent) 56%, white);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.runner-stat-grid strong {
    margin-top: 22px;
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: clamp(22px, 2.5vw, 33px);
    line-height: .92;
    text-transform: uppercase;
}

.runner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.gallery-main,
.legal-main {
    position: relative;
    z-index: 1;
}

.gallery-section {
    width: min(1240px, calc(100% - 36px));
    margin: 0 auto clamp(58px, 8vw, 110px);
    padding: clamp(28px, 5vw, 58px);
    color: var(--white);
}

.derbi-gallery-grid {
    min-height: 360px;
}

.gallery-page .media-boxes-breadcrumb {
    margin-bottom: 24px !important;
    color: var(--white);
    font-family: "Archivo", Arial, sans-serif;
    font-weight: 800;
    text-transform: uppercase;
}

.gallery-page .media-boxes-breadcrumb li a {
    color: var(--white);
}

.gallery-page .media-box-album {
    background: linear-gradient(180deg, transparent, rgba(22, 13, 24, .78));
}

.gallery-page .media-box-album-name,
.gallery-page .thumbnail-overlay-title {
    font-family: "Archivo Black", "Archivo", sans-serif;
    text-transform: uppercase;
}

.gallery-page .media-box-container {
    border: 1px solid rgba(255, 255, 255, .18);
}

.legal-content {
    width: min(960px, calc(100% - 36px));
    margin: 0 auto clamp(58px, 8vw, 110px);
    padding: clamp(28px, 5vw, 58px);
    color: var(--ink);
    background: var(--white);
    border-top: 1px solid rgba(22, 13, 24, .16);
}

.legal-content h2,
.legal-content h3 {
    font-family: "Archivo Black", "Archivo", sans-serif;
    line-height: .95;
    text-transform: uppercase;
}

.legal-content h2 {
    margin: 0 0 28px;
    font-size: clamp(30px, 5vw, 56px);
}

.legal-content h3 {
    margin: 34px 0 12px;
    font-size: clamp(20px, 2.4vw, 28px);
}

.legal-content p {
    margin: 0 0 14px;
    font-size: 17px;
    line-height: 1.55;
    font-weight: 560;
}

.legal-content a {
    color: var(--red);
    font-weight: 850;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.cookie-declaration {
    overflow-x: auto;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(22, 13, 24, .12);
}

.cookie-table-wrap {
    overflow-x: auto;
    margin: 22px 0 8px;
    border: 1px solid rgba(22, 13, 24, .14);
}

.cookie-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    font-size: 15px;
}

.cookie-table th,
.cookie-table td {
    padding: 16px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(22, 13, 24, .12);
}

.cookie-table th {
    font-family: "Archivo Black", "Archivo", sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--purple));
}

.cookie-table tr:last-child td {
    border-bottom: 0;
}

.cookie-table code {
    font-family: "Archivo", Arial, sans-serif;
    font-weight: 800;
    color: var(--purple);
}

@media (max-width: 900px) {
    .classification-hero,
    .classification-search-card,
    .podium-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .classification-team-art {
        width: min(100%, 300px);
    }

    .classification-search-card form {
        grid-template-columns: 1fr;
    }

    .runner-hero {
        justify-items: center;
        text-align: center;
    }

    .runner-hero .classification-hero-copy {
        justify-items: center;
        margin-inline: auto;
    }

    .runner-hero .classification-hero-copy p:not(.eyebrow) {
        margin-inline: auto;
    }

    .runner-hero .back-link {
        justify-content: center;
    }

    .runner-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .classification-main {
        padding-top: 74px;
    }

    .classification-hero {
        min-height: 0;
        padding-top: 38px;
    }

    .classification-shell {
        width: calc(100% - 24px);
        padding: 24px 16px;
    }

    .classification-table {
        min-width: 0;
    }

    .classification-table thead {
        display: none;
    }

    .classification-table,
    .classification-table tbody,
    .classification-table tr,
    .classification-table td {
        display: block;
        width: 100%;
    }

    .classification-table tr {
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, .2);
    }

    .classification-table td {
        display: flex;
        justify-content: space-between;
        gap: 18px;
        padding: 8px 0;
        border: 0;
        text-align: right;
    }

    .classification-table td::before {
        content: attr(data-label);
        color: rgba(255, 255, 255, .62);
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .12em;
    }

    .runner-stat-grid {
        grid-template-columns: 1fr;
    }

    .runner-stat-grid article {
        min-height: 94px;
    }

    .runner-actions {
        justify-content: center;
    }

    .runner-actions .button {
        text-align: center;
    }
}

.site-footer img {
    width: 170px;
}

.site-footer div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
    font-weight: 800;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    opacity: .74;
}

body .site-footer {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 30px clamp(20px, 5vw, 74px);
    color: var(--ink);
    background: var(--white);
    border-top: 1px solid rgba(22, 13, 24, .12);
}

body .site-footer > * {
    opacity: 1;
    transform: none;
}

body .site-footer p {
    margin: 0;
    color: var(--ink);
}

body .site-footer a {
    color: var(--ink);
    opacity: .76;
    transition: opacity .2s ease, color .2s ease;
}

body .site-footer a:hover {
    opacity: 1;
    color: var(--red);
}

.flow-reveal {
    opacity: 0;
    transform: translate3d(0, 42px, 0);
    transition:
        opacity .75s ease,
        transform .75s cubic-bezier(.2, .72, .18, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.flow-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    .flow-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .map-point circle {
        animation: none;
    }
}

@keyframes drift {
    from {
        transform: translate3d(0, 0, 0) rotate(0);
    }
    to {
        transform: translate3d(24px, -18px, 0) rotate(7deg);
    }
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes gradientFlow {
    from {
        background-position: 0% 38%;
        transform: scale(1);
    }
    to {
        background-position: 100% 64%;
        transform: scale(1.06);
    }
}

@keyframes photoRiverUp {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50%);
    }
}

@keyframes photoRiverDown {
    from {
        transform: translateY(-50%);
    }
    to {
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .site-header {
        align-items: center;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        z-index: 30;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 0;
        padding: 110px clamp(24px, 8vw, 72px) 42px;
        color: var(--ink);
        background:
            linear-gradient(135deg, rgba(230, 44, 32, .12), transparent 34%, rgba(78, 75, 149, .16)),
            rgba(255, 248, 235, .98);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-18px);
        transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
    }

    body.menu-open .main-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav a {
        display: flex;
        align-items: center;
        min-height: 74px;
        padding: 14px 0;
        border-bottom: 1px solid rgba(22, 13, 24, .14);
        font-family: "Archivo Black", "Archivo", sans-serif;
        font-size: clamp(34px, 7vw, 72px);
        line-height: .9;
        letter-spacing: 0;
    }

    .main-nav .nav-cta {
        display: inline-flex;
        align-self: flex-start;
        min-height: 0;
        margin-top: 22px;
        padding: 16px 22px;
        border: 0;
        font-family: "Archivo", Arial, sans-serif;
        font-size: 13px;
    }

    .hero-date-card {
        justify-self: stretch;
        margin-top: 0;
    }

    .countdown-section::before {
        width: min(44vw, 330px);
        opacity: .28;
    }

    .countdown-section::after {
        width: min(44vw, 330px);
        opacity: .26;
    }

    .countdown strong {
        font-size: clamp(40px, 9vw, 76px);
    }

    .hero-teams {
        width: min(1040px, 100%);
    }

    .team-art {
        width: 50vw;
        max-height: 58vh;
    }

    .team-art-left {
        transform: translate(22px, calc(-10px + var(--scroll-flow) * -16px)) rotate(calc(-8deg + var(--scroll-flow) * -3deg));
    }

    .team-art-right {
        transform: translate(-22px, calc(26px + var(--scroll-flow) * -46px)) rotate(calc(8deg + var(--scroll-flow) * 3deg));
    }

    .duel-grid,
    .team-choice,
    .registration-info,
    .registration-prices,
    .impact-band,
    .edition-layout,
    .route-layout {
        grid-template-columns: 1fr;
    }

    .registration-info__intro,
    .registration-prices article {
        min-height: 0;
        padding-top: 54px;
    }

    .registration-info__intro::before,
    .registration-prices article::before {
        top: 26px;
        width: 92px;
        height: 5px;
    }

    .team-card {
        min-height: 430px;
    }

    .edition-section {
        min-height: auto;
    }

    .edition-panel {
        max-width: 760px;
    }

    .photo-river {
        height: 620px;
        min-height: 0;
    }

    .route-map,
    .route-svg {
        min-height: 360px;
    }

    .route-section {
        min-height: auto;
    }

    .route-layout {
        top: 84px;
    }

    .route-copy {
        min-height: auto;
    }

    .route-detail {
        position: relative;
        top: auto;
        margin-top: 24px;
        margin-bottom: 0;
        transform: none;
    }

    .sponsor-group {
        grid-template-columns: 1fr;
    }

    .subpage-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .subpage-hero-art img {
        width: min(100%, 620px);
        margin: 0 auto;
    }
}

@media (max-width: 620px) {
    .site-header {
        padding: 14px 16px;
    }

    .brand img {
        width: 138px;
    }

    .hero {
        min-height: 100svh;
        grid-template-rows: minmax(0, 1fr) auto auto auto;
        padding: 92px 16px 28px;
    }

    .hero h1 {
        font-size: clamp(40px, 13vw, 56px);
    }

    .hero-lead {
        font-size: 17px;
    }

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

    .countdown-section {
        min-height: 78vh;
    }

    .countdown-section::before {
        inset: 36px auto auto -72px;
        width: 220px;
        opacity: .22;
    }

    .countdown-section::after {
        inset: auto -78px 30px auto;
        width: 220px;
        opacity: .2;
    }

    .countdown-section .hero-date-card::before {
        margin-bottom: 20px;
    }

    .hero-date-card time {
        font-size: clamp(30px, 9vw, 42px);
    }

    .countdown div {
        padding: 18px 10px;
    }

    .countdown strong {
        font-size: clamp(42px, 16vw, 62px);
    }

    .hero-teams {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
        align-self: stretch;
        width: min(100%, 430px);
        gap: 0;
        transform: translateY(calc(var(--scroll-flow) * -20px));
    }

    .versus {
        justify-self: center;
        width: 62px;
        font-size: 24px;
    }

    .team-art {
        width: min(82vw, 330px);
        max-height: 34vh;
    }

    .team-art-left {
        justify-self: start;
        align-self: end;
        transform: translate(calc(-8px + var(--scroll-flow) * 18px), calc(12px + var(--scroll-flow) * -18px)) rotate(calc(-6deg + var(--scroll-flow) * -2deg));
    }

    .team-art-right {
        justify-self: end;
        align-self: start;
        transform: translate(calc(8px + var(--scroll-flow) * -18px), calc(-10px + var(--scroll-flow) * -8px)) rotate(calc(6deg + var(--scroll-flow) * 2deg));
    }

    .hero-bottom {
        gap: 10px;
    }

    .hero-bottom time {
        width: 100%;
        text-align: center;
    }

    .section {
        padding: 64px 16px;
    }

    .subpage-hero {
        padding: 104px 16px 44px;
    }

    .subpage-hero h1 {
        font-size: clamp(32px, 10.2vw, 44px);
    }

    .subpage-hero-copy p:not(.eyebrow) {
        font-size: 18px;
    }

    .rule-card summary {
        grid-template-columns: 54px minmax(0, 1fr) 32px;
        gap: 12px;
        min-height: 74px;
        padding: 16px 14px;
    }

    .rule-card summary span {
        font-size: 22px;
    }

    .rule-card summary strong {
        font-size: clamp(14px, 3.75vw, 19px);
    }

    .rule-card summary::after {
        font-size: 30px;
    }

    .rule-body {
        padding: 0 14px 24px;
    }

    .rule-body p,
    .rule-body li {
        font-size: 16px;
    }

    .team-card {
        min-height: 380px;
    }

    .colaboradores {
        width: min(72%, 260px);
        margin-top: 46px;
    }

    .cont_logos {
        gap: 18px 22px;
        padding-inline: 12px;
    }

    .cont_logos a {
        flex: 0 1 calc(50% - 14px);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .cont_logos img,
    .cont_logos .hoka,
    .cont_logos .bm,
    .cont_logos .amix,
    .cont_logos .plaza_rio,
    .cont_logos .sanicentro,
    .cont_logos .madrid,
    .cont_logos .lastlap,
    .cont_logos .juver {
        width: auto;
        max-width: 128px;
        max-height: 54px;
        object-fit: contain;
    }

    .edition-links a {
        gap: 14px;
        min-height: 66px;
        padding: 16px 0;
    }

    .edition-links span {
        font-size: clamp(19px, 5.6vw, 26px);
        white-space: normal;
    }

    .edition-links a::before {
        flex-basis: 44px;
        max-width: 64px;
        height: 4px;
    }

    .edition-links a::after {
        width: 18px;
        height: 18px;
        border-width: 5px;
    }

    .photo-river {
        height: 520px;
        gap: 10px;
    }

    .photo-column {
        gap: 10px;
    }

    .photo-column img {
        border-radius: 9px;
        aspect-ratio: 1.1;
    }

    .route-map,
    .route-svg {
        min-height: 0;
    }

    .route-section {
        min-height: auto;
    }

    .route-layout {
        position: relative;
        top: auto;
    }

    .team-card img {
        width: 78%;
        right: -20%;
    }

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

    .site-footer div {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    html {
        scroll-behavior: auto;
    }

    body::before {
        display: none;
    }

    body::after {
        display: none;
    }

    body {
        background:
            linear-gradient(135deg, rgba(230, 44, 32, .96) 0%, rgba(164, 23, 85, .96) 48%, rgba(78, 75, 149, .96) 100%);
    }

    .site-header,
    .hero-date-card,
    .countdown div,
    .classification-shell,
    .classification-search-card {
        backdrop-filter: none !important;
    }

    .brand img,
    .team-art,
    .classification-team-art,
    .countdown-section::before,
    .countdown-section::after {
        filter: none !important;
    }

    .countdown-section::before,
    .countdown-section::after {
        content: none;
        display: none;
        background-image: none !important;
    }

    .stripe-field,
    .hero-teams,
    .team-art-left,
    .team-art-right,
    .versus,
    .countdown-section::before,
    .countdown-section::after {
        transform: none !important;
    }

    .ticker div,
    .map-point circle {
        animation: none !important;
    }

    .photo-column {
        will-change: transform;
    }

    .photo-river {
        height: 560px;
        min-height: 0;
        overflow: hidden;
        mask-image: linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent);
    }

    .photo-river::after {
        display: block;
    }

    .route-detail {
        transform: none !important;
    }

    .route-layout > .route-detail {
        width: calc(100% - 32px);
        max-width: none;
        margin: 18px auto 28px;
        padding: 22px 0 0;
    }

    .map-point circle {
        filter: none !important;
    }

    .route-section {
        min-height: auto;
        overflow: visible;
    }

    .route-map {
        width: 100%;
        min-height: 0;
        margin-inline: 0;
        overflow: visible;
    }

    .route-svg {
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 0;
        margin-left: 0;
    }

    .flow-reveal {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}
