/* Cuba Despierta · Rediseño editorial 2026: cabecera con menú desplegable, portada y animaciones.
   Se carga después de site.css y solo añade o ajusta componentes. Movimiento: transform/opacity/clip-path. */
:root {
  --hdr-h: 76px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
@media (max-width: 1079px) { :root { --hdr-h: 66px; } }

::selection { background: var(--brand); color: #fff; }
[id] { scroll-margin-top: calc(var(--hdr-h) + 16px); }
body { padding-top: var(--hdr-h); }
body.has-overlay { padding-top: 0; }
body.menu-open { overflow: hidden; }

/* ---------- Utilidades de maquetación ---------- */
/* <picture> (WebP + JPG de respaldo) no debe alterar la maquetación: la imagen se comporta como si fuera hija directa. */
picture { display: contents; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .wrap { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .wrap { padding-inline: 2rem; } }
.sec-pad { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.sec-pad.pt-0 { padding-top: 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2rem; margin-bottom: 2.4rem; }
.h-display { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem); font-weight: 800; line-height: 1.02; text-transform: uppercase; letter-spacing: -.02em; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; }
.h-display .serif, .h-section .serif { color: var(--brand-dark); }
.on-dark .h-display .serif { color: var(--brand-light); }
.sec-head .kicker { display: flex; align-items: center; gap: .6rem; }
.sec-head .kicker::before { content: ''; width: 26px; height: 2px; background: currentColor; }

/* ---------- Botones ---------- */
.btn-red, .btn-black, .btn-ghost, .btn-outline, .btn-outline-dark { position: relative; overflow: hidden; isolation: isolate; transition: color .35s var(--ease-out), border-color .35s var(--ease-out), background-color .2s; }
.btn-red::before, .btn-black::before, .btn-ghost::before { content: ''; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.btn-red::before { background: var(--ink-950); }
.btn-black::before { background: var(--brand); }
.btn-red:hover { background: var(--brand); }
.btn-black:hover { background: var(--ink); }
.btn-red:hover::before, .btn-black:hover::before, .btn-ghost:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.4rem; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: #fff; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.04); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost::before { background: #fff; }
.btn-ghost:hover { color: var(--ink); border-color: #fff; }
.btn-x svg { transition: transform .45s var(--ease-out); }
.btn-x:hover svg { transform: translateX(5px); }
.btn-red, .btn-ghost { padding: .95rem 1.6rem; }
.link-cta-light { color: #fff; }

/* ================= CABECERA ================= */
.site-hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hdr-h); background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); transition: transform .5s var(--ease-out), background-color .35s ease, color .35s ease, box-shadow .35s ease, border-color .35s ease; }
.site-hdr.is-scrolled { background: rgba(255,255,255,.9); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); border-color: transparent; box-shadow: 0 1px 0 var(--line), 0 14px 34px -22px rgba(0,0,0,.35); }
.site-hdr.is-hidden { transform: translateY(-100%); }
.hdr-in { max-width: 1240px; height: 100%; margin: 0 auto; padding: 0 1rem; display: flex; align-items: center; gap: 1.5rem; }
@media (min-width: 640px) { .hdr-in { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .hdr-in { padding: 0 2rem; } }
.site-hdr .logo { color: inherit; transition: color .35s; }
.logo-mark { transition: transform .6s var(--ease-out); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.site-hdr .icon-btn { color: inherit; border-radius: 50%; transition: background-color .2s, color .2s; }
.site-hdr .icon-btn:hover { background: rgba(0,0,0,.06); color: var(--brand-dark); }
.hdr-follow { display: none; }
@media (min-width: 640px) { .hdr-follow { display: inline-flex; } }

/* Transparente sobre el hero de la portada */
.site-hdr.is-overlay:not(.is-scrolled):not(.has-open) { background: transparent; color: #fff; border-color: rgba(255,255,255,.14); }
.site-hdr.is-overlay:not(.is-scrolled):not(.has-open) .logo-text span:last-child { color: var(--brand-light); }
.site-hdr.is-overlay:not(.is-scrolled):not(.has-open) .nav-link { color: rgba(255,255,255,.88); }
.site-hdr.is-overlay:not(.is-scrolled):not(.has-open) .nav-link:hover, .site-hdr.is-overlay:not(.is-scrolled):not(.has-open) .nav-link.is-active { color: #fff; }
.site-hdr.is-overlay:not(.is-scrolled):not(.has-open) .icon-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-hdr.is-overlay:not(.is-scrolled):not(.has-open) .lang-switch-pill { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }
.site-hdr.is-overlay:not(.is-scrolled):not(.has-open) .lang-pill:not(.is-active) { color: rgba(255,255,255,.75); }
.site-hdr.is-overlay:not(.is-scrolled):not(.has-open) .mega-toggle { color: rgba(255,255,255,.7); }
body.menu-open .site-hdr { background: var(--ink-950); color: #fff; border-color: rgba(255,255,255,.1); box-shadow: none; transform: none; }
body.menu-open .site-hdr .logo-text span:last-child { color: var(--brand-light); }

/* Navegación de escritorio */
.main-nav { position: relative; display: none; flex: 1; justify-content: center; height: 100%; }
@media (min-width: 1080px) { .main-nav { display: flex; } }
.main-nav-list { position: relative; display: flex; align-items: stretch; height: 100%; margin: 0; padding: 0; list-style: none; }
.nav-item { display: flex; align-items: center; }
.site-hdr .nav-link { padding: .5rem .55rem .5rem .85rem; color: inherit; transition: color .25s; }
.nav-item:not(.has-mega) .nav-link { padding-right: .85rem; }
.site-hdr .nav-link.is-active::after { display: none; }
.site-hdr .nav-link:hover, .site-hdr .nav-link.is-active, .nav-item.is-open .nav-link { color: var(--brand-dark); }
.nav-ink { position: absolute; left: 0; bottom: calc(50% - 22px); width: 1px; height: 2px; background: var(--brand); transform-origin: left; transform: translateX(var(--x, 0)) scaleX(var(--w, 0)); opacity: var(--o, 0); transition: transform .5s var(--ease-out), opacity .25s; pointer-events: none; }
.mega-toggle { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: .3rem; padding: 0; border: 0; background: none; color: var(--text-soft); cursor: pointer; border-radius: 50%; }
.mega-toggle svg { transform: rotate(90deg); transition: transform .4s var(--ease-out); }
.nav-item.is-open .mega-toggle svg { transform: rotate(-90deg); }
.mega-toggle:hover { color: var(--brand-dark); }

/* Menú desplegable (mega menú) */
.mega { position: fixed; left: 0; right: 0; top: var(--hdr-h); z-index: 49; background: #fff; color: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.4); opacity: 0; visibility: hidden; transform: translateY(-10px); clip-path: inset(0 0 100% 0); transition: opacity .3s ease, transform .45s var(--ease-out), clip-path .55s var(--ease-out), visibility 0s linear .55s; }
.nav-item.is-open .mega { opacity: 1; visibility: visible; transform: none; clip-path: inset(0 0 0 0); transition: opacity .25s ease, transform .5s var(--ease-out), clip-path .6s var(--ease-out), visibility 0s; }
.mega-in { max-width: 1240px; margin: 0 auto; padding: 2rem 2rem 2.2rem; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 2.5rem; }
.mega-feature { position: relative; display: block; min-height: 250px; overflow: hidden; background: var(--ink-900); color: #fff; text-decoration: none; }
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transform: scale(1.08); transition: transform 1.2s var(--ease-out), opacity .5s; }
.mega-feature:hover img { transform: scale(1.16); opacity: .45; }
.mega-feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,14,14,.95), rgba(14,14,14,.15) 70%); }
.mega-feature-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: .4rem; padding: 1.4rem; }
.mega-feature .kicker { color: var(--brand-light); }
.mega-feature-title { font-size: 1.7rem; font-weight: 800; line-height: 1; text-transform: uppercase; }
.mega-feature-desc { font-size: 13px; line-height: 1.5; color: #d4d4d4; }
.mega-feature-cta { display: inline-flex; align-items: center; gap: .45rem; margin-top: .4rem; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mega-feature-cta svg { color: var(--brand-light); transition: transform .4s var(--ease-out); }
.mega-feature:hover .mega-feature-cta svg { transform: translateX(5px); }
.mega-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem 1.5rem; align-content: start; }
.mega-cols-1, .mega-cols-2 { grid-template-columns: 1fr 1fr; }
.mega-cols-3 { grid-template-columns: repeat(3, 1fr); }
.mega-list > li { opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .5s var(--ease-out); }
.nav-item.is-open .mega-list > li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 28ms + 80ms); }
.mega-link { display: flex; align-items: flex-start; gap: .8rem; padding: .7rem .75rem; text-decoration: none; color: var(--ink); border-radius: 2px; transition: background-color .2s; }
.mega-link:hover { background: var(--page); }
.mega-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--soft); color: var(--ink); transition: background-color .25s, color .25s, transform .4s var(--ease-out); }
.mega-link:hover .mega-ico { background: var(--brand); color: #fff; transform: rotate(-6deg); }
.mega-txt b { display: block; font-size: 14px; font-weight: 700; line-height: 1.25; }
.mega-txt small { display: block; margin-top: .15rem; font-size: 12.5px; line-height: 1.4; color: var(--text-soft); }
.mega-link:hover .mega-txt b { color: var(--brand-dark); }
.mega-scrim { position: fixed; inset: var(--hdr-h) 0 0 0; z-index: 48; background: rgba(14,14,14,.35); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s linear .35s; }
.mega-scrim.is-on { opacity: 1; visibility: visible; transition: opacity .35s, visibility 0s; }

/* Hamburguesa que se convierte en X */
.burger { position: relative; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; border: 0; background: none; color: inherit; cursor: pointer; }
.burger span { display: block; height: 2px; background: currentColor; transition: transform .5s var(--ease-out), opacity .2s, width .4s var(--ease-out); }
.burger span:nth-child(2) { width: 70%; margin-left: auto; }
.burger:hover span:nth-child(2) { width: 100%; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1080px) { .burger { display: none; } }

/* Menú móvil a pantalla completa */
.mnav { position: fixed; inset: 0; z-index: 45; padding-top: var(--hdr-h); background: var(--ink-950); color: #fff; overflow-y: auto; clip-path: circle(0 at calc(100% - 38px) 33px); transition: clip-path .7s var(--ease-io); }
.mnav::before { content: ''; position: fixed; inset: 0; background-image: var(--grain); opacity: .06; pointer-events: none; }
.mnav.is-open { clip-path: circle(150% at calc(100% - 38px) 33px); }
.mnav[hidden] { display: none; }
.mnav-in { position: relative; max-width: 640px; margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem; min-height: 100%; display: flex; flex-direction: column; }
.mnav-list { list-style: none; margin: 0; padding: 0; }
.mnav-list > li { border-bottom: 1px solid rgba(255,255,255,.1); opacity: 0; transform: translateY(24px); transition: opacity .4s ease, transform .7s var(--ease-out); }
.mnav.is-open .mnav-list > li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 60ms + 200ms); }
.mnav-row { display: flex; align-items: center; }
.mnav-link { flex: 1; display: flex; align-items: baseline; gap: .9rem; padding: 1rem 0; color: #fff; text-decoration: none; font-size: clamp(1.7rem, 1.2rem + 3vw, 2.4rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.05; transition: color .2s, transform .4s var(--ease-out); }
.mnav-link:hover, .mnav-link.is-active { color: var(--brand-light); transform: translateX(6px); }
.mnav-num { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: .9rem; color: var(--brand-light); }
.mnav-more { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: none; color: #fff; cursor: pointer; }
.mnav-more svg { transform: rotate(90deg); transition: transform .4s var(--ease-out); }
.mnav-more[aria-expanded="true"] svg { transform: rotate(-90deg); }
.mnav-sub { list-style: none; margin: 0; padding: 0 0 1rem 2.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1rem; }
.mnav-sub[hidden] { display: none; }
.mnav-sub a { display: block; padding: .45rem 0; font-size: 14.5px; color: #c9c9c9; text-decoration: none; }
.mnav-sub a:hover { color: #fff; }
.mnav-foot { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 1rem; font-size: 14px; color: #a3a3a3; }
.mnav-foot .btn-red { align-self: flex-start; }

/* Barra de progreso de lectura (artículos) */
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; display: none; }
body.is-article .read-progress { display: block; }
.site-hdr.is-hidden .read-progress { bottom: -3px; } /* sigue visible arriba aunque la cabecera se oculte */
.read-progress span { display: block; height: 100%; background: var(--brand); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ================= PORTADA ================= */
/* Hero a pantalla completa */
.hx { position: relative; display: flex; flex-direction: column; min-height: min(100svh, 980px); background: var(--ink-950); color: #fff; overflow: hidden; isolation: isolate; }
.hx-media { position: absolute; inset: 0; z-index: -2; }
.hx-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; filter: contrast(1.06) saturate(.9); transform-origin: 70% 50%; }
/* Zoom de entrada y, al terminar, un vaivén lento sin fin para que la portada nunca quede quieta. */
html.js .hx-media img { animation: kenburns 24s var(--ease-out) both, hx-drift 46s ease-in-out 24s infinite alternate; }
.hx::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,14,14,.94) 0%, rgba(14,14,14,.72) 38%, rgba(14,14,14,.2) 75%, rgba(14,14,14,.35) 100%), linear-gradient(to top, rgba(14,14,14,.85) 0%, rgba(14,14,14,0) 40%), linear-gradient(to bottom, rgba(14,14,14,.6) 0%, rgba(14,14,14,0) 22%); }
.hx::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .07; mix-blend-mode: overlay; pointer-events: none; }
/* Vídeo de portada: entra con un fundido sobre la foto fija cuando ya se reproduce. Tono algo más cálido y viñeta. */
.hx-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; opacity: 0; filter: contrast(1.08) saturate(1.06) sepia(.08) brightness(.95); transition: opacity 1.6s ease; pointer-events: none; }
.hx-video.is-playing { opacity: 1; }
.hx-media:has(.hx-video)::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 85% 75% at 62% 45%, transparent 50%, rgba(0,0,0,.55) 100%); pointer-events: none; }
.hx-in { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: calc(var(--hdr-h) + 9vh) 1rem 3.5rem; display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: 2.5rem; }
@media (min-width: 640px) { .hx-in { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .hx-in { padding-inline: 2rem; grid-template-columns: minmax(0, 1fr) 320px; } }
.hx-kicker { display: flex; align-items: center; gap: .9rem; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #fff; }
.hx-line { width: 44px; height: 2px; background: var(--brand); }
.hx-title { margin-top: 1.4rem; font-size: clamp(2.5rem, 1rem + 4.6vw, 4.7rem); font-weight: 800; line-height: .96; letter-spacing: -.03em; text-transform: uppercase; }
.hx-row { display: block; overflow: hidden; padding-bottom: .06em; }
.hx-row > span { display: inline-block; }
.hx-title .serif { color: var(--brand-light); font-size: 1.04em; letter-spacing: -.035em; }
.hx-lead { margin-top: 1.6rem; max-width: 34rem; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.65; color: #d4d4d4; }
.hx-ctas { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
/* Sello de confianza bajo los botones */
.hx-trust { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.82); }
.hx-trust-ico { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; }
.hx-trust a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--brand-light); text-underline-offset: 3px; transition: color .25s; }
.hx-trust a:hover { color: var(--brand-light); }
.hx-card { display: flex; flex-direction: column; gap: .55rem; padding: 1.4rem 1.5rem; color: #fff; text-decoration: none; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-top: 3px solid var(--brand); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: transform .6s var(--ease-out), background-color .3s, border-color .3s; }
.hx-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.12); }
.hx-card-k { display: inline-flex; align-items: center; gap: .5rem; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-light); }
.hx-card-word { font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3rem); line-height: 1; letter-spacing: -.02em; color: #fff; }
.hx-card-word::first-letter { color: var(--brand-light); }
.hx-card-t { font-size: 1.15rem; font-weight: 800; line-height: 1.25; }
.hx-card-more { display: inline-flex; align-items: center; gap: .4rem; margin-top: .3rem; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hx-card-more svg { transition: transform .45s var(--ease-out); }
.hx-card:hover .hx-card-more svg { transform: translateX(5px); }
@media (max-width: 1023px) { .hx-card { max-width: 420px; } }
.hx-bar { position: relative; background: var(--brand); }
.hx-bar-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .hx-bar-in { grid-template-columns: repeat(3, 1fr) auto; } }
.hx-bar-item { display: flex; align-items: center; gap: .9rem; padding: 1.15rem 1.5rem; color: #fff; text-align: left; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; transition: background-color .3s; }
.hx-bar-item + .hx-bar-item { border-top: 1px solid rgba(255,255,255,.25); }
@media (min-width: 768px) { .hx-bar-item + .hx-bar-item { border-top: 0; border-left: 1px solid rgba(255,255,255,.25); } }
.hx-bar-item:hover { background: rgba(0,0,0,.14); }
.hx-bar-item > svg { flex: none; transition: transform .5s var(--ease-out); }
.hx-bar-item:hover > svg { transform: scale(1.15) rotate(-6deg); }
.hx-bar-item span { font-size: 13.5px; line-height: 1.35; color: rgba(255,255,255,.88); }
.hx-bar-item strong { display: block; font-size: 15px; font-weight: 700; color: #fff; }
.hx-bar-item kbd { display: inline-block; margin-left: .3rem; padding: 0 .4rem; border: 1px solid rgba(255,255,255,.5); font: 700 11px/1.5 inherit; }
.hx-scroll { display: none; align-items: center; justify-content: center; width: 78px; border-left: 1px solid rgba(255,255,255,.25); }
@media (min-width: 768px) { .hx-scroll { display: flex; } }
.hx-scroll span { position: relative; width: 22px; height: 34px; border: 2px solid #fff; border-radius: 12px; }
.hx-scroll span::after { content: ''; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: scrollcue 1.8s var(--ease-io) infinite; }

/* Animación de entrada del hero */
html.js [data-anim] { animation: fadeup 1s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 110ms + 200ms); }
html.js .hx-row > [data-anim] { animation-name: lineup; animation-duration: 1.15s; }
html.js .hx-line { animation: growx 1s var(--ease-out) .25s both; transform-origin: left; }

/* Cinta de temas en movimiento */
.marquee { overflow: hidden; background: var(--ink-950); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.marquee-track { display: flex; align-items: center; gap: 2.2rem; width: max-content; padding: 1.3rem 0; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-wrap { position: relative; }
/* Botón de pausa (cinta y paneles): el icono cambia con aria-pressed */
.pause-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: background-color .25s, color .25s, border-color .25s; }
.pause-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.pause-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pause-btn .i-play, .pause-btn[aria-pressed="true"] .i-pause { display: none; }
.pause-btn[aria-pressed="true"] .i-play { display: block; }
.pause-btn-dark { position: absolute; z-index: 2; right: 1rem; top: 50%; transform: translateY(-50%); background: rgba(14,14,14,.85); border-color: rgba(255,255,255,.3); color: #fff; }
.pause-btn-dark:hover { background: var(--brand); border-color: var(--brand); }
.panels-ctl { display: none; }
@media (min-width: 900px) { .panels-ctl { display: flex; justify-content: flex-end; margin-top: .9rem; } }
@media (prefers-reduced-motion: reduce) { .pause-btn-dark, .panels-ctl { display: none; } }
.marquee span { font-size: clamp(1.3rem, 1rem + 1.4vw, 2.2rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.7); }
.marquee i { font-style: normal; color: var(--brand-light); font-size: 1.1rem; }

/* Lo último: mosaico editorial */
.bento { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bento { grid-template-columns: 1fr 1fr; } .bento-big { grid-column: span 2; } }
@media (min-width: 1024px) { .bento { grid-template-columns: 1.5fr 1fr 1fr; } .bento-big { grid-column: auto; grid-row: span 2; } }
/* Las fotos llevan texto incrustado: se muestran completas en 16:9, sin recorte ni zoom. */
.bento-big { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--ink-900); color: #fff; text-decoration: none; }
.bento-media { display: block; overflow: hidden; aspect-ratio: 16 / 9; }
.bento-big img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.bento-big:hover img { transform: scale(1.06); }
.bento-body { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .7rem; padding: clamp(1.4rem, 1rem + 1.5vw, 2.4rem); border-top: 3px solid var(--brand); }
.bento-big .bento-title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); font-weight: 800; line-height: 1.1; letter-spacing: -.015em; max-width: 30rem; }
.bento-desc { max-width: 32rem; font-size: 15px; line-height: 1.6; color: #d4d4d4; }
.bento-tag { display: inline-block; padding: .3rem .65rem; background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.bento-meta { display: inline-flex; align-items: center; gap: .35rem; font-size: 12px; font-weight: 600; color: var(--text-soft); }
.bento-big .bento-meta { color: #bdbdbd; }
.bento-sm { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; color: var(--ink); text-decoration: none; }
.bento-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--thumb); margin-bottom: .3rem; }
.bento-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.bento-thumb::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.bento-sm:hover .bento-thumb img { transform: scale(1.07); }
.bento-sm:hover .bento-thumb::after { transform: scaleX(1); }
.bento-sm .bento-title { font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.bento-sm .bento-tag { background: none; color: var(--brand-dark); padding: 0; }
.bento-title { background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .6s var(--ease-out); }
.bento-big:hover .bento-title, .bento-sm:hover .bento-title { background-size: 100% 2px; }

/* Descubre Cuba: mapa interactivo (ver js/mapa.js). Sin JS se ve el SVG como imagen y los puntos quietos. */
.dmap-map { margin: 0; }
.dmap-canvas { position: relative; aspect-ratio: 1740 / 600; }
.dmap-canvas::before { content: ''; position: absolute; inset: -4% -2%; z-index: -1; background-image: radial-gradient(rgba(17,17,17,.12) 1px, transparent 1.2px); background-size: 16px 16px; -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 40%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 50%, #000 40%, transparent 75%); pointer-events: none; }
.dmap-fallback, .dmap-canvas .cmap-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dmap .cmap-svg .land { fill: var(--ink-900); fill-opacity: 1; stroke: var(--brand); stroke-width: 1.6; stroke-opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.dmap .cmap-svg .border { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 1; vector-effect: non-scaling-stroke; }
/* Antes de entrar en pantalla: solo el contorno, sin dibujar. Al entrar (.is-drawn) el trazo recorre la isla y luego se rellena. */
html.js .dmap.is-ready:not(.is-drawn) .cmap-svg .land { fill-opacity: 0; stroke-opacity: 1; stroke-dashoffset: 1; }
html.js .dmap.is-ready:not(.is-drawn) .cmap-svg .border { opacity: 0; }
html.js .dmap .cmap-svg .land { transition: stroke-dashoffset 2.6s var(--ease-io), fill-opacity 1.1s ease 1.7s, stroke-opacity 1s ease 2.3s; }
html.js .dmap .cmap-svg .border { transition: opacity 1s ease 2.2s; }

.dmap-pins { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.dmap-pin { position: absolute; left: var(--x); top: var(--y); z-index: 1; transform: translate(-50%, -50%); transition: opacity .5s ease, transform .7s var(--ease-out); transition-delay: calc(2.4s + var(--d, 0) * 110ms); }
html.js .dmap:not(.is-drawn) .dmap-pin { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
.dmap-pin:hover, .dmap-pin:focus-within { z-index: 5; }
.dmap-pin a { position: relative; display: block; width: 26px; height: 26px; text-decoration: none; }
.dmap-pin i { position: absolute; inset: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(0,0,0,.35); transition: transform .35s var(--ease-out); }
.dmap-pin i::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--brand); animation: pin-pulse 2.6s ease-out infinite; animation-delay: calc(var(--d, 0) * .35s); }
.dmap-pin a:hover i, .dmap-pin a:focus-visible i { transform: scale(1.3); }
.dmap-pin a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 50%; }
@keyframes pin-pulse { from { transform: scale(.55); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.dmap-tip { position: absolute; left: 50%; bottom: calc(100% + 10px); width: 240px; display: flex; flex-direction: column; gap: .3rem; padding: .85rem .95rem .8rem; background: #fff; color: var(--ink); border-top: 3px solid var(--brand); box-shadow: 0 18px 40px -12px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .25s ease, transform .4s var(--ease-out); }
.dmap-pin.is-left .dmap-tip { left: -6px; transform: translate(0, 8px); }
.dmap-pin.is-right .dmap-tip { left: auto; right: -6px; transform: translate(0, 8px); }
.dmap-tip b { font-size: 15px; font-weight: 800; line-height: 1.2; }
.dmap-tip > span { font-size: 13px; line-height: 1.45; color: var(--text-soft); }
.dmap-tip em { display: inline-flex; align-items: center; gap: .35rem; margin-top: .2rem; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-dark); }
.dmap-pin a:hover .dmap-tip, .dmap-pin a:focus-visible .dmap-tip { opacity: 1; transform: translate(-50%, 0); }
.dmap-pin.is-left a:hover .dmap-tip, .dmap-pin.is-left a:focus-visible .dmap-tip, .dmap-pin.is-right a:hover .dmap-tip, .dmap-pin.is-right a:focus-visible .dmap-tip { transform: none; }
.dmap-credit { margin-top: .6rem; text-align: right; font-size: 11px; color: var(--text-soft); }
.dmap-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 639px) {
  .dmap-pin a { width: 18px; height: 18px; }
  .dmap-pin i { inset: 4px; box-shadow: 0 0 0 2px #fff; }
  .dmap-tip { display: none; } /* en el móvil el punto lleva directo a su página */
}

/* Categorías bajo el mapa */
.dmap-cats { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr; column-gap: 2.2rem; border-top: 2px solid var(--ink); }
@media (min-width: 640px) { .dmap-cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dmap-cats { grid-template-columns: repeat(3, 1fr); } }
.dmap-cat { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: .95rem .2rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.dmap-cat-ico { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; color: var(--brand-dark); transition: background-color .3s, border-color .3s, color .3s, transform .45s var(--ease-out); }
.dmap-cat-txt { display: flex; flex-direction: column; min-width: 0; }
.dmap-cat-txt b { font-size: 15px; font-weight: 800; transition: color .25s; }
.dmap-cat-txt span { font-size: 13px; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dmap-cat-n { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: #b5b5b5; transition: color .25s; }
.dmap-cat:hover .dmap-cat-ico, .dmap-cat:focus-visible .dmap-cat-ico { background: var(--brand); border-color: var(--brand); color: #fff; transform: rotate(-8deg); }
.dmap-cat:hover b, .dmap-cat:focus-visible b { color: var(--brand-dark); }
.dmap-cat:hover .dmap-cat-n { color: var(--brand); }
.dmap-cat-soon { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #b5b5b5; }
.dmap-cats-all { display: flex; }
@media (min-width: 1024px) { .dmap-cats-all { grid-column: span 2; } }
.dmap-all { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; width: 100%; padding: .95rem .2rem; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none; transition: color .25s; }
.dmap-all svg { transition: transform .45s var(--ease-out); }
.dmap-all:hover, .dmap-all:focus-visible { color: var(--brand-dark); }
.dmap-all:hover svg { transform: translateX(5px); }
.dmap-cat:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .dmap-pin i::after { animation: none; } }

/* Efeméride: almanaque de taco sobre la foto del escritorio (en paralaje y oscurecida) */
.efx { display: grid; grid-template-columns: 1fr; background: #111; }
@media (min-width: 768px) { .efx { grid-template-columns: 1fr 1fr; min-height: min(52vw, 760px); } }
.efx-media { position: relative; min-height: 480px; overflow: hidden; background: #2a2a2a; }
.efx-media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; transform: translate3d(0, var(--py, 0), 0); }
.efx-media::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(17,17,17,.35) 0%, rgba(17,17,17,.82) 70%), linear-gradient(to right, rgba(17,17,17,0) 60%, #111 100%); }

.alm { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: clamp(.75rem, 2vw, 2rem); padding: 2.5rem 1rem; }
.alm-pad { position: relative; width: clamp(210px, 24vw, 330px); aspect-ratio: 4 / 5; margin-top: 18px; perspective: 1600px; }
.alm-bind { position: absolute; z-index: 30; left: -4%; right: -4%; top: -18px; height: 22px; background: linear-gradient(#2b2b2b, #161616); border-radius: 3px 3px 0 0; box-shadow: 0 2px 0 rgba(0,0,0,.4); }
.alm-bind i { position: absolute; top: -12px; width: 14px; height: 26px; border: 3px solid #b9b9b9; border-bottom-color: transparent; border-radius: 8px 8px 0 0; }
.alm-bind i:first-child { left: 26%; } .alm-bind i:last-child { right: 26%; }
.alm-stack { position: absolute; inset: 0; box-shadow: 0 3px 0 #e4dac3, 0 6px 0 #d6cab0, 0 9px 0 #c6b998, 0 12px 0 #b5a886, 0 40px 60px rgba(0,0,0,.6); }
.alm-sheet { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; color: #161616; background: #f5eedd; background-image: radial-gradient(rgba(120,90,40,.07) 1px, transparent 1px), linear-gradient(170deg, #faf5ea 0%, #efe5cf 100%); background-size: 6px 6px, 100% 100%; transform-origin: 50% 0; backface-visibility: hidden; will-change: transform; }
.alm-month { padding: .8rem 1rem; background: var(--brand); color: #fff; text-align: center; font-size: clamp(12px, .7rem + .3vw, 15px); font-weight: 800; letter-spacing: .3em; text-transform: uppercase; }
.alm-day { flex: 1; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: clamp(7rem, 3rem + 8vw, 11.5rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; font-variant-numeric: lining-nums; }
.alm-foot { margin: 0 1.2rem; padding: .75rem 0 .95rem; border-top: 1px dashed rgba(0,0,0,.25); text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: #7a6f5c; }
.alm-sheet.is-torn { animation: alm-tear .75s cubic-bezier(.5, 0, .75, .35) forwards; }
.alm-sheet.is-drop { animation: alm-drop .6s var(--ease-out) both; }
@keyframes alm-tear {
  0% { transform: none; opacity: 1; }
  22% { transform: rotateX(-24deg) rotateZ(-3deg); opacity: 1; }
  100% { transform: translate3d(18%, 115%, 0) rotateX(-10deg) rotateZ(24deg); opacity: 0; }
}
@keyframes alm-drop {
  from { transform: translate3d(0, -14%, 0) rotateX(-30deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.alm-nav { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: #fff; background: rgba(17,17,17,.45); backdrop-filter: blur(4px); transition: background-color .25s, border-color .25s, transform .35s var(--ease-out); }
.alm-nav:hover { background: var(--brand); border-color: var(--brand); transform: scale(1.08); }
.alm-nav:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.alm-nav:disabled { opacity: .4; cursor: default; transform: none; }
.efx-year { margin-top: .9rem; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(3.6rem, 2.2rem + 4vw, 6.5rem); line-height: .9; letter-spacing: -.03em; color: var(--brand); font-variant-numeric: tabular-nums lining-nums; }
.efx [data-alm-swap] { transition: opacity .35s ease, transform .45s var(--ease-out); }
.efx.is-swapping [data-alm-swap] { opacity: 0; transform: translateY(10px); }
@media (prefers-reduced-motion: reduce) { .alm-sheet.is-torn, .alm-sheet.is-drop { animation: none; } .efx [data-alm-swap] { transition: none; } }
.efx-copy { position: relative; display: flex; align-items: center; padding: 3.5rem 1.5rem; overflow: hidden; color: #fff; }
@media (min-width: 640px) { .efx-copy { padding: 4rem 3rem; } }
@media (min-width: 1280px) { .efx-copy { padding: 4rem 6rem; } }
.efx-copy > div { position: relative; }
.efx .date-badge { margin-top: 1.2rem; }
.efx-title { margin-top: 1rem; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 800; line-height: 1.1; text-transform: uppercase; letter-spacing: -.01em; }
.efx-desc { margin-top: 1rem; max-width: 34rem; font-size: 15.5px; line-height: 1.75; color: #cfcfcf; }


/* Cultura: paneles con foto. Móvil: carrusel deslizable. Escritorio: se expanden, rotan solos
   con barra de progreso y una «linterna» pinta a color la foto bajo el cursor (ver js/paneles.js). */
.panels { list-style: none; margin: 0 -1rem; padding: 0 1rem; display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 1rem; scrollbar-width: none; overscroll-behavior-x: contain; }
.panels::-webkit-scrollbar { display: none; }
.panel { position: relative; flex: 0 0 84%; min-height: 470px; scroll-snap-align: start; }
.panel-in { position: absolute; inset: 0; overflow: hidden; background: var(--ink-900); color: #fff; }
.panel-in::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(14,14,14,.96) 0%, rgba(14,14,14,.55) 55%, rgba(14,14,14,.15) 100%); }
.panel-media { position: absolute; inset: 0; transform: scale(1.12); transition: transform 1.4s var(--ease-out); }
.panel-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .8s ease; }
/* Fotos a color mostradas en blanco y negro: la linterna (misma foto sin filtro, recortada en un círculo)
   revela el color bajo el cursor. */
.panel-lamp { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; filter: contrast(1.05) saturate(1.1); opacity: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle var(--lr, 230px) at var(--mx, 50%) var(--my, 50%), #000 30%, transparent 100%);
  mask-image: radial-gradient(circle var(--lr, 230px) at var(--mx, 50%) var(--my, 50%), #000 30%, transparent 100%);
  transition: opacity .6s ease; }
.panel-cover { position: absolute; inset: 0; z-index: 1; }
.panel-cover:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
.panel-body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1.4rem; pointer-events: none; }
.panel-body a { pointer-events: auto; }
.panel-num { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--brand-light); }
.panel-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--brand); color: #fff; }
.panel-title { font-size: 1.35rem; font-weight: 800; line-height: 1.05; text-transform: uppercase; }
.panel-vt { display: none; }
.panel-desc { max-width: 26rem; font-size: 13.5px; line-height: 1.55; color: #d4d4d4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.panel-count { margin-top: .3rem; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-light); }
.panel-list { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 26rem; border-top: 1px solid rgba(255,255,255,.18); }
.panel-list li { border-bottom: 1px solid rgba(255,255,255,.12); }
.panel-list a { display: block; padding: .5rem 0; font-size: 14px; font-weight: 600; line-height: 1.35; color: #fff; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .25s, transform .4s var(--ease-out); }
.panel-list a:hover, .panel-list a:focus-visible { color: var(--brand-light); transform: translateX(.4rem); }
.panel-more { display: inline-flex; align-items: center; gap: .4rem; margin-top: .3rem; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #fff; text-decoration: none; }
.panel-more svg { transition: transform .45s var(--ease-out); }
.panel-more:hover { color: var(--brand-light); }
.panel-more:hover svg { transform: translateX(4px); }
.panel-bar { position: absolute; z-index: 3; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.panel-dots { display: flex; justify-content: center; gap: .45rem; margin-top: 1.1rem; }
.panel-dots span { width: 7px; height: 7px; border-radius: 4px; background: #d4d4d4; transition: width .4s var(--ease-out), background-color .3s; }
.panel-dots span.is-on { width: 22px; background: var(--brand); }
@keyframes panel-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 899px) {
  /* En el carrusel, la tarjeta a la vista se ve a color. */
  .panel.is-active .panel-media img { filter: grayscale(0) contrast(1.05); }
}

@media (min-width: 900px) {
  .panels { margin: 0; padding: 0; overflow: visible; scroll-snap-type: none; height: 540px; }
  .panel { flex: 1 1 0; min-width: 0; min-height: 0; transition: flex-grow .9s var(--ease-out); }
  .panel-dots { display: none; }
  /* Abierto: el activo (si nadie toca) o el que tiene el ratón o el foco. */
  .panels:not(:hover):not(:focus-within) .panel.is-active, .panel:hover, .panel:focus-within { flex-grow: 3.4; }
  .panel-body { width: 30rem; opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .7s var(--ease-out); }
  .panel-title { font-size: 1.9rem; }
  .panel-vt { position: absolute; z-index: 1; left: 50%; bottom: 1.6rem; display: flex; align-items: center; gap: .8rem; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); font-size: 1rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; pointer-events: none; transition: opacity .3s; }
  .panel-vt i { font-family: var(--serif); font-weight: 400; color: var(--brand-light); letter-spacing: 0; }
  .panels:not(:hover):not(:focus-within) .panel.is-active .panel-body, .panel:hover .panel-body, .panel:focus-within .panel-body { opacity: 1; transform: none; transition-delay: .3s; }
  .panels:not(:hover):not(:focus-within) .panel.is-active .panel-vt, .panel:hover .panel-vt, .panel:focus-within .panel-vt { opacity: 0; }
  .panels:not(:hover):not(:focus-within) .panel.is-active .panel-media, .panel:hover .panel-media, .panel:focus-within .panel-media { transform: scale(1.02); }
  /* Color: el activo se ve a color; con el ratón encima queda en blanco y negro y la linterna lo pinta. */
  .panels:not(:hover):not(:focus-within) .panel.is-active .panel-media img, .panel:focus-within:not(:hover) .panel-media img { filter: grayscale(0) contrast(1.05); }
  .panel:hover .panel-lamp { opacity: 1; }
  /* Los titulares entran escalonados al abrirse. */
  .panel-list li, .panel-count, .panel-more { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .55s var(--ease-out); }
  .panels:not(:hover):not(:focus-within) .panel.is-active :is(.panel-list li, .panel-count, .panel-more),
  .panel:hover :is(.panel-list li, .panel-count, .panel-more),
  .panel:focus-within :is(.panel-list li, .panel-count, .panel-more) { opacity: 1; transform: none; }
  .panel-count { transition-delay: .4s; }
  .panel-list li:nth-child(1) { transition-delay: .5s; }
  .panel-list li:nth-child(2) { transition-delay: .6s; }
  .panel-list li:nth-child(3) { transition-delay: .7s; }
  .panel-more { transition-delay: .8s; }
  /* Rotación automática: la barra se llena y, al terminar, js/paneles.js abre el siguiente. */
  .panels.is-auto:not(.is-paused):not(:hover):not(:focus-within) .panel.is-active .panel-bar { animation: panel-progress var(--panel-ms, 6s) linear forwards; }
}
@media (prefers-reduced-motion: reduce) { .panel-bar { display: none; } }

/* Blog «Desde la redacción»: título a máquina + lista editorial con foto flotante (ver js/redaccion.js) */
.tw-c { position: relative; }
html.js .news .tw-c { opacity: 0; }
html.js .news .tw-c.on { opacity: 1; }
.tw-c.is-last::after { content: ''; position: absolute; right: -.1em; top: .06em; bottom: .04em; width: .07em; background: var(--brand); animation: tw-blink .85s steps(1) infinite; }
.tw.is-done .tw-c.is-last::after { animation: tw-blink .85s steps(1) 4 forwards; }
@keyframes tw-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.news-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); counter-reset: none; }
.news-item { border-bottom: 1px solid var(--line); }
html.js .news .news-item { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .8s var(--ease-out); transition-delay: calc(.5s + var(--d, 0) * 160ms); }
html.js .news.is-typed .news-item { opacity: 1; transform: none; }
.news-link { position: relative; display: grid; grid-template-columns: 96px 1fr; grid-template-areas: "thumb main"; gap: 1rem; align-items: center; padding: 1.25rem 0; color: var(--ink); text-decoration: none; }
.news-num, .news-go { display: none; }
.news-thumb { grid-area: thumb; display: block; aspect-ratio: 1; overflow: hidden; background: var(--thumb); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.news-main { grid-area: main; display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.news-kicker { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-dark); }
.news-title { font-size: 1.1rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: color .3s, background-size .6s var(--ease-out); }
.news-desc { max-width: 36rem; font-size: 15px; line-height: 1.6; color: var(--text-soft); }
.news-meta { font-size: 12.5px; color: var(--text-soft); }
.news-link:hover .news-title, .news-link:focus-visible .news-title { color: var(--brand-dark); background-size: 100% 2px; }
.news-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
/* Destacado (01): en móvil, foto ancha arriba. */
.news-item.is-lead .news-link { grid-template-columns: 1fr; grid-template-areas: "thumb" "main"; }
.news-item.is-lead .news-thumb { aspect-ratio: 16 / 9; }
.news-item.is-lead .news-title { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); line-height: 1.12; }
.news-read { display: inline-flex; align-items: center; gap: .45rem; margin-top: .55rem; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.news-read svg { transition: transform .45s var(--ease-out); }
.news-link:hover .news-read { color: var(--brand-dark); }
.news-link:hover .news-read svg { transform: translateX(5px); }
.news-float { display: none; }

@media (min-width: 900px) {
  .news-link { grid-template-columns: 5rem 150px minmax(0, 1fr) 3rem; grid-template-areas: "num thumb main go"; gap: 1.5rem; padding: 1.5rem 0; }
  .news-num { grid-area: num; display: block; font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: #c9c9c9; transition: color .35s; }
  .news-go { grid-area: go; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); transition: background-color .3s, border-color .3s, color .3s, transform .45s var(--ease-out); }
  /* Miniatura en blanco y negro que pasa a color al pasar el ratón (además de la foto flotante). */
  .news-thumb { aspect-ratio: 3 / 2; }
  .news-thumb img { filter: grayscale(1) contrast(1.05); transition: filter .6s ease, transform 1.1s var(--ease-out); }
  .news-link:hover .news-thumb img { filter: grayscale(0) contrast(1.05); transform: scale(1.06); }
  .news-main { transition: transform .55s var(--ease-out); }
  .news-title { font-size: clamp(1.25rem, .9rem + 1vw, 1.75rem); }
  .news-link:hover .news-num { color: var(--brand); }
  .news-link:hover .news-main { transform: translateX(.7rem); }
  .news-link:hover .news-go { background: var(--brand); border-color: var(--brand); color: #fff; transform: rotate(-45deg); }
  /* Destacado: número, texto y foto grande a la derecha. */
  .news-item.is-lead .news-link { grid-template-columns: 5rem minmax(0, .85fr) minmax(0, 1.15fr); grid-template-areas: "num main thumb"; align-items: center; gap: 2rem; padding: 2rem 0; }
  .news-item.is-lead .news-thumb { aspect-ratio: 16 / 9; }
  .news-item.is-lead .news-thumb img { filter: none; }
  .news-item.is-lead .news-thumb { display: block; }
  .news-item.is-lead .news-go { display: none; }
  .news-item.is-lead .news-num { color: var(--brand); }
  .news-item.is-lead .news-link:hover .news-thumb img { transform: scale(1.05); }
  /* Foto que sigue al cursor. */
  .news-float { position: fixed; z-index: 40; left: 0; top: 0; display: block; width: 300px; aspect-ratio: 4 / 3; overflow: hidden; pointer-events: none; opacity: 0; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); transform: translate3d(var(--fx, -999px), var(--fy, -999px), 0) rotate(var(--fr, 0deg)) scale(var(--fs, .85)); transition: opacity .35s ease; }
  .news-float.is-on { opacity: 1; }
  .news-float img { width: 100%; height: 100%; object-fit: cover; }
}
@media (prefers-reduced-motion: reduce) {
  .tw-c.is-last::after { display: none; }
  .news-link:hover .news-main { transform: none; }
}

/* Historia: línea del tiempo. Por defecto, carrusel deslizable (móvil, sin JS o sin animaciones).
   En escritorio js/historia.js añade .is-pinned: la sección se queda fija y las épocas avanzan en horizontal. */
.htl { --gut: 1rem; position: relative; background: var(--ink-900); color: #fff; isolation: isolate; }
@media (min-width: 640px) { .htl { --gut: 1.5rem; } }
@media (min-width: 1024px) { .htl { --gut: 2rem; } }
.htl::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .05; pointer-events: none; }
.htl-pin { padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0 3rem; overflow: hidden; }
.htl-track { list-style: none; margin: 0; display: flex; gap: 1.25rem; padding: .25rem max(var(--gut), calc((100% - 1240px) / 2 + var(--gut))) 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gut), calc((100% - 1240px) / 2 + var(--gut))); scrollbar-width: none; overscroll-behavior-x: contain; }
.htl-track::-webkit-scrollbar { display: none; }
.htl-item { flex: 0 0 min(84vw, 380px); scroll-snap-align: start; transition: opacity .6s ease; }
.htl-card { display: flex; flex-direction: column; height: 100%; border: 1px solid rgba(255,255,255,.14); border-top: 3px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); color: #fff; text-decoration: none; transition: border-color .4s, background-color .4s; }
.htl-item.is-active .htl-card { border-top-color: var(--brand); }
.htl-card:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); }
.htl-card:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 3px; }
.htl-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #232323; }
.htl-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(1.06); transition: filter .9s ease, transform 1.4s var(--ease-out); }
.htl-item.is-active .htl-media img, .htl-card:hover .htl-media img { filter: grayscale(0) contrast(1.05); transform: scale(1); }
.htl-media-year { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.4); background: radial-gradient(circle at 50% 40%, rgba(224,50,36,.18), transparent 70%); }
.htl-item.is-active .htl-media-year { -webkit-text-stroke-color: var(--brand-light); }
.htl-body { display: flex; flex-direction: column; flex: 1; gap: .45rem; padding: 1.3rem 1.3rem 1.2rem; }
.htl-num { font-size: 2.6rem; font-weight: 900; line-height: .9; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.45); }
.htl-item.is-active .htl-num { -webkit-text-stroke-color: #fff; }
.htl-year { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--brand-light); }
.htl-title { font-size: 1.35rem; font-weight: 800; line-height: 1.1; text-transform: uppercase; }
.htl-desc { font-size: 14px; line-height: 1.6; color: #b5b5b5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.htl-foot { margin-top: auto; padding-top: .9rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.12); }
.htl-count { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #9a9a9a; }
.htl-go { display: inline-flex; align-items: center; gap: .4rem; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.htl-go svg { transition: transform .45s var(--ease-out); }
.htl-card:hover .htl-go { color: var(--brand-light); }
.htl-card:hover .htl-go svg { transform: translateX(4px); }
.htl-item.is-special .htl-num { -webkit-text-stroke-color: var(--brand-light); }

/* Riel con las épocas: muestra el avance y permite saltar a cada una */
.htl-nav { position: relative; margin-top: 1.2rem; }
.htl-rail { position: absolute; top: 6px; left: calc(var(--gut) + (100% - 2 * var(--gut)) / 12); right: calc(var(--gut) + (100% - 2 * var(--gut)) / 12); height: 2px; background: rgba(255,255,255,.15); }
.htl-fill { position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.htl-ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.htl-tick { display: flex; flex-direction: column; align-items: center; gap: .6rem; width: 100%; padding: 0 .25rem; color: #8a8a8a; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-align: center; transition: color .3s; }
.htl-tick i { position: relative; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); background: var(--ink-900); transition: background-color .3s, border-color .3s, transform .4s var(--ease-out); }
.htl-tick:hover, .htl-tick.is-on { color: #fff; }
.htl-tick.is-on i { background: var(--brand); border-color: var(--brand); transform: scale(1.25); }
.htl-tick:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 4px; }
@media (max-width: 639px) { .htl-tick span { display: none; } }

/* Escritorio con animaciones: sección fija y avance horizontal con el scroll */
@media (min-width: 1024px) {
  .htl.is-pinned .htl-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 0; }
  .htl.is-pinned .htl-head .sec-head { margin-bottom: clamp(1.2rem, 4vh, 2.6rem); }
  .htl.is-pinned .htl-track { overflow: visible; scroll-snap-type: none; width: max-content; padding-bottom: 0; transform: translate3d(var(--tx, 0px), 0, 0); will-change: transform; }
  .htl.is-pinned .htl-item { flex-basis: min(62vw, 780px); opacity: .4; }
  .htl.is-pinned .htl-item.is-active { opacity: 1; }
  .htl.is-pinned .htl-card { flex-direction: row; height: min(48vh, 420px); }
  .htl.is-pinned .htl-media { flex: 0 0 44%; aspect-ratio: auto; }
  .htl.is-pinned .htl-body { padding: 1.8rem 2rem 1.6rem; gap: .55rem; }
  .htl.is-pinned .htl-num { font-size: 3.4rem; }
  .htl.is-pinned .htl-year { font-size: 1.6rem; }
  .htl.is-pinned .htl-title { font-size: 1.8rem; }
  .htl.is-pinned .htl-nav { margin-top: clamp(1.4rem, 5vh, 3rem); }
}
@media (prefers-reduced-motion: reduce) { .htl-media img { transition: none; } }

/* ================= TODAS LAS PÁGINAS ================= */
/* Aparición al hacer scroll (solo con JS; sin JS todo se ve) */
html.js [data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
html.js [data-reveal="img"] { opacity: 1; transform: none; }
html.js [data-reveal="img"] img { clip-path: inset(100% 0 0 0); transform: scale(1.25); transition: clip-path 1.3s var(--ease-io), transform 1.6s var(--ease-out); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
html.js [data-reveal="img"].is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }

/* Tarjetas: zoom de imagen al pasar el ratón */
.blog-card-thumb img, .post-thumb img, .feat-img img { transition: transform 1.1s var(--ease-out); }
.blog-card:hover .blog-card-thumb img, .feat-post:hover .feat-img img, .post-card:hover .post-thumb img { transform: scale(1.06); }
.blog-card-more svg, .link-arrow svg, .link-cta svg { transition: transform .45s var(--ease-out); }
.blog-card:hover .blog-card-more svg, .link-arrow:hover svg, .link-cta:hover svg { transform: translateX(4px); }
html.js .sec-hero .hero-photo img { animation: kenburns-sec 20s var(--ease-out) both; }

/* Artículos: letra capital y citas con tipografía editorial */
.is-article .prose-cd > p:first-of-type::first-letter { float: left; margin: .08em .12em 0 0; font-family: var(--serif); font-style: italic; font-size: 4.4em; line-height: .78; color: var(--brand-dark); }
.prose-cd blockquote { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.6; }
.prose-cd a { transition: color .2s, text-decoration-color .2s; }
.prose-cd a:hover { text-decoration-color: var(--brand); color: var(--ink); }

/* Pie de página: marca más presente */
footer.bg-ink-950 { position: relative; border-top: 3px solid var(--brand); }
/* Marca gigante al pie: las dos palabras suben desde abajo al llegar al final de la página */
.foot-mark { max-width: 1240px; margin: 0 auto; padding: 0 1rem .2rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .25em; font-size: clamp(3rem, 12vw, 10.5rem); line-height: .95; white-space: nowrap; user-select: none; }
@media (min-width: 640px) { .foot-mark { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .foot-mark { padding-inline: 2rem; } }
.foot-mark > span { display: inline-block; overflow: hidden; padding-bottom: .06em; }
.foot-mark b { display: inline-block; font-weight: 900; text-transform: uppercase; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.28); transition: transform 1.2s var(--ease-out); }
.foot-mark em { display: inline-block; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.03em; color: var(--brand); transition: transform 1.2s var(--ease-out) .15s; }
html.js .foot-mark[data-reveal] { opacity: 1; transform: none; }
html.js .foot-mark[data-reveal]:not(.is-in) b, html.js .foot-mark[data-reveal]:not(.is-in) em { transform: translate3d(0, 105%, 0); }
.foot-list a { display: inline-block; transition: color .2s, transform .35s var(--ease-out); }
.foot-list a:hover { text-decoration: none; transform: translateX(6px); }

/* Botón «volver arriba» con anillo de progreso */
.to-top { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40; display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9); transition: opacity .35s, transform .5s var(--ease-out), visibility 0s linear .5s, background-color .2s; }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .5s var(--ease-out), visibility 0s, background-color .2s; }
.to-top:hover { background: var(--brand); }
.to-top svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-track { fill: none; stroke: rgba(255,255,255,.15); stroke-width: 2; }
.to-top-ring { fill: none; stroke: var(--brand-light); stroke-width: 2; stroke-dasharray: 100.53; stroke-dashoffset: var(--ring, 100.53); }
.to-top:hover .to-top-ring { stroke: #fff; }
.to-top-arrow { transform: rotate(-90deg); }

/* Transición suave entre páginas (navegadores compatibles) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: .25s ease both vt-out; }
  ::view-transition-new(root) { animation: .45s var(--ease-out) both vt-in; }
}

@keyframes kenburns { from { transform: scale(1.18); } to { transform: scale(1); } }
@keyframes hx-drift { from { transform: scale(1); } to { transform: scale(1.09) translate3d(-1.8%, -1%, 0); } }
@keyframes kenburns-sec { from { transform: scale(1.3); } to { transform: scale(1.14); } }
@keyframes fadeup { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
@keyframes lineup { from { transform: translate3d(0, 110%, 0) rotate(2deg); } to { transform: none; } }
@keyframes growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* Movimiento reducido: todo visible y quieto */
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal], html.js [data-reveal="img"] img { opacity: 1; transform: none; clip-path: none; }
  html.js [data-anim], html.js .hx-media img, html.js .sec-hero .hero-photo img, .marquee-track { animation: none; }
  .site-hdr.is-hidden { transform: none; }
  .mnav { clip-path: none; }
}
