:root {
  --bg: #0c0c0e;
  --surface: #151518;
  --surface-2: #1d1d22;
  --line: rgba(255, 255, 255, .09);
  --text: #f3f0ea;
  --muted: #a39f97;
  --red: #e3141c;
  --red-ink: #ff4a50;
  --green: #4f9d2d;
  --green-ink: #7cc957;
  --gold: #e8b23a;
  --teal: #3fb8a8;
  --violet: #a98be8;
  --serif: 'Source Serif 4', Georgia, serif;
  --radius: 10px;
  --wrap: 1240px;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --body: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; overflow-x: clip; }
body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--red); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* Títulos sin palabras sueltas en la última línea */
h1, h2, h3, h4, .nrow p, .sthumb p { text-wrap: balance; }
p { text-wrap: pretty; }
/* Respuesta al presionar */
a.btn:active, .live-btn:active, .send-btn:active, .chip:active, .copy:active, .retry:active, .unmute:active, .player-close:active, .share a:active, .social a:active { transform: scale(.97); }
.card:active .thumb, .scard:active .sthumb, .prog:active, .colcard:active, .front-lead:active .front-img { transform: scale(.985); }
.thumb, .sthumb, .front-img { transition: transform .15s ease; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(12, 12, 14, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font: 400 20px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.brand small { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.mainnav { display: flex; gap: 4px; margin-left: auto; }
.mainnav a { white-space: nowrap; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 12px; border-radius: 6px; transition: color .15s, background .15s; }
.mainnav a:hover { color: var(--text); background: var(--surface-2); }
.mainnav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.live-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; text-decoration: none; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 9px 16px; border-radius: 999px; flex-shrink: 0; }
.live-btn:hover { background: #c50f16; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; border-radius: 8px; cursor: pointer; position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 11px; width: 18px; height: 2px; background: var(--text); content: ''; transition: transform .2s; }
.menu-btn span { top: 19px; }
.menu-btn span::before { top: -6px; left: 0; }
.menu-btn span::after { top: 6px; left: 0; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero / live ---------- */
.front-block { padding-top: 32px; }
.hero { padding: 24px 0 22px; background:
  radial-gradient(1200px 500px at 20% -10%, rgba(227, 20, 28, .22), transparent 60%),
  radial-gradient(900px 400px at 100% 0, rgba(79, 157, 45, .13), transparent 60%),
  radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1.4px) 0 0 / 20px 20px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.live-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.live-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.onair { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .1em; padding: 6px 10px; border-radius: 4px; pointer-events: none; }
.unmute svg { width: 16px; height: 16px; fill: currentColor; vertical-align: -3px; margin-right: 6px; }
.unmute { position: absolute; top: 14px; left: 118px; background: rgba(0, 0, 0, .7); color: #fff; border: 1px solid rgba(255, 255, 255, .25); font: 600 13px var(--body); padding: 8px 12px; border-radius: 6px; cursor: pointer; }
.unmute:hover { background: #000; }
.live-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; background: rgba(12, 12, 14, .92); }
.live-msg[hidden] { display: none; }
.live-msg strong { font: 400 28px var(--display); text-transform: uppercase; }
.live-msg span { color: var(--muted); max-width: 420px; }
.retry { margin-top: 8px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); font: 600 14px var(--body); padding: 8px 16px; border-radius: 6px; cursor: pointer; }
.live-info { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 18px; }
.live-info h1 { font: 400 clamp(30px, 4.2vw, 52px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.live-info h1.largo { font-size: clamp(21px, 2.3vw, 32px); line-height: 1.08; max-width: 46ch; text-wrap: balance; }
.channel-badge { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 8px; border: 1px solid var(--line); background: var(--surface); padding: 10px 14px; border-radius: var(--radius); flex-shrink: 0; }
.channel-badge span { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.channel-badge strong { font: 400 30px/1 var(--display); grid-row: span 2; color: var(--text); }
.channel-badge small { font-size: 11px; color: var(--muted); }
.hero-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-title { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.side-list { display: flex; flex-direction: column; }
.mini { display: grid; grid-template-columns: 124px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; }
.mini:first-child { border-top: 0; padding-top: 0; }
.mini img { width: 124px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.mini p { margin: 4px 0 0; font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini:hover p { color: var(--red-ink); }
.hero-side .more { display: inline-block; margin-top: 12px; }

/* ---------- category bar (bajo la barra superior) ---------- */
.catbar { border-top: 1px solid var(--line); background: rgba(21, 21, 24, .96); }
.catbar .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catbar .wrap::-webkit-scrollbar { display: none; }
.cat { flex-shrink: 0; text-decoration: none; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 11px 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.cat:first-child { padding-left: 0; }
.cat:hover, .cat[aria-current="page"] { color: var(--text); }
.cat-comunidad:hover, .cat-comunidad[aria-current="page"] { border-color: var(--red); }
.cat-deportes:hover, .cat-deportes[aria-current="page"] { border-color: var(--green); }
.cat-cultura:hover, .cat-cultura[aria-current="page"] { border-color: var(--gold); }
.cat-pueblo-mapuche:hover, .cat-pueblo-mapuche[aria-current="page"] { border-color: var(--teal); }
.cat-opinion:hover, .cat-opinion[aria-current="page"] { border-color: var(--violet); }
.nav-sep, .nav-cat { display: none; }
.send-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 13px; font-weight: 700; color: var(--text); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; flex-shrink: 0; }
.send-btn svg { width: 16px; height: 16px; fill: currentColor; }
.send-btn:hover { border-color: rgba(255, 255, 255, .35); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip { flex-shrink: 0; text-decoration: none; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.chip-comunidad, .chip-deportes, .chip-cultura { color: var(--text); font-weight: 700; }
.chip-comunidad { border-color: var(--red); }
.chip-deportes { border-color: var(--green); }
.chip-cultura { border-color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.paginacion { justify-content: center; margin: 8px auto 48px; }
.filtros-etiquetas { margin-top: 10px; align-items: center; }
.filtro-titulo { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }

/* ---------- blocks ---------- */
.block { padding: 56px 0; }
.block.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.block-head h2 { font: 400 clamp(28px, 3.2vw, 40px)/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.block-head p { margin: 8px 0 0; color: var(--muted); max-width: 640px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink); margin-bottom: 8px; }
.kicker::before { content: ''; width: 18px; height: 2px; background: currentColor; }
.more { color: var(--text); font-weight: 700; font-size: 14px; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 5px; white-space: nowrap; }
.more:hover { color: var(--red-ink); }
.empty { color: var(--muted); }

/* ---------- video cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.card { text-decoration: none; display: flex; flex-direction: column; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.play { position: absolute; inset: auto auto 10px 10px; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .3); transition: background .2s; }
.play::after { content: ''; position: absolute; left: 15px; top: 11px; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.card:hover .thumb img:not(.bg) { transform: scale(1.04); }
.card:hover .play { background: var(--red); border-color: var(--red); }
.card-body { padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.card h3 { font-size: 16px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover h3 { color: var(--red-ink); }
.card time { font-size: 13px; color: var(--muted); }
.tag { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tag-comunidad { color: var(--red-ink); }
.tag-deportes { color: var(--green-ink); }
.tag-cultura { color: var(--gold); }
.tag-pueblo-mapuche { color: var(--teal); }
.tag-opinion { color: var(--violet); }
.chip-pueblo-mapuche { border-color: var(--teal); color: var(--text); font-weight: 700; }
.chip-opinion { border-color: var(--violet); color: var(--text); font-weight: 700; }
.dot.red { background: var(--red); display: inline-block; margin-right: 6px; }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #2a0e10, #0f1a0b); }
.noimg img { width: 34%; height: auto !important; opacity: .55; }
.ncard p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.more-news { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }

/* ---------- noticias: filas compactas ---------- */
.nrow { display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; }
.nrow:first-child { border-top: 0; padding-top: 0; }
.nrow time { font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.35; padding-top: 2px; }
.nrow p { margin: 3px 0 0; font-size: 14px; font-weight: 600; line-height: 1.32; }
.nrow:hover p { color: var(--red-ink); }

/* ---------- formatos: 4:5 noticias ---------- */
.t45, .thumb.t45 { aspect-ratio: 4 / 5; }
.grid-n { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 18px; }
.grid-n .card h3 { font-size: 15px; }

/* ---------- noticias: portada (principal tipo revista + secundarias) ---------- */
.front { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 40px; }
.front-lead { text-decoration: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: center; }
.front-img { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.front-txt h3 { font: 800 clamp(26px, 2.7vw, 40px)/1.08 var(--body); letter-spacing: -.02em; }
.front-txt .read { margin-top: 6px; font-weight: 700; color: var(--red-ink); font-size: 14px; }
.front-side { border-left: 1px solid var(--line); padding-left: 28px; }
.front-sec time { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.front-img > img, .front-sec-img > img, .thumb > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.front-img, .front-sec-img, .prog-img, .thumb { position: relative; }
/* marco: imagen completa + fondo difuminado de la misma imagen */
img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(.45) saturate(1.3); transform: scale(1.3); }
img.fg { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
img.fg.vert { width: auto; aspect-ratio: 9 / 16; margin: 0 auto; object-fit: cover; }
.front-lead:hover .front-img > img:not(.bg) { transform: scale(1.03); }
.front-txt { display: flex; flex-direction: column; gap: 8px; }
.front-lead:hover h3 { color: var(--red-ink); }
.front-lead p { margin: 0; color: #cfcbc3; font-size: 17px; }
.front-lead time { font-size: 13px; color: var(--muted); }
.front-side { display: flex; flex-direction: column; }
.front-sec { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; align-items: start; }
.front-sec:first-child { border-top: 0; padding-top: 0; }
.front-sec-img { border-radius: 6px; overflow: hidden; background: var(--surface-2); }

/* ---------- shorts 9:16 ---------- */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 190px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
.scard { scroll-snap-align: start; text-decoration: none; }
.sthumb { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.sthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.sthumb::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .88)); }
.sthumb p { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; margin: 0; font-size: 14px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sthumb .play { inset: 10px 10px auto auto; z-index: 1; }
.scard:hover .sthumb img { transform: scale(1.04); }
.scard:hover .play { background: var(--red); border-color: var(--red); }
.player-frame.vertical { aspect-ratio: 9 / 16; height: min(80vh, 760px); margin: 0 auto; }
.player:has(.player-frame.vertical) { width: auto; }

/* ---------- galería de fotos en las notas ---------- */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 28px; }
.galeria img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }

/* ---------- lema como imagen ---------- */
/* Tamaño acotado para que la señal en vivo y el lema quepan en la primera pantalla */
.lema-img { margin: 14px 0 0; }
.lema-img img { width: min(100%, 600px, 66vh); height: auto; display: block; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .45)); }
@media (max-width: 720px) { .lema-img { margin: 12px 16px 0; } .lema-img img { width: 100%; } }

/* ---------- publicidad ---------- */
.ad-wrap { padding-top: 28px; }
.ad { position: relative; text-align: center; }
.ad-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad img { display: inline-block; max-width: 100%; height: auto; border-radius: 6px; }
.ad-portada-superior img, .ad-portada-media img, .ad-secciones img { max-height: 180px; object-fit: contain; }
.article-side .ad { margin-bottom: 28px; }
.article-main .ad { margin-top: 32px; }

/* ---------- columnas de opinión ---------- */
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--violet); background: var(--surface-2); }
.avatar-ini { display: grid; place-items: center; font: 400 24px var(--display); color: var(--violet); }
.avatar-lg { width: 72px; height: 72px; }
.colgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.colcard { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); text-decoration: none; }
.colcard:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.col-autor { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); }
.col-autor small { font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 13px; }
.colcard h3 { font: 600 22px/1.25 var(--serif); margin: 6px 0; font-style: italic; }
.colcard:hover h3 { color: var(--red-ink); }
.colcard p { margin: 0 0 6px; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.colcard time { font-size: 12px; color: var(--muted); }
.byline-col { align-items: center; gap: 16px; }
.byline-col > div { display: flex; flex-direction: column; gap: 2px; }
.byline-col strong { font-size: 17px; }
@media (max-width: 720px) {
  .colgrid { grid-template-columns: 1fr; }
  .colcard:nth-child(2) { border-top: 1px solid var(--line); padding-top: 22px; }
  .avatar { width: 52px; height: 52px; }
}

/* ---------- guarda (faja bicolor inspirada en la construcción del textil ñimin: rombos encadenados en escalones, listas de lana cruda) ---------- */
.guarda { height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='24' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='32' height='2' fill='%23e6d9c2'/%3E%3Crect x='0' y='22' width='32' height='2' fill='%23e6d9c2'/%3E%3Crect x='0' y='4' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='16' y='18' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='0' y='18' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='16' y='4' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='2' y='6' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='18' y='16' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='2' y='16' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='18' y='6' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='4' y='8' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='20' y='14' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='4' y='14' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='20' y='8' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='6' y='10' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='22' y='12' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='6' y='12' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='22' y='10' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='8' y='12' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='24' y='10' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='8' y='10' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='24' y='12' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='10' y='14' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='26' y='8' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='10' y='8' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='26' y='14' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='12' y='16' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='28' y='6' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='12' y='6' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='28' y='16' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='14' y='18' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='30' y='4' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='14' y='4' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='30' y='18' width='2' height='2' fill='%23c8131a'/%3E%3Crect x='15' y='10' width='2' height='4' fill='%23c8131a'/%3E%3Crect x='0' y='11' width='1' height='2' fill='%23c8131a'/%3E%3Crect x='31' y='11' width='1' height='2' fill='%23c8131a'/%3E%3C/svg%3E") repeat-x center / 32px 24px; }

/* ---------- animación de entrada (una sola, escalonada) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .live, .hero-side, .front-block .block-head, .front-lead, .front-sec, .front-block .more-news { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-side { animation-delay: .12s; }
.front-block .block-head { animation-delay: .22s; }
.front-lead { animation-delay: .3s; }
.front-sec:nth-child(1) { animation-delay: .38s; }
.front-sec:nth-child(2) { animation-delay: .44s; }
.front-sec:nth-child(3) { animation-delay: .5s; }
.front-sec:nth-child(4) { animation-delay: .56s; }
.front-block .more-news { animation-delay: .62s; }
.front-sec h4 { margin: 4px 0 0; font-size: 16px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.front-sec:hover h4 { color: var(--red-ink); }

/* ---------- nota individual ---------- */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 40px; padding-bottom: 56px; }
.article-main { max-width: 760px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.article h1 { font: 800 clamp(30px, 4vw, 46px)/1.1 var(--body); letter-spacing: -.02em; margin: 10px 0 16px; }
.lede { font: 400 21px/1.5 var(--serif); color: #d6d2ca; margin: 0 0 20px; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.byline strong { color: var(--text); }
.article-img { margin: 0 0 28px; }
.article-img img { width: 100%; max-height: 620px; object-fit: contain; background: var(--surface); border-radius: var(--radius); }
.article-img figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.article-video { aspect-ratio: 16 / 9; margin-bottom: 28px; border-radius: var(--radius); overflow: hidden; background: #000; }
.article-video iframe { width: 100%; height: 100%; border: 0; }
/* Reel original de Instagram: reproductor oficial; si no carga, queda el enlace. */
.article-reel { margin: 0 0 28px; }
.article-reel h2 { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.article-reel blockquote.instagram-media { max-width: 540px; width: 100%; margin: 0 auto; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.article-reel blockquote.instagram-media > a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 22px 16px; color: var(--text); font-weight: 700; text-decoration: none; }
.article-reel blockquote.instagram-media > a svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.article-reel iframe.instagram-media { min-width: 0 !important; max-width: 540px !important; width: 100% !important; margin: 0 auto !important; border-radius: var(--radius) !important; }
.article-body { font-family: var(--serif); }
.article-body p, .article-body li { font-size: 19px; line-height: 1.7; color: #e4e0d8; }
.article-body h2, .article-body h3 { font-family: var(--body); margin: 32px 0 12px; }
.article-body a { color: var(--red-ink); }
.article-body blockquote { margin: 28px 0; padding-left: 20px; border-left: 3px solid var(--red); font-style: italic; }
.article-body img { border-radius: 8px; margin: 20px 0; }
.source { font-size: 14px; color: var(--muted); }
.source a { color: var(--text); }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.share span { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.share a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); }
.share a:hover { background: var(--red); border-color: var(--red); }
.share svg { width: 17px; height: 17px; fill: var(--text); }
.copy { background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 999px; font: 600 13px var(--body); padding: 10px 16px; cursor: pointer; }
.copy:hover { border-color: rgba(255, 255, 255, .35); }
.article-side { position: sticky; top: 130px; align-self: start; }
.side-live { position: relative; display: flex; flex-direction: column; gap: 4px; text-decoration: none; padding: 52px 18px 18px; border-radius: var(--radius); margin-bottom: 28px; background: linear-gradient(135deg, rgba(227, 20, 28, .35), rgba(12, 12, 14, .9)), url('/assets/img/logo.png') right -30px center / 160px no-repeat, var(--surface); border: 1px solid var(--line); }
.side-live strong { font: 400 24px var(--display); text-transform: uppercase; }
.side-live span:last-child { color: var(--muted); font-size: 14px; }
.side-live:hover { border-color: var(--red); }

/* ---------- banda "envía tu nota" ---------- */
.send-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.send-band h2 { font: 400 clamp(28px, 3.2vw, 40px)/1.05 var(--display); text-transform: uppercase; }
.send-band p { color: var(--muted); margin: 8px 0 0; max-width: 620px; }
.send-band .btn { flex-shrink: 0; font-size: 16px; padding: 14px 26px; }

/* ---------- program cards ---------- */
.progs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.prog { text-decoration: none; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.block:not(.alt) .prog { background: var(--surface); }
.prog:hover { border-color: rgba(255, 255, 255, .28); transform: translateY(-3px); }
.prog-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.prog-img > img:not(.bg):not(.fg) { width: 100%; height: 100%; object-fit: cover; }
.prog-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prog h3 { font: 400 24px/1.05 var(--display); text-transform: uppercase; }
.prog p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; flex: 1; }
.meta { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- page heads ---------- */
.page-head { padding: 56px 0 40px; border-bottom: 1px solid var(--line); background: radial-gradient(900px 300px at 0 0, rgba(227, 20, 28, .16), transparent 70%); }
.page-deportes { background: radial-gradient(900px 300px at 0 0, rgba(79, 157, 45, .2), transparent 70%); }
.page-cultura { background: radial-gradient(900px 300px at 0 0, rgba(232, 178, 58, .16), transparent 70%); }
.page-head h1 { font: 400 clamp(40px, 6vw, 72px)/1 var(--display); text-transform: uppercase; }
.page-head p { color: var(--muted); max-width: 680px; margin: 14px 0 0; font-size: 17px; }
.page-head p a { color: var(--text); }

.show-head { position: relative; padding: 72px 0 56px; border-bottom: 1px solid var(--line); overflow: hidden; }
.show-head::before { content: ''; position: absolute; inset: 0; background: var(--hero-img, none) center / cover no-repeat; opacity: .35; filter: blur(2px); transform: scale(1.05); }
.show-head::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 25%, rgba(12, 12, 14, .55) 70%, rgba(12, 12, 14, .3)), linear-gradient(0deg, var(--bg), transparent 50%); }
.show-grid { position: relative; z-index: 1; }
.show-grid > div { max-width: 640px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.show-head h1 { font: 400 clamp(44px, 7vw, 84px)/.95 var(--display); text-transform: uppercase; }
.show-head p { margin: 0; color: #d6d2ca; font-size: 18px; }
.crumb { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.crumb:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; background: var(--red); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 20px; border-radius: 8px; }
.btn:hover { background: #c50f16; }

/* ---------- instagram ---------- */
.insta-cta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; text-decoration: none; background: linear-gradient(120deg, rgba(227, 20, 28, .22), rgba(232, 178, 58, .12)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.insta-cta svg { width: 44px; height: 44px; fill: var(--text); }
.insta-cta strong { display: block; font-size: 20px; }
.insta-cta span { color: var(--muted); }
.insta-cta .more { color: var(--text); }

/* ---------- tune ---------- */
.tune-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tune-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.block.alt .tune-item { background: var(--bg); }
.tune-item .num { font: 400 44px/1 var(--display); color: var(--red-ink); }
.tune-item h3 { font-size: 18px; margin: 12px 0 6px; }
.tune-item p { margin: 0; color: var(--muted); }
.tune-item a { color: var(--text); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.prose p { font-size: 18px; color: #d6d2ca; margin: 0 0 18px; }
.prose strong { color: var(--text); }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; }

/* ---------- Quiénes somos: especial «Archivo vivo» ----------
   Carbón, grafito y papel; el rojo del canal solo como acento (riel, marcas, una palabra).
   La línea del tren une los capítulos como estaciones y marca los hitos de la cronología.
   Sin JavaScript o con movimiento reducido, todo se lee como una página normal. */
.ab-especial { --papel: #d9d4c8; --tinta: #1c1a16; --durmiente: #3d3a35; --cab: 113px; }

/* Portada: el territorio (río, barrios, ciudad) */
.ab-portada { position: relative; display: grid; align-items: end; min-height: min(74svh, 700px); overflow: hidden; background: #08090b; isolation: isolate; }
.ab-portada-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.ab-portada::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 0, rgba(12, 12, 14, .45) 16%, rgba(12, 12, 14, .1) 45%, rgba(12, 12, 14, .2) 100%), linear-gradient(90deg, rgba(12, 12, 14, .55) 0, rgba(12, 12, 14, 0) 60%); }
.ab-portada-txt { padding-top: 140px; padding-bottom: 64px; }
.ab-portada h1 { margin: 0; font: 400 clamp(54px, 9.6vw, 140px)/.88 var(--display); text-transform: uppercase; }
.ab-lin { display: block; overflow: hidden; padding-bottom: .04em; }
.ab-lin > span { display: block; }
.ab-bajada { max-width: 38ch; margin: 24px 0 0; font: 400 clamp(19px, 1.9vw, 24px)/1.45 var(--serif); color: #e4e0d8; }
.ab-credito { position: absolute; right: 24px; top: 20px; max-width: 46ch; margin: 0; font-size: 12px; color: rgba(243, 240, 234, .72); text-align: right; }

/* Índice de capítulos */
.ab-indice { position: sticky; top: var(--cab); z-index: 40; background: rgba(12, 12, 14, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ab-indice .wrap { position: relative; }
.ab-indice ol { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.ab-indice ol::-webkit-scrollbar { display: none; }
.ab-indice a { display: block; padding: 13px 14px; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap; }
.ab-indice a:hover { color: var(--text); }
.ab-indice a[aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--red); }
.ab-avance { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; }

/* Introducción y ficha */
.ab-intro { padding: 60px 0; }
.ab-intro > .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.ab-intro-txt p { max-width: 36ch; margin: 0; font: 400 clamp(22px, 2.3vw, 30px)/1.42 var(--serif); color: var(--text); }
.ab-intro-txt strong { font-weight: 600; color: var(--text); box-shadow: inset 0 -2px 0 var(--red); }
.ab-ficha { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; }
.ab-ficha div { padding: 14px 0; border-top: 1px solid var(--line); }
.ab-ficha dt { font-size: 13px; color: var(--muted); }
.ab-ficha dd { margin: 4px 0 0; font-size: 17px; font-weight: 700; }

/* Capítulos y riel */
.ab-cap { position: relative; padding: 72px 0; }
.ab-cap > .wrap { position: relative; padding-left: 104px; }
.ab-riel { position: absolute; left: 28px; top: -72px; bottom: -72px; width: 18px; background: repeating-linear-gradient(180deg, transparent 0 17px, var(--durmiente) 17px 20px); }
.ab-riel-luz { position: absolute; left: 7px; top: 0; bottom: 0; width: 4px; background: var(--red); transform-origin: top; }
.ab-estacion { position: relative; margin: 0 0 32px; }
.ab-parada { position: absolute; left: -88px; top: 4px; display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--red); border-radius: 50%; background: var(--bg); font: 400 20px/1 var(--display); color: var(--text); }
.ab-estacion h2 { max-width: 20ch; margin: 0; font: 400 clamp(36px, 4.8vw, 64px)/.95 var(--display); text-transform: uppercase; }
.ab-col { max-width: 64ch; }
.ab-cap .prose p { max-width: 62ch; line-height: 1.62; }

/* Capítulo 1: el barrio, sobre papel de periódico */
.ab-cap-papel { background: var(--papel); color: var(--tinta); }
.ab-cap-papel .ab-riel { --durmiente: #a8a194; }
.ab-cap-papel .ab-parada { background: var(--papel); color: var(--tinta); }
.ab-cap-papel .prose p { color: #34312b; }
.ab-cap-papel .prose strong { color: #000; }
.ab-barrio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: 64px; align-items: start; }
.ab-doc { position: sticky; top: calc(var(--cab) + 72px); width: 100%; max-width: min(100%, calc((100vh - var(--cab) - 150px) * .713)); margin: 0 0 0 auto; }
.ab-doc-marco { overflow: hidden; background: #f3f0e8; box-shadow: 0 20px 44px rgba(28, 26, 22, .3); }
.ab-doc-marco img { display: block; width: 100%; height: auto; }
.ab-doc figcaption { margin-top: 10px; font-size: 13px; color: #4f4a41; }

/* Capítulo 2: la línea */
.ab-cap-linea { background: var(--surface); }
.ab-cap-linea .ab-parada { background: var(--surface); }
.ab-corte { margin: 0; }
.ab-corte svg { display: block; width: 100%; height: auto; }
.ab-corte .c-movil { display: none; }
.ab-corte figcaption { max-width: 64ch; margin-top: 14px; font-size: 15px; color: var(--muted); }
.ab-corte .c-suelo { fill: #2b2723; }
.ab-corte .c-rio { fill: #2f6f8f; }
.ab-corte .c-edif rect { fill: #4d4842; }
.ab-corte .c-casas path { fill: #c9a14a; }
.ab-corte .c-via line { stroke: var(--text); stroke-width: 2; }
.ab-corte .c-frontera { stroke: var(--red); stroke-width: 3; }
.ab-corte text { font-family: var(--body); fill: var(--text); }
.ab-corte .c-tit { font-size: 19px; font-weight: 800; }
.ab-corte .c-sub { font-size: 14px; fill: var(--muted); }
.ab-corte .c-movil .c-tit { font-size: 17px; }
.ab-corte .c-movil .c-sub { font-size: 13px; }
.ab-corte .c-rojo { fill: var(--red-ink); }
.ab-corte .c-azul { fill: #8fd0f0; text-anchor: middle; }
.ab-corte .c-azul.c-fin { text-anchor: end; }

/* En pantallas anchas, el relato de la señal se lee en dos columnas cortas (menos de una pantalla de alto). */
@media (min-width: 1100px) {
  #la-senal .ab-col { max-width: none; columns: 2; column-gap: 56px; }
  #la-senal .ab-col p { break-inside: avoid; }
}
/* Capítulo 3: cronología compacta sobre el mismo riel. Cada hito es una fila: año, texto y foto pequeña.
   La marca se enciende cuando la lectura llega al hito. */
.ab-crono { margin: 48px 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.ab-hito { position: relative; display: grid; grid-template-columns: 168px minmax(0, 1fr) 232px; grid-template-rows: auto 1fr; column-gap: 32px; padding: 26px 0; border-top: 1px solid var(--line); }
.ab-hito-txt { display: contents; }
.ab-hito-punto { position: absolute; left: -80px; top: 32px; width: 26px; height: 26px; border: 2px solid var(--red); border-radius: 50%; background: var(--bg); transition: border-color .4s; }
.ab-hito-punto::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--red); transition: background .4s; }
/* Con movimiento, la marca se enciende cuando la lectura llega al hito. */
.ab-mov .ab-hito:not(.ab-alcanzado) .ab-hito-punto { border-color: #5a554d; }
.ab-mov .ab-hito:not(.ab-alcanzado) .ab-hito-punto::after { background: #5a554d; }
.ab-hito-etq { grid-column: 1; grid-row: 1 / span 2; margin: 0; font: 400 clamp(40px, 4.2vw, 62px)/.9 var(--display); color: var(--text); }
.ab-hito h3 { grid-column: 2; margin: 4px 0 8px; font-size: clamp(19px, 1.7vw, 22px); color: var(--text); }
.ab-hito h3::before { content: ''; display: inline-block; width: 18px; height: 2px; margin: 0 10px 5px 0; background: var(--red); vertical-align: middle; }
.ab-hito p:not(.ab-hito-etq) { grid-column: 2; max-width: 56ch; margin: 0; font: 400 17px/1.55 var(--serif); color: #d6d2ca; }
.ab-hito-sinfoto p:not(.ab-hito-etq) { grid-column: 2 / span 2; }
.ab-hito figure { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
.ab-hito img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; background: var(--surface); }
.ab-hito figcaption { margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--muted); }
/* Archivo: una pieza grande con su contexto y todas las miniaturas */
.ab-cap-archivo { background: var(--surface); }
.ab-archivo-cab p { max-width: 58ch; margin: 14px 0 0; color: var(--muted); }
.ab-archivo { display: grid; gap: 20px; }
.ab-escena { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; align-items: end; margin: 0; }
.ab-escena-foto { position: relative; display: grid; place-items: center; height: min(54vh, 480px); overflow: hidden; border-radius: 4px; background: var(--bg); cursor: zoom-in; }
.ab-escena-foto::after { content: 'Ampliar'; position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(12, 12, 14, .78); font-size: 13px; font-weight: 700; color: var(--text); opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.ab-escena-foto:hover::after, .ab-escena-foto:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .ab-escena-foto::after { opacity: 1; transform: none; } }
.ab-escena-foto img { display: block; width: 100%; height: 100%; object-fit: scale-down; transition: opacity .3s ease; }
.ab-escena-pie, .ab-escena-meta { transition: opacity .3s ease; }
.ab-escena.ab-cambiando .ab-escena-pie, .ab-escena.ab-cambiando .ab-escena-meta { opacity: 0; }
.ab-escena figcaption { padding-bottom: 6px; }
.ab-escena-pie { margin: 0; font: 400 clamp(20px, 1.9vw, 25px)/1.35 var(--serif); color: var(--text); }
.ab-escena-meta { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--red); font-size: 14px; line-height: 1.5; color: var(--muted); }
.ab-escena-meta:empty { display: none; }
.ab-escena-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.ab-contador { min-width: 7ch; font-size: 14px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.ab-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; background: transparent; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.ab-btn:hover { border-color: var(--text); background: rgba(255, 255, 255, .06); }
.ab-btn:active { transform: scale(.94); }
.ab-miniaturas { position: relative; display: flex; align-items: flex-end; gap: 12px; margin: 0; padding: 4px 48px 14px 0; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 24px; scrollbar-width: thin; scrollbar-color: var(--durmiente) transparent; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); }
.ab-miniaturas li { flex: 0 0 auto; scroll-snap-align: start; }
.ab-mini { position: relative; display: block; height: 84px; padding-bottom: 8px; border-radius: 3px; outline-offset: 3px; opacity: .5; filter: grayscale(.35); transition: opacity .2s, filter .2s; }
.ab-mini::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--red); transform: scaleX(0); transition: transform .25s ease; }
.ab-mini img { display: block; width: auto; height: 100%; max-width: 160px; object-fit: contain; border-radius: 3px; background: var(--bg); }
.ab-mini:hover, .ab-mini:focus-visible { opacity: .9; filter: none; }
.ab-mini[aria-current] { opacity: 1; filter: none; }
.ab-mini[aria-current]::after { transform: scaleX(1); }
.ab-visor { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); }
.ab-visor::backdrop { background: rgba(5, 5, 6, .95); }
.ab-visor[open] { display: grid; place-items: center; }
.ab-visor figure { margin: 0; padding: 0 72px; text-align: center; }
.ab-visor img { display: block; max-width: min(1200px, calc(100vw - 144px)); max-height: 80vh; margin: 0 auto; object-fit: contain; }
.ab-visor figcaption { max-width: 70ch; margin: 14px auto 0; font-size: 15px; color: #d6d2ca; }
.ab-visor-meta { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.ab-visor .ab-btn { position: fixed; background: rgba(12, 12, 14, .6); }
.ab-visor-ant { left: 16px; top: 50%; translate: 0 -50%; }
.ab-visor-sig { right: 16px; top: 50%; translate: 0 -50%; }
.ab-visor-cerrar { right: 16px; top: 16px; }

/* Video (solo si se carga uno real) */
.ab-video { padding: 0 0 88px; background: var(--surface); }
.ab-video-card { position: relative; display: block; max-width: 960px; overflow: hidden; border-radius: 6px; color: var(--text); text-decoration: none; }
.ab-video-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ab-video-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--red); font-size: 28px; }
.ab-video-tit { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 24px 20px; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); font-weight: 700; }

/* Capítulo 4: el territorio */
.ab-territorio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.ab-territorio .ab-foto-territorio { order: -1; }
.ab-territorio .ab-paralaje img { aspect-ratio: 3 / 1; object-position: 50% 42%; }
@media (min-width: 1100px) { .ab-territorio > .prose { columns: 2; column-gap: 56px; } .ab-territorio > .prose p { break-inside: avoid; } .ab-territorio .ab-temas { column-span: all; } }
.ab-foto-territorio { margin: 0; }
.ab-paralaje { overflow: hidden; border-radius: 4px; }
.ab-paralaje img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ab-foto-territorio figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.ab-temas { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.ab-temas .chip { display: inline-block; white-space: normal; }
.ab-chip-txt { color: var(--text); }
.ab-chip-txt:hover { border-color: var(--line); color: var(--text); }
.ab-h3 { margin: 56px 0 20px; font: 400 clamp(28px, 3vw, 40px)/1 var(--display); text-transform: uppercase; }

/* Manifiesto: carbón, letras claras y el rojo solo en «derecho» */
.ab-manifiesto { padding: 72px 0 56px; border-top: 1px solid var(--line); }
.ab-manifiesto h2 { max-width: 16ch; margin: 0 0 28px; font: 400 clamp(40px, 5.6vw, 84px)/.92 var(--display); text-transform: uppercase; }
.ab-manifiesto .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 64px; align-items: end; }
.ab-manifiesto h2 { grid-column: 1 / -1; }
.ab-acento { color: var(--red-ink); }
.ab-manifiesto .prose p { font-size: 19px; }
.ab-valores { display: flex; flex-wrap: wrap; align-content: end; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.ab-valores li { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--text); }

/* Desenlace: fotografía colectiva, frase final e invitación */
.ab-final { padding-bottom: 72px; }
.ab-final-foto { position: relative; margin: 0; isolation: isolate; }
.ab-final-foto > img { display: block; width: 100%; height: min(72vh, 640px); object-fit: cover; object-position: 50% 22%; filter: saturate(.85); }
.ab-final-foto::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 85% 75% at 62% 32%, rgba(12, 12, 14, 0) 45%, rgba(12, 12, 14, .55) 100%), linear-gradient(0deg, rgba(12, 12, 14, .96) 0, rgba(12, 12, 14, .78) 22%, rgba(12, 12, 14, .35) 46%, rgba(12, 12, 14, 0) 66%), linear-gradient(90deg, rgba(12, 12, 14, .72) 0, rgba(12, 12, 14, .3) 38%, rgba(12, 12, 14, 0) 60%); }
.ab-final-foto figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding-bottom: 36px; }
.ab-final blockquote { margin: 0; }
.ab-final blockquote::before { content: ''; display: block; width: 48px; height: 3px; margin-bottom: 18px; background: var(--red); }
.ab-final blockquote p { max-width: 24ch; margin: 0; font: 400 clamp(28px, 3.4vw, 48px)/1 var(--display); letter-spacing: .005em; text-transform: uppercase; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.ab-final blockquote footer { margin-top: 14px; font: 400 clamp(17px, 1.6vw, 20px)/1.45 var(--serif); color: #e4e0d8; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.ab-credito-cierre { position: absolute; right: 24px; bottom: 18px; margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(12, 12, 14, .6); font-size: 12px; color: rgba(243, 240, 234, .8); }
.ab-invitacion { padding-top: 56px; }
.ab-invitacion h2 { max-width: 20ch; margin: 0; font: 400 clamp(32px, 4vw, 52px)/.98 var(--display); text-transform: uppercase; }
.ab-invitacion > p { margin: 12px 0 0; font: 400 20px/1.4 var(--serif); color: #d6d2ca; }
.ab-accesos { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 28px; margin: 40px 0 0; padding: 0; list-style: none; }
.ab-accesos a { position: relative; display: block; height: 100%; padding: 22px 0 24px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.ab-accesos a::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.ab-accesos a:hover::before, .ab-accesos a:focus-visible::before { transform: scaleX(1); }
.ab-accesos a:hover span { color: #c9c5bd; }
.ab-accesos strong { display: block; font: 400 clamp(22px, 2vw, 27px)/1.02 var(--display); text-transform: uppercase; transition: color .2s; }
.ab-accesos a:hover strong { color: var(--red-ink); }
.ab-accesos span { display: -webkit-box; margin-top: 10px; overflow: hidden; font-size: 14px; line-height: 1.45; color: var(--muted); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.ab-acceso-vivo strong::before { content: ''; display: inline-block; width: 9px; height: 9px; margin: 0 10px 4px 0; border-radius: 50%; background: var(--red); vertical-align: middle; }

@media (max-width: 960px) {
  .ab-barrio, .ab-territorio, .ab-intro > .wrap, .ab-escena { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ab-doc { position: static; max-width: 340px; margin: 0; }
  .ab-manifiesto .wrap { grid-template-columns: minmax(0, 1fr); }
  .ab-valores { margin: 24px 0 0; }
  .ab-hito { grid-template-columns: minmax(0, 1fr) 132px; grid-template-rows: auto auto 1fr; column-gap: 18px; }
  .ab-hito-etq { grid-row: 1; }
  .ab-hito h3, .ab-hito p:not(.ab-hito-etq) { grid-column: 1; }
  .ab-hito-sinfoto p:not(.ab-hito-etq) { grid-column: 1 / -1; }
  .ab-hito figure { grid-column: 2; grid-row: 1 / span 3; }
  .ab-escena { gap: 16px; }
  .ab-escena-foto { height: min(50vh, 420px); }
}
@media (max-width: 720px) {
  .ab-portada { min-height: 70svh; }
  .ab-portada-img { object-position: 42% 82%; }
  .ab-portada::after { background: linear-gradient(0deg, var(--bg) 0, rgba(12, 12, 14, .72) 22%, rgba(12, 12, 14, .3) 62%, rgba(12, 12, 14, .5) 100%); }
  .ab-portada-txt { padding-top: 150px; padding-bottom: 28px; }
  .ab-credito { position: static; padding: 0 16px 12px; text-align: left; }
  .ab-intro { padding: 44px 0; }
  .ab-intro-txt p { font-size: 21px; }
  .ab-ficha { gap: 0 20px; }
  .ab-ficha dd { font-size: 15px; }
  .ab-cap { padding: 52px 0; }
  .ab-cap > .wrap { padding-left: 50px; }
  .ab-riel { left: 10px; top: -52px; bottom: -52px; width: 14px; background: repeating-linear-gradient(180deg, transparent 0 15px, var(--durmiente) 15px 18px); }
  .ab-riel-luz { left: 5px; width: 4px; }
  .ab-parada { left: -50px; top: 2px; width: 34px; height: 34px; font-size: 17px; }
  .ab-estacion { margin-bottom: 30px; }
  .ab-corte svg:not(.c-movil) { display: none; }
  .ab-corte .c-movil { display: block; }
  .ab-crono { margin-top: 32px; }
  .ab-hito { grid-template-columns: minmax(0, 1fr) 96px; padding: 20px 0; }
  .ab-hito figcaption { display: none; }
  .ab-territorio-progs .progs { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .ab-territorio-progs .prog { flex: 0 0 72%; scroll-snap-align: start; }
  .ab-hito-punto { left: -44px; top: 24px; width: 22px; height: 22px; }
  .ab-hito-punto::after { inset: 5px; }
  .ab-escena-foto { height: 44vh; }
  .ab-territorio .ab-paralaje img { aspect-ratio: 16 / 10; }
  .ab-mini { height: 66px; }
  .ab-miniaturas { padding-right: 32px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
  .ab-mini img { max-width: 120px; }
  .ab-visor figure { padding: 0 12px; }
  .ab-visor img { max-width: calc(100vw - 24px); max-height: 70vh; }
  .ab-visor-ant, .ab-visor-sig { top: auto; bottom: 20px; translate: none; }
  .ab-manifiesto { padding: 52px 0 40px; }
  .ab-final-foto > img { height: 66vh; object-position: 50% 18%; }
  .ab-final-foto figcaption { padding-bottom: 40px; }
  .ab-credito-cierre { position: static; display: inline-block; margin-top: 14px; padding: 0; background: none; font-size: 11px; color: rgba(243, 240, 234, .7); }
  .ab-final { padding-bottom: 52px; }
}

/* ---------- social / footer ---------- */
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); }
.social a:hover { background: var(--red); border-color: var(--red); }
.social svg { width: 17px; height: 17px; fill: var(--text); }
.footer { border-top: 1px solid var(--line); padding: 48px 0 24px; margin-top: 24px; background: #08080a; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { width: 64px; height: 64px; margin-bottom: 12px; }
.footer-brand p { margin: 0; color: var(--muted); font-size: 14px; max-width: 340px; }
.footer-brand strong { color: var(--text); }
.footer h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { text-decoration: none; font-size: 14px; }
.footer ul a:hover { color: var(--red-ink); }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- player modal ---------- */
.player { width: min(1100px, 94vw); max-width: none; padding: 0; border: 0; background: transparent; color: var(--text); }
.player::backdrop { background: rgba(0, 0, 0, .86); backdrop-filter: blur(4px); }
.player-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 10px; }
.player-head p { margin: 0; font-weight: 700; }
.player-close { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; font-size: 16px; cursor: pointer; }
.player-close:hover { background: var(--red); border-color: var(--red); }
.player-frame { aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-n { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-n.row5 > :nth-child(5) { display: none; }
  .mainnav a { padding: 8px 8px; }
}
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .mainnav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .mainnav.open { display: flex; }
  .mainnav a { padding: 14px 8px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .mainnav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: 14px; }
  .live-btn { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side .side-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .hero-side .side-list > :nth-child(2) { border-top: 0; padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .nav-sep { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 18px 8px 6px; }
  .nav-cat { display: block; }
  .send-btn span { display: none; }
  .send-btn { padding: 8px 11px; }
  .front { grid-template-columns: 1fr; gap: 28px; }
  .front-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .front-sec:nth-child(2) { border-top: 0; padding-top: 0; }
  .article { grid-template-columns: 1fr; gap: 32px; }
  .article-side { position: static; }
  .send-band { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .topbar-inner { gap: 12px; height: 60px; }
  .mainnav { top: 60px; }
  .brand small { display: none; }
  .brand strong { font-size: 17px; }
  .brand img { width: 38px; height: 38px; }
  .live-btn { padding: 8px 12px; font-size: 12px; }
  .hero { padding: 0 0 24px; }
  .hero .wrap { padding: 0; }
  .live-frame { border-radius: 0; }
  .live-info, .hero-side { margin-left: 16px; margin-right: 16px; }
  .live-info { flex-direction: column; align-items: flex-start; }
  .hero-side .side-list { grid-template-columns: 1fr; }
  .hero-side .side-list > :nth-child(2) { border-top: 1px solid var(--line); padding-top: 11px; }
  .front-lead { grid-template-columns: 1fr; gap: 18px; }
  .front-side { grid-template-columns: 1fr; }
  .front-sec:nth-child(2) { border-top: 1px solid var(--line); padding-top: 14px; }
  .front-sec h4 { font-size: 15px; }
  .grid-n { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .shelf { grid-auto-columns: 150px; gap: 12px; }
  .article { padding-top: 24px; }
  .lede { font-size: 19px; }
  .article-body p, .article-body li { font-size: 18px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .card h3 { font-size: 14px; }
  .play { width: 32px; height: 32px; }
  .play::after { left: 12px; top: 8px; }
  .block { padding: 40px 0; }
  .block-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tune-grid { grid-template-columns: 1fr; }
  .insta-cta { grid-template-columns: auto 1fr; padding: 20px; }
  .insta-cta .more { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
  .grid.grid-n { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand strong { font-size: 15px; }
  .send-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
