/* Bayardo v2 · módulos del wao: hero con cifras, explorar, videos, rostros, mapa, juego, buscador, boletín, lectura. */

/* Hero v2 */
.hero--v2 { min-height: min(92vh, 900px); display: flex; flex-direction: column; justify-content: center; }
.hero--v2 .hero__bg img { animation: kenburns 28s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.03) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
@media (prefers-reduced-motion: reduce) { .hero--v2 .hero__bg img { animation: none; } }
.hero__stats { display: flex; flex-wrap: wrap; gap: 28px 40px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .18); }
.hero__stats li { display: grid; gap: 2px; }
.hero__stats strong { font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.hero__stats span { font-family: var(--sans); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); }
.hero__scroll { position: absolute; left: 50%; bottom: 18px; width: 26px; height: 42px; border: 1px solid rgb(255 255 255 / .35); border-radius: 13px; transform: translateX(-50%); display: none; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (min-width: 900px) { .hero__scroll { display: block; } }

/* Explorar: tarjetas gigantes en abanico horizontal */
.explore2 { padding-bottom: 0 !important; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; gap: 10px; border-bottom: 0; }
.explore2__scroller { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 0 clamp(44px, 7vw, 96px); }
.explore2__scroller::-webkit-scrollbar { display: none; }
.explore2__cards { display: flex; gap: 14px; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); width: max-content; }
.xcard { scroll-snap-align: start; }
.xcard a {
  position: relative; display: grid; align-content: end; width: clamp(240px, 26vw, 340px); aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; padding: 20px;
  background: var(--dark-3) var(--img) center / cover no-repeat; color: #fff; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.xcard a::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(18 15 13 / .1) 0%, rgb(18 15 13 / .25) 45%, rgb(18 15 13 / .88) 100%); z-index: -1; transition: opacity .4s; }
.xcard a::after { content: ""; position: absolute; inset: 0; background: var(--img) center / cover; filter: sepia(.35) contrast(1.05); z-index: -2; transition: transform .8s var(--ease), filter .5s; }
.xcard a:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: #fff; }
.xcard a:hover::after { transform: scale(1.06); filter: sepia(0); }
.xcard__word { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); line-height: .95; letter-spacing: -.02em; text-transform: uppercase; text-shadow: 0 2px 20px rgb(0 0 0 / .4); }
.xcard__meta { font-family: var(--sans); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #e2b8b0; margin-top: 10px; }

/* Videos */
.videos { background: var(--dark); color: var(--on-dark); padding: clamp(44px, 7vw, 96px) 0 !important; margin-top: clamp(44px, 7vw, 96px); }
.section__head--light { border-color: rgb(255 255 255 / .25); }
.section__head--light .more { color: var(--on-dark-2); border-color: rgb(255 255 255 / .3); }
.videos__scroller { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.videos__scroller::-webkit-scrollbar { display: none; }
.videos__row { display: flex; gap: 18px; width: max-content; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); padding-bottom: 6px; }
.yt { width: clamp(280px, 26vw, 400px); scroll-snap-align: start; display: grid; gap: 10px; align-content: start; }
.yt__btn { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #000; cursor: pointer; }
.yt__link { font-family: var(--sans); font-size: .72rem; color: var(--on-dark-2); display: inline-flex; gap: 6px; align-items: center; }
.yt__link:hover { color: #fff; }
.yt__btn img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .6s var(--ease), opacity .3s; }
.yt__btn:hover img { transform: scale(1.04); opacity: 1; }
.yt__play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgb(139 0 0 / .92); box-shadow: 0 8px 30px -8px rgb(0 0 0 / .8); transition: transform .3s var(--ease); }
.yt__play::after { content: ""; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.yt__btn:hover .yt__play { transform: scale(1.08); }
.yt__len { position: absolute; right: 8px; bottom: 8px; font-family: var(--sans); font-size: .7rem; font-weight: 600; padding: 3px 6px; border-radius: 3px; background: rgb(0 0 0 / .8); color: #fff; }
.yt iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; }
.yt__title { font-size: 1.05rem; line-height: 1.25; }
.yt__meta { font-family: var(--sans); font-size: .72rem; color: var(--on-dark-2); }

/* Rostros */
.faces { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.faces--page { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.face a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.face img, .face__empty { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(1) sepia(.25) contrast(1.05); transition: filter .5s, transform .7s var(--ease); display: block; }
.face a:hover img { filter: none; transform: scale(1.05); }
.face__cap { position: absolute; inset: auto 0 0 0; padding: 26px 10px 10px; display: grid; gap: 2px; background: linear-gradient(180deg, transparent, rgb(18 15 13 / .85)); color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); }
.face a:hover .face__cap, .face a:focus-visible .face__cap { opacity: 1; transform: none; }
.faces--page .face__cap { opacity: 1; transform: none; }
.face__name { font-size: .95rem; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.face__year { font-family: var(--sans); font-size: .66rem; letter-spacing: .08em; color: #e2b8b0; }
@media (max-width: 960px) { .faces { grid-template-columns: repeat(4, 1fr); } .faces--page { grid-template-columns: repeat(3, 1fr); } .faces li:nth-child(n+13) { display: none; } }
@media (max-width: 560px) { .faces { grid-template-columns: repeat(3, 1fr); } .faces--page { grid-template-columns: repeat(2, 1fr); } .face__name { font-size: .82rem; } }

/* Mapa (sección y página) */
.map__land { fill: var(--paper-3); stroke: var(--line-2); stroke-width: .8; }
.map__dot { fill: var(--red); fill-opacity: .85; stroke: var(--paper); stroke-width: 1.2; }
.map-section__in { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.map-section .h2 { margin: 8px 0 12px; }
.map-section__lead { color: var(--ink-2); margin-bottom: 18px; }
.map-section__top { display: grid; gap: 0; margin-bottom: 22px; border-top: 1px solid var(--line); }
.map-section__top li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.map__n { font-family: var(--sans); font-size: .76rem; color: var(--muted); }
.map-section__map { display: block; }
.map-section__map svg { width: 100%; height: auto; }
.map-section__map .map__dot { transition: r .3s; }
@media (max-width: 860px) { .map-section__in { grid-template-columns: 1fr; } .map-section__map { order: -1; } }

.map { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .9fr); gap: clamp(20px, 3vw, 48px); align-items: start; padding-bottom: 40px; }
.map__stage { position: sticky; top: 92px; }
.map__svg { width: 100%; height: auto; }
.map__pt { cursor: pointer; outline: none; }
.map__halo { fill: var(--red); fill-opacity: .12; transition: fill-opacity .3s; }
.map__pt:hover .map__halo, .map__pt.is-active .map__halo, .map__pt:focus-visible .map__halo { fill-opacity: .3; }
.map__pt.is-active .map__dot { fill: var(--ink); }
.map__label { font-family: var(--sans); font-size: 11px; fill: var(--ink-2); text-anchor: middle; paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; opacity: 0; transition: opacity .25s; pointer-events: none; }
.map__pt:hover .map__label, .map__pt.is-active .map__label, .map__pt:focus-visible .map__label { opacity: 1; }
.map__hint { font-family: var(--sans); font-size: .76rem; color: var(--muted); margin-top: 8px; }
.map__rank li { border-bottom: 1px solid var(--line); }
.map__rankbtn { width: 100%; display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; font-size: 1.1rem; text-align: left; }
.map__rankbtn:hover { color: var(--red); }
.map__detail .map__title { margin: 10px 0 14px; }
.map__stories li { border-top: 1px solid var(--line); }
.map__stories a { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px 0; align-items: center; }
.map__stories img { width: 96px; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 3px; }
.map__stories a > span { display: grid; gap: 3px; }
.map__stitle { font-size: 1.05rem; line-height: 1.2; }
.map__note { font-family: var(--sans); font-size: .76rem; color: var(--muted); padding-bottom: 72px; }
@media (max-width: 900px) { .map { grid-template-columns: 1fr; } .map__stage { position: static; } .map__label { font-size: 16px; } }

/* Juego */
.game-section { background: var(--dark); color: var(--on-dark); padding: clamp(44px, 7vw, 96px) 0 !important; margin-top: clamp(44px, 7vw, 96px); }
.game-section__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.game-section__fig { margin: 0; }
.game-section__fig img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 6px; filter: sepia(.3) contrast(1.05); }
.game-section .h2 { margin: 8px 0 14px; }
.game-section__lead { color: var(--on-dark-2); margin-bottom: 22px; font-size: 1.15rem; }
@media (max-width: 760px) { .game-section__in { grid-template-columns: 1fr; } }

.game { padding-bottom: 96px; }
.game__intro { display: grid; gap: 18px; justify-items: start; padding: 10px 0 40px; }
.game__lead { font-size: 1.15rem; color: var(--ink-2); }
.game__progress { display: flex; justify-content: space-between; font-family: var(--sans); font-size: .78rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.game__figure { margin: 0 0 16px; }
.game__img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 6px; }
.game__cat { margin-top: 10px; }
.game__title { margin-bottom: 6px; }
.game__q { color: var(--ink-2); margin-bottom: 18px; }
.game__options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.game__opt { font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); padding: 18px 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--paper); color: var(--ink); transition: border-color .2s, transform .2s, background .2s; font-variant-numeric: tabular-nums; }
.game__opt:hover:not(:disabled) { border-color: var(--red); transform: translateY(-2px); }
.game__opt.is-right { background: var(--red); border-color: var(--red); color: #fff; }
.game__opt.is-wrong { background: var(--paper-3); color: var(--muted); text-decoration: line-through; }
.game__opt:disabled { cursor: default; }
.game__answer { margin-top: 22px; display: grid; gap: 10px; justify-items: start; }
.game__verdict { font-size: 1.25rem; }
.game__verdict.is-right { color: var(--red); }
.game__end { display: grid; gap: 12px; justify-items: start; padding: 10px 0; }
.game__final { font-size: clamp(3rem, 2rem + 4vw, 6rem); line-height: 1; }
.game__final-text { font-size: 1.2rem; color: var(--ink-2); }
.game__end-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0 24px; }
.game__review { width: 100%; border-top: 1px solid var(--line); }
.game__review li { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.game__review li.is-right .game__rv-year { color: var(--red); }
.game__rv-year { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.game__rv-picked { font-family: var(--sans); font-size: .72rem; color: var(--muted); }
@media (max-width: 560px) { .game__options { grid-template-columns: repeat(2, 1fr); } }

/* Buscador */
.search { background: var(--dark-2); border-top: 1px solid rgb(255 255 255 / .08); color: var(--on-dark); }
.search__in { padding: 18px 0 22px; display: grid; gap: 12px; }
.search__form { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgb(255 255 255 / .3); padding-bottom: 8px; min-width: 0; }
.search__form input { flex: 1 1 0; width: 0; background: none; border: 0; outline: none; color: #fff; font-family: var(--serif); font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); padding: 6px 0; min-width: 0; }
.search__form .ico, .search__form .js-search-close { flex: none; position: relative; z-index: 1; }
.search__in, .search__results, .search__results li { min-width: 0; }
.search__results a span { min-width: 0; overflow-wrap: anywhere; }
.search__form input::placeholder { color: var(--on-dark-2); }
.search__form input::-webkit-search-cancel-button, .search__form input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search__results { display: grid; gap: 0; }
.search__results li { border-bottom: 1px solid rgb(255 255 255 / .08); }
.search__results a { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 10px 0; color: var(--on-dark); font-size: 1.1rem; }
.search__results a:hover { color: #fff; }
.search__results img, .search__noimg { width: 96px; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 3px; background: var(--dark-3); display: block; }
.search__none { padding: 14px 0; color: var(--on-dark-2); }
.search__hint { font-family: var(--sans); font-size: .72rem; color: var(--muted); }
body.search-open .nav { display: none; }
@media (min-width: 961px) { .masthead__tools { display: flex; } .js-menu { display: none; } }
.js-theme .ico--moon { display: none; }
body.is-dark .js-theme .ico--moon { display: block; }
body.is-dark .js-theme .ico--sun { display: none; }

/* Barra de lectura */
.readbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: transparent; pointer-events: none; }
.readbar span { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }

/* Boletín */
.nl { display: grid; gap: 8px; }
.nl__row { display: flex; gap: 10px; }
.nl__row input { flex: 1; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper); color: var(--ink); min-width: 0; }
.footer .nl__row input { border-color: rgb(255 255 255 / .25); background: transparent; color: #fff; }
.nl__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl__status { font-family: var(--sans); font-size: .82rem; min-height: 1.2em; }
.nl__status.is-ok { color: var(--red); }
.footer .nl__status.is-ok { color: #e2b8b0; }
.nl__status.is-error { color: #b3261e; }
.nl__legal { font-family: var(--sans); font-size: .7rem; color: var(--muted); }
.nlhome { background: var(--paper-2); padding: clamp(48px, 7vw, 96px) 0 !important; margin-top: clamp(44px, 7vw, 96px); }
.nlhome__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.nlhome .h2 { margin: 8px 0 12px; }
.nlhome__text > p { color: var(--ink-2); margin-bottom: 22px; max-width: 48ch; }
.nlhome__fig { margin: 0; background: var(--dark); border-radius: 6px; padding: 10%; }
.nlhome__fig img { width: 100%; height: auto; }
@media (max-width: 860px) { .nlhome__in { grid-template-columns: 1fr; } .nlhome__fig { display: none; } }
.newsletter { align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.newsletter > *, .nl, .nl__row, .nlhome__text { min-width: 0; }
@media (max-width: 860px) { .newsletter { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .nl__row { flex-direction: column; } }
.notice-bar { background: var(--red); color: #fff; font-family: var(--sans); font-size: .86rem; text-align: center; padding: 10px var(--gutter); }
.notice-bar--error { background: var(--dark-3); }

/* Compartir en móvil (artículo) */
.sharebar { display: none; }
@media (max-width: 760px) {
  .sharebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
  .sharebar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: var(--radius); font-family: var(--sans); font-size: .82rem; font-weight: 600; border: 1px solid var(--line-2); }
  .sharebar a.is-wa { background: #25d366; border-color: #25d366; color: #fff; }
  .is-article .footer { padding-bottom: 90px; }
}

/* Spacing fixes for stacked dark/paper blocks */
.videos + .faces-section { padding-top: clamp(44px, 7vw, 96px) !important; }
.game-section + .tlstrip { padding-top: clamp(44px, 7vw, 96px) !important; }
.nlhome + .support { margin-top: 0; }
