/* ==========================================================================
   Fasnoticias — Páginas interiores (sección, nota, error)
   Se carga después de home.css y reutiliza sus tokens y componentes.
   ========================================================================== */

.no-hero main { padding-top: calc(var(--head-h) + 8px); }
.spacer { height: 72px; }
.block--first { padding-top: 40px; }
.block--tight { padding-top: 32px; }
.more--plain { border-top: 0; padding-top: 40px; }

.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-text); }

/* Ruta de navegación */
.crumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 650; color: var(--muted);
}
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--accent-text); }
.crumbs span[aria-hidden] { opacity: .5; }

/* Rejilla simple de tarjetas */
.cards { display: grid; gap: 12px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) {
    .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==========================================================================
   Sección
   ========================================================================== */
.section-head { position: relative; isolation: isolate; padding-top: 36px; }
.section-head::before {
    content: ""; position: absolute; z-index: -1; inset: calc(var(--head-h) * -1 - 8px) 0 -40px;
    background:
        radial-gradient(60% 80% at 8% 0%, color-mix(in srgb, var(--cat) 26%, transparent), transparent 70%),
        radial-gradient(40% 60% at 92% 10%, rgba(255, 196, 0, .08), transparent 70%);
    pointer-events: none;
}
.section-head__title {
    margin-top: 14px;
    font-size: clamp(3.1rem, 1.4rem + 7.4vw, 8.6rem);
    font-weight: 900; font-stretch: 86%; line-height: .9; letter-spacing: -.045em;
    overflow-wrap: anywhere;
}
.section-head__dot { color: var(--accent); }
.section-head__desc {
    margin-top: 18px; max-width: 52ch;
    font-family: var(--f-serif); font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); line-height: 1.5; color: var(--text-2);
}
.section-head__stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.stat {
    display: inline-flex; align-items: center; gap: 8px;
    height: 34px; padding: 0 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line);
    font-size: 13px; font-weight: 650; color: var(--text-2);
}
.stat strong { font-weight: 900; color: var(--text); }

/* Chips con las demás secciones */
.chips {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 30px auto 0;
    padding: 4px var(--gutter) 6px;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none; display: inline-flex; align-items: center; gap: 8px;
    height: 36px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface);
    font-size: 13.5px; font-weight: 650; color: var(--text-2);
    transition: border-color .2s, transform .3s var(--spring), background-color .2s;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cat); }
.chip:hover { border-color: var(--line-strong); transform: translateY(-2px); color: var(--text); }
.chip.is-current { background: var(--accent); border-color: var(--accent); color: #111; }
.chip.is-current::before { background: #111; }

/* ---------- Videos ---------- */
.vgrid { display: grid; gap: 16px; }
.vcard {
    display: flex; flex-direction: column;
    padding: 8px; border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--line);
}
.vcard__player, .vcard iframe {
    position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
    padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #000;
}
.vcard__player { cursor: pointer; }
.vcard__player img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .4s; }
.vcard__player::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .45), transparent 55%);
}
.vcard__play {
    position: absolute; z-index: 1; inset: 0; margin: auto;
    display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
    background: var(--accent); color: #111; padding-left: 4px;
    box-shadow: 0 0 0 8px rgba(255, 196, 0, .22), 0 18px 40px -10px rgba(0, 0, 0, .7);
    transition: transform .4s var(--spring), box-shadow .4s;
}
.vcard__player:hover img { transform: scale(1.05); }
.vcard__player:hover .vcard__play { transform: scale(1.12); box-shadow: 0 0 0 12px rgba(255, 196, 0, .18), 0 18px 40px -10px rgba(0, 0, 0, .7); }
.vcard__body { display: grid; gap: 6px; padding: 14px 8px 8px; }
.vcard__title { font-size: 1.08rem; font-weight: 800; line-height: 1.22; letter-spacing: -.01em; }
.vcard__desc {
    font-family: var(--f-serif); font-size: .98rem; line-height: 1.5; color: var(--muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 640px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vcard--big { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
    .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .vcard--big { flex-direction: row; align-items: stretch; gap: 8px; }
    .vcard--big .vcard__player, .vcard--big iframe { flex: 2.2; width: auto; }
    .vcard--big .vcard__body { flex: 1; align-content: center; padding: 24px; gap: 12px; }
    .vcard--big .vcard__title { font-size: 1.9rem; font-weight: 900; font-stretch: 92%; line-height: 1.02; letter-spacing: -.02em; }
    .vcard--big .vcard__desc { -webkit-line-clamp: 5; font-size: 1.05rem; }
    .vcard--big .vcard__play { width: 84px; height: 84px; }
}

/* ---------- Sección vacía ---------- */
.empty--section { padding-block: 72px 16px; }
.empty--section .empty__text { max-width: 46ch; }

/* ==========================================================================
   Nota
   ========================================================================== */
.article { display: grid; gap: 48px; padding-top: 28px; }
.article__main { min-width: 0; }
.article__head { display: grid; gap: 16px; justify-items: start; }
.article__title {
    font-size: clamp(2rem, 1.15rem + 3.2vw, 3.7rem);
    font-weight: 900; font-stretch: 90%; line-height: 1.02; letter-spacing: -.026em; word-spacing: .06em;
    text-wrap: balance;
}
.article__dek {
    max-width: 60ch;
    font-family: var(--f-serif); font-size: clamp(1.1rem, 1rem + .4vw, 1.32rem); line-height: 1.5; color: var(--text-2);
}

/* Firma */
.byline {
    width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px;
    margin-top: 8px; padding: 16px 0; border-block: 1px solid var(--line);
}
.byline__avatar {
    display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent); color: #111; font-weight: 900; font-style: italic; font-size: 1.2rem; object-fit: cover;
}
.byline__text { display: grid; gap: 3px; min-width: 0; }
.byline__name { font-weight: 800; font-size: 15px; }
.byline__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--muted); font-weight: 550; }

/* Compartir */
.share { display: flex; gap: 8px; }
.share--head { margin-left: auto; }
.share__btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
    transition: background-color .2s, color .2s, border-color .2s, transform .35s var(--spring);
}
.share__btn:hover { background: var(--accent); border-color: var(--accent); color: #111; transform: translateY(-2px); }
.share__btn--wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.share__copy .i-check { display: none; }
.share__copy.is-copied { background: var(--accent); border-color: var(--accent); color: #111; }
.share__copy.is-copied .i-link { display: none; }
.share__copy.is-copied .i-check { display: block; }
.share--big .share__btn { width: 48px; height: 48px; }
@media (max-width: 559px) { .share--head { margin-left: 0; width: 100%; } }

/* Portada de la nota */
.article__cover { margin: 28px 0 0; }
.article__cover img {
    width: 100%; aspect-ratio: 16 / 10; max-height: 72vh; object-fit: cover;
    border-radius: var(--radius-lg); background: var(--surface-2);
    box-shadow: var(--card-shadow);
}

/* ---------- Cuerpo ---------- */
.prose {
    max-width: 700px; margin: 40px auto 0;
    font-family: var(--f-serif); font-size: 1.12rem; line-height: 1.75; color: var(--text);
    overflow-wrap: break-word;
}
@media (min-width: 720px) { .prose { font-size: 1.2rem; } }
.prose > * + * { margin-top: 1.15em; }
.prose > p:first-child:not(:has(> img))::first-letter {
    float: left; margin: .08em .12em 0 0;
    font-family: var(--f-sans); font-weight: 900; font-stretch: 88%; font-size: 4.3em; line-height: .78;
    color: var(--accent-text);
}
.prose strong { font-weight: 600; color: var(--text); }
.prose a {
    text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px;
    transition: background-color .2s;
}
.prose a:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.prose h1, .prose h2, .prose h3, .prose h4 {
    position: relative; margin-top: 1.9em; padding-top: .7em;
    font-family: var(--f-sans); font-weight: 850; font-stretch: 94%; line-height: 1.12; letter-spacing: -.018em;
}
.prose h1::before, .prose h2::before, .prose h3::before, .prose h4::before {
    content: ""; position: absolute; top: 0; left: 0; width: 34px; height: 4px; border-radius: 4px; background: var(--accent);
}
.prose h1, .prose h2 { font-size: 1.7rem; }
.prose h3 { font-size: 1.4rem; }
.prose h4 { font-size: 1.15rem; }
.prose > :is(h1, h2, h3, h4) + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent-text); font-weight: 700; }
.prose blockquote {
    margin-inline: 0; padding: .3em 0 .3em 1.1em; border-left: 4px solid var(--accent);
    font-size: 1.18em; font-style: italic; line-height: 1.55; color: var(--text);
}
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2.4em; }
.prose code { font-size: .86em; padding: .12em .38em; border-radius: 5px; background: var(--surface-2); }
.prose pre { overflow-x: auto; padding: 16px 18px; border-radius: 12px; background: var(--surface-2); font-size: .9rem; line-height: 1.6; }
.prose pre code { padding: 0; background: none; }
.prose table {
    display: block; overflow-x: auto; width: 100%; border-collapse: collapse;
    font-family: var(--f-sans); font-size: .92rem; line-height: 1.45;
}
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Fotos dentro de la nota */
.prose img {
    width: 100%; height: auto; border-radius: 14px; background: var(--surface-2);
    cursor: zoom-in; transition: transform .5s var(--ease), box-shadow .5s;
}
.prose img:hover { box-shadow: var(--shadow); }
.prose > p:has(> img:only-child) { margin-block: 1.6em; }
.prose > p:has(> img:only-child) + p:has(> img:only-child) { margin-top: 10px; }
/* Varias fotos seguidas: home.js las agrupa en una galería */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-block: 1.6em; }
.gallery img { height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.gallery img:first-child:nth-last-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

/* Anuncio dentro de la nota */
.prose > .native, .prose > .ad { margin-block: 2.2em; font-family: var(--f-sans); }
.prose > .native--row { border-bottom: 1px solid var(--line); }
.prose .native img { cursor: default; }

/* Cierre */
.article__end {
    max-width: 700px; margin: 48px auto 0; padding-top: 28px; border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px;
}
.article__end-title { width: 100%; font-size: 1.25rem; font-weight: 900; letter-spacing: -.015em; }
.article__back {
    margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
    font-weight: 800; font-size: 15px; color: var(--accent-text);
}
.article__back svg { transition: transform .35s var(--spring); }
.article__back:hover svg { transform: translateX(4px); }

/* Barra lateral */
.article__side { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 1024px) {
    .article { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
}
@media (min-width: 1180px) { .article { grid-template-columns: minmax(0, 1fr) 340px; } }

/* Siguiente noticia */
.next-up .feature { min-height: 420px; }
@media (min-width: 1024px) { .next-up .feature { min-height: 480px; } .next-up .feature__body { max-width: 860px; } }

/* Visor de fotos */
.lightbox { width: 100%; height: 100%; margin: 0; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(4, 4, 5, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.lightbox img {
    max-width: min(1400px, 94vw); max-height: 88dvh; width: auto; height: auto;
    border-radius: 12px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9);
    animation: pop .35s var(--spring); cursor: zoom-out;
}
.lightbox__close { position: fixed; top: 16px; right: 16px; }

/* ==========================================================================
   Error
   ========================================================================== */
.oops { display: grid; justify-items: center; gap: 14px; padding-block: 72px 24px; text-align: center; }
.oops__code {
    font-size: clamp(7rem, 4rem + 16vw, 16rem); font-weight: 900; font-stretch: 80%; line-height: .8; letter-spacing: -.06em;
    color: transparent; -webkit-text-stroke: 2px var(--accent);
    background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--accent) 30%, transparent) 55%);
    -webkit-background-clip: text; background-clip: text;
}
.oops__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); font-weight: 900; font-stretch: 90%; letter-spacing: -.03em; line-height: 1; text-wrap: balance; }
.oops .empty__text { max-width: 44ch; }
.oops__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 14px; }
