/* =========================================================
   PEDALEA X LA CALLE — Archivo histórico
   Estructura original (cabecera + barra lateral) con
   estética de archivo refinada. Paleta de marca: azul
   marino + naranja, sobre papel claro.
   Fuentes auto-alojadas: Newsreader (serif) + Archivo (sans).
   ========================================================= */

@import url("../fonts/fonts.css");

/* ---------- Tokens ---------- */
:root {
  --bg:        #F5F2EA;
  --surface:   #FFFFFF;
  --surface-2: #EFEBE0;
  --ink:       #21303F;
  --ink-soft:  #55606D;
  --muted:     #7A828D;
  --navy:      #17406F;
  --navy-deep: #0E2A4D;
  --orange:    #D9791A;
  --orange-deep:#B45F0E;
  --line:      rgba(20, 40, 60, 0.14);
  --line-strong: rgba(20, 40, 60, 0.28);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Archivo', system-ui, -apple-system, Segoe UI, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(1rem, 3.5vw, 2.75rem);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1rem, 0.35vw + 0.96rem, 1.12rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: var(--orange-deep); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sans { font-family: var(--sans); }

/* Skip link */
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 1000; font-family: var(--sans); }
.skip:focus { left: .5rem; top: .5rem; }

/* =========================================================
   TOP BAR (redes + buscador)
   ========================================================= */
.topbar { background: var(--navy-deep); color: #EAF0F7; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; }
.topbar__tag { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #A9BBD1; }
.social { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; color: #EAF0F7; text-decoration: none;
  border: 1px solid rgba(255,255,255,.22); transition: background .2s, color .2s, border-color .2s;
}
.social a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.social svg { width: 15px; height: 15px; fill: currentColor; }

/* =========================================================
   MASTHEAD (cabecera con imagen rotativa)
   ========================================================= */
.masthead { background: var(--navy-deep); }
.banner {
  display: block;
  position: relative;
  aspect-ratio: 1144 / 292;
  max-height: 300px;
  overflow: hidden;
  background: var(--navy-deep);
  text-decoration: none;
}
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,42,77,.35) 0%, rgba(14,42,77,0) 45%);
  pointer-events: none;
}
/* =========================================================
   NAV PRINCIPAL
   ========================================================= */
.mainnav { background: var(--surface); border-bottom: 3px solid var(--navy); position: sticky; top: 0; z-index: 200; }
.mainnav__inner { display: flex; align-items: stretch; justify-content: space-between; gap: 1rem; }
.menu { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a, .menu__btn {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--sans); font-weight: 600; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  padding: 1.1rem .9rem; border: 0; background: none; cursor: pointer; line-height: 1;
  transition: color .2s, background .2s;
}
.menu > li > a:hover, .menu__btn:hover { color: var(--orange-deep); background: var(--surface-2); }
.menu > li > a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--orange); }
.menu__btn::after { content: "▾"; font-size: .7em; opacity: .7; }

/* Dropdown */
.has-sub .submenu {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: var(--surface); border: 1px solid var(--line-strong); border-top: 3px solid var(--orange);
  list-style: none; margin: 0; padding: .4rem 0; box-shadow: 0 14px 30px rgba(14,42,77,.16);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 10;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .submenu.open { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; font-family: var(--sans); font-size: .82rem; color: var(--ink); text-decoration: none; padding: .6rem 1.1rem; }
.submenu a:hover { background: var(--surface-2); color: var(--orange-deep); }
.submenu__label { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: .5rem 1.1rem .2rem; }

.nav-toggle { display: none; }

/* =========================================================
   LAYOUT (contenido + sidebar)
   ========================================================= */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.6rem, 4vw, 3.5rem); padding-block: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.content { min-width: 0; }
.sidebar { min-width: 0; }

/* =========================================================
   PORTADA — contenido principal
   ========================================================= */
.lead { border-bottom: 1px solid var(--line); padding-bottom: 2rem; margin-bottom: 2.2rem; }
.lead .kicker { font-family: var(--sans); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-deep); }
.lead h1 { font-weight: 400; font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.01em; margin: .8rem 0 1rem; }
.lead h1 em { font-style: italic; color: var(--navy); }
.lead p { color: var(--ink-soft); font-size: clamp(1.05rem, 1.3vw, 1.22rem); max-width: 60ch; margin: 0; }

.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2.6rem 0 1.2rem; }
.block-head h2 { font-family: var(--sans); font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); margin: 0; }
.block-head h2::before { content: ""; display: inline-block; width: 26px; height: 2px; background: var(--orange); vertical-align: middle; margin-right: .6rem; }

/* Destacado grande (campaña madre) */
.hero-feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--navy-deep); color: #EAF0F7; border-radius: var(--radius); overflow: hidden;
}
.hero-feature__body { padding: clamp(1.6rem, 3vw, 2.6rem); }
.hero-feature__tag { font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.hero-feature h3 { font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.08; margin: .7rem 0 .8rem; }
.hero-feature h3 em { font-style: italic; color: #F2A94E; }
.hero-feature p { color: #C6D2E2; margin: 0 0 1.4rem; }
.hero-feature__media { background: var(--navy) center/cover; display: grid; place-items: center; position: relative; min-height: 180px; }
.hero-feature__num { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(5rem, 12vw, 9rem); color: rgba(242,169,78,.28); line-height: 1; }
.more-link { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--sans); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #F2A94E; text-decoration: none; }
.more-link:hover { color: #fff; }
.more-link .arw { transition: transform .2s; }
.more-link:hover .arw { transform: translateX(4px); }

/* Cards de secciones */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.card { background: var(--surface); padding: 1.4rem 1.3rem 1.6rem; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: .45rem; min-height: 170px; transition: background .2s; }
.card:hover { background: var(--surface-2); }
.card__k { font-family: var(--sans); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); }
.card h3 { font-weight: 400; font-size: 1.35rem; line-height: 1.12; margin: .1rem 0 0; }
.card p { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.card__go { margin-top: auto; font-family: var(--sans); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card:hover .card__go { color: var(--orange-deep); }

/* =========================================================
   SIDEBAR — widgets
   ========================================================= */
.widget { margin-bottom: 1.8rem; }
.widget__title { font-family: var(--sans); font-weight: 700; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); margin: 0 0 .8rem; padding-bottom: .5rem; border-bottom: 2px solid var(--orange); }

/* Video/Podcast destacado */
.w-featured { display: block; text-decoration: none; color: #fff; background: var(--navy); border-radius: var(--radius); padding: 1.3rem 1.2rem; position: relative; overflow: hidden; transition: background .2s; }
.w-featured:hover { background: var(--navy-deep); color: #fff; }
.w-featured .k { font-family: var(--sans); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.w-featured strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.1; margin-top: .3rem; }
.w-featured .play { position: absolute; right: .9rem; bottom: .7rem; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; }
.w-featured .play::before { content: ""; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }

/* Banners del sidebar (video/podcast, archivo) */
.w-banners { display: grid; gap: .7rem; }
.w-banner { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.w-banner img { width: 100%; height: auto; display: block; }
.w-banner:hover { transform: translateY(-2px); border-color: var(--orange); box-shadow: 0 10px 22px rgba(14,42,77,.14); }

/* Aliados (logos) */
.w-allies { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.w-allies a { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .7rem; transition: border-color .2s, transform .2s; }
.w-allies a:hover { border-color: var(--orange); transform: translateX(3px); }
.w-allies img { width: 46px; height: 46px; object-fit: contain; background: #fff; flex: 0 0 auto; border-radius: 2px; }
.w-allies span { font-family: var(--sans); font-size: .82rem; font-weight: 600; line-height: 1.2; }

/* Índice de navegación en el sidebar (Archivo / Info útil) */
.w-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.w-nav a { display: block; font-family: var(--sans); font-size: .82rem; color: var(--ink); text-decoration: none; padding: .5rem .65rem; border-left: 2px solid var(--line-strong); transition: border-color .2s, color .2s, background .2s, padding-left .2s; }
.w-nav a:hover { border-left-color: var(--orange); color: var(--orange-deep); background: var(--surface-2); padding-left: .95rem; }

/* =========================================================
   PÁGINAS INTERIORES (stub + prosa futura)
   ========================================================= */
.page-title { border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; margin-bottom: 1.6rem; }
.page-title .kicker { font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-deep); }
.page-title h1 { font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.05; letter-spacing: -.01em; margin: .7rem 0 0; }
.page-title h1 em { font-style: italic; color: var(--navy); }
.stub-note { font-family: var(--sans); font-size: .85rem; color: var(--muted); display: inline-flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.stub-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* Prosa (para cuando se vuelque contenido) */
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.1rem; }
.prose h2 { font-weight: 400; font-size: 1.7rem; margin: 2rem 0 .8rem; }
.prose img { border-radius: var(--radius); margin: 1.4rem 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-foot { background: var(--navy-deep); color: #C6D2E2; margin-top: clamp(2rem, 6vw, 4rem); }
.site-foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 2rem; }
.site-foot a { color: #EAF0F7; text-decoration: none; }
.site-foot a:hover { color: var(--orange); }
.site-foot__brand { font-family: var(--serif); font-size: 1.5rem; }
.site-foot__brand em { font-style: italic; color: #F2A94E; }
.site-foot__links { font-family: var(--sans); font-size: .82rem; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-foot__meta { width: 100%; border-top: 1px solid rgba(255,255,255,.14); padding-top: 1rem; font-family: var(--sans); font-size: .7rem; letter-spacing: .06em; color: #8CA0BC; }

/* =========================================================
   CONTENIDO (prosa, galerías, video, video-podcast)
   ========================================================= */
.prose { max-width: 72ch; font-size: 1.06rem; }
.prose > p { margin: 0 0 1.15rem; }
.prose h1 { font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.1; margin: 2.2rem 0 1rem; }
.prose h2 { font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; margin: 2rem 0 .8rem; }
.prose h3 { font-family: var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: .02em; margin: 1.8rem 0 .6rem; }
.prose strong { color: var(--ink); }
.prose em { color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
.prose li { margin: .35rem 0; }
.prose img { border-radius: var(--radius); margin: .4rem 0; }
.prose figure { margin: 1.6rem 0; }
.prose figcaption { font-family: var(--sans); font-size: .78rem; color: var(--muted); margin-top: .5rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose blockquote { margin: 1.4rem 0; padding: .6rem 1.2rem; border-left: 3px solid var(--orange); color: var(--ink-soft); font-style: italic; }
.prose pre { white-space: pre-wrap; font-family: var(--sans); font-size: .9rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 0 1.5rem; }

.article-lead { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 1.6rem; }

/* imágenes lado a lado */
.img-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.4rem 0; }
.img-row img { flex: 1 1 220px; margin: 0; }

/* Tabla de contenido + anclas */
.toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 0 0 2rem; }
.toc h2 { font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); margin: 0 0 .7rem; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.toc a { font-family: var(--sans); font-size: .9rem; text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--orange-deep); }
[id] { scroll-margin-top: 90px; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .8rem; margin: 1.6rem 0; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin: 0; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }

/* Video responsivo */
.video-embed { position: relative; padding-top: 56.25%; margin: 1.6rem 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Nota de fuente / archivo */
.src-note { font-family: var(--sans); font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1rem; }

/* === Video-podcast (pxlc-*) === */
.pxlc-temporada { margin: 2.6rem 0; }
.pxlc-temporada-header { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.3rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.pxlc-temporada-num { font-family: var(--serif); font-style: italic; font-size: 3.2rem; line-height: .9; color: var(--orange); flex: 0 0 auto; }
.pxlc-tag { font-family: var(--sans); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); font-weight: 700; }
.pxlc-temporada-titulo { font-weight: 400; font-size: 1.6rem; margin: .2rem 0 .3rem; }
.pxlc-temporada-desc { color: var(--ink-soft); margin: 0; font-size: .95rem; }
.pxlc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.pxlc-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.pxlc-card:hover { transform: translateY(-3px); border-color: var(--orange); box-shadow: 0 12px 26px rgba(14,42,77,.14); }
.pxlc-card-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--navy-deep) center/cover; }
.pxlc-ep-badge { position: absolute; top: .5rem; left: .5rem; font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(14,42,77,.85); color: #fff; padding: .25rem .5rem; border-radius: 2px; }
.pxlc-play-btn { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; background: rgba(217,121,26,.92); border-radius: 50%; display: grid; place-items: center; transition: transform .2s; }
.pxlc-play-btn svg { width: 18px; height: 18px; margin-left: 2px; }
.pxlc-card:hover .pxlc-play-btn { transform: scale(1.12); }
.pxlc-card-body { padding: .9rem 1rem; flex: 1; }
.pxlc-card-title { font-family: var(--serif); font-size: 1.15rem; line-height: 1.15; margin-bottom: .3rem; }
.pxlc-card-guest { font-family: var(--sans); font-size: .74rem; font-weight: 600; color: var(--orange-deep); margin-bottom: .4rem; }
.pxlc-card-summary { font-size: .88rem; color: var(--ink-soft); line-height: 1.45; }
.pxlc-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .7rem; }
.pxlc-tag-item { font-family: var(--sans); font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); background: var(--surface-2); padding: .2rem .45rem; border-radius: 2px; }
.pxlc-card-footer { display: flex; align-items: center; justify-content: space-between; padding: .7rem 1rem; border-top: 1px solid var(--line); }
.pxlc-date { font-family: var(--sans); font-size: .7rem; color: var(--muted); }
.pxlc-ver-link { font-family: var(--sans); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--orange-deep); }

/* =========================================================
   LÍNEA DE TIEMPO POR ETAPAS (compilados)
   ========================================================= */
.timeline { position: relative; margin: 2.4rem 0 0; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line-strong);
}
.etapa { position: relative; padding-left: 2.6rem; margin-bottom: 3rem; }
.etapa::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper); border: 4px solid var(--orange); box-sizing: border-box;
  box-shadow: 0 0 0 4px var(--bg);
}
.etapa:last-child { margin-bottom: 1rem; }
.etapa__year { font-family: var(--sans); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-deep); }
.etapa__title { font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.12; margin: .3rem 0 1rem; }
.etapa__title em { font-style: italic; color: var(--navy); }
.etapa .prose, .etapa__body { max-width: 68ch; }
.etapa__body > p { margin: 0 0 1.05rem; }
.etapa__body figure { margin: 1.4rem 0; }
.etapa__body figcaption { font-family: var(--sans); font-size: .78rem; color: var(--muted); margin-top: .5rem; }

/* Dato / cifra destacada dentro de una etapa */
.dato { display: flex; gap: .9rem; align-items: flex-start; background: var(--surface-2); border-left: 3px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem; margin: 1.4rem 0; }
.dato strong { color: var(--navy); }
.dato__n { font-family: var(--serif); font-style: italic; font-size: 2.2rem; line-height: 1; color: var(--orange-deep); flex: 0 0 auto; }

/* Publicaciones de respaldo por etapa */
.refs { margin: 1.4rem 0 0; border-top: 1px dashed var(--line-strong); padding-top: .9rem; }
.refs h4 { font-family: var(--sans); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; font-weight: 700; }
.refs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.refs li { display: flex; gap: .7rem; font-size: .9rem; color: var(--ink-soft); }
.refs .fecha { font-family: var(--sans); font-size: .72rem; color: var(--muted); flex: 0 0 8.5rem; padding-top: .15rem; }

@media (max-width: 600px) {
  .refs li { flex-direction: column; gap: .1rem; }
  .refs .fecha { flex-basis: auto; }
}

/* Recuadro de contexto / antecedente */
.contexto { background: var(--surface); border: 1px solid var(--line-strong); border-top: 3px solid var(--navy); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 1.8rem); margin: 0 0 2.6rem; max-width: 72ch; }
.contexto__label { font-family: var(--sans); font-weight: 700; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-deep); }
.contexto h2 { margin: .35rem 0 .8rem; font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.15; }
.contexto p { margin: 0 0 .9rem; color: var(--ink-soft); }
.contexto p:last-child { margin-bottom: 0; }

/* Cita de tuit / declaración */
.tweet { border: 1px solid var(--line-strong); border-left: 3px solid var(--navy); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem; margin: 1.4rem 0; background: var(--surface); }
.tweet p { margin: 0 0 .5rem; font-style: italic; font-size: 1.05rem; }
.tweet__meta { font-family: var(--sans); font-size: .74rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; }
.tweet__meta a { font-weight: 600; }

/* =========================================================
   BOTÓN VOLVER ARRIBA
   ========================================================= */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center; z-index: 300;
  box-shadow: 0 8px 20px rgba(14, 42, 77, .28);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange); }
.to-top:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   REVEAL
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; border-top: 1px solid var(--line); padding-top: 2rem; }
  .hero-feature { grid-template-columns: 1fr; }
  .hero-feature__media { min-height: 120px; }
}
@media (max-width: 680px) {
  .topbar__tag { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem; margin: .4rem 0;
    font-family: var(--sans); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
    background: none; border: 1px solid var(--line-strong); color: var(--ink); padding: .55rem .8rem; border-radius: var(--radius); cursor: pointer;
  }
  .mainnav__inner { flex-direction: column; align-items: stretch; }
  .menu { flex-direction: column; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .menu.open { max-height: 720px; padding-bottom: .5rem; }
  .menu > li > a, .menu__btn { padding: .85rem .4rem; width: 100%; border-bottom: 1px solid var(--line); }
  .has-sub .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--orange); margin-left: .8rem; display: none; }
  .has-sub .submenu.open { display: block; }
}
