/* #LAFIJA — portón de chapa: franjas de seguridad, amarillo pintura, negro asfalto. Un solo look oscuro. */
:root {
  --asfalto: #12110e;
  --chapa: #1d1b16;
  --chapa-2: #2c2922;
  --amarillo: #f2c800;
  --hueso: #f4efe2;
  --polvo: #a8a18f;
  --vivo: #ff3b30;
  --tinta: #0b0a08;
  --f-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 10px;
  --stripe: repeating-linear-gradient(-45deg, var(--amarillo) 0 14px, var(--tinta) 14px 28px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 80px }
body { margin: 0; background: var(--asfalto); color: var(--hueso); font-family: var(--f-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased }
img { max-width: 100%; height: auto; display: block }
a { color: inherit }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px }
[hidden] { display: none !important }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px) }
.tape { height: 12px; background: var(--stripe) }
.lbl { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: 14px; color: var(--polvo) }
h1, h2, h3 { margin: 0; text-wrap: balance }
.block h2, .tele h2 {
  font-family: var(--f-head); font-weight: 800; text-transform: uppercase; line-height: .95;
  font-size: clamp(34px, 5vw, 56px); color: var(--amarillo); letter-spacing: .005em;
  text-shadow: 3px 3px 0 var(--tinta), 5px 5px 0 var(--chapa-2);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-head); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 17px;
  padding: 12px 18px; border-radius: 8px; border: 2px solid var(--amarillo);
  background: var(--amarillo); color: var(--tinta); text-decoration: none; cursor: pointer;
  box-shadow: 3px 3px 0 var(--tinta); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-1px, -2px); box-shadow: 4px 5px 0 var(--tinta) }
.btn.ghost { background: transparent; color: var(--amarillo); box-shadow: none }
.btn.sm { font-size: 15px; padding: 8px 14px }

.pill {
  display: inline-flex; align-items: center; gap: 8px; width: max-content;
  font-family: var(--f-head); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 14px;
  padding: 5px 11px; border-radius: 999px; background: var(--chapa-2); color: var(--hueso);
}
.pill.live, .onair { background: var(--vivo); color: #fff }
.pill.live::before, .onair::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite }
@keyframes pulse { 50% { opacity: .25 } }

/* header */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--asfalto) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--chapa-2) }
.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 8px }
.brand img { height: 52px; width: auto }
nav.links { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto }
nav.links a { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: 17px; text-decoration: none }
nav.links a:hover { color: var(--amarillo) }
.onair { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 15px; padding: 6px 12px; border-radius: 999px; text-decoration: none }

/* hero: cuenta regresiva gigante */
.hero {
  position: relative; overflow: hidden; padding-block: clamp(36px, 7vw, 88px);
  background:
    linear-gradient(180deg, transparent 55%, var(--asfalto)),
    repeating-linear-gradient(-45deg, var(--chapa) 0 70px, var(--asfalto) 70px 140px);
}
.hero-inner { display: grid; justify-items: center; text-align: center; gap: clamp(18px, 3vw, 28px) }
.hero-top { display: grid; justify-items: center; gap: 14px }
.sched { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 4vw, 44px); line-height: 1; letter-spacing: .02em }
.sched span { color: var(--amarillo) }
.count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2vw, 20px); width: min(100%, 980px); font-variant-numeric: tabular-nums }
.count div { background: var(--tinta); border: 3px solid var(--chapa-2); border-radius: 16px; padding: clamp(10px, 2vw, 22px) 4px clamp(8px, 1.5vw, 16px); box-shadow: 6px 6px 0 rgba(0,0,0,.5) }
.count b {
  display: block; font-family: var(--f-head); font-weight: 800; line-height: .9;
  font-size: clamp(56px, 13vw, 168px); color: var(--amarillo);
  text-shadow: 4px 4px 0 var(--tinta), 6px 6px 0 var(--hueso);
}
.count span { display: block; margin-top: 8px; font-family: var(--f-head); font-weight: 700; font-size: clamp(12px, 1.6vw, 18px); text-transform: uppercase; letter-spacing: .14em; color: var(--polvo) }
.when { margin: 0; font-family: var(--f-head); font-weight: 600; font-size: clamp(18px, 2.2vw, 24px); color: var(--hueso) }
.when::first-letter { text-transform: uppercase }
.actions, .live-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center }

.next { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: center; text-align: left; width: min(100%, 980px); background: var(--tinta); border: 3px solid var(--chapa-2); border-radius: 16px; padding: clamp(12px, 2vw, 20px); text-decoration: none; box-shadow: 6px 6px 0 rgba(0,0,0,.5); transition: border-color .15s }
.next:hover { border-color: var(--amarillo) }
.next-thumb { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; background: var(--asfalto) }
.next-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s }
.next:hover .next-thumb img { transform: scale(1.03) }
.next-info { display: grid; gap: clamp(8px, 1.5vw, 16px); min-width: 0; align-content: center }
.next-info .lbl { font-size: clamp(14px, 1.6vw, 18px) }
.next-title { font-family: var(--f-head); font-weight: 800; font-size: clamp(28px, 4.2vw, 52px); line-height: .98; text-transform: uppercase; text-wrap: balance }
.next .num { color: var(--amarillo) }
.next-cta { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: clamp(16px, 1.8vw, 20px); color: var(--hueso) }

/* YouTube y suscripción */
.yt { width: 1.45em; height: auto; flex: none; display: inline-block; vertical-align: -0.2em }
.btn.sub { background: #e00000; border-color: #e00000; color: #fff }
.sub-link, .sub-txt { color: #ff3030 !important; font-weight: 700 }
.foot-links a { display: inline-flex; align-items: center; gap: 8px }

/* vivo */
section.live { padding-block: 24px 40px; background: linear-gradient(180deg, var(--tinta), var(--asfalto)) }
.live-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px }
.live-head h1 { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 3vw, 34px); line-height: 1.05; min-width: 0 }
.live-grid { display: grid; grid-template-columns: 1fr 360px; gap: 16px }
.player, .modal-player { position: relative; aspect-ratio: 16/9; max-width: 100%; background: #000; border-radius: var(--r); overflow: hidden; border: 3px solid var(--amarillo) }
.player iframe, .modal-player iframe, .chat iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0 }
.chat { position: relative; border-radius: var(--r); overflow: hidden; background: var(--chapa); min-height: 300px }
.live-actions { margin-top: 16px }

section.block { padding-block: clamp(40px, 6vw, 72px) }
.head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px }
.head > div { display: grid; gap: 8px }

/* tele */
.tele { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 48px); background: var(--chapa); border-radius: 16px; padding: clamp(20px, 4vw, 44px); border: 2px solid var(--chapa-2); position: relative; overflow: hidden }
.tele::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 10px; background: var(--stripe) }
.tele-intro { display: grid; gap: 14px; align-content: start }
.tele-intro p { margin: 0; font-size: 17px; max-width: 42ch }
.qr { margin: 8px 0 0; display: flex; gap: 16px; align-items: center; background: var(--asfalto); border-radius: 12px; padding: 14px }
.qr img { width: 120px; height: 120px; border-radius: 8px; flex: none }
.qr figcaption { font-size: 15px; color: var(--polvo) }
.qr-btn { display: none }
.steps a { color: var(--amarillo) }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px }
.tabs button {
  font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 16px;
  padding: 9px 14px; border-radius: 8px; border: 2px solid var(--chapa-2); background: var(--asfalto); color: var(--hueso); cursor: pointer;
}
.tabs button:hover { border-color: var(--polvo) }
.tabs button[aria-selected="true"] { background: var(--amarillo); border-color: var(--amarillo); color: var(--tinta) }
.panel { display: grid; gap: 14px }
.for { margin: 0; color: var(--polvo); font-size: 16px }
.for strong { color: var(--hueso) }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--asfalto); border-radius: 10px; padding: 14px 16px; font-size: 17px }
.steps li b { font-family: var(--f-head); font-weight: 800; font-size: 20px; background: var(--amarillo); color: var(--tinta); width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center; flex: none }
.steps li span { min-width: 0; padding-top: 3px }
.steps strong { color: var(--amarillo); font-weight: 600 }
.tip { margin: 0; font-size: 15px; color: var(--polvo); border-left: 3px solid var(--amarillo); padding-left: 12px }
kbd { font-family: var(--f-head); font-weight: 700; background: var(--chapa-2); border-radius: 4px; padding: 1px 7px; border-bottom: 2px solid var(--tinta) }

/* grillas */
.grid { display: grid; gap: 22px }
.eps { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)) }
.clips { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px }
.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; text-decoration: none; background: none; border: 0; padding: 0; color: inherit; text-align: left; cursor: pointer; font: inherit }
.thumb { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 16/9; max-width: 100%; background: var(--chapa); border: 2px solid transparent; transition: border-color .15s }
.clips .thumb { aspect-ratio: 9/16 }
.card:hover .thumb, .card:focus-visible .thumb { border-color: var(--amarillo) }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s }
.card:hover .thumb img { transform: scale(1.04) }
.thumb .play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .15s; background: rgba(0,0,0,.25) }
.thumb .play::before { content: ""; width: 58px; height: 58px; border-radius: 50%; background: var(--amarillo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%230b0a08'/%3E%3C/svg%3E") center/26px no-repeat }
.card:hover .play, .card:focus-visible .play { opacity: 1 }
.dur { position: absolute; right: 8px; bottom: 8px; background: var(--tinta); font-family: var(--f-head); font-weight: 700; font-size: 14px; padding: 1px 7px; border-radius: 5px; font-variant-numeric: tabular-nums }
.badge { position: absolute; left: 8px; top: 8px; font-family: var(--f-head); font-weight: 800; font-size: 18px; background: var(--amarillo); color: var(--tinta); padding: 1px 9px; border-radius: 6px; text-transform: uppercase; box-shadow: 2px 2px 0 var(--tinta) }
.card h3 { font-family: var(--f-head); font-weight: 700; font-size: 21px; line-height: 1.1; text-transform: uppercase }
.clips .card h3 { font-size: 18px }
.sub { font-family: var(--f-head); font-size: 15px; color: var(--polvo); font-variant-numeric: tabular-nums }
.empty { color: var(--polvo); background: var(--chapa); border-radius: var(--r); padding: 20px }

/* modal */
.modal { border: 0; padding: 0; background: transparent; width: min(1100px, 94vw); max-width: none; color: var(--hueso) }
.modal::backdrop { background: rgba(8, 7, 5, .88) }
.modal.vertical { width: min(420px, 92vw) }
.modal.vertical .modal-player { aspect-ratio: 9/16; max-height: 78vh; margin-inline: auto }
.modal-box { position: relative; display: grid; gap: 12px }
.modal-close { position: absolute; top: -46px; right: 0; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--amarillo); color: var(--tinta); font-size: 18px; font-weight: 800; cursor: pointer }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap }
.modal-foot h3 { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; font-size: 22px; min-width: 0 }

footer { border-top: 1px solid var(--chapa-2); padding-block: 32px 44px; margin-top: 24px }
footer .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap }
footer img { width: 120px; height: auto }
.foot-links { display: flex; gap: 18px }
.foot-links a { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; text-decoration: none }
.foot-links a:hover { color: var(--amarillo) }
.foot-note { margin-left: auto; color: var(--polvo); font-size: 15px }

@media (max-width: 960px) {
  .live-grid { grid-template-columns: 1fr }
  .chat { display: none }
  .tele { grid-template-columns: 1fr }
}
@media (max-width: 640px) {
  nav.links { display: none }
  .top .wrap { justify-content: space-between }
  .brand img { height: 44px }
  .onair { margin-left: auto }
  .foot-note { margin-left: 0 }
  .qr { display: none }
  .next { grid-template-columns: 1fr }
  .count b { text-shadow: 2px 2px 0 var(--tinta), 3px 3px 0 var(--hueso) }
  .qr-btn { display: inline-flex; justify-self: start }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important }
  html { scroll-behavior: auto }
}
