/* =====================================================================
   AlDiaGente — hoja de estilos principal
   Paleta y tipografía inspiradas en un diario digital clásico.
   ===================================================================== */
:root {
  /* Color de marca: celeste intenso. --brand-ink es la versión oscura para textos pequeños
     sobre blanco (el celeste puro no se lee bien en letra chica: contraste 2,2:1). */
  --brand: #00BFFF;
  --brand-dark: #009ACD;
  --brand-ink: #00739F;
  --on-brand: #04202E;
  --ink: #161616;
  --text: #3a3a3a;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --gray: #f1f1f1;
  --dark: #222;
  --dark-2: #151515;
  --navy: #1d3f94;
  --blue: #2a7ab8;
  --lavender: #b4a8f0;
  --serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --sans: 'Encode Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1290px;
  --gap: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; background: #e9e9e9; }
a { color: inherit; text-decoration: none; }
a:hover h1, a:hover h2, a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------- Iconos y botones ---------- */
.icon-btn { background: none; border: 0; padding: 6px; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; }
.icon-btn:hover { background: var(--gray); }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 3px; font-weight: 700; font-size: 13px; white-space: nowrap; border: 1px solid transparent; }
.btn--brand { background: var(--brand); color: var(--on-brand); }
.btn--brand:hover { background: var(--brand-dark); }
.btn--outline { border-color: var(--brand); color: var(--brand-ink); background: #fff; }
.btn--outline:hover { background: #e6f8ff; }

/* ---------- Publicidad ---------- */
.ad { display: flex; flex-direction: column; align-items: center; margin: 0 auto; max-width: 100%; }
.ad__label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #9a9a9a; margin: 4px 0; }
.ad__box {
  width: var(--w); height: var(--h); max-width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: repeating-linear-gradient(45deg, #ebebeb 0 10px, #f4f4f4 10px 20px);
  border: 1px dashed #c6c6c6; color: #8a8a8a; font-size: 12px; text-align: center; overflow: hidden;
}
.ad__box::after { content: var(--label); font-weight: 700; }
.ad__box.is-live { background: none; border: 0; height: auto; min-height: var(--h); display: block; }
.ad__box.is-live::after { content: none; }
.ad--top { --w: 970px; --h: 250px; --label: '970 × 250'; }
.ad--rail { --w: 160px; --h: 600px; --label: '160 × 600'; }
.ad--wide { --w: 970px; --h: 250px; --label: '970 × 250'; }
.ad--box { --w: 300px; --h: 250px; --label: '300 × 250'; }
.ad-top { background: var(--gray); border-bottom: 1px solid var(--line); padding: 0 8px 6px; min-height: 270px; }
.ad-band { background: #ececec; border: 1px solid #d5d5d5; padding: 6px 12px 14px; margin: 32px 0; }
.only-mobile { display: none !important; }

/* ---------- Cabecera ---------- */
.hdr { background: #fff; }
.hdr__bar { display: flex; align-items: center; gap: 20px; height: 64px; }
.trending { flex: 1; min-width: 0; display: flex; gap: 20px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; border-bottom: 1px solid var(--line); padding: 6px 0; font-size: 13px; color: #555; }
.trending::-webkit-scrollbar { display: none; }
.trending a:hover { color: var(--brand-ink); }
.hdr__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hdr__brand { display: flex; justify-content: center; padding: clamp(2px, .6vw, 6px) 16px clamp(12px, 2vw, 22px); }
/* Logo (imagen): la altura crece y se achica con la ventana, con un mínimo para que siempre se lea */
.logo { display: inline-flex; align-items: center; max-width: 100%; line-height: 0; }
.logo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; background: none; }
.hdr__brand .logo { height: clamp(40px, 6.2vw, 84px); }
.logo--sm { height: clamp(28px, 3.2vw, 40px); justify-self: center; }
.mainnav { border-top: 4px solid var(--brand); background: var(--gray); }
/* Letrero LED: la franja queda fija y solo se mueven las letras */
.ticker { max-width: var(--wrap); margin: 0 auto; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.ticker.is-dragging { cursor: grabbing; }
.ticker__belt { display: flex; width: max-content; will-change: transform; }
.ticker__belt ul { list-style: none; margin: 0; padding: 0 15px; height: 52px; display: flex; align-items: center; gap: 30px; white-space: nowrap; flex-shrink: 0; }
.mainnav a { font-size: 15px; font-weight: 600; color: #222; padding: 14px 0; letter-spacing: .02em; transition: color .2s, text-shadow .2s; -webkit-user-drag: none; }
.mainnav a:hover, .mainnav a[aria-current] { color: var(--brand-ink); text-shadow: 0 0 10px rgba(0, 191, 255, .55); }

.hdr-sticky { position: fixed; inset: 0 0 auto; z-index: 50; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); transform: translateY(-100%); visibility: hidden; transition: transform .25s, visibility .25s; }
/* Con sesión iniciada en WordPress, la barra negra de administración ocupa la parte de arriba */
.admin-bar .hdr-sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .hdr-sticky { top: 46px; } }
.hdr-sticky.is-visible { transform: none; visibility: visible; }
.hdr-sticky__in { display: grid; grid-template-columns: 1fr minmax(0, auto) 1fr; align-items: center; height: 72px; gap: 12px; }
.hdr-sticky .icon-btn:first-child { justify-self: start; }

/* Menú lateral */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; transition: visibility .3s; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; inset: 0 auto 0 0; width: min(340px, 86vw); background: #fff; padding: 16px 20px 32px; overflow-y: auto; transform: translateX(-100%); transition: transform .3s; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close { float: right; }
.drawer .logo { height: 34px; margin: 6px 0 18px; }
.drawer__nav { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.drawer__nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.drawer__nav a:hover { color: var(--brand-ink); }
.drawer__nav--sm a { font-weight: 400; font-size: 14px; color: var(--muted); }
.search-form { display: flex; position: relative; border: 1px solid #ccc; border-radius: 4px; }
.search-form > input { border-radius: 4px 0 0 4px; }
.search-form > button { border-radius: 0 3px 3px 0; }
.search-form input { flex: 1; min-width: 0; border: 0; padding: 10px 12px; font: inherit; font-size: 16px; }
.search-form input:focus { outline: none; }
.search-form:focus-within { outline: 2px solid var(--brand-ink); }
.search-form button { border: 0; background: var(--brand); color: var(--on-brand); padding: 0 14px; display: flex; align-items: center; }
.search-pop { position: fixed; inset: 0 0 auto; z-index: 60; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.18); padding: 18px 0; }
.search-pop .wrap { display: flex; gap: 12px; align-items: center; }
.search-pop .search-form { flex: 1; }
.suggest { position: absolute; top: calc(100% + 6px); left: -1px; right: -1px; z-index: 70; background: #fff; border: 1px solid #d5d5d5; border-radius: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.18); overflow: hidden; text-align: left; }
.suggest__item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink); }
.suggest__item img { width: 76px; height: 50px; object-fit: cover; border-radius: 3px; }
.suggest__item span { font-family: var(--serif); font-size: 15px; line-height: 1.3; }
.suggest__item small { display: block; font-family: var(--sans); font-size: 12px; color: var(--brand-ink); margin-bottom: 2px; }
.suggest__item:hover, .suggest__item[aria-selected="true"] { background: #e6f8ff; }
.suggest__empty { margin: 0; padding: 12px; font-size: 14px; color: var(--muted); }
.suggest__all { display: flex; align-items: center; gap: 4px; padding: 10px 12px; font-size: 14px; font-weight: 700; color: var(--brand-ink); }
.suggest__all:hover { background: var(--gray); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.chips a { border: 1px solid var(--brand); color: var(--brand-ink); border-radius: 16px; padding: 4px 12px; font-weight: 600; }

/* ---------- Layout con laterales publicitarios ---------- */
.layout { display: grid; grid-template-columns: 160px minmax(0, 1288px) 160px; gap: 16px; justify-content: center; padding: clamp(12px, 2vw, 24px) clamp(12px, 1.6vw, 16px) 0; }
.rail__sticky { position: sticky; top: 88px; }
.rail--right .rail__sticky { top: min(88px, calc(100vh - 960px)); }
.main { min-width: 0; }

.datebox { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; margin: 26px 0 22px; font-size: 20px; color: #222; }
.datebox strong { font-size: 20px; margin-bottom: 18px; }
.datebox svg { margin-bottom: 6px; color: var(--navy); }
.live-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; margin: 0 auto; padding: 14px 8px; background: #1b2a5e; color: #ffd400; border-radius: 8px; font-size: 11px; text-align: center; line-height: 1.15; }
.live-btn span { color: #fff; }
.live-btn:hover { background: #24387d; }


/* ---------- Portada ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 24vw, 305px); gap: var(--gap); }
.lead { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding-bottom: 30px; }
.lead__title { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; }
.lead__sum { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.42; color: #444; font-weight: 300; margin: 0; }
.lead__media img { width: 100%; aspect-ratio: 484 / 286; object-fit: cover; }
.byline { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.secondary { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-bottom: 30px; }
.hcard { display: grid; grid-template-columns: clamp(120px, 13vw, 178px) minmax(0, 1fr); gap: 12px; align-items: start; }
.hcard img { width: 100%; aspect-ratio: 178 / 100; object-fit: cover; }
.hcard__title { font-family: var(--serif); font-size: clamp(16px, 1.55vw, 20px); line-height: 1.28; font-weight: 400; }
.hcard .byline { margin-top: 8px; }
.editorial { background: #f0f0f0; border: 1px solid #c9c9c9; padding: 14px 30px 16px; margin-bottom: 40px; }
.tag-brand { display: inline-block; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 14px; padding: 3px 8px; letter-spacing: .02em; }
.editorial h2 { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.2; margin: 10px 0 8px; }
.editorial p { margin: 0; font-size: 16px; line-height: 1.4; color: #333; }

.block { margin-bottom: 36px; }
.block__title { position: relative; display: flex; align-items: center; gap: 6px; font-size: clamp(18px, 1.6vw, 21px); font-weight: 700; padding-bottom: 10px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.block__title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 60px; height: 4px; background: var(--brand); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: clamp(18px, 2vw, 26px) clamp(14px, 1.8vw, 24px); }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: clamp(18px, 2vw, 26px) 14px; }
.card img { width: 100%; aspect-ratio: 300 / 178; object-fit: cover; }
.card__title { font-family: var(--serif); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.3; font-weight: 400; margin-top: 10px; }
.card__cat { display: inline-block; color: var(--blue); font-size: 14px; margin: 10px 0 4px; }
.card--interest .card__title { font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.25; margin-top: 0; }

.latest .block__title { margin-bottom: 14px; }
.latest__first img { width: 100%; aspect-ratio: 305 / 170; object-fit: cover; }
.latest__first h3 { font-family: var(--serif); font-size: 16px; line-height: 1.3; font-weight: 700; margin-top: 12px; }
.latest time { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }
.latest__first { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.litem { display: grid; grid-template-columns: minmax(0, 1fr) clamp(90px, 8vw, 112px); gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.litem h3 { font-family: var(--serif); font-size: 14.5px; line-height: 1.3; font-weight: 400; }
.litem img { width: 100%; aspect-ratio: 112 / 76; object-fit: cover; }

/* Zoom suave de las imágenes al pasar el mouse */
.zoom { display: block; overflow: hidden; }
.zoom img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
article:hover .zoom img, .vcard:hover .zoom img { transform: scale(1.07); }

/* Banda de resultados */
.stats { padding: 40px 0 26px; border-bottom: 1px solid #c9c9c9; }
.stats__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.stats__title { font-family: var(--serif); font-size: clamp(20px, 2.3vw, 28px); font-weight: 700; color: #333; }
.pill-brand { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: var(--on-brand); border: 0; border-radius: 22px; padding: 8px 18px; font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 0 var(--brand-dark); transition: transform .15s, box-shadow .15s; }
.pill-brand:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0, 115, 159, .35); }
.pill-brand small { font-size: 9px; font-weight: 700; line-height: 1; text-align: right; }
.stat { display: flex; gap: 10px; align-items: flex-end; }
.stat__bar { width: 18px; height: calc(24px + var(--v) * .9px); background: var(--brand); flex-shrink: 0; }
.stat__label { display: block; font-size: 17px; font-weight: 700; }
.stats__carousel { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 8px; margin-top: 24px; }
.stats__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px; }
.stats__track::-webkit-scrollbar { display: none; }
.stats__track .empty { padding: 20px 0; }
.stats__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ccc; background: #fff; color: var(--brand-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.stats__arrow:hover:not(:disabled) { border-color: var(--brand); background: #e6f8ff; }
.stats__arrow:disabled { opacity: .35; cursor: default; }
.stat { scroll-snap-align: start; align-items: flex-end; position: relative; }
.stat__rank { position: absolute; top: -2px; right: 0; font-family: var(--serif); font-weight: 900; font-size: 26px; color: #e3e3e3; }
.stats__note { margin: 14px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
/* Ventana para votar */
.vote { border: 0; border-radius: 10px; padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.vote::backdrop { background: rgba(0,0,0,.55); }
.vote__form { padding: 22px 22px 18px; }
.vote h2 { font-family: var(--serif); font-size: 22px; margin-bottom: 6px; }
.vote__help { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.vote__opts { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vote__opt { display: flex; align-items: center; gap: 8px; border: 1px solid #d5d5d5; border-radius: 6px; padding: 10px; cursor: pointer; font-size: 15px; }
.vote__opt:hover { border-color: var(--brand); }
.vote__opt:has(input:checked) { border-color: var(--brand-ink); background: #e6f8ff; font-weight: 600; }
.vote__opt input { accent-color: var(--brand-ink); width: 18px; height: 18px; flex-shrink: 0; }
.vote__msg { min-height: 1.3em; margin: 14px 0 0; font-size: 14px; color: #0a7a2f; }
.vote__msg.is-error, .newsletter__msg.is-error { color: #c0392b; }
.vote__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.vote__actions .btn { height: 40px; font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.stat__pct { display: block; font-size: clamp(30px, 3.4vw, 44px); color: var(--brand-ink); font-weight: 500; line-height: 1.1; }
.stat__votes { font-size: 15px; color: #333; }

/* Carrusel de video */
.videos { content-visibility: auto; contain-intrinsic-size: auto 420px; background: #d2ecf7; color: var(--ink); border-top: 3px solid var(--brand); padding: 16px 14px 18px; margin: 32px 0; }
.videos__head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #b5dcec; padding-bottom: 10px; margin-bottom: 14px; position: relative; }
.videos__head::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 60px; height: 3px; background: var(--brand); }
.videos__title { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.videos__nav { display: flex; gap: 6px; }
.videos__nav button { background: none; border: 0; color: var(--ink); padding: 4px; display: flex; }
.videos__nav button:hover { color: var(--brand-ink); }
.videos__track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 242px); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-color: #9fd3e8 transparent; }
.vcard { background: #1b2a5e; color: #fff; border-radius: 8px; box-shadow: 0 2px 6px rgba(27,42,94,.25); overflow: hidden; scroll-snap-align: start; }
.vcard:hover { background: #24387d; }
.vcard:hover .vcard__title { color: #ffd400; }
.vcard__media { position: relative; aspect-ratio: 242 / 136; }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; }
.vcard__play { color: #fff; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; }
.vcard__title { font-family: var(--serif); font-size: 17px; line-height: 1.28; padding: 12px 14px 16px; }
/* Más de 5 videos: reproductor grande + lista (mismos colores que las tarjetas) */
.videos--featured { contain-intrinsic-size: auto 560px; padding: clamp(14px, 2.4vw, 28px); }
.vfeat { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 30%, 400px); gap: clamp(14px, 2vw, 24px); align-items: start; }
.vfeat__player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.vfeat__player iframe, .vfeat__player video, .vfeat__facade, .vfeat__facade img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.vfeat__facade { background: #000; display: block; }
.vfeat__bigplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(64px, 9vw, 96px); aspect-ratio: 1; border-radius: 50%; background: rgba(27,42,94,.8); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.vfeat__facade:hover .vfeat__bigplay { background: #ffd400; color: #1b2a5e; }
.vfeat__title { font-family: var(--serif); font-size: clamp(18px, 1.9vw, 24px); line-height: 1.3; margin: 12px 0 0; }
.vfeat__list { list-style: none; margin: 0; padding: 0 4px 0 0; display: grid; gap: 10px; max-height: clamp(320px, 34vw, 470px); overflow-y: auto; scrollbar-color: #9fd3e8 transparent; }
.vfeat__item { width: 100%; display: grid; text-decoration: none; grid-template-columns: 42% 1fr; gap: 10px; align-items: center; padding: 6px; border: 0; border-radius: 8px; background: #1b2a5e; color: #fff; text-align: left; cursor: pointer; font: inherit; }
.vfeat__item:hover, .vfeat__item[aria-current] { background: #24387d; }
.vfeat__item:hover .vfeat__name, .vfeat__item[aria-current] .vfeat__name { color: #ffd400; }
.vfeat__item[aria-current] { box-shadow: inset 3px 0 0 #ffd400; }
.vfeat__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 5px; overflow: hidden; }
.vfeat__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vfeat__mini { position: absolute; left: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 4px; background: rgba(0,0,0,.65); color: #fff; display: flex; align-items: center; justify-content: center; }
.vfeat__name { font-family: var(--serif); font-weight: 700; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 860px) {
  .vfeat { grid-template-columns: 1fr; }
  .vfeat__list { max-height: 330px; }
}

/* Listados, artículo y barra lateral */
.listing { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 24vw, 305px); gap: clamp(20px, 2.5vw, 32px); }
.page-title { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); padding-bottom: 12px; margin-bottom: 8px; border-bottom: 4px solid var(--brand); }
.row { display: grid; grid-template-columns: clamp(120px, 24vw, 280px) minmax(0, 1fr); gap: clamp(14px, 1.6vw, 20px); padding: 20px 0; border-bottom: 1px solid var(--line); }
.row img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.row .card__cat { margin-top: 0; }
.row__title { font-family: var(--serif); font-size: clamp(17px, 1.8vw, 22px); line-height: 1.25; font-weight: 700; }
.row__sum { color: #444; line-height: 1.45; margin: 8px 0 0; }
.empty { padding: 40px 0; color: var(--muted); font-size: 18px; }
.sidebar > * + * { margin-top: 32px; }
.sidebar__sticky { position: sticky; top: 92px; }
.most ol { list-style: none; counter-reset: most; margin: 0; padding: 0; }
.most li { counter-increment: most; display: grid; grid-template-columns: 38px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.most li::before { content: counter(most); font-family: var(--serif); font-size: 30px; font-weight: 900; color: var(--brand); line-height: 1; }
.most a { font-family: var(--serif); font-size: 15px; line-height: 1.32; }
.most a:hover { text-decoration: underline; }

.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--brand-ink); font-weight: 600; }
.story__title { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 42px); line-height: 1.15; letter-spacing: -.01em; }
.story__sum { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; color: #444; font-weight: 300; margin: 16px 0 0; }
.story__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0; margin-top: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story__meta .byline { margin: 0; }
.share { display: flex; gap: 8px; }
.share a, .share button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #ccc; background: #fff; display: flex; align-items: center; justify-content: center; color: #333; }
.share a:hover, .share button:hover { border-color: var(--brand); color: var(--brand-ink); }
.story__fig { margin: 22px 0; }
.story__fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.story__fig figcaption { font-size: 13px; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line); }
.story__body { font-family: var(--serif); font-size: clamp(16.5px, 1.3vw, 18px); line-height: 1.75; color: #222; }
.story__body p { margin: 0 0 1.2em; }
.story__body .ad { margin: 28px auto; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 40px; }
.tags a { display: inline-block; border: 1px solid #ccc; border-radius: 20px; padding: 5px 14px; font-size: 13px; }
.tags a:hover { border-color: var(--brand); color: var(--brand-ink); }
.notfound { text-align: center; padding: 80px 16px; }
.notfound h1 { font-family: var(--serif); font-size: 34px; margin-bottom: 12px; }
.notfound p { color: var(--muted); margin-bottom: 24px; }

/* Páginas institucionales */
.static-page { max-width: 820px; margin: 0 auto 60px; font-size: 17px; line-height: 1.7; color: #2a2a2a; }
.static-page h2 { font-family: var(--serif); font-size: 22px; margin: 32px 0 8px; }
.static-page a { color: var(--brand-ink); text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { content-visibility: auto; contain-intrinsic-size: auto 600px; background: var(--dark); color: #d6d6d6; padding: 32px 0 30px; margin-top: 48px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.footer .logo { height: clamp(30px, 3vw, 40px); }
.footer .logo img { filter: brightness(0) invert(1); } /* logo en blanco sobre el fondo oscuro */
.totop { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; background: var(--brand); color: var(--on-brand); border-radius: 21px; font-weight: 700; font-size: 14px; flex-shrink: 0; transition: background .2s; }
.totop:hover { background: #33ccff; }
.footer__cols { display: grid; grid-template-columns: 2.2fr 1fr 1.1fr; gap: 32px; }
.footer h3 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li a { display: inline-block; font-size: 15px; padding: 5px 0; color: #cfcfcf; }
.footer li a:hover { color: #fff; text-decoration: underline; }
.footer__sections { columns: 3; column-gap: 24px; }
.footer__strong a { font-weight: 600; color: #e9e9e9; }
.newsletter { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid #3c3c3c; }
.newsletter label { font-weight: 700; color: #fff; }
.newsletter .search-form { border-color: #555; flex: 1 1 280px; max-width: 460px; }
.newsletter .search-form button { font-weight: 700; padding: 0 18px; }
.newsletter__msg { flex-basis: 100%; margin: 0; color: #9ad19a; font-size: 14px; min-height: 1em; }
.newsletter__msg.is-error { color: #ff9b9b; }
.newsletter__legal { flex-basis: 100%; margin: 0; font-size: 12.5px; color: #aaa; }
.newsletter__legal a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid #3c3c3c; }
.footer__bottom p { margin: 0; font-weight: 700; font-size: 14px; text-transform: uppercase; color: #fff; }
.social { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.social__label { font-size: 14px; color: #bbb; }
.social__icons { display: flex; gap: 8px; flex-wrap: wrap; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #222; transition: transform .15s; display: flex; align-items: center; justify-content: center; }
.social a:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--brand); }

.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin: 0 auto; background: #111; color: #eee; border-radius: 6px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.cookie p { margin: 0; flex: 1 1 300px; }
.cookie a { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1259px) {
  .layout { grid-template-columns: minmax(0, 1fr); max-width: var(--wrap); margin: 0 auto; }
  .rail { display: none; }
  .only-mobile { display: flex !important; }
}
@media (max-width: 1000px) {
  .ad--top, .ad--wide { --w: 728px; --h: 90px; --label: '728 × 90'; }
  .ad-top { min-height: 110px; }
  .home-grid, .listing { grid-template-columns: minmax(0, 1fr); }
  .sidebar__sticky { position: static; }
}
@media (max-width: 760px) {
  .ad--top { --w: 320px; --h: 100px; --label: '320 × 100'; }
  .ad--wide { --w: 300px; --h: 250px; --label: '300 × 250'; }
  .ad-top { min-height: 120px; }
  .hdr__bar { height: 56px; }
  .stats__track { grid-auto-columns: calc((100% - 24px) / 2); }
  .trending, .hdr__actions .btn { display: none; }
  .hdr__brand { padding: 0 16px 14px; }
  .ticker__belt ul { height: 46px; gap: 22px; }
  .hdr-sticky__in { height: 58px; }
  .lead { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lead__media { order: -1; }
  .secondary { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .editorial { padding: 14px 18px; }
  .row__sum { display: none; }
  .footer__cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer__sections { columns: 2; }
}
@media (max-width: 480px) {
  .stats__track { grid-auto-columns: 82%; }
  .vote__opts { grid-template-columns: 1fr; }
  .totop span { display: none; }
  .videos__track { grid-auto-columns: 78%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  article:hover .zoom img, .vcard:hover .zoom img { transform: none; }
}

/* Aviso: página abierta con doble clic (file://) */
.disk-notice { background: #fff6d6; border: 1px solid #e6c34a; color: #4a3b00; border-radius: 6px; padding: 12px 16px; margin: 0 0 20px; font-size: 15px; line-height: 1.45; }

/* Compartir: aviso de "¡Enlace copiado!" y botón confirmado */
.share { position: relative; align-items: center; }
.share .is-done { border-color: #0a7a2f; color: #0a7a2f; }
.share__msg { position: absolute; right: 0; top: calc(100% + 6px); font-size: 12.5px; font-weight: 600; color: #0a7a2f; white-space: nowrap; }
.share__msg:empty { display: none; }

/* Página de un video: el reproductor ocupa el lugar de la imagen de la noticia */
.story__video { margin: 22px 0; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; }
.story__video iframe, .story__video video { display: block; width: 100%; height: 100%; border: 0; }
.story__fig { position: relative; }
.story__videolink { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: 44px; font-size: 15px; }