/* Dirección "Ripio y polvo" con los colores del logo: naranja, negro y blanco. */
:root {
  --ground: #F4F3F1;
  --ink: #111214;
  --ink-2: #5A5D62;
  --naranja: #F96700;
  --naranja-claro: #FF8A33;
  --naranja-texto: #B84A00;
  --line-dark: #2E3339;
  --muted-dark: #A9AFB6;
  --line: #D9D7D2;
  --cut: clamp(20px, 4vw, 56px);
  --font: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px);
}
img { max-width: 100%; display: block; }
::selection { background: var(--naranja); color: var(--ink); }
html { accent-color: var(--naranja); caret-color: var(--naranja); scrollbar-color: #A8ABA6 var(--ground); }
a { text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a { color: var(--naranja-texto); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; }
[hidden] { display: none !important; }
.defs { position: absolute; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }

.label { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.78); line-height: 1.3; }
.label.dark { color: var(--ink-2); }
.label.acento { color: var(--naranja); }

.h2 { margin: 0; font-weight: 900; font-style: italic; font-size: clamp(44px, 6.4vw, 84px); line-height: 0.92; letter-spacing: -0.04em; text-wrap: balance; }
.h2.big { font-size: clamp(48px, 7vw, 6rem); }

/* Corte diagonal con la inclinación del logo: la sección se monta sobre la siguiente. */
.cut-b { position: relative; z-index: 1; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); margin-bottom: calc(var(--cut) * -1); }
.cut-b + :not([hidden]), .cut-b + [hidden] + * { border-top: var(--cut) solid transparent; }

/* Fotos: imagen real si hay, si no el degradé de tierra con grano. */
.photo { position: relative; overflow: hidden; background: linear-gradient(180deg, #2B2C2F 0%, #4A443D 40%, #7A5C3E 70%, #2A1E14 100%); }
.photo-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.photo .dust { position: absolute; inset: 0; background: radial-gradient(60% 40% at 30% 66%, rgba(200,160,115,0.55), rgba(200,160,115,0) 70%), radial-gradient(45% 30% at 70% 60%, rgba(249,103,0,0.18), rgba(249,103,0,0) 70%); }
.photo.has-img .dust { display: none; }
.photo .grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.35; mix-blend-mode: multiply; pointer-events: none; }
.photo .shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,12,10,0.82) 0%, rgba(14,12,10,0.15) 50%, rgba(14,12,10,0.25) 100%); }
.hero.is-live .shade { background: rgba(14,12,10,0.72); }

/* Botones */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 20px; border-radius: 4px; font-weight: 700; font-size: 16px; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 17px; }
.btn-acento { background: var(--naranja); color: var(--ink); }
.btn-acento:hover { background: var(--naranja-claro); color: var(--ink); }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.7); color: #FFFFFF; }
.btn-outline:hover { background: #FFFFFF; color: var(--ink); }
.btn-ink { background: var(--ink); color: #FFFFFF; }
.btn-ink:hover { background: #000; color: #FFFFFF; }

/* Hero */
.hero { min-height: 780px; display: flex; flex-direction: column; color: #FFFFFF; }
.hero > .wrap { position: relative; }
.topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.wordmark { display: block; }
.demo-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px 6px 8px; background: rgba(17,18,20,0.55); border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; color: #FFFFFF; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.demo-switch:hover { border-color: #FFFFFF; }
.demo-switch .track { position: relative; width: 40px; height: 22px; border-radius: 999px; background: rgba(255,255,255,0.3); transition: background .2s ease; }
.demo-switch .knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #FFFFFF; transition: transform .2s ease; }
.demo-switch[aria-checked="true"] .track { background: var(--naranja); }
.demo-switch[aria-checked="true"] .knob { transform: translateX(18px); }
.wordmark img { height: 64px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35)); }
@media (max-width: 480px) { .wordmark img { height: 52px; } }

.hero-off { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; padding-bottom: calc(56px + var(--cut)); }
.chip-next { align-self: flex-start; padding: 7px 14px; border-radius: 4px; background: var(--ink); color: #FFFFFF; font-weight: 700; font-size: 14px; }
.mega { margin: 0; max-width: 13ch; font-weight: 900; font-style: italic; font-size: clamp(56px, 9vw, 6rem); line-height: 0.92; letter-spacing: -0.04em; text-wrap: balance; }
.lead { margin: 0; max-width: 40ch; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: rgba(255,255,255,0.9); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.off-presenta { flex: 1 1 100%; max-width: 460px; display: flex; flex-direction: column; gap: 8px; }
.off-presenta .slot { height: 110px; }

.hero-live { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; padding-top: 12px; padding-bottom: calc(56px + var(--cut)); }
.player-col { flex: 999 1 720px; min-width: 0; display: flex; flex-direction: column; }
.player { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: #0E0C0A; border: 2px solid rgba(255,255,255,0.9); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pill-live { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--naranja); color: var(--ink); font-weight: 800; font-size: 14px; pointer-events: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.presenta-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 14px; background: #FFFFFF; color: var(--ink); }
.presenta-strip .k { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.presenta-strip .presenta-logo { height: 44px; width: auto; }
.presenta-strip .v { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.presenta-strip a { font-weight: 700; }
.marquee { flex: 1 1 280px; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.marquee-track { width: max-content; animation: marquee var(--dur, 60s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set ul { gap: 28px; padding-right: 28px; }
.marquee-set li { flex: none; display: flex; align-items: center; }
.marquee-set li.con-fondo { padding: 4px 8px; border-radius: 4px; }
.marquee-set a, .presenta-strip > a { display: flex; align-items: center; }
.presenta-strip .marquee img { height: 36px; max-width: 120px; object-fit: contain; }
.marquee-set span { font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

.live-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.eyebrow-live { font-weight: 700; color: var(--naranja-claro); }
.live-title { margin: 0; font-weight: 900; font-size: clamp(40px, 4.4vw, 60px); line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; }
.live-sub { margin: 0; font-size: 18px; color: rgba(255,255,255,0.92); }
.presenta-box { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.presenta-box .slot { height: 110px; }

/* Slots de sponsor: logo real o un espacio que invita a auspiciar. */
.slot { display: flex; align-items: center; justify-content: center; padding: 10px; border-radius: 4px; text-decoration: none; font-size: 14px; font-weight: 600; text-align: center; }
.slot img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.slot.filled { background: #FFFFFF; padding: 6px; }
.slot.con-fondo { padding: 4px; }
.slot.empty { background: rgba(17,18,20,0.05); }
.slot.empty:hover { background: rgba(17,18,20,0.09); }
.ink .slot.filled { background: var(--ink); }
.ink .slot.empty { background: rgba(255,255,255,0.06); }
.ink .slot.empty:hover { background: rgba(255,255,255,0.11); }
.on-photo .slot.empty, .presenta-box .slot.empty, .off-presenta .slot.empty { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.12); }
.on-photo .slot.empty:hover, .presenta-box .slot.empty:hover, .off-presenta .slot.empty:hover { background: rgba(255,255,255,0.18); }

/* Banda de bandera + próxima fecha */
.stripes { background: var(--naranja); padding: 18px 24px; display: flex; justify-content: center; }
.next-box { border-radius: 4px; background: var(--ink); color: #FFFFFF; padding: 12px 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 16px; text-align: center; }
.next-box .k { color: var(--naranja); font-weight: 700; }
.next-box .v { font-weight: 700; }

.sponsor-band { background: #FFFFFF; border-bottom: 1px solid var(--line); }
.sponsor-band-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-block: 28px; }
.band-logos { flex: 1 1 600px; min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.band-logos .slot { height: 80px; color: var(--ink-2); }
@media (max-width: 900px) { .band-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.band-logos .slot.filled { border: 1px solid var(--line); }
.sponsor-band .label { flex: 0 0 auto; max-width: 14ch; }

/* Secciones */
.section { padding-block: 88px 32px; display: flex; flex-direction: column; gap: 32px; }
.section-last { padding-bottom: 88px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.more { font-weight: 600; font-size: 16px; text-underline-offset: 3px; }
.empty { margin: 0; color: var(--ink-2); }

.stream-list { display: flex; flex-direction: column; }
.srow { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.srow:first-child { border-top-color: var(--ink); }
.srow:hover { color: var(--ink); }
.srow:hover h3 { color: var(--naranja-texto); }
.srow:hover .thumb img { transform: scale(1.04); }
.thumb img { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.thumb { flex: 0 1 320px; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 4px; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .shade { background: linear-gradient(0deg, rgba(14,12,10,0.5) 0%, rgba(14,12,10,0) 50%); }
.views { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 3px; background: rgba(17,18,20,0.85); color: #FFFFFF; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.srow-body { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.srow-tag { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.srow h3 { margin: 0; font-weight: 900; font-style: italic; font-size: clamp(28px, 3.2vw, 42px); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.srow-meta { font-size: 15px; color: var(--ink-2); }
.srow-go { flex: 0 0 auto; padding: 8px 14px; border: 1.5px solid currentColor; border-radius: 4px; font-weight: 700; font-size: 15px; color: var(--ink); transition: background-color .15s ease, color .15s ease; }
.srow:hover .srow-go { background: var(--naranja); color: var(--ink); border-color: var(--naranja); }

.mosaic { display: flex; flex-wrap: wrap; gap: 16px; }
.mosaic-big { flex: 2 1 520px; min-width: 0; height: 536px; }
.mosaic-col { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.mosaic-col .tile { height: 260px; }
.tile { position: relative; overflow: hidden; display: block; color: #FFFFFF; text-decoration: none; }
.tile .photo { position: absolute; inset: 0; transition: transform .5s ease; }
.tile:hover .photo { transform: scale(1.03); }
.tile:hover { color: #FFFFFF; }
.tile-cap { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; flex-direction: column; gap: 4px; }
.tile-cap .k { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.85); }
.tile-cap .v { font-weight: 800; font-size: 24px; line-height: 1.1; letter-spacing: -0.02em; }
@media (max-width: 640px) { .mosaic-big { height: 380px; } }

.cal { display: flex; flex-wrap: wrap; gap: 0 32px; }
.cal-item { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 20px 0; border-top: 1px solid var(--ink); }
.cal-top { display: flex; gap: 20px; align-items: center; }
.cal-n { font-weight: 900; font-style: italic; font-size: 56px; line-height: 0.9; letter-spacing: -0.04em; min-width: 2.4ch; }
.cal-item:not(.is-done):not(.is-live) .cal-n { color: var(--naranja-texto); }
.cal-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cal-name { font-weight: 800; font-size: 20px; line-height: 1.1; }
.cal-date { font-size: 15px; color: var(--ink-2); }
.cal-link { align-self: flex-start; font-size: 15px; font-weight: 700; white-space: nowrap; text-underline-offset: 3px; }
.cal-link::after { content: " ↗"; }
.state { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1.5px solid var(--ink); }
.state-disputada { color: var(--ink-2); border-color: var(--line); }
.state-proxima { background: var(--ink); color: #FFFFFF; }
.state-a-confirmar { border-color: var(--line); color: var(--ink-2); }
.state-vivo { background: var(--naranja); border-color: var(--naranja); color: var(--ink); }
.cal-item.is-done .cal-n { color: #A8ABA6; }
.cal-item.is-live .cal-n { color: var(--naranja-texto); }

.sub-band { background: var(--naranja); color: var(--ink); }
.sub-band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 64px calc(64px + var(--cut)); }
.sub-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.sub-copy p { margin: 0; max-width: 50ch; font-size: 18px; }

.ink { background: var(--ink); color: #FFFFFF; }
.ink a { color: #FFFFFF; }
.ink a:hover { color: var(--naranja); }
.ausp { display: flex; flex-wrap: wrap; gap: 48px; padding-block: 88px; }
.ausp-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.muted { margin: 0; max-width: 46ch; font-size: 18px; color: #C9CDD2; }
.muted .mail { font-weight: 700; color: #FFFFFF; user-select: all; }
.places { margin: 0; display: flex; flex-direction: column; }
.places > div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line-dark); }
.places > div:last-child { border-bottom: 1px solid var(--line-dark); }
.places dt { flex: 0 0 150px; font-size: 15px; font-weight: 700; color: #FFFFFF; padding-top: 1px; }
.places dd { margin: 0; flex: 1 1 240px; font-size: 17px; }
.ausp-tiers { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ausp-tiers .label { color: var(--muted-dark); margin-top: 10px; }
.ausp-tiers .label:first-child { margin-top: 0; }
#tier-principal .slot { height: 150px; color: #C9CDD2; }
.tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tier-grid .slot { height: 86px; color: var(--muted-dark); }
.tier-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tier-row .slot { flex: 1 1 90px; height: 48px; color: var(--muted-dark); font-size: 13px; }
@media (max-width: 480px) { .tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.footer { border-top: 1px solid var(--line-dark); }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--muted-dark); }
.redes { display: flex; flex-wrap: wrap; gap: 20px; }
.redes a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  .marquee-set[aria-hidden] { display: none; }
  .tile .photo, .thumb img { transition: none; }
}

/* Acceso a la página de tiempos desde la portada */
.tt-band { display: block; background: var(--ink); color: #FFFFFF; text-decoration: none; }
.tt-band:hover { color: #FFFFFF; }
.tt-band-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-block: 40px calc(40px + var(--cut)); }
.tt-band-t { flex: 1 1 320px; font-weight: 900; font-style: italic; font-size: clamp(34px, 5vw, 64px); line-height: 0.95; letter-spacing: -0.04em; }
.tt-band-go { display: inline-flex; align-items: center; min-height: 52px; padding: 14px 24px; border-radius: 4px; background: var(--naranja); color: var(--ink); font-weight: 700; font-size: 17px; transition: background-color .15s ease; }
.tt-band:hover .tt-band-go { background: var(--naranja-claro); }


/* Campeonato */
.camp { display: flex; flex-direction: column; gap: 28px; }
.camp-filtros { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.camp-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.camp-tab { min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--ink); border-radius: 4px; background: transparent; color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.camp-tab:hover { background: rgba(17,18,20,0.07); }
.camp-tab[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
.camp-grid { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.camp-rueda { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 20px; border-top: 1px solid var(--ink); }
.camp-rueda-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.camp-rueda h3 { margin: 0; font-weight: 900; font-style: italic; font-size: clamp(32px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.035em; }
.camp-det { margin: 0 0 10px; font-size: 15px; color: var(--ink-2); }
.camp-cols, .camp-row { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) 4.2em; align-items: baseline; gap: 12px; }
.camp-cols:has(span:nth-child(4)), .con-cpt .camp-row { grid-template-columns: 2.4em minmax(0, 1fr) 4.2em 3.2em; }
.camp-cols { padding-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.camp-cols span:nth-child(n+3) { text-align: right; }
.camp-list { list-style: none; margin: 0; padding: 0; }
.camp-row { padding: 9px 0; border-top: 1px solid var(--line); }
.camp-pos { font-weight: 900; font-style: italic; font-size: 20px; color: #A8ABA6; }
.camp-row.is-podio .camp-pos { color: var(--naranja-texto); }
.camp-nom { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.camp-pts { text-align: right; font-weight: 800; font-size: 17px; }
.camp-cpt { justify-self: end; padding: 1px 7px; border-radius: 3px; background: var(--naranja); color: var(--ink); font-size: 13px; font-weight: 800; }
/* n+11: uno más que CAMP_VISIBLES en plantillas.js. */
.camp-rueda.is-corta .camp-row:nth-child(n+11) { display: none; }
.camp-mas { align-self: stretch; min-height: 44px; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: none; font-family: inherit; font-size: 15px; font-weight: 700; text-align: left; color: var(--naranja-texto); cursor: pointer; }
.camp-mas:hover { color: var(--ink); }
.camp-rueda.is-corta .si-larga, .camp-rueda:not(.is-corta) .si-corta { display: none; }
@media (max-width: 480px) {
  .camp-filtros { flex-direction: column; }
  .camp-tab { padding-inline: 12px; }
  .camp-cols, .camp-row { gap: 8px; grid-template-columns: 1.6em minmax(0, 1fr) 3.4em; }
  .camp-cols:has(span:nth-child(4)), .con-cpt .camp-row { grid-template-columns: 1.6em minmax(0, 1fr) 3.4em 2.8em; }
  .camp-nom { font-size: 15px; }
}
