/* ==========================================================================
   Fasnoticias — Portada
   Identidad: negro tinta + amarillo del logo. Tipografía: Archivo + Source Serif 4
   ========================================================================== */

/* ---------- Tokens ---------- */
:root,
:root[data-theme="dark"] {
    --bg: #0b0b0c;
    --bg-2: #111113;
    --surface: #151517;
    --surface-2: #1e1e21;
    --line: #26262a;
    --line-strong: #3a3a40;
    --text: #f3f1ec;
    --text-2: #c8c5be;
    --muted: #8f8c86;
    --accent-text: #ffc400;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .75);
    --card-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
    color-scheme: dark;
}

:root[data-theme="light"] {
    --bg: #f4f2ec;
    --bg-2: #ebe8e0;
    --surface: #ffffff;
    --surface-2: #efece5;
    --line: #e0dcd2;
    --line-strong: #c3beb2;
    --text: #121212;
    --text-2: #34322e;
    --muted: #6a665e;
    --accent-text: #8a6200;
    --shadow: 0 24px 60px -28px rgba(30, 25, 10, .35);
    --card-shadow: 0 30px 60px -32px rgba(40, 30, 10, .35);
    color-scheme: light;
}

@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
    --accent: #ffc400;
    --accent-2: #ff7a00;
    --hot: #ff2d55;
    --live: #ff3b30;

    /* Cabecera y portada siempre oscuras: el logo tiene texto blanco */
    --ink: #0b0b0c;
    --ink-2: #17171a;
    --ink-line: rgba(255, 255, 255, .1);
    --ink-text: #f3f1ec;
    --ink-muted: #a3a09a;

    --f-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --f-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

    --wrap: 1200px;
    --gutter: 16px;
    --bar-h: 58px;
    --head-h: calc(var(--bar-h) + 20px);
    --logo-h: 30px;
    --radius: 12px;
    --radius-lg: 18px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);
    --hero-dur: 7s;

    --rail-w: 0px;
    --rail-gap: 0px;
}

@media (min-width: 720px) { :root { --gutter: 24px; --bar-h: 62px; --logo-h: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--f-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
    transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #111; }

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip {
    position: fixed; left: 16px; top: -60px; z-index: 300;
    background: var(--accent); color: #111; padding: 10px 16px; font-weight: 800; border-radius: 8px;
}
.skip:focus { top: 12px; }
.cap { text-transform: capitalize; }

/* Subrayado amarillo animado para titulares */
.hl {
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% .09em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    transition: background-size .5s var(--ease);
}
a:hover .hl, a:focus-visible .hl { background-size: 100% .09em; }

.live-dot {
    position: relative; display: inline-block; flex: none;
    width: 7px; height: 7px; border-radius: 50%; background: var(--live);
}
.live-dot::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--live);
    animation: pulse 2s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
    font-size: 15px; font-weight: 800; letter-spacing: -.005em; white-space: nowrap;
    transition: transform .35s var(--spring), box-shadow .35s var(--ease), background-color .25s;
}
.btn svg { transition: transform .35s var(--spring); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(4px); }
.btn--accent { background: var(--accent); color: #111; }
.btn--accent:hover { box-shadow: 0 14px 34px -12px rgba(255, 196, 0, .75); }
.btn--big { height: 56px; padding: 0 30px; background: var(--text); color: var(--bg); }
.btn--big:hover { background: var(--accent); color: #111; box-shadow: 0 14px 34px -12px rgba(255, 196, 0, .6); }
.btn--big:hover svg { transform: translateY(3px); }
.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }
.btn[aria-busy="true"] svg { animation: bounce .8s ease-in-out infinite; }
@keyframes bounce { 50% { transform: translateY(4px); } }

.icon-btn {
    display: inline-grid; place-items: center; flex: none;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--ink-line); color: var(--ink-text);
    transition: background-color .25s, border-color .25s, transform .35s var(--spring);
}
.icon-btn:hover { background: rgba(255, 255, 255, .14); transform: scale(1.06); }
.icon-btn:active { transform: scale(.94); }

/* ---------- Piezas comunes ---------- */
.kicker {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent-text);
}
.kicker::before { content: ""; width: 7px; height: 7px; background: var(--cat, var(--accent)); border-radius: 2px; }

.meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: 13px; color: var(--muted); font-weight: 500;
}
.meta__sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7; }

.cover { position: relative; overflow: hidden; border-radius: 10px; background: var(--surface-2); }
.cover img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1s var(--ease);
}
a:hover .cover img { transform: scale(1.06); }
.cover--card { aspect-ratio: 3 / 2; }
.cover--row { aspect-ratio: 3 / 2; }

/* ---------- Barra de progreso ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 80; pointer-events: none; }
.progress span {
    display: block; height: 100%; transform-origin: left; transform: scaleX(0);
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--hot));
}

/* ---------- Cabecera flotante ---------- */
.masthead {
    position: fixed; inset: 0 0 auto; z-index: 60;
    padding: 10px var(--gutter) 0;
    pointer-events: none;
}
.masthead__bar {
    pointer-events: auto;
    display: flex; align-items: center; gap: 24px;
    height: var(--bar-h);
    max-width: calc(var(--wrap) + 80px);
    margin-inline: auto;
    padding: 0 10px 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--ink-text);
    transition: max-width .6s var(--ease), background-color .4s var(--ease), border-color .4s, box-shadow .4s, transform .5s var(--ease);
}
.masthead.is-scrolled .masthead__bar,
.no-hero .masthead__bar {
    max-width: 1040px;
    background: rgba(14, 14, 16, .72);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-color: rgba(255, 255, 255, .09);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.masthead.is-hidden .masthead__bar { transform: translateY(calc(-100% - 16px)); }

.brand { display: inline-flex; align-items: center; flex: none; transition: transform .35s var(--spring); }
.brand:hover { transform: rotate(-2deg) scale(1.03); }
.brand__crop { position: relative; display: block; overflow: hidden; height: var(--logo-h); aspect-ratio: var(--ratio, 3.9); }
.brand__crop img { position: absolute; max-width: none; height: auto; }
.brand__raw { width: auto; }
.brand__text { font-weight: 900; font-size: 24px; font-style: italic; letter-spacing: -.02em; color: var(--accent); }
.brand--footer { --logo-h: 46px; }

.nav { display: none; align-items: center; gap: 2px; }
.nav__link {
    position: relative; display: inline-flex; align-items: center; gap: 4px;
    height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: none;
    font-size: 14.5px; font-weight: 650; color: rgba(255, 255, 255, .8);
    text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
    transition: color .2s, background-color .25s;
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav__link.is-active { color: #111; background: var(--accent); text-shadow: none; }
.nav__more svg { transition: transform .3s var(--ease); }
.nav__more:hover svg { transform: translateY(2px); }

.tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-trigger {
    display: inline-flex; align-items: center; gap: 10px;
    height: 40px; width: 40px; justify-content: center; border-radius: 999px;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--ink-line); color: var(--ink-text);
    font-size: 14px; font-weight: 600;
    transition: background-color .25s, width .4s var(--ease);
}
.search-trigger:hover { background: rgba(255, 255, 255, .14); }
.search-trigger__text, .search-trigger__kbd { display: none; }
.search-trigger__kbd {
    font: 700 11px/1 var(--f-sans); padding: 4px 7px; border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .16); color: var(--ink-muted);
}

#themeToggle svg { transition: transform .6s var(--spring); }
#themeToggle:hover svg { transform: rotate(40deg); }
#themeToggle .i-moon { display: none; }
:root[data-theme="light"] #themeToggle .i-sun { display: none; }
:root[data-theme="light"] #themeToggle .i-moon { display: block; }

@media (min-width: 1024px) {
    .nav { display: flex; }
    .menu-btn { display: none; }
}
@media (min-width: 1180px) {
    .search-trigger { width: auto; padding: 0 8px 0 14px; justify-content: flex-start; }
    .search-trigger__text { display: inline; }
    .search-trigger__kbd { display: inline-block; }
}

/* ---------- Portada: carrusel ---------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    height: 88svh; min-height: 560px; max-height: 940px;
    background: #050505; color: #fff;
}
.hero__slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity 1.1s var(--ease), visibility 0s linear 1.1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease); z-index: 1; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__img {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.16) translate3d(0, 0, 0);
    transition: transform 0s linear 1.1s;
}
.hero.is-ready .hero__slide.is-active .hero__img,
html:not(.js) .hero__slide.is-active .hero__img { transform: scale(1.02); transition: transform 9s cubic-bezier(.15, .5, .3, 1); }
.hero__shade {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 22%),
        linear-gradient(0deg, rgba(6, 6, 7, .97) 0%, rgba(6, 6, 7, .75) 30%, rgba(6, 6, 7, .1) 62%, rgba(6, 6, 7, 0) 75%),
        linear-gradient(90deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 60%);
}
.hero__content {
    position: absolute; left: 0; right: 0; bottom: 56px;
    display: grid; gap: 14px; justify-items: start;
}
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 12px 7px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    font-size: 12px; font-weight: 700; letter-spacing: .02em; color: rgba(255, 255, 255, .92);
}
.hero__eyebrow-sep { opacity: .4; }
.hero .kicker { color: var(--accent); }
.hero__title {
    max-width: 22ch;
    font-size: clamp(1.95rem, .9rem + 4.3vw, 5rem);
    font-weight: 900; font-stretch: 88%;
    line-height: .98; letter-spacing: -.022em; word-spacing: .08em;
    text-wrap: balance;
    text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.hero__title a { display: block; }
.hero__dek {
    display: none; max-width: 58ch;
    font-family: var(--f-serif); font-size: 1.15rem; line-height: 1.55; color: rgba(255, 255, 255, .78);
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 6px; }
.hero__meta { font-size: 13.5px; color: rgba(255, 255, 255, .7); font-weight: 550; }

/* Entrada escalonada al cambiar de noticia */
.js .hero__slide .hero__eyebrow,
.js .hero__slide .kicker,
.js .hero__slide .hero__dek,
.js .hero__slide .hero__actions {
    opacity: 0; transform: translateY(18px);
    transition: opacity .1s, transform 0s linear 1.1s;
}
.js .hero.is-ready .hero__slide.is-active .hero__eyebrow,
.js .hero.is-ready .hero__slide.is-active .kicker,
.js .hero.is-ready .hero__slide.is-active .hero__dek,
.js .hero.is-ready .hero__slide.is-active .hero__actions {
    opacity: 1; transform: none;
    transition: opacity .8s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.hero__slide .hero__eyebrow { --d: .1s; }
.hero__slide .kicker { --d: .2s; }
.hero__slide .hero__dek { --d: .55s; }
.hero__slide .hero__actions { --d: .7s; }

/* Mientras home.js prepara el titular, se oculta (con respaldo si el JS falla) */
.js .hero:not(.is-ready) .hero__title { opacity: 0; animation: show-late 0s linear 2.5s forwards; }
@keyframes show-late { to { opacity: 1; } }
.js .hero:not(.is-ready) .hero__slide.is-active :is(.hero__eyebrow, .kicker, .hero__dek, .hero__actions) {
    animation: show-late 0s linear 2.5s forwards;
}

/* Palabras del titular (las crea home.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; transform: translateY(108%); transition: transform 0s linear 1.1s; }
.hero.is-ready .hero__slide.is-active .w > span {
    transform: none;
    transition: transform 1s var(--ease) calc(.25s + var(--wi) * 38ms);
}

/* Pestañas con barra de progreso */
.hero__nav {
    position: absolute; left: 0; right: 0; z-index: 3;
    top: calc(var(--head-h) + 8px);
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px;
}
.hero__tab {
    display: grid; gap: 10px; align-content: start; text-align: left;
    padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .55);
    transition: color .3s;
}
.hero__tab:hover, .hero__tab.is-active { color: #fff; }
.hero__bar { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.hero__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.hero__tab.is-done .hero__bar i { transform: scaleX(1); }
.hero__tab.is-active .hero__bar i { animation: fill var(--hero-dur) linear forwards; }
.hero.is-paused .hero__tab.is-active .hero__bar i { animation-play-state: paused; }
.hero.is-static .hero__tab.is-active .hero__bar i { animation: none; transform: scaleX(1); }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__num, .hero__tab-title { display: none; }

.hero__pause {
    position: absolute; z-index: 3; right: var(--gutter); top: calc(var(--head-h) + 24px);
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .18); color: #fff;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: background-color .25s, transform .35s var(--spring);
}
.hero__pause:hover { background: rgba(0, 0, 0, .6); transform: scale(1.08); }
.hero__pause .i-play { display: none; }
.hero__pause[aria-pressed="true"] .i-pause { display: none; }
.hero__pause[aria-pressed="true"] .i-play { display: block; }

@media (min-width: 720px) {
    .hero { height: 92svh; }
    .hero__content { bottom: 150px; gap: 18px; }
    .hero__dek { display: -webkit-box; }
    .hero__nav { top: auto; bottom: 46px; gap: 22px; }
    .hero__num { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--accent); }
    .hero__tab-title {
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
        font-size: 13.5px; font-weight: 650; line-height: 1.3;
    }
    .hero__pause { top: auto; bottom: 108px; }
}
@media (min-width: 1240px) {
    .hero__pause { right: calc((100% - var(--wrap)) / 2); }
}

/* ---------- Cinta de titulares (cinta amarilla inclinada) ---------- */
main { overflow-x: clip; }
.ticker {
    position: relative; z-index: 5;
    display: flex; align-items: stretch;
    width: 104%; margin: -26px 0 0 -2%;
    height: 50px;
    background: var(--accent); color: #111;
    transform: rotate(-1.2deg);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55);
}
.ticker__label {
    display: inline-flex; align-items: center; gap: 9px; flex: none;
    padding: 0 26px 0 calc(2% + var(--gutter));
    background: #111; color: var(--accent);
    font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.ticker__viewport { position: relative; flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.ticker__track { display: flex; width: max-content; animation: ticker 80s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; }
.ticker__list li { display: flex; align-items: center; white-space: nowrap; }
.ticker__list li::after { content: "✦"; margin: 0 22px; font-size: 12px; }
.ticker__list a { font-size: 15px; font-weight: 750; letter-spacing: -.01em; }
.ticker__list a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.ticker__list time { margin-right: 8px; font-size: 12px; font-weight: 900; text-transform: uppercase; opacity: .55; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Historias ---------- */
.stories { padding-top: 56px; }
.stories__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.stories__title { font-size: 1.35rem; font-weight: 900; letter-spacing: -.02em; }
.stories__hint { font-size: 13.5px; color: var(--muted); font-weight: 550; }
.stories__rail {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter) 12px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.stories__rail::-webkit-scrollbar { display: none; }
.story {
    flex: none; width: 82px; scroll-snap-align: start;
    display: grid; justify-items: center; gap: 8px;
    padding: 0; border: 0; background: none; text-align: center;
}
.story__ring {
    position: relative; width: 78px; height: 78px; border-radius: 50%; padding: 3px;
    background: conic-gradient(from var(--spin), var(--accent), var(--accent-2), var(--hot), var(--accent-2), var(--accent));
    animation: spin 5s linear infinite;
    transition: transform .4s var(--spring);
}
.story__ring img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
    border: 3px solid var(--bg); background: var(--surface-2);
    transition: border-color .4s;
}
.story:hover .story__ring { transform: scale(1.07) rotate(-3deg); }
.story:active .story__ring { transform: scale(.95); }
.story.is-seen .story__ring { background: var(--line-strong); animation: none; }
.story__label {
    font-size: 12px; font-weight: 650; line-height: 1.25; color: var(--text-2);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.js .story { animation: story-in .7s var(--spring) both; animation-delay: calc(var(--d) * 60ms + .2s); }
@keyframes spin { to { --spin: 360deg; } }
@keyframes story-in { from { opacity: 0; transform: translateY(14px) scale(.85); } }
@media (min-width: 720px) {
    .story { width: 96px; }
    .story__ring { width: 90px; height: 90px; }
    .stories__rail { gap: 18px; }
}

/* ---------- Publicidad: base ----------
   Todos los anuncios comparten el mismo lenguaje: tarjeta con borde, panel suave,
   creativo a su tamaño real (sin estirar) y etiqueta "AD · Publicidad". */
.ad {
    display: flex; flex-direction: column; gap: 10px;
    padding: 8px; border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--line);
}
.ad__frame, .native__media {
    position: relative; overflow: hidden; border-radius: 12px;
    display: grid; place-items: center;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(255, 196, 0, .10), transparent 60%),
        radial-gradient(120% 90% at 100% 100%, rgba(255, 45, 85, .08), transparent 60%),
        var(--surface-2);
}
.ad__frame { padding: 14px; }
.ad__frame img {
    width: 100%; height: auto; border-radius: 6px;
    box-shadow: 0 0 0 1px var(--line), 0 18px 40px -22px rgba(0, 0, 0, .55);
}
.ad__tag, .native__tag {
    display: inline-flex; align-items: center; gap: 7px; padding: 0 6px 4px;
    font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.ad__tag::before, .native__tag::before {
    content: "Ad"; padding: 2px 6px; border-radius: 4px; letter-spacing: .04em;
    background: var(--accent); color: #111; font-size: 10px;
}
.anchor__label {
    font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}

.ad--leaderboard { margin-top: 48px; }
.ad--leaderboard .ad__frame img { max-width: 728px; }
.ad--strip { margin: 8px 0 64px; }
.ad--strip .ad__frame img { max-width: 468px; }
@media (min-width: 720px) {
    .ad--leaderboard .ad__frame, .ad--strip .ad__frame { padding: 24px; }
}
/* Cuadrado de la barra lateral: el creativo llena la tarjeta */
.ad--square .ad__frame { padding: 0; background: var(--surface-2); }
.ad--square .ad__frame img { border-radius: 0; box-shadow: none; }

/* ---------- Encabezados de bloque ---------- */
.block { padding-top: 72px; }
.block__head { margin-bottom: 28px; }
.block__eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
    font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.block__title {
    font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.6rem);
    font-weight: 900; font-stretch: 92%; letter-spacing: -.03em; word-spacing: .06em; line-height: .95;
}

/* ---------- Bento "Lo último" ---------- */
.bento { display: grid; gap: 12px; }

.feature {
    position: relative; overflow: hidden; border-radius: var(--radius-lg);
    min-height: 440px; background: #000; color: #fff;
    box-shadow: var(--card-shadow);
}
.feature__link { position: absolute; inset: 0; display: block; }
.cover--feature { position: absolute; inset: 0; border-radius: 0; }
.feature__link::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(5, 5, 6, .97) 0%, rgba(5, 5, 6, .82) 42%, rgba(5, 5, 6, .25) 72%, rgba(5, 5, 6, 0) 90%);
}
.feature__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: 12px; padding: 24px; justify-items: start; }
.feature .kicker { color: var(--accent); }
.feature__title {
    font-size: clamp(1.6rem, 1rem + 1.7vw, 2.5rem); font-weight: 900; font-stretch: 92%;
    line-height: 1.02; letter-spacing: -.018em; word-spacing: .07em; text-wrap: balance;
}
.feature__dek {
    display: none; font-family: var(--f-serif); font-size: 1.02rem; line-height: 1.5; color: rgba(255, 255, 255, .78);
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 54ch;
}
.feature__cta {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
    padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    font-size: 13.5px; font-weight: 800;
    transition: background-color .3s, color .3s;
}
.feature__cta svg { transition: transform .35s var(--spring); }
.feature:hover .feature__cta { background: var(--accent); color: #111; border-color: var(--accent); }
.feature:hover .feature__cta svg { transform: translateX(4px); }

.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: transform .45s var(--spring), border-color .3s, box-shadow .45s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--card-shadow); }
.card__link { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; padding: 12px; height: 100%; }
.card__link .cover { order: 2; aspect-ratio: 1; }
.card__body { display: grid; gap: 7px; align-content: start; }
.card__title {
    font-size: 1rem; font-weight: 750; line-height: 1.25; letter-spacing: -.01em;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.card .meta { margin-top: auto; }

@media (min-width: 640px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .feature { grid-column: span 2; min-height: 480px; }
    .feature__body { padding: 32px; }
    .feature__dek { display: -webkit-box; }
    .card__link { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 0; padding: 8px; }
    .card__link .cover { order: 0; aspect-ratio: 3 / 2; }
    .card__body { padding: 14px 8px 8px; gap: 9px; }
    .card__title { font-size: 1.08rem; }
}
@media (min-width: 1024px) {
    .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .feature { grid-column: span 2; grid-row: span 2; min-height: 560px; }
    .feature__body { padding: 36px; }
}

/* ---------- Anuncio nativo ---------- */
/* Los creativos son 250×250: se muestran a su tamaño (sin estirar) sobre un panel suave */
.native {
    position: relative; display: flex; flex-direction: column; gap: 10px;
    padding: 8px; border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--line);
}
.native__media { flex: 1; padding: 18px; }
.native__media img {
    width: 100%; max-width: 250px; height: auto; border-radius: 8px;
    box-shadow: 0 0 0 1px var(--line), 0 18px 40px -22px rgba(0, 0, 0, .55);
    transition: transform .5s var(--ease);
}
.native:hover .native__media img { transform: translateY(-3px); }
.native__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px; }

/* En la columna de noticias: bloque editorial centrado entre filetes */
.native--row {
    padding: 18px 0; gap: 12px; align-items: center;
    background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0;
}
.native--row .native__body { order: -1; justify-content: center; padding: 0; }
.native--row .native__media { width: 100%; padding: 28px 16px; border-radius: var(--radius-lg); }
.river > .native--row:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 720px) {
    .native--row { padding: 30px 0; }
    .native--row .native__media { padding: 36px 24px; }
}

/* ---------- Anuncio revelado (móvil y tablet) ---------- */
.reveal-ad { margin-top: 64px; }
.reveal-ad__bar {
    display: flex; align-items: center; justify-content: center; gap: 6px; height: 30px;
    background: var(--bg-2); color: var(--muted);
    font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
    border-block: 1px solid var(--line);
}
.reveal-ad__window { position: relative; height: min(72vh, 520px); clip-path: inset(0); background: #050505; }
.reveal-ad__media {
    position: fixed; inset: 0; padding-top: var(--head-h);
    display: grid; place-items: center; pointer-events: none;
}
.reveal-ad__media img { width: min(100vw, 520px); height: auto; }
@media (min-width: 1024px) { .reveal-ad { display: none; } }

/* ---------- Texto cinético ---------- */
.kinetic {
    overflow: hidden; padding: 88px 0 24px; user-select: none; pointer-events: none;
    font-size: clamp(3rem, 1.6rem + 6.5vw, 9rem);
    font-weight: 900; font-stretch: 112%; line-height: .98; letter-spacing: -.03em; text-transform: uppercase;
}
.kinetic__row { display: flex; align-items: center; gap: .35em; white-space: nowrap; width: max-content; will-change: transform; }
.kinetic__row b { font-size: .42em; color: var(--accent); font-weight: 400; }
.kinetic__row--outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); opacity: .55; }
.kinetic__row--outline b { -webkit-text-stroke: 0; }

/* ---------- Más noticias + barra lateral ---------- */
.split { display: grid; gap: 48px; padding-top: 40px; padding-bottom: 64px; }
.split__main { min-width: 0; }
.split__side { order: -1; display: flex; flex-direction: column; gap: 32px; }

.row { border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row__link { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 16px; padding: 18px 0; }
.row__link .cover { order: 2; aspect-ratio: 1; }
.row__body { display: grid; gap: 8px; align-content: start; }
.row__title {
    font-size: 1.05rem; font-weight: 750; line-height: 1.24; letter-spacing: -.01em;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.row__dek { display: none; }
@media (min-width: 720px) {
    .row__link { grid-template-columns: 280px minmax(0, 1fr); gap: 30px; padding: 30px 0; }
    .row:first-child .row__link { padding-top: 0; }
    .row__link .cover { order: 0; aspect-ratio: 3 / 2; border-radius: 14px; }
    .row__title { font-size: 1.45rem; font-weight: 850; line-height: 1.12; letter-spacing: -.012em; word-spacing: .04em; -webkit-line-clamp: 3; }
    .row__dek {
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
        font-family: var(--f-serif); font-size: 1rem; line-height: 1.55; color: var(--text-2);
    }
}

.more { display: flex; justify-content: center; padding-top: 32px; border-top: 1px solid var(--line); }

/* Lo más leído */
.ranking {
    position: relative; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 24px 22px 8px;
}
.ranking::before {
    content: ""; position: absolute; inset: -40% -30% auto auto; width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 196, 0, .16), transparent 70%); pointer-events: none;
}
.ranking__head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; }
.ranking__title { font-size: 1.4rem; font-weight: 900; letter-spacing: -.02em; }
.ranking__hint {
    font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
    padding: 5px 9px; border-radius: 999px; background: var(--accent); color: #111;
}
.ranking__item { border-top: 1px solid var(--line); }
.ranking__item a { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 16px 0; }
.ranking__num {
    font-size: 2.9rem; font-weight: 900; font-stretch: 75%; line-height: .82;
    color: transparent; -webkit-text-stroke: 1.5px var(--accent-text);
    transition: color .3s, transform .4s var(--spring);
}
.ranking__item a:hover .ranking__num { color: var(--accent); -webkit-text-stroke-color: var(--accent); transform: scale(1.1) rotate(-4deg); }
.ranking__item:first-child .ranking__num { color: var(--accent); -webkit-text-stroke: 0; }
.ranking__body { display: grid; gap: 7px; }
.ranking__name {
    font-size: .98rem; font-weight: 750; line-height: 1.26;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ranking__views { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 650; }
.ranking__meter {
    display: block; height: 4px; width: calc(var(--w) * .5); min-width: 8px; border-radius: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease) .2s;
}
.ranking.is-in .ranking__meter { transform: none; }
.no-js .ranking__meter, html:not(.js) .ranking__meter { transform: none; }

.side-ad { display: none; }

@media (min-width: 1024px) {
    .split { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
    .split__side { order: 0; }
    .side-ad { display: block; position: sticky; top: calc(var(--head-h) + 20px); }
}
@media (min-width: 1180px) { .split { grid-template-columns: minmax(0, 1fr) 340px; } }

/* ---------- Rieles laterales (pantallas anchas) ---------- */
.rails { display: none; }
@media (min-width: 1440px) {
    :root { --wrap: 1080px; --rail-w: 128px; --rail-gap: 24px; }
    .rails { display: block; transition: opacity .5s var(--ease), transform .5s var(--ease); }
    .rails.is-hidden { opacity: 0; pointer-events: none; }
    .rail {
        position: fixed; z-index: 10;
        top: calc(var(--head-h) + 24px);
        width: var(--rail-w);
        display: flex; flex-direction: column; gap: 8px;
        padding: 6px; border-radius: var(--radius-lg);
        background: var(--surface); border: 1px solid var(--line);
        box-shadow: var(--card-shadow);
        transition: transform .6s var(--ease), opacity .5s var(--ease);
    }
    .rails.is-hidden .rail--left { transform: translateX(-24px); }
    .rails.is-hidden .rail--right,
    .rails.no-right .rail--right { transform: translateX(24px); }
    /* Mientras el anuncio de la barra lateral está en pantalla, el riel derecho se retira */
    .rails.no-right .rail--right { opacity: 0; pointer-events: none; }
    .rail img {
        width: auto; max-width: 100%; height: auto; margin-inline: auto; border-radius: 12px;
        max-height: calc(100vh - var(--head-h) - 110px);
    }
    .rail .ad__tag { padding: 0 4px 2px; font-size: 9.5px; letter-spacing: .12em; }
    .rail--left { left: calc(50% - var(--wrap) / 2 - var(--rail-gap) - var(--rail-w)); }
    .rail--right { right: calc(50% - var(--wrap) / 2 - var(--rail-gap) - var(--rail-w)); }
}
@media (min-width: 1680px) {
    :root { --wrap: 1200px; --rail-w: 160px; --rail-gap: 36px; }
}

/* ---------- Anuncio fijo inferior (móvil) ---------- */
.anchor {
    position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 55;
    display: flex; justify-content: center; align-items: center;
    padding: 18px 12px 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 20px 50px -14px rgba(0, 0, 0, .7);
    transform: translateY(calc(100% + 40px)); transition: transform .55s var(--spring);
}
.anchor[hidden] { display: none; }
.anchor.is-visible { transform: none; }
.anchor img { max-height: 56px; width: auto; max-width: 100%; border-radius: 4px; }
.anchor__label { position: absolute; top: 4px; left: 14px; font-size: 9px; }
.anchor__close {
    position: absolute; top: -12px; right: 10px;
    display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    background: var(--text); border: 0; color: var(--bg);
}
@media (min-width: 1024px) { .anchor { display: none !important; } }
body.has-anchor .footer { padding-bottom: 110px; }

/* ---------- Pie ---------- */
.footer { position: relative; background: var(--ink); color: var(--ink-text); overflow: hidden; }
.footer::before {
    content: ""; position: absolute; left: 50%; top: -260px; width: 900px; height: 520px; transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(255, 196, 0, .18), transparent); pointer-events: none;
}
.footer__hero {
    position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px;
    padding-top: 80px; padding-bottom: 56px; border-bottom: 1px solid var(--ink-line);
}
.footer__big {
    font-size: clamp(2.3rem, 1.2rem + 4vw, 5rem); font-weight: 900; font-stretch: 90%;
    line-height: .98; letter-spacing: -.035em;
}
.footer__big em { font-family: var(--f-serif); font-style: italic; font-weight: 500; color: var(--accent); letter-spacing: -.02em; }
.footer__grid { position: relative; display: grid; gap: 40px; padding-top: 48px; padding-bottom: 40px; }
.footer__about { margin-top: 18px; max-width: 34ch; color: var(--ink-muted); font-family: var(--f-serif); font-size: 1rem; }
.footer__social { display: flex; gap: 8px; margin-top: 20px; }
.footer__social:empty { display: none; }
.footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__title { margin-bottom: 6px; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.footer__col a, .footer__cats a {
    color: rgba(243, 241, 236, .82); font-size: 14.5px; font-weight: 550;
    transition: color .2s, transform .3s var(--ease); display: inline-block;
}
.footer__col a:hover, .footer__cats a:hover { color: var(--accent); transform: translateX(4px); }
.footer__cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.footer__legal {
    position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--ink-line);
    font-size: 13px; color: var(--ink-muted);
}
.footer__top:hover { color: var(--accent); }
.social {
    display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    color: var(--ink-muted); transition: color .2s, background-color .2s, transform .3s var(--spring);
}
.social:hover { color: var(--ink); background: var(--accent); transform: translateY(-2px); }
.social--lg { width: 40px; height: 40px; border: 1px solid var(--ink-line); }
@media (min-width: 720px) {
    .footer__grid { grid-template-columns: 1.3fr 1fr; }
    .footer__col--wide { grid-column: span 2; }
    .footer__cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .footer__grid { grid-template-columns: 1.4fr .8fr 2fr; gap: 56px; }
    .footer__col--wide { grid-column: auto; }
}

/* ---------- Diálogos ---------- */
dialog { padding: 0; border: 0; max-width: none; max-height: none; background: transparent; color: inherit; }
dialog::backdrop { background: rgba(5, 5, 6, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
body.is-locked { overflow: hidden; }

/* Buscador */
.search { width: 100%; height: 100%; margin: 0; }
.search[open] { display: flex; justify-content: center; align-items: flex-start; }
.search__panel {
    width: min(680px, calc(100% - 24px)); margin-top: min(12vh, 110px);
    background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8);
    overflow: hidden; animation: pop .35s var(--spring);
}
@keyframes pop { from { opacity: 0; transform: translateY(-12px) scale(.96); } }
.search__field { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search__field input {
    flex: 1; min-width: 0; height: 66px; border: 0; outline: 0; background: transparent;
    font: 650 1.2rem var(--f-sans); color: var(--text);
}
.search__field input::-webkit-search-cancel-button { display: none; }
.search__esc {
    font: 700 11px var(--f-sans); padding: 5px 8px; border-radius: 6px;
    border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--muted);
}
.search__results { max-height: min(60vh, 520px); overflow-y: auto; padding: 8px; }
.search__hint { padding: 18px 12px; color: var(--muted); font-size: 14px; }
.search__results.is-loading .result { opacity: .55; transition: opacity .15s; }
.result {
    display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 12px;
    animation: result-in .4s var(--ease) both;
}
.result:nth-child(2) { animation-delay: 40ms; } .result:nth-child(3) { animation-delay: 80ms; }
.result:nth-child(4) { animation-delay: 120ms; } .result:nth-child(5) { animation-delay: 160ms; }
.result:nth-child(n+6) { animation-delay: 200ms; }
@keyframes result-in { from { opacity: 0; transform: translateY(8px); } }
.result[aria-selected="true"], .result:hover { background: var(--surface-2); }
.result__img { width: 76px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.result__title { display: block; font-weight: 750; line-height: 1.28; font-size: .98rem; }
.result__title mark { background: none; color: var(--accent-text); box-shadow: inset 0 -2px var(--accent); }
.result__meta { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }

/* Menú lateral */
.drawer { height: 100%; width: min(440px, 100%); margin: 0 0 0 auto; }
.drawer__panel {
    height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 22px;
    padding: 20px 24px 32px; background: var(--ink); color: var(--ink-text);
    border-left: 1px solid var(--ink-line);
    animation: slide .5s var(--ease);
}
@keyframes slide { from { transform: translateX(60px); opacity: 0; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__date { font-size: 13px; color: var(--ink-muted); }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__main {
    padding: 12px 0; border-bottom: 1px solid var(--ink-line);
    font-size: 2rem; font-weight: 900; font-stretch: 92%; letter-spacing: -.03em; line-height: 1.05;
    transition: color .2s, padding .35s var(--ease);
    animation: drawer-in .6s var(--ease) both; animation-delay: calc(.1s + var(--i) * 60ms);
}
.drawer__main:hover { color: var(--accent); padding-left: 10px; }
@keyframes drawer-in { from { opacity: 0; transform: translateX(30px); } }
.drawer__label { margin: 28px 0 14px; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.drawer__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer__cats a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 13px; border-radius: 999px; border: 1px solid var(--ink-line);
    font-size: 14px; font-weight: 600; color: rgba(243, 241, 236, .85);
    transition: border-color .2s, background-color .2s, transform .3s var(--spring);
}
.drawer__cats a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cat); }
.drawer__cats a:hover { border-color: var(--accent); background: var(--ink-2); transform: translateY(-2px); }
.drawer__social { display: flex; gap: 8px; margin-top: auto; }

/* Visor de historias */
.viewer { width: 100%; height: 100%; margin: 0; }
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop { background: rgba(3, 3, 4, .9); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.viewer__stage {
    position: relative; overflow: hidden; isolation: isolate;
    width: 100vw; height: 100dvh; background: #000; color: #fff;
    animation: viewer-in .45s var(--spring);
}
@keyframes viewer-in { from { opacity: 0; transform: scale(.9); } }
@media (min-width: 640px) {
    .viewer__stage {
        height: min(92dvh, 860px); width: auto; aspect-ratio: 9 / 16;
        border-radius: 22px; box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .9);
    }
}
.viewer__bg {
    position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px);
    object-fit: cover; filter: blur(30px) brightness(.45) saturate(1.3);
}
.viewer__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewer.is-playing .viewer__img { animation: kenburns 7s linear forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14); } }
.viewer.is-ad .viewer__img {
    inset: 18% 8% auto; width: 84%; height: auto; aspect-ratio: 1; object-fit: contain;
    border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
}
.viewer.is-ad.is-playing .viewer__img { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1deg); } }
.viewer__shade {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, 0) 22%),
        linear-gradient(0deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .5) 35%, rgba(0, 0, 0, 0) 60%);
}
.viewer__top { position: absolute; z-index: 3; inset: 0 0 auto; padding: calc(10px + env(safe-area-inset-top)) 12px 0; display: grid; gap: 12px; }
.viewer__bars { display: flex; gap: 4px; }
.viewer__bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.viewer__bars i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.viewer__bars .is-done i { transform: scaleX(1); }
.viewer__bars .is-active i { animation: fill var(--story-dur, 6s) linear forwards; }
.viewer.is-held .viewer__bars .is-active i { animation-play-state: paused; }
.viewer.is-static .viewer__bars .is-active i { animation: none; transform: scaleX(1); }
.viewer__head { display: flex; align-items: center; justify-content: space-between; }
.viewer__who { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 750; }
.viewer__avatar {
    display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent); color: #111; font-weight: 900; font-style: italic;
}
.viewer__time { font-weight: 500; opacity: .7; font-size: 13px; }
.viewer__close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .25); color: #fff; }
.viewer__zone { position: absolute; z-index: 2; top: 90px; bottom: 170px; border: 0; background: transparent; -webkit-tap-highlight-color: transparent; }
.viewer__zone--prev { left: 0; width: 34%; }
.viewer__zone--next { right: 0; width: 66%; }
.viewer__content {
    position: absolute; z-index: 3; inset: auto 0 0; display: grid; gap: 12px; justify-items: start;
    padding: 24px 20px calc(28px + env(safe-area-inset-bottom));
}
.viewer__content > * { animation: result-in .6s var(--ease) both; }
.viewer__content > :nth-child(2) { animation-delay: .08s; }
.viewer__content > :nth-child(3) { animation-delay: .16s; }
.viewer .kicker { color: var(--accent); }
.viewer__title {
    font-size: 1.7rem; font-weight: 900; font-stretch: 92%; line-height: 1.04; letter-spacing: -.018em; word-spacing: .06em;
    text-wrap: balance; text-shadow: 0 2px 20px rgba(0, 0, 0, .4);
}
.viewer.is-ad .viewer__cta { display: none; }

/* ---------- Estado vacío ---------- */
.no-hero main { padding-top: var(--head-h); }
.empty { padding-block: 120px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.empty__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); }
.empty__title { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 900; letter-spacing: -.03em; }
.empty__text { color: var(--muted); font-family: var(--f-serif); font-size: 1.1rem; }

/* ---------- Animación de entrada al hacer scroll ---------- */
.js [data-reveal] {
    opacity: 0; transform: translateY(28px) scale(.98);
    transition: opacity .8s var(--ease) var(--stagger, 0ms), transform .9s var(--ease) var(--stagger, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .card[data-reveal].is-in:hover { transform: translateY(-5px); transition-delay: 0ms; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
    .ticker__viewport { overflow-x: auto; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .w > span { transform: none !important; }
    .hero__slide .hero__img { transform: none !important; }
}
