/* Diario · A Esquina do Deseño */
:root {
    --ink: #141213;
    --paper: #ffffff;
    --stone: #ebe6df;
    --red: #a8353a;
    --red-deep: #7f2529;
    --mute: #66605c;
    --line-soft: #cfc8bf;
    --gutter: clamp(16px, 4vw, 64px);
    --max: 1320px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif; background: var(--paper); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--ink); }
.bar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ed-logo { display: flex; align-items: center; gap: 10px; color: var(--red); }
.ed-logo img { height: 32px; width: auto; }
.ed-logo-bar { width: 2px; height: 32px; background: currentColor; }
.ed-logo-text { font-weight: 700; font-size: 1.65rem; line-height: 1; }
.back-link { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; border-bottom: 1px solid transparent; padding-block: 4px; }
.back-link:hover { border-bottom-color: currentColor; }

/* Cabecera de periódico */
.masthead { padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); border-bottom: 3px solid var(--ink); }
.masthead-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--mute); padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.masthead h1 { font-size: clamp(4.5rem, 17vw, 15rem); font-weight: 800; line-height: .86; letter-spacing: -0.06em; margin: clamp(18px, 3vw, 32px) 0 clamp(16px, 2.5vw, 28px); }
.masthead h1 span { color: var(--red); }
.tagline { font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 500; max-width: 46ch; }

/* Selección semanal */
.seleccion { padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 40px); }
.sel-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px); align-items: end; padding-bottom: clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--ink); }
.sel-head .label { color: var(--red); display: block; margin-bottom: 12px; }
.sel-head h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 800; line-height: 1; letter-spacing: -0.035em; }
.sel-head p { font-size: 1.1rem; color: var(--mute); }
.sel-head .borrador { display: inline-block; margin: 16px 0 0; background: var(--red); color: #fff; padding: 7px 12px; }

.sel-item {
    display: grid;
    grid-template-columns: 90px minmax(0, 6fr) minmax(0, 5fr);
    grid-template-areas: "num media body";
    gap: clamp(16px, 3vw, 44px);
    padding: clamp(32px, 4.5vw, 56px) 0;
    border-bottom: 1px solid var(--line-soft);
    align-items: start;
}
.sel-item--rev { grid-template-columns: 90px minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "num body media"; }
.sel-item--sin-foto { grid-template-columns: 90px minmax(0, 1fr); grid-template-areas: "num body"; }
.sel-num { grid-area: num; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800; line-height: .9; color: var(--red); letter-spacing: -0.05em; }
.sel-media { grid-area: media; margin: 0; }
.sel-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--stone); }
.sel-media figcaption { margin-top: 8px; font-size: 0.75rem; color: var(--mute); }
.sel-body { grid-area: body; display: flex; flex-direction: column; gap: 14px; }
.sel-body h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; }
.sel-texto { font-size: 1.02rem; color: #3b3735; }
.sel-mirada { border-left: 3px solid var(--red); padding-left: 18px; margin-top: 4px; }
.sel-mirada span { display: block; color: var(--red); margin-bottom: 6px; }
.sel-mirada p { font-weight: 600; line-height: 1.45; }
.fuente { align-self: flex-start; font-size: 0.85rem; font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 2px; margin-top: 4px; }
.fuente:hover { color: var(--red); border-bottom-color: var(--red); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--mute); }
.meta .tema { color: var(--red); }

/* Artículo propio destacado */
.propio { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); padding: clamp(32px, 5vw, 56px) 0; border-bottom: 1px solid var(--ink); align-items: center; }
.propio img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.propio .label { color: #fff; background: var(--red); display: inline-block; padding: 6px 12px; margin-bottom: 18px; }
.propio h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 16px; }
.propio p { color: var(--mute); font-size: 1.05rem; }
.leer { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 0.88rem; font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }

/* Bloques secundarios */
.bloque { padding: clamp(40px, 6vw, 72px) 0 0; }
.bloque-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 3px solid var(--ink); }
.bloque-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.bloque-head p { color: var(--mute); font-size: 0.95rem; max-width: 52ch; }

.archivo a { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); font-weight: 700; }
.archivo a:hover { color: var(--red); }
.archivo span { color: var(--mute); font-weight: 500; }

.filtros { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--ink); }
.filtro { background: none; border: 1px solid var(--ink); border-radius: 999px; padding: 10px 18px; min-height: 44px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: background .2s ease, color .2s ease; }
.filtro:hover { background: var(--stone); }
.filtro[aria-pressed="true"] { background: var(--ink); color: #fff; }

.radar-item { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr) auto; gap: 8px 28px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.radar-item h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.radar-item h3::first-letter { text-transform: uppercase; }
.radar-item .flecha { color: var(--mute); }
.radar-item:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.radar-item:hover .flecha { color: var(--red); }
.mas { margin-top: 24px; background: none; border: 1px solid var(--ink); border-radius: 999px; min-height: 44px; padding: 10px 22px; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.mas:hover { background: var(--ink); color: #fff; }
.vacio { padding: 40px 0; color: var(--mute); }

.nav-semanas { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0; }
.nav-semanas a { font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.nav-semanas a:hover { color: var(--red); border-bottom-color: var(--red); }

/* Pie */
.site-footer { margin-top: clamp(56px, 8vw, 110px); background: var(--ink); color: #d9d4cf; padding: 40px 0; font-size: 0.85rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.site-footer .ed-logo { color: #fff; margin-bottom: 14px; }
.site-footer p { max-width: 62ch; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.site-footer :focus-visible { outline-color: #fff; }

@media (max-width: 900px) {
    .sel-head, .propio { grid-template-columns: minmax(0, 1fr); }
    .sel-item, .sel-item--rev { grid-template-columns: 70px minmax(0, 1fr); grid-template-areas: "num media" ". body"; }
    .sel-item--sin-foto { grid-template-areas: "num body"; }
    .radar-item { grid-template-columns: minmax(0, 1fr) auto; }
    .radar-item .meta { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .bar { height: 68px; }
    .back-link span { display: none; }
    .sel-item, .sel-item--rev, .sel-item--sin-foto { grid-template-columns: minmax(0, 1fr); grid-template-areas: "num" "media" "body"; gap: 14px; }
    .sel-item--sin-foto { grid-template-areas: "num" "body"; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
