/* =====================================================================
   PORTADA · diseño "Matchday" (dirección B)
   CSS escrito a mano (ya no se genera con Tailwind). Usa los tokens de
   /styles.css: --lime, --cyan, --bg-body, --bg-card, --font-display…
   ===================================================================== */

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body.mx-page { margin: 0; background: var(--bg-body); color: var(--text-main); font-family: var(--font-body); font-size: 16px; line-height: 1.5; overflow-x: hidden; }
.mx-page *, .mx-page *::before, .mx-page *::after { box-sizing: border-box; }
/* Reset sin especificidad (:where) para que cualquier clase lo sobrescriba */
:where(.mx-page) :where(img, svg) { display: block; }
:where(.mx-page) :where(a) { color: inherit; }
:where(.mx-page) :where(h1, h2, h3, p, ul, ol, figure, blockquote) { margin: 0; }
:where(.mx-page) :where(ul, ol) { padding: 0; list-style: none; }
:where(.mx-page) :where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.mx-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 639px) { .mx-wrap { padding: 0 18px; } }

.mx-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--navy); font-weight: 800; padding: 12px 16px; text-decoration: none; }
.mx-skip:focus { top: 12px; }

/* ---------- Utilidades ---------- */
.mx-lime { color: var(--lime); }
.mx-cyan { color: var(--cyan); }
.mx-mute { color: var(--text-light); }
.mx-right { text-align: right; }
.mx-mute-xs { font-size: 12px; color: var(--text-light); }
.mx-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.mx-ic-sm { width: 14px; height: 14px; }
.mx-ic-lg { width: 32px; height: 32px; stroke-width: 2; }
.mx-ic-xl { width: 44px; height: 44px; stroke-width: 2; }
.mx-display {
    font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-style: italic;
    text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.92;
}
.mx-tick {
    width: 22px; height: 22px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    background: var(--lime); color: var(--navy); transform: skewX(-10deg);
}
.mx-tick svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; transform: skewX(10deg); }
.mx-live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; animation: livePulse 1.3s ease-in-out infinite; }

/* ---------- Botones ---------- */
.mx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px; padding: 0 26px; border: 2px solid transparent;
    font-family: var(--font-body); font-weight: 800; font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
    text-decoration: none; white-space: nowrap; transform: skewX(-8deg);
    transition: transform .2s var(--ease-out), box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.mx-btn-lg { height: 60px; padding: 0 32px; font-size: 16px; }
.mx-btn-xl { height: 64px; padding: 0 40px; font-size: 17px; }
.mx-btn-sm { height: 36px; padding: 0 14px; font-size: 12px; }
.mx-btn-primary { background: var(--lime); color: var(--navy) !important; }
.mx-btn-primary:hover { transform: translateY(-2px) skewX(-8deg); box-shadow: var(--glow-lime); }
.mx-btn-ghost { border-color: var(--text-main); color: var(--text-main); }
.mx-btn-ghost:hover { background: var(--text-main); color: var(--navy); }
.mx-btn-dark { background: var(--navy); color: var(--lime) !important; }
.mx-btn-dark:hover { transform: translateY(-2px) skewX(-8deg); box-shadow: 0 16px 30px -16px rgba(8, 16, 36, .9); }
.mx-btn .mx-ic { transition: transform .22s var(--ease-out); }
.mx-btn:hover .mx-ic { transform: translateX(4px); }
@media (max-width: 479px) { .mx-cta-row .mx-btn { width: 100%; transform: skewX(-6deg); } }

/* ---------- Ticker ---------- */
.mx-ticker-band {
    position: relative; z-index: 41; height: 36px; display: flex; align-items: center; overflow: hidden;
    background: var(--lime); color: var(--navy);
    font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}
.mx-ticker-label { flex: none; height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: var(--navy); color: var(--lime); position: relative; z-index: 1; }
.mx-ticker-label::after { content: ''; position: absolute; right: -10px; top: 0; bottom: 0; width: 20px; background: var(--navy); transform: skewX(-14deg); }
.mx-ticker-track { flex: 1; overflow: hidden; }
.mx-ticker { display: flex; gap: 48px; white-space: nowrap; padding-left: 28px; width: max-content; animation: mxTick 40s linear infinite; }
.mx-ticker span::before { content: '●'; margin-right: 12px; font-size: 8px; vertical-align: 2px; }
@keyframes mxTick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mx-ticker-band:hover .mx-ticker { animation-play-state: paused; }

/* ---------- Cabecera ---------- */
.mx-header { position: sticky; top: 0; z-index: 40; }
.mx-header-row { display: flex; align-items: center; gap: clamp(16px, 4vw, 56px); min-height: 72px; }
.mx-header .brand { min-height: 44px; }
.mx-nav { display: flex; flex: 1; align-items: center; gap: clamp(8px, 2vw, 28px); font-size: 15px; font-weight: 650; }
.mx-nav > a:not(.mx-header-cta) {
    position: relative; display: inline-flex; align-items: center; min-height: 72px; padding: 0 4px;
    color: var(--text-2); text-decoration: none; transition: color .15s;
}
.mx-nav > a:hover, .mx-nav > a[aria-current] { color: var(--lime); }
.mx-nav > a[aria-current]::after {
    content: ""; position: absolute; inset-inline: 4px; bottom: 0; height: 3px;
    background: var(--lime); transform: skewX(var(--skew));
}
.mx-header-cta { margin-left: auto; flex-shrink: 0; }

.mx-section-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; margin-top: 16px; }
.mx-section-nav a {
    display: inline-flex; align-items: center; min-height: 44px;
    color: var(--text-2); font-size: 14px; font-weight: 600; text-decoration: underline;
}
.mx-section-nav a:hover { color: var(--lime); }

@media (max-width: 639px) {
    html { scroll-padding-top: 112px; }
    .mx-header-row { display: block; padding: 8px 16px 0; }
    .mx-header .brand { gap: 8px; }
    .mx-header .brand-mark { width: 28px; height: 28px; }
    .mx-header .brand-word { font-size: 15px; }
    .mx-nav { justify-content: space-between; gap: 4px; margin-top: 4px; font-size: 0.8125rem; }
    .mx-nav > a:not(.mx-header-cta) { min-height: 52px; padding-inline: 3px; }
    .mx-nav > a[aria-current]::after { inset-inline: 3px; }
    .mx-header .mx-header-cta { height: 42px; margin-left: 0; padding-inline: 8px; font-size: 0.75rem; }
}
@media (max-width: 359px) {
    .mx-header-row { padding-inline: 10px; }
    .mx-nav { gap: 2px; font-size: 0.75rem; }
    .mx-nav > a:not(.mx-header-cta) { padding-inline: 2px; }
    .mx-header .mx-header-cta { padding-inline: 6px; font-size: 0.6875rem; }
}

/* ---------- Hero ---------- */
.mx-hero { position: relative; padding: 72px 0 0; text-align: center; overflow: hidden; }
.mx-hero-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(76, 201, 240, 0.22), rgba(8, 16, 36, 0) 70%); }
.mx-hero-streak { position: absolute; left: -10%; right: -10%; top: 44%; height: 220px; pointer-events: none; background: linear-gradient(90deg, rgba(212, 255, 58, 0), rgba(212, 255, 58, 0.10), rgba(212, 255, 58, 0)); transform: rotate(-8deg); }
.mx-hero-inner { position: relative; }
.mx-chips { display: inline-flex; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.mx-chip { padding: 7px 13px; background: #1A2747; transform: skewX(-12deg); }
.mx-chip-cyan { background: var(--cyan); color: var(--navy); }
.mx-chip-lime { background: var(--lime); color: var(--navy); }
.mx-hero-title { font-size: clamp(42px, 7.2vw, 104px); line-height: 0.9; margin: 28px auto 24px; max-width: 1180px; }
.mx-hero-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--text-2); max-width: 720px; margin: 0 auto 34px; }
.mx-hero-lead strong { color: var(--text-main); font-weight: 600; }
.mx-cta-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.mx-hero-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 28px; font-size: 14px; color: var(--text-2); }
.mx-hero-checks li { display: flex; align-items: center; gap: 10px; }

/* Panel de demostración */
.mx-dash-stage { margin: 64px auto 0; max-width: 1120px; perspective: 1600px; }
.mx-dash {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    background: var(--bg-card); border: 1px solid var(--border-color); border-bottom: 0; border-radius: 18px 18px 0 0;
    box-shadow: 0 -20px 120px -40px rgba(76, 201, 240, 0.6);
    text-align: left; overflow: hidden;
    transform: rotateX(16deg); transform-origin: 50% 100%;
}
.mx-dash-col { padding: 24px; }
.mx-dash-col + .mx-dash-col { border-left: 1px solid var(--border-color); }
.mx-dash-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.mx-kicker { font-size: 12px; font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: .08em; }
.mx-kicker-mute { color: var(--text-light); }
.mx-kicker-lime { color: var(--lime); }
.mx-dash-title { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 21px; text-transform: uppercase; }
.mx-live-tag { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 11px; font-weight: 800; color: var(--navy); background: var(--lime); padding: 6px 10px; text-transform: uppercase; transform: skewX(-10deg); }
.mx-rank { display: flex; flex-direction: column; gap: 5px; }
.mx-rank li {
    display: grid; grid-template-columns: 32px 1fr 40px 50px; align-items: center; gap: 8px;
    padding: 8px 12px; background: var(--surface-2); font-size: 14.5px; font-weight: 500;
    transition: background-color .4s ease, color .4s ease;
}
.mx-rank li.is-1 { background: var(--lime); color: var(--navy); font-weight: 700; }
.mx-rank li.is-top { background: rgba(76, 201, 240, 0.14); font-weight: 700; }
.mx-rank-pos { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-style: italic; }
.mx-rank-d { font-size: 12px; font-weight: 700; color: var(--text-mute); }
.mx-rank-d.is-up { color: var(--lime); }
.mx-rank-d.is-down { color: var(--coral); }
.mx-rank li.is-1 .mx-rank-d { color: var(--navy); }
.mx-rank-pts { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-display); font-stretch: 110%; font-weight: 800; }
.mx-dash-court { display: flex; flex-direction: column; gap: 16px; }
.mx-court { position: relative; aspect-ratio: 2 / 1; background: #12305E; border: 2px solid rgba(255, 255, 255, .55); }
.mx-court svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mx-ball-path { stroke-dasharray: 4 8; }
.js-motion .mx-ball-path { stroke-dasharray: 900; animation: mxBall 3.6s cubic-bezier(.3, .6, .3, 1) infinite; }
@keyframes mxBall { 0% { stroke-dashoffset: 900; } 60%, 100% { stroke-dashoffset: 0; } }
.mx-scoreline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.mx-score { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-style: italic; font-size: 40px; color: var(--lime); }
@media (max-width: 639px) {
    .mx-hero { padding-top: 44px; }
    .mx-dash-stage { margin-top: 40px; perspective: none; }
    .mx-dash { transform: none; border-radius: 14px 14px 0 0; }
    .mx-dash-col { padding: 16px; }
    .mx-dash-col + .mx-dash-col { border-left: 0; border-top: 1px solid var(--border-color); }
    .mx-rank li { grid-template-columns: 26px 1fr 34px 40px; font-size: 13.5px; padding: 8px 10px; }
    .mx-rank li:nth-child(n+6) { display: none; }
}

/* ---------- Banda de datos ---------- */
.mx-band { background: var(--bg-card); border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 36px 0; }
.mx-band-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; }
.mx-stat-num { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-style: italic; font-size: clamp(30px, 3.4vw, 40px); line-height: 1; }
.mx-stat-label { margin-top: 6px; font-size: 12.5px; color: var(--text-light); text-transform: uppercase; letter-spacing: .08em; }
.mx-band-sports { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--text-mute); font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 16px; text-transform: uppercase; }
@media (max-width: 899px) {
    .mx-band-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: center; gap: 24px 12px; }
    .mx-band-sports { grid-column: 1 / -1; margin: 0; justify-content: center; font-size: 13px; }
}

/* ---------- Secciones ---------- */
.mx-section { padding: 80px 0; }
.mx-section-top { padding-top: 120px; }
.mx-section-flush { padding-bottom: 0; }
@media (max-width: 639px) { .mx-section { padding: 56px 0; } .mx-section-top { padding-top: 72px; } .mx-section-flush { padding-bottom: 0; } }
.mx-section-head { max-width: 860px; margin-bottom: 40px; }
.mx-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); margin-bottom: 14px !important; }
.mx-eyebrow-dark { color: var(--navy); }
.mx-h2 { font-size: clamp(34px, 4.6vw, 66px); }
.mx-h3 { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 38px); line-height: 1; letter-spacing: -0.01em; }
.mx-lead { margin-top: 18px !important; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--text-2); max-width: 720px; }
.mx-lead strong { color: var(--text-main); }
.mx-body { font-size: 17px; color: var(--text-2); line-height: 1.6; margin: 18px 0 24px !important; }

/* ---------- Formatos (pestañas) ---------- */
.mx-tabs { display: flex; flex-wrap: wrap; border-bottom: 2px solid rgba(255, 255, 255, 0.1); margin-bottom: 36px; }
.mx-tab {
    min-height: 56px; padding: 14px 28px !important; margin-bottom: -2px;
    border-bottom: 4px solid transparent !important;
    font-family: var(--font-display) !important; font-stretch: 125%; font-weight: 800; font-size: 20px; text-transform: uppercase;
    color: var(--text-light) !important; transition: color .2s, border-color .2s;
}
.mx-tab:hover { color: var(--lime) !important; }
.mx-tab[aria-selected="true"] { color: var(--lime) !important; border-bottom-color: var(--lime) !important; }
@media (max-width: 639px) { .mx-tabs { display: grid; grid-template-columns: repeat(3, 1fr); } .mx-tab { padding: 12px 4px !important; font-size: 13px; } }
.mx-fmt { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: center; }
.mx-fmt + .mx-fmt { margin-top: 64px; }
.js-tabs .mx-fmt[data-hidden] { display: none; }
.js-tabs .mx-fmt + .mx-fmt { margin-top: 0; }
.mx-fmt:focus-visible { outline: 3px solid var(--lime); outline-offset: 8px; }
.js-tabs .mx-fmt { animation: viewIn .35s var(--ease-out); }
.mx-points { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.mx-points li { display: flex; align-items: center; gap: 12px; }
.mx-visual { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; padding: 24px; min-height: 340px; display: flex; align-items: center; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
@media (max-width: 639px) { .mx-visual { padding: 14px; min-height: 0; border-radius: 12px; } }

/* Cuadro */
.mx-bracket { display: flex; gap: 22px; width: 100%; font-size: 13px; }
.mx-bracket-col { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; min-width: 0; }
.mx-bracket-col:last-child { flex: .7; }
.mx-bracket-title { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); text-align: center; }
.mx-bm { background: var(--surface-2); border: 1px solid var(--border-color); padding: 8px 10px; position: relative; }
.mx-bm.is-final { border-color: rgba(76, 201, 240, .6); }
.mx-bm-meta { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--text-light); margin-bottom: 4px; }
.mx-bm-row { display: flex; justify-content: space-between; gap: 8px; min-height: 28px; align-items: center; color: var(--text-2); }
.mx-bm-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-bm-row + .mx-bm-row { border-top: 1px solid var(--border-color); }
.mx-bm-row b { flex-shrink: 0; white-space: nowrap; font-family: var(--font-display); font-stretch: 112%; font-style: italic; font-weight: 800; color: var(--text-mute); word-spacing: 4px; }
.mx-visual { container-type: inline-size; }
@container (max-width: 470px) { .mx-bracket-col:last-child { display: none; } .mx-bracket { gap: 12px; } }
.mx-bm-row.is-win { color: var(--text-main); font-weight: 700; }
.mx-bm-row.is-win b { color: var(--navy); background: var(--lime); padding: 0 5px; }
.mx-champ { background: var(--lime); color: var(--navy); text-align: center; padding: 18px 8px; font-family: var(--font-display); font-stretch: 125%; font-style: italic; font-weight: 900; font-size: 28px; box-shadow: 0 0 30px rgba(212, 255, 58, .5); }
@media (max-width: 479px) { .mx-bracket { gap: 10px; font-size: 11.5px; } .mx-bracket-col:last-child { display: none; } }

/* Tabla Elo */
.mx-table { width: 100%; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.mx-table-row { display: grid; grid-template-columns: 28px 1fr 52px 96px; gap: 8px; align-items: center; padding: 11px 12px; background: var(--surface-2); }
.mx-table-row > span:last-child { text-align: right; }
.mx-table-row b { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-style: italic; }
.mx-table-row i { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 5px; margin-left: 4px; color: var(--text-light); }
.mx-table-row i.is-up { color: var(--lime); }
.mx-table-row i.is-down { color: var(--coral); }
.mx-table-head { background: transparent; padding-top: 4px; padding-bottom: 4px; color: var(--text-light); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mx-table-row.is-1 { background: rgba(76, 201, 240, 0.16); color: var(--cyan); font-weight: 700; }
.mx-table-row.is-1 i.is-up { color: var(--lime); }
.mx-table-row.is-mute { color: var(--text-light); }
.mx-table-foot { margin-top: 8px; font-size: 12px; color: var(--text-light); }

/* Rondas de americano */
.mx-rounds { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; font-size: 13px; }
.mx-round { background: var(--surface-2); padding: 12px; }
.mx-round b { display: block; margin-top: 2px; }
.mx-round-meta { color: var(--text-light); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.mx-round-score { color: var(--lime); font-weight: 800; margin-top: 4px; font-family: var(--font-display); font-stretch: 112%; font-style: italic; }
.mx-round.is-now { background: rgba(212, 255, 58, 0.12); outline: 1px solid var(--lime); }
.mx-round.is-now .mx-round-meta { color: var(--lime); font-weight: 700; }
.mx-round-wide { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mx-round-wide b { margin: 0; }

/* ---------- Pasos ---------- */
.mx-steps { display: flex; flex-wrap: wrap; gap: 12px; }
.mx-step { flex: 1 1 300px; background: var(--bg-card); padding: 34px 48px 36px 38px; clip-path: polygon(0 0, 94% 0, 100% 50%, 94% 100%, 0 100%); }
.mx-step-2 { background: var(--surface-hi); clip-path: polygon(0 0, 94% 0, 100% 50%, 94% 100%, 0 100%, 6% 50%); padding-left: 52px; }
.mx-step-3 { background: var(--lime); color: var(--navy); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 6% 50%); padding-left: 52px; }
.mx-step-num { display: block; font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-style: italic; font-size: 64px; line-height: 1; color: var(--lime); }
.mx-step-3 .mx-step-num { color: var(--navy); }
.mx-step h3 { font-size: 22px; margin: 12px 0 8px; }
.mx-step p { color: var(--text-2); line-height: 1.55; }
.mx-step-3 p { color: #24304A; }
@media (max-width: 939px) {
    .mx-steps { flex-direction: column; gap: 6px; }
    .mx-step, .mx-step-2, .mx-step-3 { clip-path: none; padding: 24px 22px; flex-basis: auto; }
    .mx-step { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; }
    .mx-step-num { grid-row: span 2; font-size: 48px; }
    .mx-step h3 { margin: 4px 0 6px; }
}

/* ---------- Bento ---------- */
.mx-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mx-card {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 26px;
    transition: transform .25s var(--ease-out), border-color .25s ease, box-shadow .25s ease;
}
.mx-card:hover { transform: translateY(-6px); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.mx-card h3 { font-size: 19px; margin: 14px 0 6px; }
.mx-card p { color: var(--text-2); line-height: 1.5; }
.mx-card-lime { background: var(--lime); color: var(--navy); border-color: var(--lime); }
.mx-card-lime:hover { border-color: var(--lime); box-shadow: var(--glow-lime); }
.mx-card-lime p { color: #24304A; font-size: 16px; margin-top: 10px; }
.mx-bento-hero { grid-row: span 2; min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; padding: 32px; }
.mx-bento-hero .mx-h3 { font-size: clamp(26px, 2.4vw, 32px); }
.mx-bento-wide { grid-column: span 3; }
.mx-big-score { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-style: italic; font-size: 32px; color: var(--cyan); line-height: 1; }
@media (max-width: 1023px) { .mx-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mx-bento-hero { grid-row: auto; grid-column: span 2; min-height: 240px; } .mx-bento-wide { grid-column: span 2; } }
@media (max-width: 639px) { .mx-bento { grid-template-columns: 1fr; } .mx-bento-hero, .mx-bento-wide { grid-column: auto; } .mx-bento-hero { min-height: 0; gap: 28px; } }

/* Ficha pública */
.mx-ficha { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.mx-ficha-cover {
    position: relative; min-height: 240px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
    background:
        linear-gradient(180deg, rgba(8, 16, 36, 0) 20%, rgba(8, 16, 36, .9) 100%),
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, .4) calc(50% - 1px), rgba(255, 255, 255, .4) calc(50% + 1px), transparent calc(50% + 1px)),
        radial-gradient(ellipse 60% 80% at 85% 10%, rgba(212, 255, 58, .35), transparent 60%),
        linear-gradient(135deg, #12305E 0%, #1E4A6E 100%);
}
.mx-ficha-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: auto; }
.mx-ficha-name { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(26px, 3vw, 40px); line-height: .95; }
.mx-ficha-meta { font-size: 13px; color: var(--text-2); }
.mx-ficha-side { padding: 22px; display: flex; flex-direction: column; gap: 10px; border-left: 1px solid var(--border-color); }
.mx-prize { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.mx-ficha-cta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--border-color); font-size: 13px; color: var(--text-2); }
@media (max-width: 767px) { .mx-ficha { grid-template-columns: 1fr; } .mx-ficha-side { border-left: 0; border-top: 1px solid var(--border-color); } }

/* Ficha de jugador */
.mx-player { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 24px; align-items: center; }
.mx-player-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; }
.mx-player-name { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 30px; line-height: 1; margin-top: 4px; }
.mx-player-elo { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-style: italic; font-size: 38px; line-height: 1; color: var(--lime); }
.mx-chart { width: 100%; height: auto; }
.mx-mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mx-mini-stats div { background: var(--surface-2); padding: 12px; }
.mx-mini-stats span { display: block; font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: .04em; }
.mx-mini-stats b { font-family: var(--font-display); font-stretch: 112%; font-style: italic; font-weight: 800; font-size: 22px; }
@media (max-width: 1023px) { .mx-player { grid-template-columns: 1fr; } }
.js-motion .chart-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js-motion .is-in .chart-line { animation: lpDraw 1.4s var(--ease-out) .3s forwards; }
@keyframes lpDraw { to { stroke-dashoffset: 0; } }
.js-motion .chart-fill, .js-motion .chart-dot { opacity: 0; }
.js-motion .is-in .chart-fill { animation: overlayIn .8s ease-out 1.1s forwards; }
.js-motion .is-in .chart-dot { animation: overlayIn .4s ease-out 1.5s forwards; }

/* ---------- Antes / Después ---------- */
.mx-split { display: flex; flex-wrap: wrap; margin-top: 8px; }
.mx-before, .mx-after { flex: 1 1 480px; position: relative; overflow: hidden; padding: clamp(40px, 6vw, 88px) clamp(20px, 6vw, 80px); }
.mx-before { background: var(--contrast); color: #1B2333; }
.mx-after { background: var(--bg-deep); }
.mx-split-title { font-size: clamp(40px, 5vw, 72px); color: #8C95A4; line-height: .9; }
.mx-before > p, .mx-after > p { font-size: 18px; margin: 16px 0 28px !important; }
.mx-before > p { color: #3B4558; }
.mx-after > p { color: var(--text-2); }
.mx-chat { display: flex; flex-direction: column; gap: 10px; transform: rotate(-2deg); max-width: 440px; }
.mx-bubble { align-self: flex-start; background: #FFFFFF; padding: 10px 14px; border-radius: 4px 14px 14px 14px; font-size: 14px; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.mx-bubble.is-me { align-self: flex-end; background: #DCF8C6; border-radius: 14px 4px 14px 14px; }
.mx-formula { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: #FFFFFF; border: 1px solid #C5CBD3; padding: 8px 10px; color: #B3261E; }
.mx-after-glow { position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 255, 58, 0.22), rgba(212, 255, 58, 0) 65%); pointer-events: none; }
.mx-after > :not(.mx-after-glow) { position: relative; }
.mx-after-list { display: flex; flex-direction: column; gap: 16px; font-size: 16px; color: var(--text-2); line-height: 1.5; max-width: 560px; }
.mx-after-list li { display: flex; gap: 14px; align-items: flex-start; }
.mx-after-list .mx-tick { margin-top: 2px; }
.mx-after-list strong { color: var(--text-main); }

/* ---------- Comparativa ---------- */
.mx-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: start; }
.mx-table-wrap { overflow-x: auto; border: 1px solid rgba(255, 255, 255, .12); }
.mx-cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.mx-cmp th, .mx-cmp td { padding: 14px 16px; border-bottom: 1px solid var(--border-color); text-align: left; }
.mx-cmp td:not(:first-child), .mx-cmp th:not(:first-child) { text-align: center; }
.mx-cmp th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-light); background: var(--bg-card); }
.mx-cmp th.is-us { background: var(--lime); color: var(--navy); }
.mx-cmp td.is-us { background: rgba(212, 255, 58, .06); }
.mx-cmp tbody tr { transition: background-color .2s; }
.mx-cmp tbody tr:hover { background: var(--bg-card); }
.mx-cmp tr:last-child td { border-bottom: 0; }
.mx-yes { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; background: var(--lime); color: var(--navy); transform: skewX(-10deg); }
.mx-yes svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.mx-no { color: var(--text-mute); font-weight: 700; }
.mx-meh { color: var(--text-light); font-size: 13px; }

/* ---------- Banda lima ---------- */
.mx-lime-band { position: relative; overflow: hidden; background: var(--lime); color: var(--navy); padding: clamp(56px, 8vw, 112px) 0; }
.mx-lime-band-lines { position: absolute; right: -80px; top: 0; bottom: 0; width: 520px; border-left: 3px solid rgba(8, 16, 36, .12); border-right: 3px solid rgba(8, 16, 36, .12); transform: skewX(-14deg); pointer-events: none; }
.mx-lime-band-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: center; }
.mx-lime-band .mx-h2 { color: var(--navy); }
.mx-lead-dark { font-size: 19px; line-height: 1.5; color: #1B2640; max-width: 480px; margin: 22px 0 30px !important; }
.mx-cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: rgba(8, 16, 36, .15); }
.mx-cell { background: var(--lime); padding: 28px; }
.mx-cell-num { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-style: italic; font-size: 34px; line-height: 1; }
.mx-cell h3 { font-size: 19px; margin: 10px 0 6px; }
.mx-cell p { color: #1B2640; font-size: 15px; line-height: 1.5; }
@media (max-width: 639px) { .mx-cells { grid-template-columns: 1fr; } .mx-cell { padding: 22px 4px; } }

/* ---------- Guía ---------- */
.mx-guide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.mx-guide-aside { position: sticky; top: 104px; }
.mx-guide-list { display: flex; flex-direction: column; }
.mx-guide-item { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.mx-guide-item:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mx-guide-num { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-style: italic; font-size: 34px; line-height: 1; color: var(--lime); }
.mx-guide-item h3 { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(20px, 2vw, 26px); line-height: 1.05; margin-bottom: 12px; }
.mx-guide-item p { color: var(--text-2); font-size: 17px; line-height: 1.65; }
.mx-guide-item strong { color: var(--text-main); }
@media (max-width: 899px) { .mx-guide { grid-template-columns: 1fr; gap: 28px; } .mx-guide-aside { position: static; } .mx-guide-item { grid-template-columns: 48px 1fr; } .mx-guide-num { font-size: 28px; } }

/* ---------- FAQ ---------- */
.mx-faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 48px; align-items: start; }
.mx-faq details { border-top: 1px solid rgba(255, 255, 255, .12); }
.mx-faq details:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mx-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px; padding: 20px 0; min-height: 56px; font-weight: 600; font-size: 17px; transition: color .2s; }
.mx-faq summary::-webkit-details-marker { display: none; }
.mx-faq summary:hover { color: var(--lime); }
.mx-faq-n { width: 36px; flex-shrink: 0; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-style: italic; color: var(--text-mute); transition: color .2s; }
.mx-faq-q { flex: 1; }
.mx-faq-x { color: var(--lime); transition: transform .25s var(--ease-out); }
.mx-faq-x svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.mx-faq details[open] .mx-faq-x { transform: rotate(45deg); }
.mx-faq details[open] .mx-faq-n { color: var(--lime); }
.mx-faq details p { padding: 0 0 24px 54px; color: var(--text-2); line-height: 1.65; }
.mx-faq details[open] p { animation: viewIn .32s var(--ease-out) backwards; }
@media (max-width: 479px) { .mx-faq details p { padding-left: 0; } .mx-faq-n { width: 28px; } }

/* ---------- CTA final ---------- */
.mx-final {
    position: relative; overflow: hidden; text-align: center; padding: clamp(80px, 10vw, 150px) 0;
    background:
        radial-gradient(ellipse 60% 70% at 50% 110%, rgba(76, 201, 240, 0.35), rgba(8, 16, 36, 0) 70%),
        radial-gradient(ellipse 50% 40% at 50% 0%, rgba(212, 255, 58, 0.16), rgba(8, 16, 36, 0) 70%),
        var(--bg-body);
}
.mx-final-court { position: absolute; left: 50%; bottom: -260px; width: 1200px; height: 560px; margin-left: -600px; transform: perspective(900px) rotateX(64deg); border: 3px solid rgba(255, 255, 255, .18); background: rgba(18, 48, 94, .5); pointer-events: none; }
.mx-final-court span { position: absolute; background: rgba(255, 255, 255, .2); }
.mx-final-court span:nth-child(1) { left: 50%; top: 0; bottom: 0; width: 3px; background: rgba(255, 255, 255, .3); }
.mx-final-court span:nth-child(2) { left: 15%; right: 15%; top: 50%; height: 2px; }
.mx-final-court span:nth-child(3) { left: 15%; top: 0; bottom: 0; width: 2px; }
.mx-final-court span:nth-child(4) { right: 15%; top: 0; bottom: 0; width: 2px; }
.mx-final-inner { position: relative; max-width: 1100px; }
.mx-final-title { font-size: clamp(40px, 7vw, 104px); line-height: .88; margin-bottom: 24px; }
.mx-final .mx-hero-lead { margin-bottom: 36px; }
@media (max-width: 479px) { .mx-final .mx-btn { width: 100%; } }

/* ---------- Pie ---------- */
.mx-footer { background: var(--bg-deep); padding: 56px 0 40px; color: var(--text-light); }
.mx-footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.mx-footer-note { margin-top: 14px !important; font-size: 14px; max-width: 300px; }
.mx-footer nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.mx-footer h3 { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-main); margin-bottom: 6px; }
.mx-footer nav a, .mx-footer-bottom button { color: var(--text-light); text-decoration: none; transition: color .15s; }
.mx-footer nav a:hover, .mx-footer-bottom button:hover { color: var(--lime); }
.mx-footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; }
.mx-footer-bottom button { text-decoration: underline; text-underline-offset: .2em; font-size: 13px; }
@media (max-width: 767px) { .mx-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mx-footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Movimiento de la portada ---------- */
.js-motion [data-reveal]:not(.is-in) { opacity: 0; }
.js-motion [data-reveal].is-in { animation: lpReveal .75s var(--ease-out) backwards; animation-delay: calc(var(--reveal-i, 0) * 80ms); }
@keyframes lpReveal { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.js-motion .hero-in { animation: lpHeroUp .8s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes lpHeroUp { from { transform: translateY(20px); } to { transform: none; } }
.js-motion .hero-dash { animation: lpDashIn 1.1s var(--ease-out) .2s backwards; }
@keyframes lpDashIn { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
/* Las tarjetas "mx-card" ya animan al pasar el ratón: la aparición no debe bloquear su transform */
.js-motion .mx-bento > [data-reveal].is-in { animation-fill-mode: backwards; }

@media (prefers-reduced-motion: reduce) {
    .mx-ticker { animation: none; }
}

/* ---------- Ajustes de titulares largos (palabras como "emparejamientos" u "organizadores") ---------- */
.mx-display, .mx-h3, .mx-guide-item h3 { overflow-wrap: break-word; }
.mx-bento-hero .mx-h3 { font-size: clamp(22px, 2.2vw, 28px); }
@media (min-width: 1024px) and (max-width: 1179px) {
    .mx-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mx-bento-hero { grid-row: auto; grid-column: span 2; min-height: 240px; }
    .mx-bento-wide { grid-column: span 2; }
}
.mx-lime-band-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) {
    .mx-lime-band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mx-lime-band .mx-h2 { font-size: clamp(32px, 3.4vw, 50px); }
}
.mx-guide-aside .mx-h2 { font-size: clamp(32px, 3.6vw, 54px); }

@media (max-width: 479px) {
    .mx-h2 { font-size: 30px; }
    .mx-hero-title { font-size: 38px; }
}


/* Acceso para jugadores bajo el hero */
.mx-player-link { margin-top: 22px; font-size: 15px; color: var(--text-2); }
.mx-player-link a { color: var(--lime); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.mx-player-link a:hover { text-decoration: underline; text-underline-offset: .2em; }

/* =====================================================================
   PORTAL: listado público de competiciones (portal.js)
   ===================================================================== */
.mx-portal { padding: 56px 0 80px; text-align: left; }
.mx-portal-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.mx-portal-head .mx-h2 { font-size: clamp(28px, 3.4vw, 46px); }
.mx-portal-all { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font-weight: 700; text-decoration: none; min-height: 44px; }
.mx-portal-all:hover { text-decoration: underline; }
.mx-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.mx-pcard { text-decoration: none; display: flex; flex-direction: column; }
.mx-pcard .comp-cover { position: relative; }
.mx-pcard-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; }
.mx-chip-fed { background: var(--text-main); color: var(--navy); border-color: var(--text-main); }
.mx-pcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mx-pcard-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.mx-pcard-name { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 24px; line-height: 1.1; color: var(--text-main); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mx-pcard-org { font-size: 14px; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.4em; }
.mx-pcard-meta { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-2); }
.mx-pcard-meta li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.mx-pcard-meta li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-pcard-meta .mx-ic { color: var(--text-mute); }
.mx-pcard-skel { aspect-ratio: 4 / 3.4; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); animation: mxSkel 1.4s ease-in-out infinite; }
@keyframes mxSkel { 50% { opacity: .5; } }
.mx-pempty { border: 1.5px dashed var(--border-strong); padding: 36px 24px; text-align: center; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 20px; }
.mx-pempty p { max-width: 620px; line-height: 1.6; }
.mx-pempty strong { color: var(--text-main); }
.mx-pmore { display: flex; justify-content: center; margin-top: 32px; }
.mx-ptools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 28px; }
.mx-pfilters { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-pfilter { min-height: 44px; padding: 0 16px; font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); background: var(--bg-card); border: 1px solid var(--border-color); cursor: pointer; transform: skewX(-8deg); transition: color .15s, border-color .15s, background .15s; }
.mx-pfilter:hover { color: var(--lime); border-color: var(--border-strong); }
.mx-pfilter[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--navy); }
.mx-pfilter:focus-visible, .mx-portal-all:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.mx-psearch { position: relative; flex: 1 1 240px; max-width: 380px; margin-left: auto; display: block; }
.mx-psearch .mx-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-mute); pointer-events: none; }
.mx-psearch input { width: 100%; height: 46px; padding: 0 14px 0 40px; font: inherit; font-size: 15px; color: var(--text-main); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 0; }
.mx-psearch input::placeholder { color: var(--text-mute); }
.mx-psearch input:focus { outline: 2px solid var(--lime); outline-offset: 1px; }
@media (max-width: 639px) { .mx-psearch { max-width: none; margin-left: 0; flex-basis: 100%; } .mx-portal { padding: 40px 0 56px; } }
@media (prefers-reduced-motion: reduce) { .mx-pcard-skel { animation: none; } }

/* Página interior (listado completo, legales): cabecera compacta */
.mx-page-head { padding: 56px 0 8px; }
.mx-page-head .mx-hero-title { font-size: clamp(36px, 5.4vw, 72px); margin: 14px 0 16px; max-width: 980px; }
.mx-page-head .mx-lead { margin-top: 0 !important; }

/* Bloque "para organizadores" de la portada */
.mx-org-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.mx-org-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; color: #1B2640; font-size: 16px; line-height: 1.5; }
.mx-org-points li { display: flex; gap: 12px; align-items: flex-start; }
.mx-org-points .mx-tick { background: var(--navy); color: var(--lime); margin-top: 2px; }
.mx-final-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* Texto legal */
.mx-legal { max-width: 780px; padding-bottom: 80px; color: var(--text-2); line-height: 1.7; font-size: 16px; }
.mx-legal h2 { font-size: 22px; color: var(--text-main); margin: 36px 0 10px; }
.mx-legal p, .mx-legal ul { margin: 0 0 14px; }
.mx-legal ul { padding-left: 22px; list-style: disc; }
.mx-legal a { color: var(--lime); }
.mx-legal mark { background: rgba(255, 210, 74, .22); color: var(--warning); padding: 0 4px; }
.mx-footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.mx-footer-legal a { color: inherit; }

/* Ficha pública de una competición (competicion.php) */
.mx-ficha-page { padding-top: 28px; padding-bottom: 80px; }
.mx-fback { margin-bottom: 16px !important; font-size: 14px; }
.mx-fback a { color: var(--text-2); text-decoration: none; }
.mx-fback a:hover { color: var(--lime); }
.mx-ficha-page .comp-cover { display: flex; }
.mx-fcover-in { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: clamp(18px, 3vw, 30px); width: 100%; }
.mx-fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-fname { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(30px, 5vw, 54px); line-height: 1; color: #fff; overflow-wrap: anywhere; }
.mx-fmeta { font-size: 14px; color: rgba(255, 255, 255, .82); }
.mx-fcta { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0; }
.mx-fgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 899px) { .mx-fgrid { grid-template-columns: 1fr; } }
.mx-fgrid .mx-card { padding: 24px; }
.mx-fabout h2, .mx-fabout h3, .mx-fprizes-title { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-light); margin: 0 0 10px; }
.mx-fabout h3 { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.mx-fdesc { color: var(--text-2); line-height: 1.7; overflow-wrap: anywhere; }
.mx-fdetails { margin: 0; display: grid; gap: 14px; }
.mx-fdetail { display: flex; gap: 12px; align-items: flex-start; }
.mx-fdetail .mx-ic { color: var(--text-mute); margin-top: 3px; }
.mx-fdetail dt { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-light); }
.mx-fdetail dd { margin: 2px 0 0; font-weight: 600; color: var(--text-main); overflow-wrap: anywhere; }
.mx-fprizes-title { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-color); }
.mx-fnote { margin-top: 24px !important; font-size: 13px; color: var(--text-light); max-width: 760px; }

/* "COMPETICIONES" no cabe en una línea en móvil con el tamaño normal del titular */
@media (max-width: 479px) {
    .mx-hero-title.mx-title-long, .mx-page-head .mx-hero-title.mx-title-long { font-size: min(42px, 7.6vw); line-height: .95; }
}
