/* Vik Diario v0.1. Colores de marca: navy #0F2A44 y naranja #F2994A (marca A). */
@font-face { font-family: Inter; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/inter-regular.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/inter-semibold.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 800; font-style: normal; font-display: swap; src: url(../fonts/inter-extrabold.woff2) format("woff2"); }

:root {
	--navy: #0f2a44;
	--navy-2: #183c5f;
	--accent: #f2994a;
	--accent-ink: #a8540f;
	--ink: #14202b;
	--muted: #5a6672;
	--line: #e2e5e9;
	--paper: #ffffff;
	--soft: #f6f4ef;
	--notice: #fff4e6;
	--ok: #1f7a4d;
	--warn: #a8540f;
	--radius: 10px;
	--wrap: 1200px;
	--gutter: 20px;
	--font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--font); font-feature-settings: "kern", "liga", "calt"; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-2); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .4em; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Cabecera ---------- */
.topbar { background: var(--navy); color: #cfd9e3; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; }
.topbar a { color: #fff; text-decoration: none; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand-name { display: block; font-size: clamp(24px, 4vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.brand-tag { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; letter-spacing: 0; }
.search-form { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.search-form input { border: 0; padding: 8px 14px; font: inherit; font-size: 14px; width: 180px; min-width: 0; background: transparent; }
.search-form button { border: 0; background: var(--navy); color: #fff; padding: 0 14px; font: 600 13px var(--font); cursor: pointer; }
.nav { border-bottom: 3px solid var(--navy); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a { display: block; padding: 11px 12px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--ink); }
.nav a:hover, .nav .is-current a { color: var(--navy); box-shadow: inset 0 -3px 0 var(--accent); }

/* ---------- Piezas comunes ---------- */
.kicker { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); margin-bottom: 6px; }
.kicker a { text-decoration: none; }
.kicker .sep { color: var(--line); }
.kicker .place { color: var(--muted); }
.badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; background: var(--navy); color: #fff; }
.badge.notice { background: var(--accent); color: var(--navy); }
.badge.guide { background: var(--ok); }
.badge.expired { background: #777; }
.meta { font-size: 13px; color: var(--muted); }
.section-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 3px solid var(--navy); padding-top: 10px; margin: 36px 0 16px; }
.section-title h2 { font-size: 20px; margin: 0; }
.section-title h2 a { font-size: inherit; color: inherit; font-weight: 800; }
.section-title > a { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--navy-2); }

.card { display: flex; flex-direction: column; gap: 6px; }
.card .thumb, .lead .thumb { display: block; }
.card .thumb { aspect-ratio: 16 / 9; background: var(--soft); border-radius: var(--radius); overflow: hidden; margin-bottom: 6px; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 18px; margin: 0; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card .dek { color: var(--muted); font-size: 15px; margin: 0; }
.card.row { flex-direction: row; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.card.row .thumb { width: 132px; flex: none; margin: 0; }
.card.row h3 { font-size: 17px; }
.card.compact { padding: 12px 0; border-bottom: 1px solid var(--line); }
.card.compact h3 { font-size: 16px; }

.grid { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ---------- Portada ---------- */
.home-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; margin-top: 26px; }
.lead h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.025em; }
.lead h2 a { text-decoration: none; }
.lead .dek { font-size: 18px; color: var(--muted); }
.lead .thumb { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--soft); margin-bottom: 14px; }
.lead .thumb img { width: 100%; height: 100%; object-fit: cover; }
.latest h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 0; }
.stories { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.story-chip { display: block; padding: 14px 16px; border-radius: var(--radius); background: var(--soft); text-decoration: none; border-left: 4px solid var(--accent); }
.story-chip strong { display: block; font-size: 15px; line-height: 1.3; margin-bottom: 4px; }
.story-chip span { font-size: 12px; color: var(--muted); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #d64545; margin-right: 6px; vertical-align: 1px; }
.county-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.guides { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.guide-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--paper); }
.guide-card:hover { border-color: var(--navy-2); }
.guide-card .where { font-size: 12px; font-weight: 600; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .05em; }
.guide-card strong { font-size: 17px; line-height: 1.25; }
.guide-card span.q { font-size: 14px; color: var(--muted); }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: var(--soft); }

/* ---------- Nota ---------- */
.article-wrap { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 320px); gap: 48px; justify-content: space-between; margin-top: 26px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; color: var(--navy-2); font-weight: 600; }
.article h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.08; }
.article .dek { font-size: 20px; line-height: 1.45; color: #3b4651; margin: 8px 0 16px; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--muted); padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.byline strong { color: var(--ink); }
.story-box { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--soft); border-radius: var(--radius); margin: 0 0 22px; font-size: 14px; text-decoration: none; border-left: 4px solid var(--accent); }
.story-box b { display: block; }
.alert-box { padding: 12px 16px; border-radius: var(--radius); margin: 0 0 18px; font-size: 15px; background: var(--notice); border: 1px solid #f4cf9f; }
.alert-box.expired { background: #f1f1f1; border-color: #d4d4d4; }
.alert-box.correction { background: #eef4fb; border-color: #c6d8ee; }
.figure { margin: 0 0 24px; }
.figure img { width: 100%; border-radius: var(--radius); }
.figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.figure .credit { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.prose { font-size: 18px; line-height: 1.68; }
.prose h2 { font-size: 24px; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 20px; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose a { color: var(--navy-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; margin: 0 0 1.4em; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--soft); font-weight: 600; white-space: nowrap; }
.prose blockquote { margin: 1.2em 0; padding-left: 16px; border-left: 3px solid var(--accent); color: #3b4651; }
.faq { margin-top: 34px; }
.faq h2, .sources h2, .more h2 { font-size: 20px; border-top: 3px solid var(--navy); padding-top: 10px; }
.faq dl { margin: 0; }
.faq dt { font-weight: 800; font-size: 17px; margin-top: 16px; }
.faq dd { margin: 6px 0 0; font-size: 16px; color: #2f3a44; }
.sources { margin-top: 34px; font-size: 14px; }
.sources ol { padding-left: 1.2em; }
.sources li { margin: 6px 0; }
.sources a { word-break: break-word; }
.more { margin-top: 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips a { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--soft); text-decoration: none; }
.report { margin-top: 34px; font-size: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.report summary { cursor: pointer; font-weight: 600; }
.report textarea, .report input[type=email] { width: 100%; font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 6px; margin: 6px 0; }
.report .hp { position: absolute; left: -5000px; }
.btn { display: inline-block; border: 0; background: var(--navy); color: #fff; padding: 9px 16px; border-radius: 6px; font: 600 14px var(--font); cursor: pointer; text-decoration: none; }
.sidebar .card.compact:first-of-type { padding-top: 0; }
.sidebar h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.sidebar .sticky { position: sticky; top: 64px; }

/* ---------- Lugar e hilo ---------- */
.hub-head { padding: 28px 0 20px; border-bottom: 1px solid var(--line); }
.hub-head h1 { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -0.03em; margin-bottom: 6px; }
.hub-head p { color: var(--muted); font-size: 17px; max-width: 760px; margin: 0; }
.hub-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; }
.facts { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 18px; }
.facts th, .facts td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 38%; color: var(--muted); font-weight: 600; padding-right: 12px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 22px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 3px solid var(--accent); }
.timeline time { font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.timeline h3 { font-size: 19px; margin: 2px 0 4px; }
.timeline h3 a { text-decoration: none; }
.pagination { display: flex; gap: 8px; margin: 28px 0; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-size: 14px; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Pie ---------- */
.footer { margin-top: 60px; background: var(--navy); color: #cfd9e3; font-size: 14px; }
.footer .wrap { padding-top: 36px; padding-bottom: 36px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 6px 0; }
.footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.footer .brand-name { color: #fff; font-size: 24px; }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; font-size: 12px; color: #9fb0c1; }

/* ---------- Pantallas chicas ---------- */
@media (max-width: 900px) {
	.home-top, .article-wrap, .hub-grid { grid-template-columns: 1fr; gap: 24px; }
	.county-block { grid-template-columns: 1fr; gap: 0; }
	.county-block .card { padding: 12px 0; border-bottom: 1px solid var(--line); }
	.county-block .card .thumb { display: none; }
	.sidebar .sticky { position: static; }
	.footer .wrap { grid-template-columns: 1fr 1fr; }
	.footer .about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	:root { --gutter: 16px; }
	.masthead .wrap { flex-wrap: wrap; }
	.search-form { width: 100%; }
	.search-form input { flex: 1; width: auto; }
	.topbar .pub { display: none; }
	.brand svg { width: 36px; height: 36px; }
	.prose { font-size: 17px; }
	.article .dek { font-size: 18px; }
	.card.row .thumb { width: 96px; }
}
@media print {
	.topbar, .nav, .sidebar, .footer, .report, .search-form { display: none; }
}

/* ---------- Agenda ---------- */
.event-row { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.event-row.is-off h3 a { text-decoration: line-through; color: var(--muted); }
.event-date { flex: none; width: 58px; text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 6px 0; line-height: 1.1; background: var(--paper); }
.event-date span { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); }
.event-date span:last-child { color: var(--muted); font-weight: 600; }
.event-date b { display: block; font-size: 24px; font-weight: 800; color: var(--navy); }
.event-row h3 { font-size: 17px; margin: 0 0 2px; }
.event-row h3 a { text-decoration: none; }
.event-row h3 a:hover { text-decoration: underline; }
.event-row .meta { margin: 0; }
.day-title { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 26px 0 0; padding-bottom: 6px; border-bottom: 2px solid var(--navy); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.filters a { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }
.filters a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.event-facts { margin: 0 0 22px; }
.event-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.btn.ghost { background: var(--paper); color: var(--navy); border: 1px solid var(--navy); }
.weekend { display: grid; gap: 0 24px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* Most read / Editor's picks */
.home-lists { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 8px 0 8px; }
.ranked ol { list-style: none; counter-reset: rank; margin: 0 0 24px; padding: 0; }
.ranked li { counter-increment: rank; display: grid; grid-template-columns: 32px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 600; line-height: 1.35; }
.ranked li::before { content: counter(rank); font-size: 22px; font-weight: 800; color: var(--accent-ink); line-height: 1.1; }
.ranked.picks li::before { content: "\2605"; font-size: 15px; padding-top: 2px; }
.ranked li a { color: var(--ink); text-decoration: none; }
.ranked li a:hover { text-decoration: underline; }
.sidebar .ranked { margin-top: 24px; }
