/* =========================================================
   San Telmo · Exchange and Travel
   Valores tomados de la maqueta de referencia (Inicio-html.zip)
   ========================================================= */
:root {
  --navy: #0b2d48;
  --paper: #fbf8f2;
  --sand: #f5f0e6;
  --sand-block: #efe4d1;   /* fondo de los bloques claros: color arena */
  --card: #fffdf9;         /* tarjetas sobre la arena: blanco */
  --line: #d8c9b5;
  --stone: #6f6a64;
  --ink-soft: #4f4a45;
  --gold: #b79a55;
  --gold-light: #d9bf7f;
  --cream-soft: #e9e2d6;
  --wrap: 1240px;
  --wave-h: clamp(56px, 9vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: Quicksand, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: clip;
}
img { max-width: 100%; }
a { color: var(--navy); }
a:hover { color: var(--stone); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--navy); color: var(--paper); padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { left: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 480px) { .wrap { padding-left: 16px; padding-right: 16px; } }

/* ---------- Botones ---------- */
.btn { display: inline-block; text-decoration: none; padding: 15px 28px; border-radius: 999px; font-weight: 600; line-height: 1.3; }
.btn--cream { background: var(--paper); color: var(--navy); }
.btn--cream:hover { background: #fff; color: var(--navy); }
.btn--ghost { border: 1px solid var(--paper); color: var(--paper); padding: 14px 28px; }
.btn--ghost:hover { background: rgba(251,248,242,.12); color: var(--paper); }
.btn--navy { background: var(--navy); color: var(--paper); }
.btn--navy:hover { background: #134066; color: var(--paper); }
.btn--sm { padding: 11px 20px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Cabecera ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.site-header__inner { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-header__logo img { height: 52px; width: auto; display: block; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 16px; font-weight: 500; }
.site-nav a { text-decoration: none; padding: 10px 0; }
.site-header__aside { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; gap: 4px; font-size: 14px; }
.lang a { padding: 10px 6px; color: var(--stone); text-decoration: none; }
.lang a[aria-current] { color: var(--navy); font-weight: 600; }
@media (max-width: 720px) {
  .site-header__logo img { height: 40px; }
  .site-nav { order: 3; width: 100%; gap: 4px 20px; font-size: 15px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; }
  .site-header__aside .btn { display: none; }
}

/* =========================================================
   HERO · cinta curva (240svh de recorrido, escena sticky 100svh)
   ========================================================= */
.hero { position: relative; height: calc(100svh - var(--header-h, 0px)); min-height: 480px; background: var(--navy); }

.hero__scene { position: relative; height: 100%; overflow: hidden; color: var(--paper); }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; }
/* velo suave sólo en los bordes para que el texto se lea; la foto no se oscurece en el centro */
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,45,72,.55) 0%, rgba(11,45,72,.08) 32%, rgba(11,45,72,0) 55%, rgba(11,45,72,.6) 100%); pointer-events: none; }
.hero__ribbon { position: absolute; inset: 0; pointer-events: none; }
.hero__ribbon svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero__content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(40px, 9vh, 96px); padding-bottom: clamp(32px, 7vh, 72px); }
.hero__title { margin: 0; font-family: Jost, sans-serif; font-weight: 300; font-size: clamp(44px, 6vw, 84px); line-height: 1.05; max-width: 14ch; text-shadow: 0 1px 24px rgba(11,45,72,.25); }
.hero__lead { margin: 18px 0 0; font-size: 20px; max-width: 34em; }
.hero__bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.ribbon-controls { display: flex; gap: 6px; }
.ribbon-controls__btn { font: 500 13px/1 Quicksand, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--paper); background: rgba(11,45,72,.45); border: 1px solid rgba(251,248,242,.45); border-radius: 999px; padding: 9px 14px; cursor: pointer; backdrop-filter: blur(4px); }
.ribbon-controls__btn:hover { background: rgba(11,45,72,.7); }
.ribbon-controls__btn[aria-pressed="true"] { background: var(--paper); color: var(--navy); }
@media (max-width: 600px) {
  .hero__lead { font-size: 17px; }
  .hero__bottom .btn { padding: 13px 22px; font-size: 16px; }
}

/* =========================================================
   Bloques
   ========================================================= */
section, .site-footer { position: relative; }
.block--paper { background: var(--sand-block); color: var(--navy); }
.block--sand { background: var(--sand); color: var(--navy); }
.block--navy { background: var(--navy); color: var(--paper); }
.block__pad { padding-top: 96px; padding-bottom: 96px; }
.block__pad--sm { padding-top: 72px; padding-bottom: 72px; }

.eyebrow { margin: 0 0 12px; color: var(--stone); font-size: 15px; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow--sand { color: var(--line); }
/* antetítulo dentro del h2: misma apariencia que antes, pero cuenta como encabezado */
.h2 > .eyebrow { display: block; font-family: Quicksand, system-ui, sans-serif; font-weight: 400; line-height: 1.6; }
.h2 { margin: 0 0 48px; font-family: Jost, sans-serif; font-weight: 300; font-size: clamp(32px, 4vw, 44px); line-height: 1.15; }
.h2--narrow { max-width: 18ch; }
.h2--fluid { margin-bottom: 20px; font-size: clamp(36px, 4vw, 52px); line-height: 1.1; }
.h2--sm { margin-bottom: 8px; font-size: clamp(28px, 3.4vw, 36px); }
.h2--tight { margin-bottom: 20px; }
.h2--flush { margin: 0; }
.muted { color: var(--stone); }
.measure { margin: 0 0 32px; color: var(--ink-soft); max-width: 40em; }
.body-copy { margin: 0 0 16px; color: var(--ink-soft); max-width: 34em; }

.grid { display: grid; gap: 24px; }
.grid--280 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--260 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid--210 { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 16px; }

/* Qué suerte */

.que-suerte__inner { padding-top: 120px; padding-bottom: 160px; display: flex; align-items: center; gap: .28em; font-family: Jost, sans-serif; font-weight: 300; font-size: clamp(30px, 5vw, 68px); line-height: 1.25; }
.que-suerte__label { margin: 0; font: inherit; color: var(--line); white-space: nowrap; }
.qs-box { flex: 1; min-width: 0; height: 560px; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.qs-box::-webkit-scrollbar { display: none; }
.qs-list { list-style: none; margin: 0; padding: calc(280px - .625em) 0; }
.qs-list li { scroll-snap-align: center; opacity: .35; transition: opacity .2s; }
@supports (animation-timeline: view()) {
  .qs-list li { opacity: .22; animation: qsBrighten linear both; animation-timeline: view(); animation-range: cover 38% cover 62%; }
}
@keyframes qsBrighten { 0% { opacity: .22 } 50% { opacity: 1; color: var(--gold-light) } 100% { opacity: .22 } }
@media (max-width: 600px) {
  .que-suerte__inner { flex-direction: column; align-items: flex-start; padding-top: 96px; padding-bottom: 96px; }
  .qs-box { flex: none; width: 100%; height: min(420px, 55svh); }
  .qs-list { padding: calc(min(210px, 27.5svh) - .625em) 0; }
}

/* Servicios */
.service { display: flex; flex-direction: column; gap: 12px; background: var(--card); padding: 36px 32px; border-radius: 6px; text-decoration: none; color: var(--navy); transition: transform .25s ease; }
.service:hover { color: var(--navy); transform: translateY(-3px); }
.service h3 { margin: 0; font-family: Jost, sans-serif; font-weight: 400; font-size: 28px; }
.service p { margin: 0; color: var(--ink-soft); }
.service__more { margin-top: 8px; font-weight: 600; }

/* Lotería */
.loteria { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.loteria picture { display: block; margin: 0 auto; }
.loteria__santito { width: 260px; height: auto; display: block; margin: 0 auto; }
.loteria__text { flex: 999 1 520px; min-width: 0; }
.loteria__lead { margin: 0 0 32px; max-width: 36em; color: var(--cream-soft); }
.loteria__quote { margin: 28px 0 0; font-size: 14px; color: var(--line); font-style: italic; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px 32px; margin-bottom: 40px; }
.facts > div { border-top: 1px solid var(--gold); padding-top: 14px; }
.facts p { margin: 0; }
.facts__t { font-weight: 600; }
.facts__d { margin-top: 4px !important; color: var(--line); font-size: 16px; }

/* Juegos online */
.game { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 20px 18px; text-decoration: none; color: var(--navy); }
.game:hover { border-color: var(--gold); color: var(--navy); }
.game__name { display: block; font-family: Jost, sans-serif; font-weight: 400; font-size: 21px; line-height: 1.2; }
.game__when { display: block; margin-top: 4px; font-size: 14px; color: var(--stone); }
.game img { display: block; width: 153px; height: auto; }
.signup { margin: 28px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 20px 22px; border: 1px dashed var(--line); border-radius: 8px; }
.signup p { margin: 0; flex: 1 1 320px; }
.signup img { display: block; width: 153px; height: auto; }
.fineprint { margin: 14px 0 0; font-size: 13px; color: var(--stone); }

/* Historias */
.story { margin: 0; }
.story__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.story__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__play { position: relative; }
.story__play { width: 64px; height: 64px; border-radius: 50%; background: rgba(251,248,242,.92); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.story figcaption { margin-top: 14px; }
.story strong { font-weight: 600; }
.story figcaption span { color: var(--stone); font-size: 16px; }

/* Excursiones */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.link-strong { font-weight: 600; }

/* Divisas / Casa */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split__main { flex: 999 1 460px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chips span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: 16px; }
.hours { flex: 1 1 320px; background: var(--navy); color: var(--paper); border-radius: 6px; padding: 36px 32px; }
.hours h3 { margin: 0 0 16px; font-family: Jost, sans-serif; font-weight: 400; font-size: 26px; }
.hours p { margin: 0 0 6px; }
.casa__photo { display: block; flex: 1 1 380px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; }
.casa__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Pie */
.site-footer { background: var(--navy); color: var(--paper); }
.site-footer__inner { padding-top: 72px; padding-bottom: 40px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 40px; margin-bottom: 48px; }
.site-footer__cols h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.site-footer__cols p { margin: 0; color: var(--cream-soft); font-size: 16px; }
.site-footer a { color: var(--paper); }
.site-footer__brand { margin: 0 0 8px !important; font-family: Jost, sans-serif; font-size: 30px !important; font-weight: 300; color: var(--paper) !important; }
.site-footer__tag { color: var(--line) !important; font-size: 14px !important; letter-spacing: .14em; text-transform: uppercase; }
.site-footer__legal { border-top: 1px solid rgba(216,201,181,.4); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--line); }
.site-footer__legal p { margin: 0; }
.site-footer__legal p:last-child a { color: var(--line); }

/* =========================================================
   Excursiones · cinta 3D curva
   ========================================================= */
#excursiones > .wrap.block__pad { padding-bottom: 8px; }
.exc { position: relative; width: 100%; }
.exc__stage { position: relative; width: 100%; height: clamp(360px, 58svh, 620px); overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.exc__stage.is-dragging { cursor: grabbing; }
.exc__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.exc__hits { position: absolute; inset: 0; pointer-events: none; }
.exc__hit { position: absolute; left: 0; top: 0; padding: 0; margin: 0; border: 0; background: transparent; border-radius: 20px; cursor: pointer; pointer-events: auto; }
.exc__hit:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.exc__detail { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding: 8px 0 0; }
.exc__info { flex: 1 1 420px; min-width: 0; }
.exc__title { margin: 0 0 6px; font-family: Jost, sans-serif; font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; }
.exc__desc { margin: 0 0 6px; color: var(--ink-soft); max-width: 40em; }
.exc__meta { margin: 0; color: var(--stone); font-size: 16px; }
.exc__buy { display: flex; align-items: center; gap: 18px; }
.exc__price { font-weight: 600; white-space: nowrap; }
.exc__hint { margin: 18px 0 72px; font-size: 14px; color: var(--stone); }

/* =========================================================
   Pantalla de entrada «Qué suerte»
   ========================================================= */
html.is-intro, html.is-intro body { overflow: hidden; }
.intro { position: fixed; inset: 0; z-index: 1450; display: none; flex-direction: column; justify-content: center; background: var(--navy); color: var(--paper); }
html.is-intro .intro { display: flex; }
.intro .que-suerte__inner { padding-top: 0; padding-bottom: 0; width: 100%; }
.intro .qs-box:focus-visible { outline: none; }
.intro__foot { position: absolute; left: 0; right: 0; bottom: clamp(20px, 5vh, 48px); display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.intro__hint { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--line); animation: qsHint 1.6s ease-in-out infinite; }
.intro__skip { font: 600 14px/1 Quicksand, system-ui, sans-serif; color: var(--paper); background: transparent; border: 1px solid rgba(251,248,242,.5); border-radius: 999px; padding: 11px 18px; cursor: pointer; }
.intro__skip:hover { background: rgba(251,248,242,.12); }
@media (prefers-reduced-motion: reduce) { .intro__hint { animation: none; } }
@media (max-width: 600px) { .intro__foot { padding: 0 16px; } }

/* Lista rastreable de todas las excursiones (también sirve para saltar a cada una) */
.exc__all { margin-top: 28px; }
.exc__all-title { margin: 0 0 12px; font-family: Quicksand, system-ui, sans-serif; font-weight: 400; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); }
.exc__all ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.exc__all button { font: 500 15px/1.3 Quicksand, system-ui, sans-serif; color: var(--navy); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.exc__all button:hover { border-color: var(--gold); }
.exc__all button[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.exc__hint { margin-top: 14px !important; }

/* =========================================================
   Bloques azules: textos y detalles adaptados al fondo oscuro
   (los bloques se alternan azul / blanco)
   ========================================================= */
.block--navy .eyebrow { color: var(--line); }
.block--navy .muted,
.block--navy .body-copy { color: var(--cream-soft); }
.block--navy .story figcaption span { color: var(--line); }
.block--navy .chips span { border-color: rgba(216,201,181,.5); }
.block--navy .hours { background: var(--paper); color: var(--navy); }
.block--navy a:not(.btn) { color: var(--paper); }

/* =========================================================
   Mar animado entre bloques azules y blancos (js/sea-divider.js)
   ========================================================= */
.sea { position: relative; height: clamp(110px, 16vw, 260px); margin: -1px 0; overflow: hidden; background: var(--sea-top); pointer-events: none; }
.sea--flip { background: var(--sea-bottom); }
.sea__svg { display: block; width: 100%; height: 100%; }
.sea--flip .sea__svg { transform: scaleY(-1); }
/* el movimiento de ola lo dibuja js/sea-divider.js (sólo mientras está a la vista) */


/* El mar también despide la pantalla de entrada: la intro sube y su borde inferior es la ola */
.intro { transition: transform .95s cubic-bezier(.65, 0, .35, 1); }
.intro.is-leaving { transform: translateY(calc(-100% - clamp(110px, 16vw, 260px))); }
.sea--intro { position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: transparent; }
@media (prefers-reduced-motion: reduce) { .intro { transition: none; } }
