/* =========================================
   COPA MR.BET LEYENDAS — V2
   Style: Stadium Brutalism / Cinematic Noir
   Zero emojis. Maximum impact.
   ========================================= */

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Tokens ── */
:root {
    --c-orange: #FF6B00;
    --c-orange-hot: #FF8C33;
    --c-gold: #FFB800;
    --c-dark: #0A0A0A;
    --c-darker: #050505;
    --c-light: #F5F0EA;
    --c-white: #FFFFFF;
    --c-muted: rgba(255, 255, 255, 0.45);

    --ff-display: 'Bebas Neue', 'Impact', sans-serif;
    --ff-heading: 'Oswald', sans-serif;
    --ff-body: 'Inter', system-ui, sans-serif;

    --nav-h: 64px;
    --max-w: 1100px;
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    font-family: var(--ff-body);
    color: var(--c-white);
    background: var(--c-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

/* ── Scroll Reveal System ── */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-reveal="fade"] {
    transform: translateY(30px);
}

[data-reveal="slide-up"] {
    transform: translateY(60px);
    transition-delay: calc(var(--delay, 0) * 0.15s);
}

[data-reveal="slide-right"] {
    transform: translateX(-60px);
}

[data-reveal="title"] {
    transform: translateY(40px) scale(0.95);
}

[data-reveal="stats"] {
    transform: translateY(40px);
}

[data-reveal].visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ================================================================
   NAV
   ================================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 107, 0, 0.3);
}

.nav__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__logo {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.nav__logo--fu {
    height: 80px;
    filter: brightness(0) invert(1);
}

.nav__x {
    color: var(--c-orange);
    font-weight: 700;
    font-size: 1rem;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__link {
    font-family: var(--ff-heading);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-muted);
    transition: color 0.2s;
}

.nav__link:hover {
    color: var(--c-white);
}

.nav__cta {
    font-family: var(--ff-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-dark);
    background: var(--c-orange);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s, transform 0.3s var(--ease-spring);
}

.nav__cta:hover {
    background: var(--c-gold);
    transform: scale(1.05);
}

.nav__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 6px;
}

.nav__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--c-white);
    transition: transform 0.3s, opacity 0.3s;
}

.nav__burger.active span:first-child {
    transform: rotate(45deg) translate(3px, 5px);
}

.nav__burger.active span:last-child {
    transform: rotate(-45deg) translate(3px, -5px);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* ── Video Intro ── */
.hero__intro {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 1.8s ease-in-out;
    pointer-events: none;
}

.hero__intro.done {
    opacity: 0;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.15);
    transform-origin: center 30%;
}

/* While intro plays: hide bg + content */
.hero--intro .hero__bg {
    opacity: 0;
    transition: opacity 1.2s ease-in-out 0.4s;
}

.hero--intro .hero__content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-in-out 0.8s, transform 1s var(--ease-out) 0.8s;
}

.hero--intro .ticker {
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.8s ease 1.2s, transform 0.8s var(--ease-out) 1.2s;
}

/* When intro is done: reveal everything */
.hero:not(.hero--intro) .hero__bg {
    opacity: 1;
}

.hero:not(.hero--intro) .hero__content {
    opacity: 1;
    transform: none;
}

.hero:not(.hero--intro) .ticker {
    opacity: 1;
    transform: translateY(0);
}

.hero__bg {
    position: absolute;
    inset: 0;
}

.hero__grass {
    position: absolute;
    inset: 0;
    background: url('../assets/textures/grass.png') center/cover no-repeat;
}

.hero__dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(5, 5, 5, 0.82) 0%,
            rgba(5, 5, 5, 0.6) 40%,
            rgba(5, 5, 5, 0.92) 100%);
}

.hero__noise {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: calc(var(--nav-h) + 40px) 24px 80px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* Date */
.hero__top {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero__date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero__date-day {
    font-family: var(--ff-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: var(--c-orange);
    line-height: 1;
    text-shadow: 0 0 40px rgba(255, 107, 0, 0.4);
}

.hero__date-sep {
    font-family: var(--ff-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--c-muted);
    opacity: 0.4;
}

.hero__date-month {
    font-family: var(--ff-heading);
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.4em;
    color: var(--c-muted);
}

/* Title */
.hero__title-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.85;
}

.hero__pre {
    font-family: var(--ff-heading);
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--c-white);
}

.hero__title {
    position: relative;
    display: block;
}

.hero__fill {
    font-family: var(--ff-display);
    font-size: clamp(5.5rem, 18vw, 14rem);
    color: var(--c-orange);
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 60px rgba(255, 107, 0, 0.3);
    display: block;
}

.hero__ghost {
    position: absolute;
    inset: 0;
    font-family: var(--ff-display);
    font-size: clamp(5.5rem, 18vw, 14rem);
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.12);
    color: transparent;
    transform: translate(6px, 6px);
    z-index: 0;
    display: block;
    user-select: none;
}

/* Glitch on title */
.hero__fill::before,
.hero__fill::after {
    content: 'LEYENDAS';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__fill::before {
    color: var(--c-gold);
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    animation: glitchTop 4s ease-in-out infinite;
}

.hero__fill::after {
    color: #FF4400;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    animation: glitchBot 4s ease-in-out infinite;
}

@keyframes glitchTop {

    0%,
    92%,
    100% {
        transform: translate(0);
    }

    93% {
        transform: translate(-3px, -1px);
    }

    95% {
        transform: translate(2px, 1px);
    }

    97% {
        transform: translate(-1px, 0);
    }
}

@keyframes glitchBot {

    0%,
    90%,
    100% {
        transform: translate(0);
    }

    91% {
        transform: translate(2px, 1px);
    }

    94% {
        transform: translate(-3px, -1px);
    }

    96% {
        transform: translate(1px, 0);
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero__fill::before,
    .hero__fill::after {
        animation: none;
    }
}

/* Category */
.hero__category {
    font-family: var(--ff-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--c-orange);
    margin-top: 4px;
    text-transform: uppercase;
}

/* Location */
.hero__loc {
    font-family: var(--ff-heading);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    color: var(--c-muted);
    margin-top: -4px;
}

/* Prizes grid */
.hero__prizes {
    width: 100%;
    max-width: 700px;
    margin-top: 16px;
}

.prizes__banner {
    font-family: var(--ff-display);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    text-align: center;
    padding: 10px 20px;
    background: var(--c-gold);
    color: var(--c-dark);
    letter-spacing: 0.12em;
    position: relative;
}

.prizes__banner::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 8px solid var(--c-gold);
}

.prizes__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    margin-top: 12px;
}

.prize {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 12px;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    transition: transform 0.3s var(--ease-spring), border-color 0.3s;
}

.prize::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--c-muted);
    transition: background 0.3s;
}

.prize:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Champion - gold accent */
.prize--champ {
    background: rgba(255, 184, 0, 0.08);
    border-color: rgba(255, 184, 0, 0.25);
}

.prize--champ::before {
    background: var(--c-gold);
    height: 4px;
}

.prize--champ .prize__val {
    color: var(--c-gold);
    text-shadow: 0 0 30px rgba(255, 184, 0, 0.3);
}

/* Second - silver */
.prize--second::before {
    background: #C0C0C0;
}

/* Moto - orange */
.prize--moto::before {
    background: var(--c-orange);
}

.prize--moto .prize__val {
    color: var(--c-orange);
}

/* Teams */
.prize--teams::before {
    background: var(--c-orange-hot);
}

.prize__val {
    font-family: var(--ff-display);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: var(--c-gold);
    line-height: 1;
}

.prize__tag {
    font-family: var(--ff-heading);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--c-muted);
    text-transform: uppercase;
}

/* CTA */
.cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--ff-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--c-orange);
    color: var(--c-dark);
    border: none;
    padding: 16px 40px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-spring), background 0.2s;
    margin-top: 8px;
}

.cta:hover {
    background: var(--c-gold);
    transform: scale(1.04) translateY(-2px);
}

.cta:active {
    transform: scale(0.98);
}

.cta__arrow {
    transition: transform 0.3s var(--ease-spring);
    font-size: 1.3rem;
}

.cta:hover .cta__arrow {
    transform: translateX(4px);
}

.cta--dark {
    background: var(--c-dark);
    color: var(--c-orange);
    border: 2px solid var(--c-orange);
}

.cta--dark:hover {
    background: var(--c-orange);
    color: var(--c-dark);
}

.cta--ghost {
    background: transparent;
    color: var(--c-orange);
    border: 2px solid var(--c-orange);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 12px 32px;
}

.cta--ghost:hover {
    background: var(--c-orange);
    color: var(--c-dark);
}

/* ── Ticker ── */
.ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: var(--c-orange);
    overflow: hidden;
    white-space: nowrap;
}

.ticker__track {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 10px 0;
    animation: tickerScroll 20s linear infinite;
    will-change: transform;
}

.ticker__track span {
    font-family: var(--ff-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-dark);
    flex-shrink: 0;
}

.ticker__dot {
    font-size: 1.2rem !important;
    opacity: 0.5;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* ── Diagonal Strips ── */
.diag-strip {
    position: relative;
    z-index: 10;
    overflow: hidden;
    white-space: nowrap;
    background: var(--c-orange);
    padding: 14px 0;
}

.diag-strip--right .diag-strip__track {
    animation-direction: reverse;
}

.diag-strip__track {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    animation: tickerScroll 20s linear infinite;
}

.diag-strip__track span {
    font-family: var(--ff-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-dark);
    flex-shrink: 0;
}

.diag-strip__dot {
    font-size: 1.2rem !important;
    opacity: 0.5;
}

/* ================================================================
   INFO SECTION
   ================================================================ */
.info {
    position: relative;
    padding: 100px 24px;
    background: var(--c-light);
    color: var(--c-dark);
    overflow: hidden;
}

.info::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/textures/paper-crumpled.png') center/cover;
    opacity: 0.35;
    pointer-events: none;
}

.info__inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.info__title {
    font-family: var(--ff-display);
    font-size: clamp(3.5rem, 10vw, 7rem);
    line-height: 0.88;
    color: var(--c-dark);
}

.info__title span {
    color: var(--c-orange);
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step {
    position: relative;
    background: var(--c-white);
    border: 2px solid var(--c-dark);
    padding: 40px 24px 32px;
    overflow: hidden;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.3s;
}

.step:hover {
    transform: translateY(-6px) rotate(-0.5deg);
    box-shadow: 6px 6px 0 var(--c-orange);
}

.step__num {
    font-family: var(--ff-display);
    font-size: 6rem;
    line-height: 1;
    position: absolute;
    top: -10px;
    right: -4px;
    -webkit-text-stroke: 2px rgba(0, 0, 0, 0.06);
    color: transparent;
    pointer-events: none;
    user-select: none;
}

.step__title {
    font-family: var(--ff-heading);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.step__desc {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.6;
}

/* Rules strip */
.rules {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.rule {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 16px;
    background: var(--c-white);
    border: 2px solid var(--c-dark);
    text-align: center;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.3s;
}

.rule:hover {
    transform: translateY(-4px);
    box-shadow: 4px 4px 0 var(--c-orange);
}

.rule__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--c-dark);
    color: var(--c-orange);
    font-family: var(--ff-display);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.rule__text {
    font-family: var(--ff-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-dark);
    line-height: 1.3;
}

/* ================================================================
   RANKING
   ================================================================ */
.ranking-section {
    position: relative;
    padding: 100px 24px;
    background: var(--c-dark);
    overflow: hidden;
}

.ranking-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.ranking-section__inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.ranking-section__title {
    font-family: var(--ff-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 0.88;
    margin-bottom: 16px;
}

.ranking-section__title span {
    color: var(--c-orange);
}

.ranking-section__badge {
    display: inline-block;
    font-family: var(--ff-display);
    font-size: 1.4rem;
    letter-spacing: 0.2em;
    color: var(--c-dark);
    background: var(--c-gold);
    padding: 6px 24px;
    margin-bottom: 8px;
}

.ranking-section__sub {
    font-size: 0.95rem;
    color: var(--c-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
}

.ranking__table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking__table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--ff-heading);
}

.ranking__th {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-orange);
    padding: 18px 24px;
    text-align: left;
    border-bottom: 2px solid var(--c-orange);
    background: rgba(255, 107, 0, 0.06);
}

.ranking__row {
    transition: background 0.2s;
}

.ranking__row:hover {
    background: rgba(255, 107, 0, 0.04);
}

.ranking__row td {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
}

.ranking__pos {
    font-family: var(--ff-display);
    font-size: 1.8rem;
    width: 60px;
    text-align: center;
}

.ranking__pos--gold {
    color: #FFD700;
}

.ranking__pos--silver {
    color: #C0C0C0;
}

.ranking__pos--bronze {
    color: #CD7F32;
}

.ranking__hashtag {
    font-weight: 600;
    color: var(--c-orange) !important;
    letter-spacing: 0.05em;
}

.ranking__count {
    font-family: var(--ff-display);
    font-size: 1.8rem;
    color: var(--c-gold) !important;
    text-align: center;
}

.ranking__empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--c-muted);
    font-size: 0.95rem;
    display: none;
}

/* ================================================================
   CIERRE
   ================================================================ */
.cierre {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 24px;
}

.cierre__bg {
    position: absolute;
    inset: 0;
}

.cierre__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.cierre__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(5, 5, 5, 0.55) 0%,
            rgba(5, 5, 5, 0.7) 40%,
            rgba(255, 107, 0, 0.15) 100%);
}

.cierre__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cierre__eyebrow {
    font-family: var(--ff-heading);
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--c-orange);
}

.cierre__title {
    position: relative;
    margin: 8px 0 16px;
}

.cierre__fill {
    font-family: var(--ff-display);
    font-size: clamp(5rem, 16vw, 12rem);
    color: var(--c-white);
    position: relative;
    z-index: 1;
    display: block;
    line-height: 0.9;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.cierre__ghost {
    position: absolute;
    inset: 0;
    font-family: var(--ff-display);
    font-size: clamp(5rem, 16vw, 12rem);
    -webkit-text-stroke: 1.5px rgba(255, 107, 0, 0.25);
    color: transparent;
    transform: translate(5px, 5px);
    z-index: 0;
    display: block;
    line-height: 0.9;
    user-select: none;
}

.cierre__sub {
    font-family: var(--ff-heading);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 500;
    color: var(--c-gold);
    letter-spacing: 0.05em;
}

.cierre__desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    max-width: 460px;
}

/* ================================================================
   LLAVES DEL CAMPEONATO
   ================================================================ */
.llaves {
    position: relative;
    padding: 100px 24px;
    background: var(--c-dark);
    overflow: hidden;
}

.llaves::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.llaves__inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.llaves__title {
    font-family: var(--ff-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 0.88;
    margin-bottom: 16px;
}

.llaves__title span {
    color: var(--c-orange);
}

.llaves__sub {
    font-size: 0.95rem;
    color: var(--c-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 500px;
}

/* ── Tabs ── */
.llaves__tabs {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
}

.llaves__tab {
    font-family: var(--ff-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 14px 32px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--c-muted);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.llaves__tab:first-child {
    border-right: none;
}

.llaves__tab.active {
    background: var(--c-orange);
    color: var(--c-dark);
    border-color: var(--c-orange);
}

.llaves__tab:not(.active):hover {
    color: var(--c-white);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

/* ── Panels ── */
.llaves__panel {
    display: none;
}

.llaves__panel.active {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── Phase Cards ── */
.llaves__phase {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.3s;
}

.llaves__phase:hover {
    border-color: rgba(255, 107, 0, 0.25);
}

/* Timeline connector */
.llaves__phase::before {
    content: '';
    position: absolute;
    left: 28px;
    top: -24px;
    width: 2px;
    height: 24px;
    background: rgba(255, 107, 0, 0.3);
}

.llaves__phase:first-child::before {
    display: none;
}

.llaves__phase--final {
    border-color: rgba(255, 184, 0, 0.25);
    background: rgba(255, 184, 0, 0.03);
}

/* ── Phase Header ── */
.llaves__phase-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.llaves__phase-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Chevron indicator */
.llaves__phase-toggle {
    margin-left: auto;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-muted);
    transition: transform 0.35s var(--ease-out), color 0.2s;
    flex-shrink: 0;
}

.llaves__phase.open .llaves__phase-toggle {
    transform: rotate(180deg);
    color: var(--c-orange);
}

/* When collapsed, remove bottom border from header */
.llaves__phase:not(.open) .llaves__phase-header {
    border-bottom-color: transparent;
}

.llaves__phase-date {
    font-family: var(--ff-display);
    font-size: 1.5rem;
    color: var(--c-orange);
    min-width: 100px;
    letter-spacing: 0.05em;
}

.llaves__phase-name {
    font-family: var(--ff-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-white);
    flex: 1;
}

.llaves__phase-badge {
    font-family: var(--ff-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 4px 12px;
    background: rgba(255, 107, 0, 0.15);
    color: var(--c-orange);
    border: 1px solid rgba(255, 107, 0, 0.3);
}

.llaves__phase-badge--gold {
    background: rgba(255, 184, 0, 0.15);
    color: var(--c-gold);
    border-color: rgba(255, 184, 0, 0.4);
}

/* ── Phase Body ── */
.llaves__phase-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    transition: max-height 0.45s var(--ease-out), padding 0.35s var(--ease-out);
}

.llaves__phase.open .llaves__phase-body {
    max-height: 2000px;
    padding: 20px 24px;
}

/* ── Details ── */
.llaves__detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.llaves__detail:last-of-type {
    margin-bottom: 16px;
}

.llaves__detail-label {
    font-family: var(--ff-heading);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-orange);
    min-width: 80px;
    flex-shrink: 0;
}

.llaves__detail-value {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

/* ── Matchups ── */
.llaves__matchups {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.llaves__matchup-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid rgba(255, 107, 0, 0.3);
    transition: background 0.2s, border-color 0.2s;
}

.llaves__matchup-row:hover {
    background: rgba(255, 107, 0, 0.05);
    border-left-color: var(--c-orange);
}

.llaves__matchup-row--final {
    border-left-color: var(--c-gold);
    background: rgba(255, 184, 0, 0.06);
    padding: 16px 12px;
}

.llaves__matchup-row--final:hover {
    background: rgba(255, 184, 0, 0.1);
    border-left-color: var(--c-gold);
}

.llaves__matchup-time {
    font-family: var(--ff-display);
    font-size: 1rem;
    color: var(--c-muted);
    min-width: 48px;
    text-align: center;
}

.llaves__matchup-pair {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-family: var(--ff-heading);
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.03em;
}

.llaves__vs {
    font-family: var(--ff-display);
    font-size: 0.7rem;
    color: var(--c-orange);
    padding: 2px 6px;
    background: rgba(255, 107, 0, 0.12);
    border: 1px solid rgba(255, 107, 0, 0.25);
    flex-shrink: 0;
    letter-spacing: 0.1em;
}

.llaves__vs--gold {
    color: var(--c-gold);
    background: rgba(255, 184, 0, 0.12);
    border-color: rgba(255, 184, 0, 0.3);
}

.llaves__matchup-key {
    font-family: var(--ff-heading);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-muted);
    min-width: 60px;
    text-align: right;
    flex-shrink: 0;
}

.llaves__matchup-key--gold {
    color: var(--c-gold);
}

/* ── Sub-phases (Semis + Final day) ── */
.llaves__sub-phase {
    margin-bottom: 20px;
}

.llaves__sub-phase:last-child {
    margin-bottom: 0;
}

.llaves__sub-phase--final {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 184, 0, 0.15);
}

.llaves__sub-title {
    font-family: var(--ff-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-white);
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 3px solid var(--c-orange);
}

.llaves__sub-title--gold {
    color: var(--c-gold);
    border-left-color: var(--c-gold);
}

/* ================================================================
   FOOTER
   ================================================================ */
.foot {
    background: var(--c-darker);
    padding: 48px 24px;
    border-top: 1px solid rgba(255, 107, 0, 0.2);
}

.foot__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.foot__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.foot__logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    opacity: 0.7;
}

.foot__logo--fu {
    height: 110px;
    filter: brightness(0) invert(1);
}

.foot__x {
    color: var(--c-orange);
    font-weight: 700;
    font-size: 0.9rem;
}

.foot__loc {
    font-family: var(--ff-heading);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--c-muted);
    text-transform: uppercase;
}

.foot__nav {
    display: flex;
    gap: 20px;
}

.foot__nav-link {
    font-family: var(--ff-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-orange);
    padding: 6px 16px;
    border: 1px solid rgba(255, 107, 0, 0.4);
    transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-spring);
}

.foot__nav-link:hover {
    background: var(--c-orange);
    color: var(--c-dark);
    transform: scale(1.05);
}

.foot__social {
    display: flex;
    gap: 12px;
}

.foot__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--c-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transition: color 0.2s, border-color 0.2s, transform 0.3s var(--ease-spring);
}

.foot__link:hover {
    color: var(--c-orange);
    border-color: var(--c-orange);
    transform: scale(1.12);
}

.foot__copy {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.05em;
}

/* ================================================================
   MODAL
   ================================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 24px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__dialog {
    background: var(--c-darker);
    border: 2px solid var(--c-orange);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px 32px;
    animation: modalPop 0.35s var(--ease-spring);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--c-white);
    font-size: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.modal__close:hover {
    border-color: var(--c-orange);
    color: var(--c-orange);
}

.modal__step {
    display: none;
}

.modal__step.active {
    display: block;
}

.modal__header {
    text-align: center;
    margin-bottom: 28px;
}

.modal__title {
    font-family: var(--ff-display);
    font-size: 2rem;
    color: var(--c-white);
    margin-bottom: 6px;
}

.modal__subtitle {
    font-size: 0.9rem;
    color: var(--c-muted);
}

.modal__options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal__option-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--c-orange);
    cursor: pointer;
    text-align: left;
    color: var(--c-white);
    transition: background 0.2s, transform 0.3s var(--ease-spring);
}

.modal__option-btn:hover {
    background: rgba(255, 107, 0, 0.08);
    transform: translateX(4px);
}

.modal__option-icon {
    flex-shrink: 0;
    color: var(--c-orange);
}

.modal__option-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.modal__option-text strong {
    font-family: var(--ff-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.modal__option-text small {
    font-size: 0.8rem;
    color: var(--c-muted);
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal__label {
    font-family: var(--ff-heading);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-orange);
}

.modal__input {
    width: 100%;
    padding: 12px;
    font-family: var(--ff-body);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--c-white);
    outline: none;
    transition: border-color 0.2s;
}

.modal__input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.modal__input:focus {
    border-color: var(--c-orange);
}

.modal__input.error {
    border-color: #FF4444;
    background: rgba(255, 68, 68, 0.05);
}

.modal__input-group {
    display: flex;
    align-items: stretch;
}

.modal__input-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: var(--c-orange);
    color: var(--c-dark);
    font-family: var(--ff-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.modal__input--hashtag {
    text-transform: uppercase;
    font-family: var(--ff-heading);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.modal__hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}

.modal__error {
    color: #FF4444;
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 1.2em;
}

.modal__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

.modal__back-btn {
    background: none;
    border: none;
    color: var(--c-muted);
    font-family: var(--ff-heading);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.modal__back-btn:hover {
    color: var(--c-orange);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ff-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s var(--ease-spring), background 0.2s;
}

.btn--primary {
    background: var(--c-orange);
    color: var(--c-dark);
}

.btn--primary:hover {
    background: var(--c-gold);
    transform: scale(1.04);
}

.join-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid var(--c-orange);
    padding: 8px 12px;
    margin-bottom: 8px;
}

.join-badge__hashtag {
    font-family: var(--ff-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-orange);
}

.join-badge__name {
    font-family: var(--ff-heading);
    font-weight: 500;
    color: var(--c-white);
}

.modal__success {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.modal__success-msg {
    font-size: 1rem;
    color: var(--c-muted);
}

.modal__success-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.modal__success-hashtag {
    font-family: var(--ff-display);
    font-size: 2.2rem;
    color: var(--c-orange);
}

.modal__success-name {
    font-family: var(--ff-heading);
    font-size: 1.2rem;
    font-weight: 600;
}

.modal__share {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
}

.modal__share-title {
    font-family: var(--ff-heading);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.modal__share-link {
    display: flex;
    gap: 0;
    margin-bottom: 8px;
}

.modal__share-link .modal__input {
    border-right: none;
    font-size: 0.8rem;
    color: var(--c-orange);
}

.modal__copy-btn {
    flex-shrink: 0;
    font-size: 0.8rem !important;
    padding: 12px 16px !important;
    white-space: nowrap;
}

.modal__copy-btn.copied {
    background: #2D8A2E !important;
}

.modal__share-hint {
    font-size: 0.8rem;
    color: var(--c-muted);
    line-height: 1.5;
}

.modal__done-btn {
    width: 100%;
    margin-top: 8px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    .nav__menu {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(5, 5, 5, 0.97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
    }

    .nav__menu.active {
        display: flex;
    }

    .nav__burger {
        display: flex;
    }

    .nav__link {
        font-size: 1.2rem;
        color: var(--c-white);
    }

    .nav__cta {
        font-size: 1rem;
        padding: 14px 28px;
    }

    .hero__stats {
        flex-wrap: wrap;
    }

    .stat {
        padding: 14px 16px;
    }

    .stat__sep:nth-child(4) {
        display: none;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rules {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal__dialog {
        padding: 28px 20px;
    }

    .llaves__tab {
        padding: 12px 20px;
        font-size: 0.8rem;
        flex: 1;
        text-align: center;
    }

    .llaves__phase-header {
        padding: 16px 16px;
        gap: 10px;
    }

    .llaves__phase-date {
        font-size: 1.2rem;
        min-width: auto;
    }

    .llaves__phase-name {
        font-size: 0.9rem;
    }

    .llaves__phase-body {
        padding: 16px 12px;
    }

    .llaves__matchup-row {
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 10px;
    }

    .llaves__matchup-pair {
        font-size: 0.75rem;
    }

    .llaves__matchup-time {
        font-size: 0.85rem;
        min-width: 40px;
    }
}

@media (max-width: 480px) {
    .hero__content {
        padding-top: calc(var(--nav-h) + 24px);
    }

    .hero__fill {
        font-size: clamp(4rem, 22vw, 7rem);
    }

    .hero__ghost {
        font-size: clamp(4rem, 22vw, 7rem);
    }

    .hero__pre {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }

    .hero__stats,
    .hero__prizes {
        max-width: 100%;
    }

    .prizes__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prizes__banner {
        font-size: 0.9rem;
    }

    .prize__val {
        font-size: 2rem;
    }

    .cierre__fill {
        font-size: clamp(3.5rem, 20vw, 6rem);
    }

    .cierre__ghost {
        font-size: clamp(3.5rem, 20vw, 6rem);
    }

    .info__title {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .cta {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .modal__dialog {
        padding: 24px 16px;
    }

    .modal__title {
        font-size: 1.7rem;
    }

    .modal__share-link {
        flex-direction: column;
    }

    .modal__share-link .modal__input {
        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }

    .ranking__th,
    .ranking__row td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}