/* SWYAA Spain · Sistema visual v6 «Marino editorial»
   Principio: menos, pero mejor. Azul marino como base emocional, negro azulado para la profundidad,
   marfil para la luz y la rojigualda solo como acento (filete, punto, subrayado). Nunca naranja.
   Tipografía: Fraunces (titulares y textos grandes; opsz 48, SOFT 30) + Hanken Grotesk (interfaz y lectura).
   Autoalojadas, OFL (licencias en assets/fonts/). Japonés: fuentes del sistema (ver :lang(ja)).
   Movimiento: solo transform/opacity, dentro de prefers-reduced-motion: no-preference, con control para detenerlo. */

@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces.woff2') format('woff2'); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-italic.woff2') format('woff2'); font-weight: 300 600; font-style: italic; font-display: optional; }
@font-face { font-family: 'Hanken Grotesk'; src: url('fonts/hanken-grotesk.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Respaldos con métricas calibradas (Georgia/Arial): evitan saltos de maquetación mientras llegan las fuentes */
@font-face { font-family: 'Fraunces Fallback'; src: local('Georgia'); size-adjust: 105.2%; ascent-override: 92.9%; descent-override: 24.2%; line-gap-override: 0%; }
@font-face { font-family: 'Fraunces Fallback'; font-style: italic; src: local('Georgia Italic'), local('Georgia-Italic'); size-adjust: 100.1%; ascent-override: 97.7%; descent-override: 25.5%; line-gap-override: 0%; }
@font-face { font-family: 'Hanken Fallback'; src: local('Arial'), local('Helvetica'); size-adjust: 99.5%; ascent-override: 100%; descent-override: 30.3%; line-gap-override: 0%; }

:root {
  /* color */
  --abyss: #060b13;
  --ink: #0b1320;
  --navy: #0d2033;
  --navy-2: #163049;
  --navy-3: #24476a;
  --ivory: #f4f0e7;
  --paper: #faf8f3;
  --sand: #ebe5d8;
  --line: #ddd6c7;
  --line-dark: rgb(244 240 231 / .14);
  --text: #121a24;
  --muted: #56616c;
  --on-dark: #eae6dc;
  --on-dark-muted: #a9b4be;
  --rojo: #aa151b;
  --gualda: #f1bf00;
  --gualda-soft: #e3c46b;
  --rojigualda: linear-gradient(90deg, var(--rojo) 0 25%, var(--gualda) 25% 75%, var(--rojo) 75%);
  /* tipografía */
  --serif: 'Fraunces', 'Fraunces Fallback', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Hanken Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* japonés: fuentes del sistema con kana y kanji (Hiragino, Yu, Noto); 0 KB extra para las páginas en español */
  --serif-ja: 'Hiragino Mincho ProN', 'Yu Mincho', YuMincho, 'Noto Serif JP', 'Noto Serif CJK JP', serif;
  --sans-ja: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', YuGothic, Meiryo, 'Noto Sans JP', 'Noto Sans CJK JP', sans-serif;
  /* layout */
  --wrap: 1240px;
  --gutter: 20px;
  --space: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(.22, .61, .21, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 700px) { :root { --gutter: 40px; } }
@media (min-width: 1200px) { :root { --gutter: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.7 var(--sans); font-feature-settings: 'kern', 'liga', 'calt';
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@media (min-width: 900px) { body { font-size: 18px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
::selection { background: var(--navy); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--gualda); outline-offset: 3px; border-radius: 1px; }
.visually-hidden, .sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--paper); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* ------------------------------------------------------------------ tipografía */
h1, h2, h3, .display, .display-s { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; line-height: 1.08; color: var(--ink); text-wrap: balance; }
h1 em, h2 em, .display em { font-style: italic; font-weight: 300; }
.display { font-size: clamp(38px, 5.4vw, 72px); margin: .25em 0 .45em; }
.display-s { font-size: clamp(28px, 3.2vw, 40px); margin: 0 0 .7em; }
p { text-wrap: pretty; }
.lead { font: 400 clamp(20px, 2.1vw, 25px)/1.5 var(--serif); color: var(--text); letter-spacing: -.003em; }
/* Etiqueta editorial: versalitas con el filete rojigualda como firma */
.kicker, .eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0; color: var(--muted);
  font: 600 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.kicker::before, .eyebrow::before { content: ''; flex: 0 0 auto; width: 28px; height: 2px; background: var(--rojigualda); }
.kicker .icon, .eyebrow .icon { display: none; }
.more { display: inline-flex; align-items: center; gap: 10px; font: 600 14px var(--sans); letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); padding: 6px 0; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s; }
.more:hover { background-size: 30% 1px; }
.more span[aria-hidden], .arrow { display: inline-block; transition: transform .4s var(--ease-out); }
.more:hover span[aria-hidden], a:hover > .arrow, button:hover > .arrow { transform: translateX(5px); }

/* botones: rectangulares, sobrios */
.btn { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 26px; border: 1px solid var(--ink); background: var(--ink);
  color: var(--ivory); text-decoration: none; font: 600 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; border-radius: 1px;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn-light { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.btn-light:hover { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }
.link-light { display: inline-flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; font: 600 13px var(--sans);
  letter-spacing: .14em; text-transform: uppercase; padding: 8px 0; background: linear-gradient(var(--gualda), var(--gualda)) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--ease); }
.link-light:hover { background-size: 30% 1px; color: #fff; }

/* ------------------------------------------------------------------ iconos */
.icon { width: 1.2em; height: 1.2em; display: inline-block; vertical-align: -.2em; flex: 0 0 auto; color: inherit; --icon-accent: var(--rojo); }
.on-dark .icon, .footer .icon, .hero .icon { --icon-accent: var(--gualda); }

/* ------------------------------------------------------------------ cabecera */
.header { position: sticky; top: 0; z-index: 50; background: rgb(250 248 243 / .9); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: background .4s var(--ease), border-color .4s, box-shadow .4s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: block; flex: 0 0 auto; }
.brand img { width: auto; height: 38px; }
.brand .logo-dark { display: none; }
.menu-toggle { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 0 10px 10px;
  font: 600 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); cursor: pointer; min-height: 44px; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform .35s var(--ease), background .2s; }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; }
.menu-icon::before { top: -7px; } .menu-icon::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; height: calc(100svh - 72px); overflow-y: auto; background: var(--paper);
  border-top: 1px solid var(--line); }
.nav.open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 24px var(--gutter) 40px; }
.nav li { border-bottom: 1px solid var(--line); }
.nav a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; text-decoration: none;
  font: 400 30px/1.15 var(--serif); color: var(--ink); }
.nav a[aria-current="page"] { font-style: italic; }
.nav-cta { border: 0 !important; margin-top: 28px; }
.nav-cta a { justify-content: center; font: 600 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory);
  background: var(--ink); min-height: 52px; }
@media (prefers-reduced-motion: no-preference) {
  .nav.open li { animation: nav-in .55s var(--ease-out) both; }
  .nav.open li:nth-child(2) { animation-delay: .04s; } .nav.open li:nth-child(3) { animation-delay: .08s; } .nav.open li:nth-child(4) { animation-delay: .12s; }
  .nav.open li:nth-child(5) { animation-delay: .16s; } .nav.open li:nth-child(6) { animation-delay: .2s; } .nav.open li:nth-child(7) { animation-delay: .24s; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(14px); } }
@media (min-width: 1240px) {
  .head { min-height: 88px; transition: min-height .4s var(--ease); }
  .header.is-scrolled .head { min-height: 68px; }
  .brand img { height: 46px; transition: height .4s var(--ease); }
  .header.is-scrolled .brand img { height: 38px; }
  .menu-toggle { display: none; }
  .nav { display: flex; align-items: center; gap: 10px; position: static; height: auto; overflow: visible; background: none; border: 0; }
  .nav ul { display: flex; align-items: center; gap: 2px; padding: 0; }
  .nav li { border: 0; }
  .nav a { position: relative; padding: 10px 11px; font: 500 15px var(--sans); color: #2c3a47; letter-spacing: .01em; }
  .nav li:not(.nav-cta) a::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
  .nav li:not(.nav-cta) a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
  .nav a:hover, .nav a[aria-current="page"] { color: var(--ink); font-style: normal; }
  .nav-cta { margin: 0 0 0 14px; }
  .nav .nav-cta a { min-height: 44px; padding: 0 20px; font-size: 12px; color: var(--ivory); }
  .nav-cta a:hover { background: var(--navy-2); }
  /* cabecera transparente sobre el héroe de la portada */
  .page-home .header:not(.is-scrolled) { background: transparent; backdrop-filter: none; }
  .page-home .header:not(.is-scrolled) .logo-light { display: none; }
  .page-home .header:not(.is-scrolled) .logo-dark { display: block; }
  .page-home .header:not(.is-scrolled) .nav a { color: var(--on-dark); }
  .page-home .header:not(.is-scrolled) .nav-cta a { background: transparent; border: 1px solid rgb(244 240 231 / .5); color: var(--ivory); }
  .page-home .header:not(.is-scrolled) .nav-cta a:hover { background: var(--ivory); color: var(--ink); }
  .page-home .header { position: fixed; left: 0; right: 0; }
}

/* ------------------------------------------------------------------ portada: héroe */
.hero { position: relative; isolation: isolate; color: var(--ivory); overflow: hidden; display: grid; grid-template-rows: auto auto;
  background: radial-gradient(110% 70% at 70% 72%, #1b3a57 0%, #0f2438 38%, transparent 72%), linear-gradient(180deg, #050a11 0%, #0a1726 48%, #0f2a42 66%, #060b13 100%); }
.hero-scene { position: relative; z-index: 0; grid-row: 2; height: clamp(260px, 78vw, 560px); overflow: hidden; margin-top: -24px; }
.hero-scene .sc { position: absolute; left: 50%; bottom: 0; height: 150%; width: auto; aspect-ratio: 16 / 9; transform: translateX(-76%); }
.hero-content { position: relative; z-index: 1; padding: 56px 0 8px; grid-row: 1; }
.hero .eyebrow { color: var(--on-dark-muted); }
.hero h1 { color: var(--ivory); font-size: clamp(46px, 8.6vw, 112px); line-height: .98; letter-spacing: -.022em; margin: 22px 0 26px; max-width: 14ch; }
.hero h1 .hl { display: block; }
.hero h1 em { color: var(--ivory); }
.hero h1 strong { color: var(--gualda-soft); font-weight: 300; font-style: italic; }
.hero-text { max-width: 520px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.7; color: var(--on-dark); margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin: 0; }
.hero-facts { display: none; }
.scroll-cue { display: none; }
@media (min-width: 900px) {
  .hero { grid-template-rows: 1fr; align-items: center; min-height: min(100svh, 960px); }
  .hero::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(90deg, rgb(5 10 17 / .86) 0%, rgb(5 10 17 / .55) 34%, transparent 62%), linear-gradient(180deg, rgb(5 10 17 / .6), transparent 22%); }
  .hero-scene { position: absolute; inset: 0; height: auto; margin: 0; grid-row: auto; }
  .hero-scene .sc { left: 0; width: 100%; height: 100%; aspect-ratio: auto; transform: none; }
  .hero-content { padding: 128px 0 150px; grid-row: auto; }
  .hero-content > * { max-width: min(600px, 46vw); }
  .hero h1 { font-size: clamp(58px, 5.8vw, 100px); }
  .hero-facts { display: grid; grid-template-columns: repeat(4, 1fr); position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; margin: 0;
    border-top: 1px solid var(--line-dark); background: linear-gradient(transparent, rgb(5 10 17 / .5)); }
  .hero-facts div { padding: 22px 0 26px 28px; border-left: 1px solid var(--line-dark); }
  .hero-facts div:first-child { border-left: 0; padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
  .hero-facts dt { font: 600 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }
  .hero-facts dd { margin: 6px 0 0; font: 300 30px/1 var(--serif); color: var(--ivory); }
}

/* elementos de la escena (ilustración pseudo-3D) */
.sc { display: block; overflow: visible; }
.sc-layer { transform: translate3d(calc(var(--px, 0) * var(--depth) * -.5px), calc(var(--py, 0) * var(--depth) * -.25px + var(--sy, 0) * var(--depth) * .9px), 0);
  transition: transform 1.1s var(--ease-out); will-change: transform; }
.sc-dots path { fill: #c9d6e0; opacity: .3; }
.sc-routes path { fill: none; stroke: #e3c46b; stroke-opacity: .42; stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: .003 .01; }
.sc-routes .r1 { stroke: #f4f0e7; stroke-opacity: .22; }
.sc-port circle { fill: #e3c46b; }
.sc-port .sc-ring { fill: none; stroke: #e3c46b; stroke-width: 1; transform-box: fill-box; transform-origin: center; opacity: 0; }
.sc-land { fill: #0b1a2a; }
.sc-reflect rect { fill: #b3262c; opacity: .38; }
.sc-wave path { transform-box: fill-box; }
.w1 path { fill: #10283e; }
.w2 path { fill: #0b1d2e; }
.w3 path { fill: #060b13; }
.sc-ship-refl { opacity: .13; }
.sc-wake path { fill: none; stroke: #f4f0e7; stroke-opacity: .26; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 24 14; }
.sx-hull { fill: url(#sc-hull); }
.sx-hull-light { stroke: #3a4a5c; stroke-width: 1.5; }
.sx-deck { fill: #8d99a4; }
.sx-boot { stroke: #7e0f14; stroke-width: 5; }
.sx-ports { fill: #5d7186; opacity: .75; }
.sx-anchor { fill: none; stroke: #4c5d6f; stroke-width: 2; stroke-linecap: round; }
.sx-side { fill: url(#sc-side); }
.sx-top { fill: #ffffff; }
.sx-front { fill: #c6cdd3; }
.sx-win { fill: #24394d; }
.sx-bridge-glass { fill: #0d2033; }
.sx-wing { fill: #e7ebee; }
.sx-boat { fill: #e3c46b; stroke: #3a4a5c; stroke-width: 1.2; }   /* gualda suave, nunca naranja */
.sx-davit { fill: none; stroke: #5d6b78; stroke-width: 2; }
.sx-funnel { fill: #a3141a; }
.sx-funnel-front { fill: #7a0f13; }
.sx-funnel-band { fill: #f4f0e7; }
.sx-funnel-top { fill: #0b1320; }
.sx-mast { fill: none; stroke: #dfe5e9; stroke-width: 2.5; stroke-linecap: round; }
.sx-radar { fill: #dfe5e9; }
.sx-foam { fill: none; stroke: #f4f0e7; stroke-opacity: .55; stroke-width: 1.6; stroke-linecap: round; }
.sc-sun { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .sc-ship-pos { animation: ship-in 2.4s var(--ease-out) both; }
  .sc-ship { animation: ship-bob 9s ease-in-out infinite 2.4s; transform-box: fill-box; transform-origin: 50% 100%; }
  .sc-wake, .sc-ship-refl { animation: fade 2.4s ease-out both .6s; }
  .sx-foam { animation: foam 2.8s ease-in-out infinite alternate; }
  .sc-sun { animation: sun-rise 3.2s var(--ease-out) both; }
  .hero h1 .hl, .hero .eyebrow, .hero-text, .hero-actions { animation: rise 1.2s var(--ease-out) both; }
  .hero h1 .hl:nth-child(2) { animation-delay: .1s; } .hero-text { animation-delay: .2s; } .hero-actions { animation-delay: .3s; }
  .hero-facts div { animation: fade 1.4s var(--ease-out) both; animation-delay: .5s; }
  .hero.is-paused .sc * { animation-play-state: paused; }
}
/* Móvil: sin el reflejo enmascarado del barco (la capa más costosa de pintar) */
@media (max-width: 899px) { .sc-ship-refl, .sc-reflect { display: none; } }
/* Movimiento ambiental (oleaje, rutas, destellos, estela) solo en pantallas grandes: en móvil la escena es una
   versión simplificada (entrada, flotación y espuma), más ligera para el procesador y la batería. */
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .w1 path { animation: wave-160 8s linear infinite; }
  .w2 path { animation: wave-220 12s linear infinite; }
  .w3 path { animation: wave-300 18s linear infinite; }
  .sc-routes path { animation: route-march 110s linear infinite; }
  .sc-routes .r1 { animation-duration: 150s; animation-direction: reverse; }
  .sc-port .sc-ring { animation: ping 4s ease-out infinite; animation-delay: var(--d); }
  .sc-reflect rect { animation: shimmer 3.6s ease-in-out infinite alternate; }
  .sc-reflect rect:nth-child(3n) { animation-delay: -1.2s; } .sc-reflect rect:nth-child(3n+1) { animation-delay: -2.4s; }
  .sc-wake path { animation: wake 2.6s linear infinite; }
}
@keyframes ship-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-.3deg); } }
@keyframes ship-in { from { opacity: 0; translate: -90px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes foam { from { stroke-opacity: .25; } to { stroke-opacity: .65; } }
@keyframes refl { 0%, 100% { opacity: .13; } 50% { opacity: .09; } }
@keyframes wave-160 { to { transform: translateX(-160px); } }
@keyframes wave-220 { to { transform: translateX(-220px); } }
@keyframes wave-300 { to { transform: translateX(-300px); } }
@keyframes route-march { to { stroke-dashoffset: -1; } }
@keyframes ping { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(5); } }
@keyframes shimmer { from { opacity: .18; } to { opacity: .55; } }
@keyframes wake { to { stroke-dashoffset: 38; } }
@keyframes sun-rise { from { transform: translateY(60px); } to { transform: none; } }
@keyframes rise { from { transform: translateY(20px); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } }

/* ------------------------------------------------------------------ secciones */
.section { padding: var(--space) 0; }
.section + .section { border-top: 1px solid var(--line); }
.on-dark { background: radial-gradient(90% 80% at 80% 0%, #15304a 0%, transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--ink) 100%);
  color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark .display { color: var(--ivory); }
.on-dark .kicker, .on-dark .eyebrow { color: var(--on-dark-muted); }
.on-dark .more { color: var(--ivory); }
.on-dark .lead { color: var(--on-dark); }
.section + .on-dark, .on-dark + .section { border-top: 0; }
.on-dark + .on-dark { border-top: 1px solid var(--line-dark); }
.section-head { display: grid; gap: 18px 64px; margin-bottom: clamp(40px, 5vw, 72px); align-items: end; }
.section-head p { color: var(--muted); max-width: 46ch; margin: 0; }
.on-dark .section-head p { color: var(--on-dark-muted); }
@media (min-width: 900px) { .section-head { grid-template-columns: 7fr 5fr; } }
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 6fr; gap: clamp(56px, 8vw, 120px); } }

/* manifiesto */
.manifesto .wrap { max-width: 1040px; }
.manifesto p.big { font: 300 clamp(28px, 3.6vw, 48px)/1.28 var(--serif); letter-spacing: -.012em; color: var(--ink); margin: 26px 0 0; text-wrap: balance; }
.manifesto p.big em { font-style: italic; color: var(--navy-3); }

/* cifras */
.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 48px 0 0; border-top: 1px solid var(--line); }
.figures div { padding: 22px 16px 0 0; }
.figures dt { font: 600 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.figures dd { margin: 8px 0 0; font: 300 clamp(38px, 4vw, 52px)/1 var(--serif); color: var(--ink); }
@media (min-width: 700px) { .figures { grid-template-columns: repeat(3, 1fr); } }

/* imagen en ojo de buey */
.porthole { margin: 0; position: relative; }
.porthole img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 100%; max-width: 520px; margin-inline: auto;
  box-shadow: 0 0 0 1px var(--line), 0 0 0 14px var(--paper), 0 0 0 15px var(--line); }
.porthole figcaption { text-align: center; margin-top: 28px; font-size: 13px; color: var(--muted); }

/* destacado SWY37 en portada: el año va junto al número, nunca encima */
.edition { overflow: hidden; background: var(--sand); }
.edition-grid { display: grid; gap: 48px; align-items: start; }
.edition-num { display: flex; align-items: baseline; gap: .35em; margin: 12px 0 0; user-select: none; line-height: 1; }
.edition-num .en-37 { font: 300 clamp(150px, 24vw, 320px)/1 var(--serif); letter-spacing: -.06em; color: var(--navy); }
.edition-num .en-year { font: italic 400 clamp(22px, 2.4vw, 32px)/1 var(--serif); color: var(--rojo); padding-bottom: .15em;
  border-bottom: 2px solid; }
.edition-photo { position: relative; margin: 36px 0 0; }
.edition-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.edition .btn { margin-top: 8px; }
@media (min-width: 900px) { .edition-grid { grid-template-columns: 6fr 5fr; gap: 96px; align-items: center; } }

/* franja de delegaciones */
.route { display: flex; overflow-x: auto; padding: 8px var(--gutter) 40px; scroll-snap-type: x mandatory; position: relative; scrollbar-width: none; }
.route::-webkit-scrollbar { display: none; }
.route::before { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); top: 63px; border-top: 1px dashed rgb(244 240 231 / .3); min-width: 900px; }
.route { list-style: none; margin: 0; }
.stop { flex: 1 0 120px; scroll-snap-align: start; position: relative; padding: 0 6px; }
.stop a { display: grid; justify-items: center; gap: 12px; text-decoration: none; color: var(--ivory); padding: 8px 0; }
.stop-year { font: 300 clamp(28px, 3vw, 38px)/1 var(--serif); }
.stop-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--navy); border: 1.5px solid var(--gualda-soft); transition: transform .4s var(--ease-out), background .3s; }
.stop-name { font: 600 11px var(--sans); letter-spacing: .16em; color: var(--on-dark-muted); }
.stop a:hover .stop-dot, .stop a:focus-visible .stop-dot { background: var(--gualda); border-color: var(--gualda); transform: scale(1.5); }
.stop a:hover .stop-year { font-style: italic; }
@media (min-width: 1100px) { .route { justify-content: center; width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; padding-inline: 0; overflow: visible; }
  .route::before { left: 0; right: 0; min-width: 0; } }
.wide-photo { margin: 32px 0 48px; }
.wide-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; filter: saturate(.85) contrast(1.02); }
.wide-photo figcaption { color: var(--on-dark-muted); font-size: 13px; margin-top: 12px; }

/* mosaico editorial */
.feature-grid { display: grid; gap: 40px 28px; margin-bottom: 56px; }
.feature { display: grid; gap: 16px; align-content: start; text-decoration: none; color: var(--text); }
.feature-media { display: block; overflow: hidden; background: var(--sand); aspect-ratio: 4 / 3; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; filter: saturate(.9); }
.feature-title { display: block; font: 400 clamp(22px, 2vw, 26px)/1.18 var(--serif); color: var(--ink); margin-top: 6px; }
.feature-text { display: block; color: var(--muted); margin-top: 8px; font-size: 16px; }
.feature .kicker::before { width: 16px; }
.feature:hover .feature-media img { transform: scale(1.035); filter: saturate(1); }
.feature:hover .feature-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-main { grid-column: span 2; grid-row: span 2; }
  .feature-main .feature-media { aspect-ratio: 5 / 4; }
  .feature-main .feature-title { font-size: 38px; }
}

/* llamada final */
.join { background: var(--ink); color: var(--on-dark); }
.join-inner { display: grid; gap: 0; align-items: center; }
.join figure { margin: 0 calc(-1 * var(--gutter)); }
.join figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.85); }
.join-inner > div { padding: 56px 0 72px; }
.join .display { color: var(--ivory); }
.join .display em { color: var(--gualda-soft); }
.join p { color: var(--on-dark); max-width: 46ch; }
.join .kicker { color: var(--on-dark-muted); }
.join .hero-actions { margin-top: 32px; }
@media (min-width: 900px) { .join-inner { grid-template-columns: 1fr 1fr; gap: 96px; } .join figure { margin: 0; } .join figure img { aspect-ratio: 4 / 5; } .join-inner > div { padding: 112px 0; } }

/* ------------------------------------------------------------------ cabeceras de página */
.pagehero { padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); background: var(--paper); }
.pagehero h1 { font-size: clamp(42px, 6.4vw, 92px); line-height: 1; margin: 22px 0 18px; max-width: 16ch; letter-spacing: -.022em; }
.pagehero .lead { color: var(--muted); max-width: 40ch; margin: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 40px; padding: 0; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.crumbs li + li::before { content: '/'; margin: 0 10px; color: var(--line); }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.notice { display: inline-block; margin: 16px 0 0; padding: 10px 16px; background: var(--sand); font-size: 15px; }
.event-meta { font-weight: 600; color: var(--muted); }

/* ------------------------------------------------------------------ entradas (texto largo) */
.entry-layout { display: grid; gap: 56px; padding: clamp(48px, 6vw, 88px) 0 clamp(72px, 9vw, 128px); }
@media (min-width: 1000px) { .entry-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(64px, 8vw, 128px); } .facts { position: sticky; top: 104px; align-self: start; } }
.prose { max-width: 680px; min-width: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose p, .prose li { overflow-wrap: break-word; }
.prose .center:not(figure):not(.gallery):not(.buttons) { text-align: left; }
@media (min-width: 900px) {
  /* justificación solo en párrafos de texto corrido en escritorio, con partición silábica en español */
  .prose > p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 7 3 3; }
}
.prose h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 1.9em; }
.prose h3 { font-size: 26px; margin-top: 1.6em; }
.prose h4, .prose h5 { font: 600 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-top: 2em; color: var(--muted); }
.prose a { color: var(--ink); text-decoration-color: var(--rojo); }
.prose a:hover { color: var(--rojo); }
.prose strong { font-weight: 600; }
.prose figure { margin: 2.4em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.prose blockquote { margin: 2.2em 0; padding: 0 0 0 28px; border-left: 2px solid var(--rojo); font: italic 300 24px/1.45 var(--serif); color: var(--ink); }
.prose hr { border: 0; height: 2px; width: 48px; background: var(--rojigualda); margin: 3em 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li::marker { color: var(--muted); }
.prose .cols { display: grid; gap: 28px; }
@media (min-width: 700px) { .prose .cols { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: start; } }
.prose .cols .col > * + * { margin-top: 1em; }
.prose .buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.prose a.btn { color: var(--ivory); text-decoration: none; }
.prose .gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 2.6em 0; }
@media (min-width: 700px) { .prose .gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
.prose .gallery figure { margin: 0; }
.prose .gallery a { display: block; overflow: hidden; }
.prose .gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 1s var(--ease-out), filter .5s; filter: saturate(.9); }
.prose .gallery a:hover img { transform: scale(1.04); filter: none; }
.prose .gallery figcaption { font-size: 13px; margin-top: 8px; line-height: 1.45; }
.prose .table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; vertical-align: top; text-align: left; }
.prose .unavailable { padding: 14px 18px; background: var(--sand); color: var(--muted); font-size: 15px; text-align: left; }
.prose .embed-link a, .prose .doc-link a { display: inline-flex; gap: 12px; align-items: center; padding: 12px 18px; border: 1px solid var(--line);
  text-decoration: none; font: 600 14px var(--sans); color: var(--ink); background: #fff; transition: border-color .3s, background .3s; }
.prose .doc-link a::before { content: 'PDF'; font-size: 10px; letter-spacing: .12em; background: var(--ink); color: var(--ivory); padding: 3px 6px; }
.prose .embed-link a:hover, .prose .doc-link a:hover { border-color: var(--ink); color: var(--ink); }
.prose .social { list-style: none; padding: 0; display: grid; gap: 10px; }
.embed { position: relative; background: var(--ink); aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.embed-map { aspect-ratio: 4 / 3; }
.embed a, .embed button { color: var(--ivory); }
.embed .embed-consent { text-align: center; padding: 24px; max-width: 460px; color: var(--on-dark); font-size: 15px; }
.embed .embed-consent button { margin-top: 14px; background: var(--ivory); color: var(--ink); border: 0; padding: 12px 22px; font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.related-docs, .junta { margin-top: 3.5em; padding-top: 2em; border-top: 1px solid var(--line); }
.related-docs h2 .icon { display: none; }
.junta-list { list-style: none; padding: 0 !important; display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.junta-list li { display: grid; gap: 4px; }
.junta-list img { width: 112px; height: 112px; object-fit: cover; border-radius: 50%; margin: 0 0 10px; }
.junta-list b { font: 400 21px/1.2 var(--serif); color: var(--ink); }
.junta-list span { color: var(--muted); font-size: 15px; }

/* ficha lateral */
.facts { font-size: 15px; }
.facts h2 { font: 600 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.facts h2 .icon { display: none; }
.facts > * + * { margin-top: 40px; }
.facts dl { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts dl div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.facts dd { margin: 4px 0 0; font: 400 26px/1.15 var(--serif); color: var(--ink); }
.children ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.children li { border-bottom: 1px solid var(--line); }
.children a { display: block; padding: 12px 0; text-decoration: none; font: 400 18px var(--serif); }
.children a:hover { font-style: italic; }
.provenance { display: flex; align-items: center; gap: 10px; margin: 0; padding-top: 18px; border-top: 2px solid var(--ink); font-size: 14px; color: var(--muted); }
.note { color: var(--muted); font-size: 14px; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0 0 clamp(72px, 9vw, 120px); }
.prevnext a { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid var(--ink); text-decoration: none; }
.prevnext .next { text-align: right; }
.prevnext small { color: var(--muted); font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.prevnext span { font: 400 22px/1.25 var(--serif); color: var(--ink); }
.prevnext a:hover span { font-style: italic; }

/* ------------------------------------------------------------------ listados */
.block { padding: 64px 0 16px; }
.block .section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; }
.display-s .icon { display: none; }
.rows { list-style: none; margin: 0 0 40px; padding: 0; border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row[hidden] { display: none; }
.row a { position: relative; display: grid; grid-template-columns: 88px 1fr; gap: 16px 20px; padding: 22px 0; text-decoration: none; color: var(--text); align-items: start; }
.row-media { display: block; overflow: hidden; }
.row-media img, .row-placeholder { width: 88px; height: 88px; object-fit: cover; background: var(--sand); display: block; transition: transform 1s var(--ease-out); filter: saturate(.9); }
.row-body { display: grid; gap: 6px; }
.row-body .kicker::before { width: 14px; }
.row-title { font: 400 22px/1.22 var(--serif); color: var(--ink); }
.row-text { color: var(--muted); font-size: 15px; line-height: 1.6; }
.row-sub { font-size: 13px; color: var(--muted); }
.row-arrow { display: none; }
.row a:hover .row-title { font-style: italic; }
.row a:hover .row-media img { transform: scale(1.06); }
@media (min-width: 760px) {
  .row a { grid-template-columns: 180px 1fr 40px; gap: 32px; padding: 28px 0; }
  .row-media img, .row-placeholder { width: 180px; height: 120px; }
  .row-arrow { display: block; font-size: 20px; color: var(--muted); align-self: center; transition: transform .5s var(--ease-out), color .3s; }
  .row a:hover .row-arrow { transform: translateX(6px); color: var(--ink); }
}
.rows .row a:not(:has(.row-media)) { grid-template-columns: 1fr 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 24px; }
.filters button { border: 1px solid var(--line); background: transparent; color: var(--text); padding: 9px 16px; font: 500 14px var(--sans);
  cursor: pointer; min-height: 40px; text-transform: capitalize; transition: background .3s, color .3s, border-color .3s; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.filters button:hover { border-color: var(--ink); }
.empty { color: var(--muted); padding: 24px 0; }
.section-about { margin: 32px 0 88px; padding-top: 40px; border-top: 1px solid var(--line); }
.section-about > h2:first-child { font: 600 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.voyage-list { list-style: none; padding: 0; margin: 40px 0 72px; }
.voyage-list li { border-bottom: 1px solid var(--line); }
.voyage-list li:first-child { border-top: 1px solid var(--line); }
.voyage-list a { display: grid; gap: 16px 40px; padding: 36px 0; text-decoration: none; color: var(--text); align-items: center; }
.vl-year { font: 300 clamp(64px, 9vw, 128px)/.86 var(--serif); color: var(--ink); letter-spacing: -.04em; transition: transform .7s var(--ease-out); }
.vl-media { display: block; overflow: hidden; }
.vl-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(.85); transition: transform 1.2s var(--ease-out), filter .6s; }
.vl-body { display: grid; gap: 8px; align-content: start; }
.vl-title { font: 400 30px/1.12 var(--serif); color: var(--ink); }
.vl-text { color: var(--muted); }
.voyage-list a:hover .vl-year { transform: translateX(12px); font-style: italic; }
.voyage-list a:hover .vl-media img { transform: scale(1.04); filter: none; }
@media (min-width: 900px) { .voyage-list a { grid-template-columns: 260px 320px 1fr; } }

.ga-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.ga-list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.ga-list b { font: 400 20px var(--serif); color: var(--ink); }
.ga-list span { color: var(--muted); text-align: right; font-size: 14px; }
.ga-list a:hover b { font-style: italic; }
.ga-chips { list-style: none; padding: 0; margin: 20px 0 72px; display: flex; flex-wrap: wrap; gap: 8px; }
.ga-chips a { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); text-decoration: none; font-size: 15px; transition: border-color .3s, background .3s; }
.ga-chips a:hover { border-color: var(--ink); background: #fff; }

/* ------------------------------------------------------------------ cronología */
.timeline-wrap { padding: 56px 0 24px; }
.timeline-tools { display: grid; gap: 4px; background: var(--paper); padding: 6px 0 10px; border-bottom: 1px solid var(--line); }
.timeline-tools .filters { margin: 8px 0 4px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.timeline-tools .filters button { flex: 0 0 auto; }
@media (min-width: 760px) { .timeline-tools { position: sticky; top: 72px; z-index: 5; } .timeline-tools .filters { flex-wrap: wrap; } }
@media (min-width: 1240px) { .timeline-tools { top: 68px; } }
.decades { display: flex; gap: 2px; overflow-x: auto; padding-bottom: 4px; }
.decades a { font: 600 12px var(--sans); letter-spacing: .08em; color: var(--muted); text-decoration: none; padding: 6px 12px; white-space: nowrap; }
.decades a:hover { color: var(--ink); }
.timeline { list-style: none; margin: 32px 0 64px; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 70px; top: 0; bottom: 0; border-left: 1px solid var(--line); }
.timeline::after { content: ''; position: absolute; left: 70px; top: 0; height: 100%; width: 1px; background: var(--ink); transform-origin: top; transform: scaleY(var(--progress, 1)); }
.tl-item { display: grid; grid-template-columns: 56px 1fr; gap: 32px; padding: 18px 0; position: relative; scroll-margin-top: 220px; }
.tl-item[hidden] { display: none; }
.tl-year { font: 300 24px/1.1 var(--serif); color: var(--ink); text-align: right; padding-top: 2px; }
.tl-year[data-repeat] { visibility: hidden; }
.tl-item::before { content: ''; position: absolute; z-index: 1; left: 66px; top: 26px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper);
  border: 1px solid var(--ink); transition: transform .5s var(--ease-out), background .3s; }
.tl-delegacion::before { background: var(--rojo); border-color: var(--rojo); }
.tl-ga::before { background: var(--ink); }
.tl-hito::before { width: 11px; height: 11px; left: 65px; transform: rotate(45deg); border-radius: 0; background: var(--gualda); border-color: var(--gualda); }
.tl-card { display: grid; gap: 6px; padding-bottom: 6px; }
.tl-card .kicker::before { width: 14px; }
.tl-title { font: 400 22px/1.25 var(--serif); color: var(--ink); text-decoration: none; }
a.tl-title:hover { font-style: italic; }
.tl-card p { margin: 2px 0 0; color: var(--muted); font-size: 15px; max-width: 60ch; }
.tl-img { margin-top: 12px; width: 100%; max-width: 440px; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(.85); }
.tl-delegacion .tl-title { font-size: 30px; }
.tl-item:hover::before { transform: scale(1.5); }
.tl-hito:hover::before { transform: rotate(45deg) scale(1.4); }
@media (min-width: 760px) { .timeline::before, .timeline::after { left: 120px; } .tl-item { grid-template-columns: 96px 1fr; gap: 56px; }
  .tl-item::before { left: 116px; } .tl-hito::before { left: 115px; } .tl-year { font-size: 30px; } }

/* ------------------------------------------------------------------ archivo */
.archive-tools { display: grid; gap: 4px; margin: 40px 0 0; }
.archive-tools input { width: 100%; max-width: 560px; padding: 0 0 12px; border: 0; border-bottom: 1px solid var(--ink); font: 300 26px var(--serif); background: transparent; color: var(--text); border-radius: 0; }
.archive-tools input:focus { outline: none; border-bottom-color: var(--rojo); }
.archive-tools input::placeholder { color: #8e979f; }
.count { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.archive-list { list-style: none; padding: 0; margin: 24px 0 88px; border-top: 1px solid var(--line); }
.archive-list li { display: grid; grid-template-columns: 56px 1fr; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.archive-list li[hidden] { display: none; }
.al-year { font: 300 18px var(--serif); color: var(--muted); grid-row: span 2; }
.al-title { font: 400 20px/1.3 var(--serif); color: var(--ink); text-decoration: none; }
.al-title:hover { font-style: italic; }
.al-type, .al-src { font-size: 13px; color: var(--muted); }
@media (min-width: 760px) { .archive-list li { grid-template-columns: 72px 1fr 200px 80px; } .al-year { grid-row: auto; } .al-src { text-align: right; } }

/* ------------------------------------------------------------------ SWY37 */
.s37-hero { position: relative; overflow: hidden; padding: clamp(40px, 5vw, 72px) 0 0; }
.s37-hero .crumbs ol { color: var(--on-dark-muted); } .s37-hero .crumbs li + li::before { color: var(--line-dark); }
.s37-hero h1 { position: relative; color: var(--ivory); font-size: clamp(48px, 8vw, 120px); line-height: .95; margin: 22px 0 24px; max-width: 11ch; }
.s37-hero h1 em { color: var(--gualda-soft); }
.s37-hero .lead { position: relative; color: var(--on-dark); max-width: 38ch; }
.s37-num { margin: 8px 0 0; font: 300 clamp(120px, 20vw, 260px)/1 var(--serif); letter-spacing: -.06em; color: transparent;
  -webkit-text-stroke: 1.5px var(--gualda-soft); user-select: none; }
.s37-hero h1 { margin-top: 18px; }
.s37-hero-grid { display: grid; gap: 40px; align-items: end; }
.s37-hero-photo { position: relative; margin: 0; }
.s37-hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.s37-hero-photo figcaption { margin-top: 10px; font-size: 13px; color: var(--on-dark-muted); }
@media (min-width: 900px) { .s37-hero-grid { grid-template-columns: 6fr 5fr; gap: 72px; } }
.s37-facts { position: relative; display: grid; margin: clamp(48px, 6vw, 88px) 0 0; border-top: 1px solid var(--line-dark); }
.s37-facts div { padding: 22px 0; border-bottom: 1px solid var(--line-dark); display: grid; gap: 6px; }
.s37-facts dt { font: 600 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }
.s37-facts dd { margin: 0; font: 400 21px/1.35 var(--serif); color: var(--ivory); }
@media (min-width: 900px) { .s37-facts { grid-template-columns: repeat(4, 1fr); } .s37-facts div { border-bottom: 0; padding: 26px 28px 30px; border-left: 1px solid var(--line-dark); }
  .s37-facts div:first-child { border-left: 0; padding-left: 0; } }
.s37-route { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; margin: 40px 0 0; padding: 0; list-style: none; }
.s37-route::before { content: ''; position: absolute; left: 6px; right: 6px; top: 6px; border-top: 1px dashed var(--line); }
.s37-route li { position: relative; padding-top: 28px; padding-right: 12px; }
.s37-route li::before { content: ''; position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--rojo); }
.s37-route b { display: block; font: 400 clamp(22px, 2.4vw, 32px)/1.1 var(--serif); color: var(--ink); }
.s37-route span { font-size: 14px; color: var(--muted); }
.s37-countries { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; padding: 0; margin: 28px 0 0; }
.s37-countries li { padding: 8px 14px; border: 1px solid var(--line); font-size: 15px; }
.s37-countries li.es { border-color: var(--ink); background: var(--ink); color: var(--ivory); }
.s37-milestones { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.s37-milestones li { display: grid; grid-template-columns: 1fr; gap: 6px 40px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.s37-date { margin: 0; font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--rojo); }
.s37-milestones h3 { margin: 0 0 6px; font-size: 24px; line-height: 1.25; }
.s37-milestones p { margin: 0; color: var(--muted); max-width: 60ch; }
@media (min-width: 800px) { .s37-milestones li { grid-template-columns: 200px 1fr; } .s37-milestones li > div { grid-column: 2; } }
.s37-crew { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .s37-crew { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.s37-crew a { display: block; overflow: hidden; }
.s37-crew img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 1s var(--ease-out); }
.s37-crew a:hover img { transform: scale(1.04); }
.s37-gallery { display: grid; gap: 28px; list-style: none; margin: 0; padding: 0; }
.s37-gallery figure { position: relative; margin: 0; }
.s37-gallery a { display: block; overflow: hidden; }
.s37-gallery img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 1.2s var(--ease-out); }
.s37-gallery a:hover img { transform: scale(1.03); }
.s37-gallery figcaption { font-size: 15px; color: var(--on-dark); margin-top: 12px; max-width: 52ch; }
.s37-gallery .credit { display: block; margin-top: 4px; font-size: 13px; color: var(--on-dark-muted); }
@media (min-width: 700px) { .s37-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .s37-gallery { grid-template-columns: repeat(3, 1fr); } }
.s37-two { display: grid; gap: 56px; }
@media (min-width: 900px) { .s37-two { grid-template-columns: 5fr 7fr; gap: 96px; } }
.s37-note { margin-top: 24px; padding-left: 18px; border-left: 2px solid var(--line); color: var(--muted); font-size: 16px; max-width: 46ch; }
.s37-voyage-list { margin: 0; border-top: 1px solid var(--line); }
.s37-voyage-list > div { padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
.s37-voyage-list dt { font: 600 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.s37-voyage-list dd { margin: 8px 0 0; font: 400 22px/1.35 var(--serif); color: var(--ink); }
.s37-voyage-list .s37-route { margin-top: 20px; }
.s37-voyage-list .s37-countries { margin-top: 14px; font-family: var(--sans); }
.prose pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.s37-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.cta-line a { font-weight: 600; text-decoration-color: var(--rojo); }
.big-text { font: 300 clamp(22px, 2.2vw, 28px)/1.45 var(--serif); color: var(--ink); margin: 0 0 32px; max-width: 34ch; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

details.original[open] summary::after { content: ' −'; }
details.original[open] summary { margin-bottom: 24px; }

/* ------------------------------------------------------------------ pie */
.footer { background: var(--abyss); color: var(--on-dark-muted); padding: clamp(72px, 8vw, 112px) 0 36px; font-size: 15px; }
.footer a { color: var(--on-dark); text-decoration: none; transition: color .3s; }
.footer a:hover { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--gualda); }
.footer-top { display: grid; gap: 56px; }
.footer-brand img { width: 240px; height: auto; }
.footer-brand p { max-width: 34ch; margin-top: 20px; }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 40px; }
.footer-nav h2 { font: 600 11px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); margin: 0 0 16px; }
.footer-nav h2 .icon { display: none; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 32px; margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 13px; }
.footer-base p { margin: 0; }
.footer-mark { display: block; flex-basis: 100%; max-width: 40px; height: 2px; background: var(--rojigualda); margin-bottom: 4px; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.footer-legal a { display: inline-block; padding: 6px 0; }
.footer-small { font-size: 13px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1fr 2fr; } }

/* ------------------------------------------------------------------ visor */
.lightbox-dialog { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(6 11 19 / .97); color: var(--ivory); }
.lightbox-dialog[open] { display: grid; place-items: center; }
.lightbox-dialog::backdrop { background: rgb(6 11 19 / .9); }
.lightbox-dialog figure { margin: 0; display: grid; gap: 14px; justify-items: center; padding: 64px 16px; }
.lightbox-dialog img { max-width: min(1400px, 92vw); max-height: 80vh; width: auto; object-fit: contain; }
.lightbox-dialog figcaption { color: var(--on-dark); max-width: 680px; text-align: center; font: 400 17px/1.5 var(--serif); }
.lightbox-dialog button { position: fixed; background: transparent; color: var(--ivory); border: 1px solid rgb(244 240 231 / .3); width: 48px; height: 48px;
  font-size: 24px; line-height: 1; cursor: pointer; transition: background .3s, border-color .3s; }
.lightbox-dialog button:hover { background: rgb(244 240 231 / .1); border-color: var(--ivory); }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 16px; top: 50%; } .lb-next { right: 16px; top: 50%; }
.lb-count { position: fixed; bottom: 16px; left: 0; right: 0; text-align: center; font: 600 11px var(--sans); letter-spacing: .16em; color: var(--on-dark-muted); margin: 0; }
@media (prefers-reduced-motion: no-preference) { .lightbox-dialog[open] img { animation: fade .5s var(--ease-out) both; } }

/* ------------------------------------------------------------------ apariciones */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .reveal.is-visible { opacity: 1; transform: none; }
  .tl-item.reveal { transform: translateX(-16px); }
  .tl-item.reveal.is-visible { transform: none; }
  .porthole.reveal { transform: scale(.96); }
  .porthole.reveal.is-visible { transform: none; }
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .3s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vt-in .5s var(--ease-out) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
/* ------------------------------------------------------------------ v6: idiomas */
.lang-switch ul { display: flex; gap: 0; padding: 0 var(--gutter) 40px; }
.lang-switch li { border: 0; }
.nav .lang-switch a { font: 600 13px var(--sans); letter-spacing: .1em; padding: 12px 14px; min-height: 44px; color: var(--muted); }
.lang-switch li + li a { border-left: 1px solid var(--line); }
.nav .lang-switch a[aria-current="true"] { color: var(--ink); font-style: normal; text-decoration: underline; text-decoration-color: var(--rojo); text-underline-offset: .35em; }
@media (min-width: 1240px) {
  .lang-switch ul { padding: 0; }
  .nav .lang-switch a { padding: 8px 9px; min-height: 0; font-size: 12px; }
  .nav .lang-switch a::after { display: none; }
  .page-home .header:not(.is-scrolled) .lang-switch a { color: var(--on-dark-muted); }
  .page-home .header:not(.is-scrolled) .lang-switch a[aria-current="true"] { color: var(--ivory); }
  .page-home .header:not(.is-scrolled) .lang-switch li + li a { border-color: var(--line-dark); }
}
/* Japonés: fuentes del sistema; las páginas en español no cargan nada adicional */
html:lang(ja) { --serif: var(--serif-ja); --sans: var(--sans-ja); }
html:lang(ja) body { line-height: 1.85; letter-spacing: .02em; line-break: strict; overflow-wrap: anywhere; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3, html:lang(ja) .display { letter-spacing: 0; line-height: 1.3; font-weight: 500; }
html:lang(ja) .hero h1 { font-size: clamp(32px, 4.8vw, 70px); line-height: 1.25; max-width: none; }
html:lang(ja) h1, html:lang(ja) h2 { word-break: keep-all; overflow-wrap: anywhere; }
html:lang(ja) .prose { text-align: start; hyphens: manual; }
html:lang(ja) .kicker, html:lang(ja) .eyebrow { letter-spacing: .08em; }

/* ------------------------------------------------------------------ v6: portada por capítulos */
.ch-num { font-variant-numeric: tabular-nums; margin-right: .9em; color: var(--rojo); }
.on-dark .ch-num, .join .ch-num, .hero .ch-num { color: var(--gualda-soft); }
.more-line { margin-top: 40px; }
.facts-list { display: grid; gap: 0; margin: 32px 0 36px; border-top: 1px solid var(--line); }
.facts-list div { display: grid; grid-template-columns: minmax(7em, 9em) 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts-list dt { font: 600 11px/1.9 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts-list dd { margin: 0; color: var(--ink); }
.memory-grid { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.memory-grid a { position: relative; display: block; overflow: hidden; color: var(--ivory); text-decoration: none; background: var(--ink); }
.memory-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity .6s; opacity: .92; }
.memory-grid a:hover img, .memory-grid a:focus-visible img { transform: scale(1.04); opacity: 1; }
.memory-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 14px; font: 400 18px/1.25 var(--serif);
  background: linear-gradient(transparent, rgb(6 11 19 / .9) 60%); }
.memory-cap b { display: block; font: 600 11px var(--sans); letter-spacing: .16em; color: var(--gualda-soft); margin-bottom: 4px; }
@media (min-width: 700px) { .memory-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .memory-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .memory-grid li:first-child { grid-column: span 2; grid-row: span 2; }
  .memory-grid li:first-child a { height: 100%; }
  .memory-grid li:first-child img { aspect-ratio: auto; height: 100%; }
}
.credit { margin-top: 18px; font-size: 13px; color: var(--muted); }
.stub-page { font: italic 400 22px/1.4 var(--serif); color: var(--muted); margin: 0 0 32px; }

/* ------------------------------------------------------------------ v6: vista previa (nunca en producción) */
.preview-flag { margin: 0; padding: 6px var(--gutter); background: var(--gualda); color: var(--ink); font: 600 12px var(--sans); letter-spacing: .08em; text-align: center; }
.pending-badge { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 4px 10px; background: var(--gualda); color: var(--ink);
  font: 600 11px var(--sans); letter-spacing: .06em; }
.lab-controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 0 0 24px; }
.lab-controls button { min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); background: none; font: 600 13px var(--sans); cursor: pointer; }
.lab-controls button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }
.lab-stage { min-height: 70vh; margin-bottom: 40px; }
.lab-stage[data-mode="a"] .sc, .lab-stage[data-mode="a"] .sc * { animation: none !important; transition: none !important; }
.lab-stage[data-mode="a"] .motion-toggle { display: none; }
.lab-table { width: 100%; border-collapse: collapse; margin-bottom: 88px; font-size: 15px; }
.lab-table caption { text-align: left; font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; }
.lab-table th, .lab-table td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ travesía editorial: navegación minimalista fuera del barco.
   El hero conserva toda su amplitud visual y los enlaces permanecen accesibles sin animación. */
.voyage {
  position: relative;
  z-index: 1;
  padding: clamp(26px, 3.4vw, 46px) 0;
  background: var(--abyss);
  border-top: 1px solid rgb(244 240 231 / .09);
  color: var(--on-dark);
}
.voyage-title {
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin: 0 auto 20px;
  font: 600 10px/1.5 var(--sans);
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.voyage-route { display: none; }
.voyage-ports {
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  display: flex;
  align-items: stretch;
  gap: clamp(20px, 3vw, 60px);
  list-style: none;
  margin: 0 auto;
  padding: 0 0 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgb(244 240 231 / .25) transparent;
}
.port {
  flex: 0 0 auto;
  min-width: 0;
  scroll-snap-align: start;
}
.port a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 0 12px;
  color: var(--ivory);
  font: 500 15px/1.3 var(--sans);
  text-decoration: none;
  background: none;
  border: 0;
  border-bottom: 1px solid rgb(244 240 231 / .24);
  border-radius: 0;
  transition: color .2s, border-color .2s;
}
.port a:hover, .port a:focus-visible {
  color: #fff;
  border-bottom-color: var(--gualda-soft);
}
.port a:focus-visible { outline: 2px solid var(--gualda-soft); outline-offset: 4px; }
.port-dot { display: none; }
.port-name { display: inline-flex; align-items: baseline; white-space: nowrap; gap: 7px; }
.port-n { font: 500 11px/1 var(--sans); letter-spacing: .08em; color: var(--gualda-soft); }
.port-card {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap;
}
@media (min-width: 980px) {
  .voyage-ports { justify-content: space-between; }
}
@media (max-width: 599px) {
  .voyage-title { margin-bottom: 12px; }
  .voyage-ports { gap: 28px; padding-bottom: 12px; }
  .port a { font-size: 14px; }
}

/* El barco y la portada ya no quedan tapados por cinco puntos y sus etiquetas.
   El menú náutico está en una línea editorial discreta a continuación del hero. */

/* Control de movimiento: botón pequeño, con nombre accesible y texto visible al pasar o enfocar */
.motion-toggle { position: absolute; z-index: 5; right: var(--gutter); bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 12px; justify-content: center; background: rgb(6 11 19 / .45); color: var(--on-dark-muted);
  border: 1px solid var(--line-dark); border-radius: 999px; cursor: pointer; font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.motion-toggle:hover, .motion-toggle:focus-visible { color: var(--ivory); border-color: rgb(244 240 231 / .4); }
.mt-icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mt-play { display: none; fill: currentColor; stroke: none; }
.motion-off .mt-pause { display: none; } .motion-off .mt-play { display: inline; }
.mt-label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--ease-out); }
.motion-toggle:hover .mt-label, .motion-toggle:focus-visible .mt-label { max-width: 12em; }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }
@media (min-width: 900px) { .motion-toggle { bottom: auto; top: 112px; } }
/* Movimiento detenido por la persona: la escena queda en su estado final y nada aparece con animación */
.motion-off .sc, .motion-off .sc * { animation: none !important; transition: none !important; }
.motion-off .hero * { animation: none !important; }
.motion-off .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ------------------------------------------------------------------ Global Assembly 18 · Spain 2027 */
.ga18-section { background: radial-gradient(90% 120% at 100% 0%, #163049 0%, var(--ink) 55%); }
.ga18-grid { display: grid; gap: 48px; align-items: center; }
.ga18-grid > * { min-width: 0; }
.ga18-grid .btn { margin-top: 12px; }
@media (min-width: 960px) { .ga18-grid { grid-template-columns: 5fr 6fr; gap: 88px; } }
.ga18 { position: relative; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line-dark); background: rgb(6 11 19 / .35); }
.ga18-mark { display: flex; align-items: center; gap: 12px; color: var(--gualda-soft); margin-bottom: 20px; }
.ga18-mark .icon { width: 28px; height: 28px; --icon-accent: var(--rojo); }
.ga18-num { font: 300 clamp(44px, 5vw, 64px)/1 var(--serif); letter-spacing: -.03em; color: var(--ivory); }
.ga18-facts { margin: 0 0 26px; border-top: 1px solid var(--line-dark); }
.ga18-facts div { display: grid; grid-template-columns: minmax(7em, 9em) 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.ga18-facts dt { font: 600 11px/1.9 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.ga18-facts dd { margin: 0; color: var(--ivory); }
.ga18-tbc { color: var(--gualda-soft); }
.ga18-year { margin: 0; }
.ga18-year figcaption { font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 12px; }
.ga18-year ol { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; list-style: none; margin: 0; padding: 0; }
.ga18-year li { position: relative; height: 54px; border-top: 2px solid rgb(244 240 231 / .18); }
.ga18-year li span { position: absolute; left: 0; bottom: 0; font: 500 11px var(--sans); color: var(--on-dark-muted); letter-spacing: .04em; }
.ga18-year li.is-planned { border-top-color: var(--gualda); background: linear-gradient(rgb(241 191 0 / .14), transparent); }
.ga18-year li.is-planned span { color: var(--ivory); font-weight: 700; }
.ga18-year li.is-planned::before { content: ''; position: absolute; left: 50%; top: 10px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: var(--gualda); box-shadow: 0 0 0 4px rgb(241 191 0 / .18); }
.ga18-year-note { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-size: 14px; color: var(--on-dark); }
.ga18-year-note .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gualda); flex: 0 0 auto; }
@media (max-width: 520px) { .ga18-year li span { font-size: 9px; letter-spacing: 0; } }
.ga18-countdown .ga18-cd-label { margin: 0 0 12px; color: var(--on-dark); }
.ga18-cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; list-style: none; margin: 0; padding: 0; }
.ga18-cd li { padding: 12px 0; border-top: 2px solid var(--gualda); text-align: left; }
.ga18-cd b { display: block; font: 300 clamp(32px, 4vw, 48px)/1 var(--serif); font-variant-numeric: tabular-nums; color: var(--ivory); }
.ga18-cd span { font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
/* En la página del evento (fondo claro), el módulo va en una tarjeta oscura al principio del texto */
.prose > .ga18 { margin: 0 0 48px; background: var(--ink); color: var(--on-dark); }

@media print { .header, .footer, .prevnext, .filters, .lightbox-dialog, .hero-scene, .lang-switch, .motion-toggle, .voyage { display: none !important; } body { background: #fff; } }
