/* ==========================================================================
   Leyendaria — hoja de estilos
   Traducida del diseño de Figma (Leyendaria Website UI Design).
   ========================================================================== */

:root {
  --ink: #12100e;
  --ink-2: #1e1a16;
  --ink-3: #2a241e;
  --line: #3a3128;
  --gold: #c9a227;
  --gold-hover: #ddba46;
  --ember: #c8562e;
  --parchment: #efe6d2;
  --muted: #b8ae9c;
  --faint: #847a6c;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Lora", Georgia, "Times New Roman", serif;
  --poetic: "Cormorant Garamond", Georgia, serif;
  --container: 1280px;
  --header-h: 88px;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--parchment); font-family: var(--body); font-size: 17px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--parchment); }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; text-wrap: balance; }
p { line-height: 1.75; }
.container { width: min(var(--container), calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: 96px; }
.eyebrow { color: var(--gold); font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.poetic { color: var(--gold); font-family: var(--poetic); font-size: 19px; font-style: italic; }
.star-mark { color: var(--gold); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 6px; background: var(--gold); color: var(--ink); font-family: var(--display); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.skip-link:focus { top: 12px; color: var(--ink); }

/* ---------- cabecera ---------- */
.site-header { position: sticky; z-index: 30; top: 0; height: var(--header-h); border-bottom: 1px solid transparent; background: rgba(18,16,14,.84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: height .3s ease-out, border-color .3s ease-out; }
.site-header.is-scrolled { height: 70px; border-color: var(--line); }
.header-inner { width: min(1360px, calc(100% - 48px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand-button { padding: 0; border: 0; background: none; color: var(--parchment); }
.brand-button:hover { color: var(--parchment); }
.brand { display: flex; align-items: center; gap: 13px; text-align: left; }
.emblem { width: 52px; height: 52px; flex: none; object-fit: contain; transition: width .3s, height .3s; }
.site-header.is-scrolled .emblem { width: 44px; height: 44px; }
.wordmark { display: block; color: var(--parchment); font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: .18em; line-height: 1.2; }
.brand-tagline { display: block; margin-top: 2px; color: var(--muted); font-family: var(--poetic); font-size: 14px; font-style: italic; line-height: 1.2; }
.brand--compact .brand-tagline { display: none; }

.desktop-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.desktop-nav > a, .nav-drop { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; color: var(--parchment); font-family: var(--display); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; transition: color .2s; }
.desktop-nav > a:hover, .nav-drop:hover, .desktop-nav a[aria-current="page"] { color: var(--gold); }
.nav-item { position: relative; }
.nav-drop svg { transition: transform .2s; }
.nav-menu { position: absolute; top: 100%; left: -18px; min-width: 230px; padding: 10px; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--ink-2); box-shadow: 0 18px 40px rgba(0,0,0,.45); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease-out, transform .2s ease-out, visibility .2s; }
.nav-menu a { padding: 10px 12px; border-radius: 4px; color: var(--parchment); font-size: 14px; }
.nav-menu a:hover { background: var(--ink-3); color: var(--gold); }
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu, .nav-item.is-open .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-item:hover .nav-drop svg, .nav-item.is-open .nav-drop svg { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; flex: none; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--parchment); }
.icon-button:hover { border-color: var(--gold); color: var(--gold); }
.mobile-menu-button { display: none; }

/* ---------- botones y etiquetas ---------- */
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; border: 1px solid var(--gold); border-radius: 6px; font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-align: center; transition: background .2s ease-out, color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: var(--gold-hover); color: var(--ink); }
.btn--secondary { background: rgba(18,16,14,.3); color: var(--parchment); }
.btn--secondary:hover { background: var(--gold); color: var(--ink); }
.btn--ghost { border-color: transparent; background: transparent; color: var(--gold); }
.chip { width: fit-content; display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid var(--gold); border-radius: 3px; color: var(--gold); font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.chip--ember { border-color: var(--ember); background: var(--ember); color: var(--parchment); }
a.chip--ember:hover { color: var(--parchment); filter: brightness(1.1); }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; }
.button-row--center { justify-content: center; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--gold); font-family: var(--display); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- portada: destacada ---------- */
.hero { position: relative; min-height: 650px; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero--empty { min-height: 420px; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: saturate(.55) sepia(.12) brightness(.65); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,16,14,.97) 8%, rgba(18,16,14,.78) 45%, rgba(18,16,14,.12) 78%), linear-gradient(0deg, var(--ink), transparent 35%); }
.hero-content { position: relative; z-index: 2; padding-block: 86px; }
.hero-content h1 { max-width: 850px; margin: 20px 0 18px; font-size: clamp(44px, 5.2vw, 72px); line-height: 1.08; letter-spacing: -.025em; }
.hero-content > p { max-width: 660px; margin: 0 0 30px; color: #d1c8b6; font-size: 18px; }
.hero-meta { margin-top: 28px; display: flex; align-items: center; gap: 16px; color: var(--muted); font-family: var(--display); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.hero-watermark.emblem { position: absolute; z-index: 1; right: 8%; top: 50%; width: 460px; height: 460px; max-width: none; opacity: .07; transform: translateY(-50%); pointer-events: none; }

/* ---------- huecos de publicidad (gestionados desde WordPress) ---------- */
.ad-slot { position: relative; display: grid; place-items: center; overflow: hidden; border: 1px dashed rgba(201,162,39,.42); border-radius: 6px; color: #7f7466; background: repeating-linear-gradient(-45deg, rgba(201,162,39,.025), rgba(201,162,39,.025) 8px, transparent 8px, transparent 16px); transition: opacity .4s ease-out; }
.ad-slot.is-filled { padding: 24px 12px 12px; border: 1px solid var(--line); background: var(--ink-2); }
.ad-slot.is-collapsed { display: none; }
.ad-slot .ad-label { position: absolute; left: 10px; top: 6px; color: var(--muted); font-family: var(--display); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.ad-slot > *:not(.ad-label):not(template) { max-width: 100%; }
.ad-slot--leaderboard { max-width: 760px; min-height: 120px; margin: 48px auto 0; }
.ad-slot--sidebar { width: 100%; min-height: 630px; }
.ad-slot--incontent { width: 100%; max-width: 360px; min-height: 310px; margin: 48px auto; }
.ad-slot--feed { min-height: 390px; }
.ad-slot--footer { width: 100%; min-height: 120px; }
.footer-ad { padding-block: 0 48px; }
.article-body .ad-slot--leaderboard { margin: 48px auto; }

/* ---------- secciones ---------- */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-heading h2 { margin-top: 8px; font-size: clamp(32px, 3vw, 44px); }
.content-with-rail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.legend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }

/* ---------- tarjeta de leyenda ---------- */
.legend-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--ink-2); transition: border-color .3s, box-shadow .3s, transform .3s; }
.legend-card:hover, .legend-card:focus-within { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 0 28px rgba(201,162,39,.1); }
.card-image { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--ink-3); }
.card-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.55) brightness(.72); transition: transform .6s ease-out; }
.legend-card:hover .card-image img { transform: scale(1.05); }
.card-image .chip { position: absolute; z-index: 2; left: 14px; top: 14px; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 18px; line-height: 1.4; }
.card-link { color: var(--parchment); }
.card-link:hover { color: var(--parchment); }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; }
.card-body p { min-height: 78px; margin: 10px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.card-meta { padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-family: var(--display); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.img-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 70% 30%, rgba(201,162,39,.12), transparent 55%), var(--ink-3); }
.img-fallback .emblem { width: 72px; height: 72px; opacity: .45; }

/* ---------- lo más leído ---------- */
.right-rail { display: flex; flex-direction: column; gap: 32px; position: sticky; top: 100px; }
.rank-panel { padding: 26px 24px; border: 1px solid var(--line); background: var(--ink-2); }
.rank-panel h3 { margin: 7px 0 16px; font-size: 24px; }
.rank-panel ol { margin: 0; padding: 0; list-style: none; }
.rank-panel li { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 15px 0; border-top: 1px solid var(--line); }
.rank-panel li > span { color: var(--ember); font-family: var(--display); font-size: 29px; line-height: 1; }
.rank-panel li a { color: var(--parchment); }
.rank-panel li a:hover strong { color: var(--gold); }
.rank-panel strong { display: block; font-family: var(--display); font-size: 12px; line-height: 1.45; transition: color .2s; }
.rank-panel small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.ornament { width: min(620px, calc(100% - 64px)); margin: 0 auto; display: flex; align-items: center; gap: 18px; color: var(--gold); }
.ornament span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(201,162,39,.65)); }
.ornament span:last-child { transform: rotate(180deg); }
.ornament i { font-style: normal; }

/* ---------- explora por el mundo ---------- */
.world-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.world-tile { min-height: 144px; display: grid; grid-template-columns: 30px 1fr auto; align-items: start; gap: 12px; padding: 25px; border: 1px solid var(--line); border-radius: 6px; background: radial-gradient(circle at 0 0, rgba(201,162,39,.09), transparent 48%), var(--ink-2); color: var(--parchment); text-align: left; transition: border-color .3s, transform .3s; }
.world-tile:hover { border-color: var(--gold); transform: translateY(-3px); color: var(--parchment); }
.world-tile > svg { color: var(--gold); }
.world-tile h3 { font-size: 18px; }
.world-tile p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------- shorts ---------- */
.shorts-section { background: var(--ink-2); border-block: 1px solid var(--line); overflow: hidden; }
.shorts-row { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 1px 22px; scrollbar-color: var(--gold) var(--ink-3); }
.short-card { position: relative; min-width: 226px; aspect-ratio: 9/16; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; scroll-snap-align: start; background: var(--ink-3); }
.short-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.5) brightness(.65); transition: transform .5s; }
.short-card:hover img { transform: scale(1.05); }
.short-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,16,14,.95), transparent 62%); pointer-events: none; }
.play-ring { width: 58px; height: 58px; position: absolute; z-index: 2; left: 50%; top: 43%; display: grid; place-items: center; padding: 0; border: 1px solid var(--gold); border-radius: 50%; background: rgba(18,16,14,.5); color: var(--gold); transform: translate(-50%,-50%); transition: background .2s, color .2s, transform .2s; }
.play-ring:hover { background: var(--gold); color: var(--ink); transform: translate(-50%,-50%) scale(1.06); }
.short-copy { position: absolute; inset: auto 18px 20px; }
.short-copy > span { color: var(--ember); font-family: var(--display); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.short-copy h3 { margin: 7px 0; font-size: 16px; line-height: 1.35; }
.short-copy h3 a { color: var(--parchment); }
.short-copy h3 a:hover { color: var(--gold); }
.short-copy small { color: var(--muted); }
.subscribe-bar { margin-top: 30px; padding: 20px 24px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--ink-3); }
.subscribe-bar p { margin: 0; }

/* ---------- boletín ---------- */
.newsletter { min-height: 270px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; padding: 48px; border: 1px solid rgba(200,86,46,.5); border-radius: 6px; background: radial-gradient(circle at 15% 50%, rgba(200,86,46,.13), transparent 44%), var(--ink-2); }
.newsletter h2 { margin: 10px 0; font-size: 32px; }
.newsletter p { margin: 0; color: var(--muted); }
.newsletter label { display: block; margin-bottom: 8px; color: var(--muted); font-family: var(--display); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.newsletter form > div { display: flex; }
.newsletter input { min-width: 0; flex: 1; height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: 6px 0 0 6px; outline: 0; background: var(--ink); color: var(--parchment); }
.newsletter input:focus { border-color: var(--gold); }
.newsletter form .btn { border-radius: 0 6px 6px 0; }
.newsletter form .btn:hover { transform: none; }
.newsletter small { display: block; margin-top: 8px; color: var(--faint); font-size: 10px; }
.newsletter small a { color: var(--muted); text-decoration: underline; }

/* ---------- pie ---------- */
.site-footer { padding-top: 64px; border-top: 1px solid var(--line); background: #0d0b0a; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 64px; padding-bottom: 56px; }
.footer-grid > div:first-child p { max-width: 300px; }
.footer-grid h3 { margin-bottom: 16px; color: var(--gold); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.footer-grid > div > a:not(.brand-button) { min-height: 34px; display: flex; align-items: center; color: var(--muted); font-size: 13px; }
.footer-grid > div > a:not(.brand-button):hover { color: var(--gold); }
.footer-bottom { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); color: #80766a; font-size: 11px; }
.footer-bottom a { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- página de leyenda ---------- */
.progress { position: fixed; z-index: 40; top: 0; left: 0; width: 100%; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; }
.article-hero { position: relative; height: 560px; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink-2); }
.article-hero-image, .article-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
img.article-hero-image { object-fit: cover; filter: saturate(.5) brightness(.6); }
.article-hero-shade { background: linear-gradient(0deg, var(--ink) 2%, rgba(18,16,14,.2) 75%); }
.article-hero-content { position: relative; z-index: 2; padding-bottom: 50px; }
.breadcrumbs { margin-bottom: 32px; color: var(--muted); font-size: 12px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold); }
.article-hero h1 { max-width: 980px; margin: 16px 0; font-size: clamp(44px, 5vw, 64px); line-height: 1.1; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; color: var(--muted); font-family: var(--display); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.article-meta a { color: var(--muted); }
.article-meta a:hover { color: var(--gold); }
.article-meta span[aria-hidden] { color: var(--faint); }
.article-layout { display: grid; grid-template-columns: 210px minmax(0, 680px) 250px; justify-content: space-between; gap: 42px; padding-block: 72px; }
.article-layout.no-toc { grid-template-columns: minmax(0, 720px) 300px; }
.toc { position: sticky; top: 100px; height: fit-content; display: flex; flex-direction: column; }
.toc summary { margin-bottom: 15px; list-style: none; cursor: default; }
.toc summary::-webkit-details-marker { display: none; }
.toc a { display: block; padding: 13px 0 13px 16px; border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; }
.toc a:hover { color: var(--parchment); }
.toc a.active { border-left: 2px solid var(--gold); color: var(--parchment); }
.article-body { min-width: 0; }
.article-body p { margin: 0 0 28px; font-size: 18px; line-height: 1.8; }
.article-body .lead::first-letter { float: left; margin: 7px 10px 0 0; color: var(--gold); font-family: var(--display); font-size: 64px; line-height: .75; }
.article-body h2 { margin: 56px 0 24px; font-size: 32px; line-height: 1.2; scroll-margin-top: 100px; }
.article-body h3 { margin: 40px 0 16px; font-size: 22px; line-height: 1.3; scroll-margin-top: 100px; }
.article-body h4 { margin: 32px 0 12px; font-family: var(--display); font-size: 17px; }
.article-body blockquote { margin: 48px 0; padding: 10px 0 10px 28px; border-left: 3px solid var(--ember); color: var(--parchment); font-family: var(--poetic); font-size: 30px; font-style: italic; line-height: 1.4; }
.article-body blockquote p { margin: 0; font-size: inherit; line-height: inherit; }
.article-body blockquote cite { display: block; margin-top: 12px; color: var(--muted); font-family: var(--body); font-size: 14px; font-style: normal; }
.article-body ul, .article-body ol { margin: 0 0 28px; padding-left: 24px; font-size: 18px; line-height: 1.8; }
.article-body li { margin-bottom: 8px; }
.article-body li::marker { color: var(--gold); }
.article-body a { text-decoration: underline; text-decoration-color: rgba(201,162,39,.45); text-underline-offset: 3px; }
.article-body figure { margin: 40px 0; }
.article-body figure img { display: block; width: 100%; border-radius: 6px; }
.article-body > img { display: block; width: 100%; height: auto; margin: 0 0 32px; border-radius: 6px; }
.article-body figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; font-style: italic; text-align: center; }
.article-body iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 6px; }
.article-body hr { margin: 48px auto; width: 120px; border: 0; border-top: 1px solid var(--gold); opacity: .6; }
.article-body table { width: 100%; margin: 0 0 28px; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.article-body th, .article-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.article-ad { position: sticky; top: 100px; height: fit-content; }
.embedded-short { position: relative; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 28px; margin: 48px 0; padding: 20px; border: 1px solid var(--line); background: var(--ink-2); }
.embedded-short img { width: 150px; aspect-ratio: 9/16; object-fit: cover; filter: saturate(.5); }
.embedded-short .play-ring { left: 95px; top: 50%; }
.embedded-short h3 { margin: 8px 0; font-size: 20px; }
.embedded-short p { margin: 0; color: var(--muted); font-size: 13px; }
.share-bar { margin-top: 56px; padding-block: 24px; border-block: 1px solid var(--line); }
.share-bar > strong { display: block; margin-bottom: 15px; font-family: var(--display); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.share-bar > div { display: flex; gap: 8px; flex-wrap: wrap; }
.share-bar > div > a { min-height: 46px; display: inline-flex; align-items: center; padding: 0 15px; border: 1px solid var(--line); border-radius: 6px; color: var(--parchment); font-size: 12px; text-decoration: none; }
.share-bar > div > a:hover { border-color: var(--gold); color: var(--gold); }
.article-after { padding-bottom: 96px; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 80px; border-block: 1px solid var(--line); }
.prev-next a { min-height: 120px; display: flex; flex-direction: column; justify-content: center; padding: 20px 28px; color: var(--parchment); }
.prev-next a:hover strong { color: var(--gold); }
.prev-next > * + * { border-left: 1px solid var(--line); }
.prev-next a[rel="next"] { text-align: right; }
.prev-next span { display: block; margin-bottom: 7px; color: var(--gold); font-family: var(--display); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.prev-next strong { font-family: var(--display); font-size: 16px; font-weight: 600; transition: color .2s; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: 32px; padding: 14px 22px; border: 1px solid var(--gold); border-radius: 6px; background: var(--ink-3); transform: translateX(-50%); font-size: 13px; }

/* ---------- archivo, búsqueda y páginas ---------- */
.archive-header { padding: 96px 0 64px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 78% 30%, rgba(201,162,39,.08), transparent 30%), var(--ink-2); }
.archive-header .breadcrumbs { margin-bottom: 24px; }
.archive-header h1 { margin: 12px 0 14px; font-size: 64px; line-height: 1.1; }
.archive-header p { max-width: 660px; color: var(--muted); font-size: 18px; }
.archive-count { display: inline-block; color: var(--gold); font-family: var(--display); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.filter-row { display: flex; gap: 8px; margin-bottom: 38px; overflow-x: auto; padding-bottom: 4px; }
.filter-row a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 16px; white-space: nowrap; border: 1px solid var(--line); border-radius: 22px; color: var(--muted); font-family: var(--display); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.filter-row a.active, .filter-row a:hover { border-color: var(--ember); background: var(--ember); color: var(--parchment); }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.pagination a, .pagination span { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--parchment); }
.pagination span[aria-hidden] { border-color: transparent; color: var(--muted); }
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .active { border-color: var(--gold); color: var(--gold); }
.empty-state { padding: 80px 0; text-align: center; }
.empty-state .star-mark { font-size: 32px; }
.empty-state h2 { margin: 15px 0; }
.empty-state p { color: var(--muted); }
.search-page-form { max-width: 720px; display: flex; gap: 10px; margin: 24px 0 16px; }
.search-page-form input { min-width: 0; flex: 1; height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: 6px; outline: 0; background: var(--ink); color: var(--parchment); }
.search-page-form input:focus { border-color: var(--gold); }
.static-layout { max-width: 760px; padding-block: 72px 96px; }
.static-page .archive-header h1 { font-size: 52px; }

/* ---------- buscador ---------- */
.search-overlay { position: fixed; z-index: 70; inset: 0; padding: 32px 5vw; overflow-y: auto; background: rgba(18,16,14,.98); animation: fade .25s ease-out; }
.search-top { display: flex; align-items: center; justify-content: space-between; }
.search-shell { max-width: 900px; margin: 10vh auto; }
.search-input { display: flex; align-items: center; gap: 18px; padding-bottom: 16px; border-bottom: 2px solid var(--gold); color: var(--gold); }
.search-input svg { flex: none; }
.search-input input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--parchment); font-family: var(--display); font-size: clamp(24px, 4vw, 44px); }
.search-input input::placeholder { color: #756b5f; }
.search-input input::-webkit-search-cancel-button { display: none; }
.search-status { min-height: 24px; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.search-results { margin-top: 18px; }
.search-results > a { width: 100%; min-height: 92px; display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 22px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--parchment); text-align: left; }
.search-results > a:hover strong, .search-results > a:focus strong { color: var(--gold); }
.search-results img, .search-results .thumb { width: 100px; height: 68px; object-fit: cover; filter: saturate(.5); background: var(--ink-3); }
.search-results small { display: block; margin-bottom: 7px; color: var(--gold); }
.search-results strong { font-family: var(--display); font-weight: 600; }
.search-results mark { background: none; color: var(--gold); }
.search-more { display: inline-flex; margin-top: 20px; }

/* ---------- menú móvil ---------- */
.drawer-backdrop { position: fixed; z-index: 79; inset: 0; background: rgba(0,0,0,.72); opacity: 0; transition: opacity .3s; pointer-events: none; }
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 80; top: 0; right: 0; width: min(360px, 92vw); height: 100dvh; padding: 24px; overflow-y: auto; background: var(--ink-2); border-left: 1px solid var(--line); transform: translateX(100%); visibility: hidden; transition: transform .35s ease-out, visibility .35s; }
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.drawer-head .emblem { width: 40px; height: 40px; }
.drawer-head .wordmark { font-size: 15px; }
.drawer nav > a, .drawer summary { width: 100%; min-height: 64px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; padding: 0; border-bottom: 1px solid var(--line); color: var(--parchment); font-family: var(--display); font-size: 12px; text-align: left; list-style: none; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer nav > a span, .drawer summary span { color: var(--ember); font-size: 9px; }
.drawer details[open] summary svg { transform: rotate(180deg); }
.drawer-sub { display: block; padding: 12px 0 12px 30px; border-bottom: 1px solid rgba(58,49,40,.6); color: var(--muted); font-size: 14px; }
.drawer-sub:hover { color: var(--gold); }
.drawer-yt { width: 100%; margin-top: 28px; }
.drawer > p { margin-top: 30px; }

/* ---------- cookies ---------- */
.consent { position: fixed; z-index: 50; left: 24px; bottom: 24px; width: min(620px, calc(100% - 48px)); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 22px; border: 1px solid var(--gold); border-radius: 6px; background: var(--ink-3); box-shadow: 0 16px 50px rgba(0,0,0,.4); }
.consent p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.consent > div:last-child { display: flex; align-items: center; gap: 8px; }
.consent .btn { min-height: 40px; padding-inline: 13px; font-size: 9px; }

/* ---------- visor de vídeo ---------- */
.video-modal { position: fixed; z-index: 95; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(8,7,6,.92); animation: fade .25s ease-out; }
.video-modal__box { position: relative; width: min(400px, 100%); }
.video-modal__frame { aspect-ratio: 9/16; max-height: calc(100dvh - 120px); margin-inline: auto; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #000; }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-modal__close { position: absolute; top: -56px; right: 0; background: var(--ink-2); }

/* ---------- 404 / error ---------- */
.not-found { min-height: calc(100vh - var(--header-h)); position: relative; display: grid; place-items: center; overflow: hidden; text-align: center; background: radial-gradient(ellipse at 50% 70%, rgba(201,162,39,.08), transparent 60%), linear-gradient(rgba(18,16,14,.55), var(--ink)); }
.not-found > div:last-child { position: relative; z-index: 2; max-width: 720px; padding: 32px; }
.not-found .brand { justify-content: center; }
.error-code { display: block; margin-top: 30px; color: var(--ember); font-family: var(--display); font-size: 14px; letter-spacing: .3em; }
.not-found h1 { margin: 15px 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.1; }
.not-found p { color: var(--muted); margin-bottom: 28px; }
.fog { position: absolute; inset: 45% -20% -10%; background: rgba(239,230,210,.08); filter: blur(60px); animation: drift 8s ease-in-out infinite alternate; }
@keyframes fade { from { opacity: 0; } }
@keyframes drift { to { transform: translateX(8%); } }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .mobile-menu-button { display: grid; }
  .content-with-rail { grid-template-columns: minmax(0, 1fr) 270px; }
  .content-with-rail .legend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legend-grid, .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout, .article-layout.no-toc { grid-template-columns: minmax(0, 1fr) 250px; }
  .article-layout:not(:has(.article-ad)) { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .toc { grid-column: 1 / -1; position: static; margin-bottom: 8px; padding: 18px; border: 1px solid var(--line); }
  .toc summary { cursor: pointer; margin-bottom: 0; }
  .toc[open] summary { margin-bottom: 12px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   Móvil
   ========================================================================== */
@media (max-width: 720px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .section { padding-block: 64px; }
  .site-header { height: var(--header-h); }
  .site-header.is-scrolled { height: 60px; }
  .header-inner { width: calc(100% - 24px); gap: 8px; }
  .emblem, .site-header.is-scrolled .emblem { width: 40px; height: 40px; }
  .wordmark { font-size: 14px; letter-spacing: .12em; }
  .brand-tagline, .youtube-label { display: none; }
  .btn--youtube { width: 44px; padding: 0; }
  .hero { min-height: 600px; align-items: flex-end; }
  .hero-overlay { background: linear-gradient(0deg, var(--ink) 6%, rgba(18,16,14,.68) 75%, rgba(18,16,14,.28)); }
  .hero-content { padding-block: 90px 56px; }
  .hero-content h1 { margin-block: 18px 14px; font-size: 42px; }
  .hero-content > p { font-size: 16px; line-height: 1.65; }
  .hero-meta { gap: 9px; flex-wrap: wrap; }
  .hero-watermark { display: none; }
  .button-row .btn { flex: 1; padding-inline: 10px; }
  .ad-slot--leaderboard { margin-top: 32px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 31px; }
  .section-heading .text-link { display: none; }
  .content-with-rail { display: block; }
  .content-with-rail .legend-grid, .legend-grid, .archive-grid { grid-template-columns: minmax(0, 1fr); }
  .right-rail { position: static; margin-top: 32px; }
  .right-rail .ad-slot--sidebar { display: none; }
  .ornament { width: calc(100% - 32px); }
  .world-grid { grid-template-columns: minmax(0, 1fr); }
  .world-tile { min-height: 120px; padding: 20px; }
  .shorts-section .container { width: 100%; }
  .shorts-section .section-heading, .subscribe-bar { margin-inline: 16px; }
  .shorts-row { padding-left: 16px; padding-right: 16px; }
  .short-card { min-width: 210px; }
  .subscribe-bar { align-items: flex-start; flex-direction: column; }
  .newsletter { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 22px; }
  .newsletter h2 { font-size: 28px; }
  .newsletter form > div { flex-direction: column; gap: 10px; }
  .newsletter input, .newsletter form .btn { width: 100%; border-radius: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; padding-block: 16px; }
  .article-hero { height: 520px; }
  .article-hero-content { padding-bottom: 34px; }
  .article-hero h1 { font-size: 40px; }
  .breadcrumbs { margin-bottom: 20px; }
  .breadcrumbs ol { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
  .breadcrumbs li:last-child { overflow: hidden; text-overflow: ellipsis; }
  .article-layout, .article-layout.no-toc { display: block; padding-block: 40px 48px; }
  .toc { margin-bottom: 32px; }
  .article-ad { display: none; }
  .article-body p, .article-body ul, .article-body ol { font-size: 17px; }
  .article-body h2 { font-size: 28px; }
  .article-body blockquote { margin-inline: 0; font-size: 25px; }
  .embedded-short { grid-template-columns: 105px 1fr; gap: 18px; padding: 14px; }
  .embedded-short img { width: 105px; }
  .embedded-short .play-ring { left: 66px; width: 48px; height: 48px; }
  .share-bar > div { display: grid; grid-template-columns: 1fr 1fr; }
  .share-bar > div > * { justify-content: center; }
  .prev-next { grid-template-columns: 1fr; }
  .prev-next > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .prev-next a[rel="next"] { text-align: left; }
  .archive-header { padding: 56px 0 44px; }
  .archive-header h1, .static-page .archive-header h1 { font-size: 40px; }
  .archive-page .section { padding-top: 42px; }
  .search-page-form { flex-direction: column; }
  .static-layout { padding-block: 40px 64px; }
  .search-overlay { padding: 22px 16px; }
  .search-shell { margin-top: 8vh; }
  .search-input input { font-size: 24px; }
  .search-results > a { grid-template-columns: 72px 1fr auto; gap: 12px; }
  .search-results img, .search-results .thumb { width: 72px; height: 56px; }
  .consent { left: 12px; bottom: 12px; width: calc(100% - 24px); grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .consent > div:last-child { flex-wrap: wrap; }
  .consent .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
