/* ==========================================================================
   Holiday Travel - Bloqueos 2027
   Dirección: papelería de viaje (timbres, boletos, correo aéreo).
   Tinta azul del logo + mango sobre papel crema.

   Tamaños de letra: nada informativo baja de 14 px (.875rem).
   Las etiquetas en mayúsculas no bajan de 13 px (.8125rem).
   ========================================================================== */

/* ---------- Fuentes (alojadas aquí, licencia SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Besley";
  src: url("fonts/besley-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light only;

  --azul: #2d63ad;        /* letras del logo */
  --azul-hondo: #265897;  /* palmera del logo */
  --azul-rayo: #2b60a8;
  --tinta: #10294f;
  --noche: #0a1b36;
  --papel: #f6efe0;
  --papel-2: #ebe1ca;
  --ticket: #fffaf0;
  --mango: #ff8a2e;
  --mango-hondo: #c9600c;
  --turquesa: #35d0c0;
  --wa: #25d366;
  --wa-hondo: #128a43;

  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-display: "Archivo", "Arial Narrow", sans-serif;
  --f-serif: "Besley", Georgia, "Times New Roman", serif;

  --t-small: .875rem;    /* 14 px: piso para texto informativo */
  --t-micro: .8125rem;   /* 13 px: piso para etiquetas */

  --wrap: 1200px;
  --gut: clamp(16px, 4.4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pop: cubic-bezier(.3, 1.5, .5, 1);
  --focus: var(--tinta);
  --tray-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  accent-color: var(--azul);
  scrollbar-color: var(--azul) var(--papel-2);
}
/* el desplazamiento suave solo se activa al tocar un enlace interno (ver app.js) */
html.is-jumping { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-bottom: var(--tray-h);
  background: var(--noche);
  color: var(--tinta);
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--mango); color: var(--noche); }

img, svg { max-width: 100%; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 20px; }

a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: .08em; }
input { caret-color: var(--azul); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gut) * 2);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  display: inline-block;
  width: 1.25em; height: 1.25em;
  flex: none;
  fill: currentColor;
  vertical-align: middle;
}

.skip {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--tinta);
  color: var(--papel);
  border-radius: 8px;
  font-weight: 700;
}
.skip:focus { top: 12px; --focus: var(--mango); }

.display {
  margin: 0;
  text-wrap: balance;
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 62%;
  line-height: .9;
  letter-spacing: -.005em;
  text-transform: uppercase;
}

.airmail {
  height: 10px;
  background: repeating-linear-gradient(-55deg,
    var(--azul) 0 16px, var(--papel) 16px 24px,
    var(--mango) 24px 40px, var(--papel) 40px 48px);
}
.airmail--thin { height: 6px; }

/* frase que explica qué pasa al tocar un botón de WhatsApp */
.assure { margin: 0; font-size: var(--t-small); line-height: 1.4; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  font-weight: 700;
}
.textlink .icon { width: 1.1em; height: 1.1em; color: var(--azul); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .62em 1.2em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--f-sans);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s, color .18s;
}
.btn .icon { width: 1.4em; height: 1.4em; }
.btn--lg { min-height: 58px; padding-inline: 1.5em; font-size: 1.1rem; }

.btn--wa {
  background: var(--wa);
  color: var(--noche);
  box-shadow: 0 4px 0 var(--wa-hondo);
}
.btn--mango {
  background: var(--mango);
  color: var(--noche);
  box-shadow: 0 4px 0 var(--mango-hondo);
}
.btn--wa:hover, .btn--mango:hover { transform: translateY(-2px); }
.btn--wa:hover { box-shadow: 0 6px 0 var(--wa-hondo); }
.btn--mango:hover { box-shadow: 0 6px 0 var(--mango-hondo); }
.btn--wa:active, .btn--mango:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--wa-hondo); }
.btn--mango:active { box-shadow: 0 1px 0 var(--mango-hondo); }

/* pregunta: contorno, con el icono de WhatsApp en verde */
.btn--ask, .btn--paper {
  background: transparent;
  color: var(--tinta);
  border-color: var(--tinta);
}
.btn--paper { background: var(--ticket); }
.btn--ask .icon, .btn--paper .icon { color: var(--wa-hondo); }
.btn--ask:hover, .btn--paper:hover { background: var(--tinta); color: var(--papel); }
.btn--ask:hover .icon, .btn--paper:hover .icon { color: var(--wa); }
.btn--ask:active, .btn--paper:active { transform: translateY(1px); }

.btn--on-dark { color: var(--papel); border-color: rgba(246, 239, 224, .7); }
.btn--on-dark .icon { color: var(--wa); }
.btn--on-dark:hover { background: var(--papel); color: var(--noche); }
.btn--on-dark:hover .icon { color: var(--wa-hondo); }

/* ==========================================================================
   Encabezado
   ========================================================================== */
.top { position: relative; z-index: 5; background: var(--papel); }
.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 12px;
}
.top__logo { display: block; flex: none; border-radius: 4px; }
.top__logo img { display: block; width: auto; height: 46px; }
.top .btn--ask { min-height: 44px; padding-inline: 1em; font-size: .94rem; }

@media (min-width: 800px) {
  .top__in { padding-block: 18px; }
  .top__logo img { height: 60px; }
  .top .btn--ask { min-height: 48px; font-size: 1rem; padding-inline: 1.2em; }
}

/* ==========================================================================
   Portada
   ========================================================================== */
.hero {
  --focus: #fff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--azul-hondo);
  color: var(--papel);
}
.hero__grid {
  display: grid;
  grid-template-areas: "title" "art" "body";
  gap: 20px;
  padding-block: 22px 44px;
}

.hero__title {
  grid-area: title;
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 62%;
  font-size: clamp(4.2rem, 21.4vw, 6.6rem);
  line-height: .83;
  letter-spacing: -.012em;
  text-transform: uppercase;
}
.hero__word { display: block; }
.hero__row { display: flex; align-items: flex-end; gap: .14em; }
.hero__year { color: var(--mango); }
.hero__where {
  max-width: 8.6em;
  padding-bottom: .46em;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  font-stretch: 100%;
  font-size: clamp(1.06rem, 5vw, 1.7rem);
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: none;
}

.hero__body { grid-area: body; min-width: 0; }
.hero__lede {
  max-width: 38ch;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.42;
}

/* Accesos a cada hotel */
.hero__tags {
  display: grid;
  grid-auto-rows: 1fr; /* todas miden lo mismo, también apiladas */
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.hero__tags > li { display: grid; }
.tag {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  align-content: center;
  gap: 3px 12px;
  min-height: 72px;
  padding: 12px 12px 12px 18px;
  background: var(--ticket);
  color: var(--tinta);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(10, 27, 54, .35);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.tag--noche { background: var(--tinta); color: var(--papel); }
.tag:hover { transform: translateY(-3px); box-shadow: 0 7px 0 rgba(10, 27, 54, .35); }
.tag:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(10, 27, 54, .35); }
.tag__name {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 62%;
  font-size: 1.55rem;
  line-height: .95;
  text-transform: uppercase;
}
.tag__loc {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  font-size: var(--t-small);
  line-height: 1.25;
}
.tag__perk {
  padding: .2em .55em .16em;
  background: var(--turquesa);
  color: var(--noche);
  border-radius: 6px;
  font-weight: 800;
  font-size: var(--t-micro);
  letter-spacing: .03em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag__price {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
  line-height: 1;
}
.tag__from { font-weight: 700; font-size: var(--t-micro); white-space: nowrap; }
.tag__amount {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 70%;
  font-size: 1.9rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tag__go {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  background: var(--papel-2);
  color: var(--tinta);
  border-radius: 50%;
  transition: background-color .2s, transform .2s var(--ease);
}
.tag--noche .tag__go { background: rgba(246, 239, 224, .18); color: var(--papel); }
.tag__go .icon { width: 15px; height: 15px; }
.tag:hover .tag__go { background: var(--mango); color: var(--noche); transform: translateY(2px); }
.hero__note { margin: 12px 0 0; font-size: var(--t-small); line-height: 1.45; }

/* Timbre con la galería de fotos */
.hero__art {
  grid-area: art;
  position: relative;
  justify-self: center;
  width: min(100%, 520px);
  padding: 4px 8px 0 4px;
}
.hero__sun {
  position: absolute;
  right: 8%;
  top: min(31vw, 165px);  /* el sol asoma detrás del timbre, sin subir al título */
  width: 0; height: 0;
  z-index: -1;
}
.hero__sun::before {  /* rayos */
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 240vmax; height: 240vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 3deg, var(--azul-hondo) 0 7.5deg, var(--azul-rayo) 7.5deg 15deg);
  -webkit-mask: radial-gradient(circle closest-side, #000 0, #000 12%, #0000 46%);
          mask: radial-gradient(circle closest-side, #000 0, #000 12%, #0000 46%);
}
.hero__sun::after {  /* sol */
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: min(62vw, 330px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--mango);
}

.stamp {
  margin: 0;
  transform: rotate(1.6deg);
  filter: drop-shadow(0 3px 0 rgba(10, 27, 54, .22)) drop-shadow(0 22px 26px rgba(10, 27, 54, .38));
}
.stamp__paper {
  --d: 15px;
  --r: 4.4px;
  --hole-a: #0000 var(--r), #000 calc(var(--r) + .7px);
  padding: 14px 14px 0;
  background: var(--ticket);
  color: var(--tinta);
  -webkit-mask:
    radial-gradient(circle at 50% 0, var(--hole-a)) 0 0 / var(--d) 100% round,
    radial-gradient(circle at 50% 100%, var(--hole-a)) 0 0 / var(--d) 100% round,
    radial-gradient(circle at 0 50%, var(--hole-a)) 0 0 / 100% var(--d) round,
    radial-gradient(circle at 100% 50%, var(--hole-a)) 0 0 / 100% var(--d) round;
  -webkit-mask-composite: source-in;
          mask:
    radial-gradient(circle at 50% 0, var(--hole-a)) 0 0 / var(--d) 100% round,
    radial-gradient(circle at 50% 100%, var(--hole-a)) 0 0 / var(--d) 100% round,
    radial-gradient(circle at 0 50%, var(--hole-a)) 0 0 / 100% var(--d) round,
    radial-gradient(circle at 100% 50%, var(--hole-a)) 0 0 / 100% var(--d) round;
          mask-composite: intersect;
}

.gallery__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--papel-2);
  touch-action: pan-y;
}
.gallery__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  visibility: hidden;
  user-select: none;
  -webkit-user-drag: none;
}
.gallery__img.is-under { visibility: visible; z-index: 1; }
.gallery__img.is-on { visibility: visible; z-index: 2; clip-path: inset(0); }
.gallery__img.from-right { visibility: visible; z-index: 2; clip-path: inset(0 0 0 100%); }
.gallery__img.from-left { visibility: visible; z-index: 2; clip-path: inset(0 100% 0 0); }

/* una barrita por foto; la actual se llena mientras dura */
.gallery__bars { display: flex; gap: 4px; padding-top: 9px; }
.gallery__bars span {
  position: relative;
  flex: 1;
  height: 3px;
  overflow: hidden;
  background: rgba(16, 41, 79, .18);
  border-radius: 2px;
}
.gallery__bars span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tinta);
  transform: scaleX(0);
  transform-origin: left;
}
.gallery__bars .is-done::after, .gallery__bars .is-on::after { transform: none; }

.gallery__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 62px;
  padding: 6px 0 10px;
}
.gallery__cap { display: grid; gap: 2px; min-width: 0; margin: 0; }
.gallery__cap b {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 66%;
  font-size: 1.24rem;
  line-height: 1;
  text-transform: uppercase;
}
.gallery__cap span { color: var(--azul); font-weight: 700; font-size: var(--t-small); line-height: 1.25; }
.gallery__ctl { display: flex; flex: none; --focus: var(--tinta); }
.gallery__ctl button {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  color: var(--tinta);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .2s;
}
.gallery__ctl button:active { background: var(--mango); }
@media (hover: hover) {
  .gallery__ctl button:hover { background: var(--papel-2); }
  .snap__ctl button:not(:disabled):hover { background: var(--papel-2); }
}
@media (max-width: 374px) {
  .gallery__ctl button { width: 38px; }
  .gallery__cap b { font-size: 1.08rem; }
}
.gallery__ctl .icon { width: 18px; height: 18px; }
.gallery__play { display: none; }
.gallery.is-stopped .gallery__play { display: inline-block; }
.gallery.is-stopped .gallery__pause { display: none; }

.postmark {
  position: absolute;
  left: -3%;
  top: -6%;
  width: 40%;
  height: auto;
  color: var(--tinta);
  transform: rotate(-13deg);
  mix-blend-mode: multiply;
  opacity: .88;
  pointer-events: none;
}
.postmark__ring {
  font-family: var(--f-sans);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 19px;
  fill: currentColor;
  text-transform: uppercase;
}
.postmark__year {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 62%;
  font-size: 50px;
  fill: currentColor;
}

@media (min-width: 620px) {
  .hero__tags { grid-template-columns: 1fr 1fr; gap: 14px; }
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    grid-template-areas: "title art" "body art";
    grid-template-rows: auto 1fr;
    column-gap: 60px;
    row-gap: 28px;
    padding-block: 48px 76px;
  }
  .hero__title { align-self: end; font-size: clamp(5.6rem, 9.6vw, 7.8rem); }
  .hero__where { font-size: clamp(1.4rem, 2.1vw, 1.9rem); max-width: 7.6em; }
  .hero__lede { font-size: 1.22rem; max-width: 42ch; }
  .hero__tags { margin-top: 28px; }
  .tag__name { font-size: 1.42rem; }
  .hero__art { align-self: center; justify-self: end; width: 100%; max-width: 500px; padding: 0 12px 0 0; }
  .hero__sun { top: 6%; right: 4%; }
  .hero__sun::after { width: 400px; }
  .stamp { transform: rotate(2.4deg); }
  .stamp__paper { --d: 18px; --r: 5.2px; padding: 20px 20px 0; }
  .gallery__foot { min-height: 70px; padding: 8px 0 14px; }
  .gallery__cap b { font-size: 1.5rem; }
  .postmark { left: -13%; top: -8%; width: 46%; }
}

/* ==========================================================================
   Fechas
   ========================================================================== */
.board {
  position: relative;
  padding-block: clamp(44px, 7vw, 92px) clamp(56px, 8vw, 110px);
  background-color: var(--papel);
  background-image: radial-gradient(rgba(16, 41, 79, .1) 1.2px, transparent 1.7px);
  background-size: 26px 26px;
}
.board__head { display: grid; gap: 16px; }
.board__aside { display: grid; gap: 8px; }
.board__title { font-size: clamp(3.9rem, 17vw, 7.4rem); }
.hl {
  background: linear-gradient(transparent 56%, var(--mango) 56% 90%, transparent 90%);
  padding-inline: .06em;
  margin-inline: -.06em;
}
.board__hint { margin: 0; max-width: 42ch; font-size: 1.12rem; line-height: 1.4; }
.board__basis { margin: 0; font-size: var(--t-small); font-weight: 600; line-height: 1.45; }
@media (min-width: 900px) {
  .board__head { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: end; column-gap: 56px; }
  .board__aside { padding-bottom: 10px; }
  .board__hint { font-size: 1.2rem; }
}
.nojs {
  margin: 28px 0 0;
  padding: 18px 20px;
  background: var(--ticket);
  border: 2px solid var(--tinta);
  border-radius: 12px;
  font-weight: 600;
}

/* ---------- Todas las fechas, por orden de calendario ---------- */
.cal { margin-top: clamp(26px, 4vw, 44px); }
.cal__lead { margin: 0 0 12px; max-width: 60ch; font-weight: 700; font-size: 1rem; line-height: 1.35; }
.cal__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cal__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 3px 12px;
  min-height: 62px;
  padding: 9px 12px 9px 16px;
  background: var(--ticket);
  color: var(--tinta);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(16, 41, 79, .16), 0 10px 14px -10px rgba(16, 41, 79, .4);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.cal__item--noche { background: var(--tinta); color: var(--papel); }
.cal__item:active { transform: translateY(2px); }
.cal__date {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 66%;
  font-size: 1.5rem;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.cal__hotel { grid-column: 1; font-weight: 600; font-size: var(--t-small); line-height: 1.25; }
.cal__price {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 70%;
  font-size: 1.6rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.cal__go {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  background: var(--papel-2);
  color: var(--tinta);
  border-radius: 50%;
  transition: background-color .2s, transform .2s var(--ease);
}
.cal__item--noche .cal__go { background: rgba(246, 239, 224, .18); color: var(--papel); }
.cal__go .icon { width: 14px; height: 14px; }
@media (hover: hover) {
  .cal__item:hover { transform: translateY(-2px); box-shadow: 0 4px 0 rgba(16, 41, 79, .16), 0 14px 18px -10px rgba(16, 41, 79, .45); }
  .cal__item:hover .cal__go { background: var(--mango); color: var(--noche); transform: translateY(2px); }
}
@media (min-width: 700px) {
  .cal__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (min-width: 1120px) {
  .cal__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cal__item { grid-template-columns: minmax(0, 1fr) auto; padding-right: 16px; }
  .cal__date { font-size: 1.4rem; }
  .cal__go { display: none; }
}

/* ---------- Grupo por hotel ---------- */
.hotel {
  display: grid;
  gap: 28px;
  margin-top: clamp(40px, 6vw, 84px);
  scroll-margin-top: 12px;
}
.hotel__card { position: relative; min-width: 0; }

/* Fotos del hotel */
.snap {
  position: relative;
  margin: 0 2px;
  padding: 10px 10px 4px;
  background: var(--ticket);
  border-radius: 6px;
  rotate: -1deg;
  box-shadow: 0 2px 0 rgba(16, 41, 79, .12), 0 20px 28px -14px rgba(16, 41, 79, .45);
}
.hotel--noche .snap { rotate: .9deg; }
.snap__track {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 3px;
}
.snap__track::-webkit-scrollbar { display: none; }
.snap__track:focus-visible { outline-offset: 2px; }
.snap__track > li { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; }
.snap figure { margin: 0; }
.snap img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
}
.snap figcaption { padding: 10px 2px 0; font-weight: 700; font-size: .95rem; line-height: 1.3; }
.snap__ctl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0 2px;
}
.snap__count { font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.snap__ctl button {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  color: var(--tinta);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .2s, opacity .2s;
}
.snap__ctl button:active { background: var(--mango); }
.snap__ctl button:disabled { opacity: .3; cursor: default; background: transparent; }
.snap__ctl .icon { width: 18px; height: 18px; }
.snap__note { margin: 0; padding: 2px 2px 8px; font-size: var(--t-small); line-height: 1.35; }

.hotel__info { padding-top: 24px; }
.hotel__loc {
  display: flex;
  align-items: center;
  gap: .4em;
  margin: 0;
  color: var(--azul);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.3;
}
.hotel__name { margin-top: 8px; font-size: clamp(3rem, 12.5vw, 4.5rem); }
.hotel__aka { margin: 8px 0 0; font-size: 1rem; line-height: 1.35; }
.hotel__kind { font-weight: 800; }
.hotel__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 12px 0 0;
  font-size: 1rem;
}
.hotel__stars { display: inline-flex; align-items: center; gap: 2px; color: var(--azul); }
.hotel__stars .icon { width: 1.05em; height: 1.05em; }
.hotel__stars span { margin-left: .5em; color: var(--tinta); font-weight: 600; font-size: var(--t-small); }
.hotel__from strong {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 70%;
  font-size: 1.45em;
  line-height: 1;
}

/* lo que tiene el hotel */
.amen { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.amen li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.04rem;
  line-height: 1.3;
}
.amen .icon { width: 28px; height: 28px; color: var(--azul); }

.minors {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 14px;
  margin: 0 0 20px;
  padding: 13px 16px;
  background: var(--ticket);
  border: 2px dashed rgba(16, 41, 79, .45);
  border-radius: 14px;
}
.minors .icon { grid-row: 1 / span 2; width: 34px; height: 34px; color: var(--azul); }
.minors__big {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 62%;
  font-size: 1.7rem;
  line-height: .95;
  text-transform: uppercase;
}
.minors__small { font-size: .95rem; line-height: 1.35; }
.minors--free {
  background: var(--turquesa);
  border: 2px solid var(--tinta);
  box-shadow: 0 4px 0 var(--tinta);
}
.minors--free .icon { color: var(--tinta); }
.minors--free .minors__big { font-size: 2.2rem; }

.hotel__stays { min-width: 0; container-type: inline-size; container-name: stays; }
.tickets { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.hotel__fine { margin: 18px 2px 0; max-width: 68ch; font-size: var(--t-small); line-height: 1.55; }
.hotel__fine a, .note a { padding-block: 14px; font-weight: 700; }

@media (min-width: 640px) and (max-width: 999px) {
  .hotel__card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 30px; align-items: center; }
  .hotel__info { padding-top: 0; }
  .hotel__name { font-size: clamp(3rem, 7.4vw, 4.2rem); }
}

@media (min-width: 1000px) {
  .hotel { grid-template-columns: minmax(0, 4.3fr) minmax(0, 8fr); gap: 52px; align-items: start; }
  .hotel--flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4.3fr); }
  .hotel--flip .hotel__card { order: 2; }
  .hotel__name { font-size: clamp(3.4rem, 5.4vw, 4.6rem); }
  .tickets { gap: 20px; }
}
/* la tarjeta del hotel acompaña a sus fechas solo si cabe completa en la ventana */
@media (min-width: 1000px) and (min-height: 880px) {
  .hotel__card { position: sticky; top: 24px; }
}

/* ---------- Boleto (cada fecha) ---------- */
.ticket {
  position: relative;
  border-radius: 18px;
  filter: drop-shadow(0 2px 0 rgba(16, 41, 79, .2)) drop-shadow(0 12px 12px rgba(16, 41, 79, .13));
  transition: translate .25s var(--ease), rotate .25s var(--ease), filter .25s;
}
.ticket__body {
  --stub: 70px;
  --notch: 11px;
  --cut: #0000 97%, #000;
  position: relative;
  display: grid;
  grid-template-rows: auto var(--stub);
  overflow: hidden;
  background: var(--ticket);
  color: var(--tinta);
  border-radius: 16px;
  -webkit-mask:
    radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub)), var(--cut)) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub)), var(--cut)) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub)), var(--cut)) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub)), var(--cut)) right / 51% 100% no-repeat;
}
.ticket__body::before {  /* marco al elegir */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 4px solid var(--mango);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.ticket__main { min-width: 0; padding: 15px 18px 16px; }
.ticket__hotel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 13px;
  padding-bottom: 10px;
  border-bottom: 1.5px dashed rgba(16, 41, 79, .32);
  color: var(--azul);
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 66%;
  font-size: 1.15rem;
  line-height: 1;
  text-transform: uppercase;
}
.ticket__hotel span:last-child {
  display: none;
  color: var(--tinta);
  font-family: var(--f-sans);
  font-weight: 600;
  font-stretch: 100%;
  font-size: var(--t-micro);
  text-align: right;
  text-transform: none;
}

.ticket__route {
  display: grid;
  grid-template-columns: auto minmax(40px, 1fr) auto;
  align-items: end;
  gap: 10px;
}
.ticket__cap {
  display: block;
  margin-bottom: 5px;
  font-weight: 800;
  font-size: var(--t-micro);
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.ticket__date--out { text-align: right; }
.ticket__d {
  display: block;
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 62%;
  font-size: 3.5rem;
  line-height: .8;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticket__d small { margin-left: .12em; font-size: .52em; font-stretch: 75%; letter-spacing: .01em; }

.ticket__path { display: grid; justify-items: center; gap: 8px; min-width: 0; padding-bottom: 6px; }
.ticket__nights {
  padding: .28em .8em;
  background: var(--tinta);
  color: var(--ticket);
  border-radius: 99px;
  font-weight: 800;
  font-size: var(--t-small);
  line-height: 1.2;
  white-space: nowrap;
}
.ticket__line { width: 100%; border-top: 2px dashed var(--azul); opacity: .7; }

.ticket__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  margin: 12px 0 0;
  font-size: .95rem;
  line-height: 1.35;
}
.ticket__occ { color: var(--azul); font-family: var(--f-serif); font-style: italic; font-weight: 500; font-size: 1rem; }

.ticket__prices {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 13px 0 0;
  border-top: 2px solid currentColor;
}
.price { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.price dt { display: grid; gap: 1px; min-width: 0; font-weight: 600; font-size: 1rem; line-height: 1.2; }
.price dt small { font-weight: 400; font-size: var(--t-small); }
.price dd {
  display: flex;
  align-items: baseline;
  gap: .3em;
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 72%;
  font-size: 1.62rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price dd small { font-family: var(--f-sans); font-weight: 600; font-stretch: 100%; font-size: var(--t-small); }
.price--ask dd {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  font-stretch: 100%;
  font-size: 1.06rem;
}
.price--free dd {
  padding: .12em .42em .08em;
  background: var(--turquesa);
  color: var(--noche);
  border-radius: 6px;
  text-transform: uppercase;
}
.ticket__unit { margin: 12px 0 0; font-size: var(--t-small); line-height: 1.4; }
/* suma de la estancia completa en habitación doble */
.ticket__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 11px 0 0;
  padding-top: 11px;
  border-top: 1.5px dashed rgba(16, 41, 79, .32);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
}
.ticket__total strong {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 72%;
  font-size: 1.4rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Talón: elegir la fecha o cotizarla sola */
.ticket__stub {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 16px;
  background: var(--papel-2);
  border-top: 2px dashed rgba(16, 41, 79, .45);
  transition: background-color .2s, color .2s;
}
.ticket__pick {
  display: flex;
  align-items: center;
  align-self: stretch;
  flex: 1;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ticket__pick::after { content: ""; position: absolute; inset: 0; z-index: 3; }  /* todo el boleto se puede tocar */
.ticket__check { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.ticket__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px; height: 36px;
  background: var(--ticket);
  border: 2.5px solid var(--tinta);
  border-radius: 10px;  /* casilla: se pueden marcar varias */
  transition: background-color .2s, border-color .2s;
}
.ticket__mark .icon { width: 20px; height: 20px; opacity: 0; transform: scale(.3) rotate(-30deg); transition: opacity .15s, transform .3s var(--pop); }
.ticket__say .on { display: none; }
.ticket__quote {
  position: relative;
  z-index: 4;  /* por encima de la zona que marca el boleto */
  flex: none;
  min-height: 46px;
  padding-inline: .95em;
  font-size: .95rem;
  white-space: nowrap;
  --focus: var(--tinta);
}
.ticket__quote .icon { width: 1.35em; height: 1.35em; }
@media (max-width: 371px) {
  .ticket__quote-more { display: none; }
}

/* estados */
@media (hover: hover) {
  .ticket:hover { translate: 0 -3px; rotate: 0deg; }
  .ticket:hover .ticket__mark { background: var(--mango); }
}
.ticket:has(.ticket__check:focus-visible) { outline: 3px solid var(--tinta); outline-offset: 4px; }
@supports not selector(:has(*)) {
  .ticket:focus-within { outline: 3px solid var(--tinta); outline-offset: 4px; }
}

.ticket.is-on { rotate: 0deg; filter: drop-shadow(0 2px 0 rgba(16, 41, 79, .25)) drop-shadow(0 14px 16px rgba(201, 96, 12, .3)); }
.ticket.is-on .ticket__body::before { opacity: 1; }
.ticket.is-on .ticket__stub { background: var(--mango); color: var(--noche); border-top-color: rgba(10, 27, 54, .55); }
.ticket.is-on .ticket__mark { background: var(--noche); border-color: var(--noche); color: var(--mango); }
.ticket.is-on .ticket__mark .icon { opacity: 1; transform: none; }
.ticket.is-on .ticket__say .on { display: inline; }
.ticket.is-on .ticket__say .off { display: none; }

/* variante noche (segundo hotel) */
.hotel--noche .ticket__body { background: var(--tinta); color: var(--papel); }
.hotel--noche .ticket__nights { background: var(--papel); color: var(--tinta); }
.hotel--noche .ticket__hotel { color: var(--mango); border-bottom-color: rgba(246, 239, 224, .35); }
.hotel--noche .ticket__hotel span:last-child { color: var(--papel); }
.hotel--noche .ticket__line { border-top-color: var(--mango); }
.hotel--noche .ticket__occ { color: #a9cbff; }
.hotel--noche .ticket__stub { background: #1a3d74; border-top-color: rgba(246, 239, 224, .5); }
.hotel--noche .ticket__mark { background: transparent; border-color: var(--papel); }
.hotel--noche .ticket.is-on .ticket__stub { background: var(--mango); color: var(--noche); }
.hotel--noche .ticket.is-on .ticket__mark { background: var(--noche); border-color: var(--noche); }
.hotel--noche .ticket__quote { border-color: var(--ticket); }
.hotel--noche .ticket__total { border-top-color: rgba(246, 239, 224, .35); }

/* boleto al que se llegó desde el calendario */
.ticket.is-found { outline: 4px solid var(--mango); outline-offset: 5px; }

/* boleto horizontal cuando hay espacio */
@container stays (min-width: 600px) {
  .ticket__body {
    --stub: 196px;
    grid-template-rows: auto;
    grid-template-columns: minmax(0, 1fr) var(--stub);
    -webkit-mask:
      radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, var(--cut)) top / 100% 51% no-repeat,
      radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, var(--cut)) bottom / 100% 51% no-repeat;
            mask:
      radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, var(--cut)) top / 100% 51% no-repeat,
      radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, var(--cut)) bottom / 100% 51% no-repeat;
  }
  .ticket__main { padding: 17px 26px 18px; }
  .ticket__hotel { font-size: 1.25rem; margin-bottom: 15px; }
  .ticket__hotel span:last-child { display: block; }
  .ticket__route { grid-template-columns: auto minmax(80px, 1fr) auto; gap: 18px; }
  .ticket__d { font-size: 4rem; }
  .ticket__prices { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; }
  .price { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; }
  .price dt { font-size: var(--t-small); min-height: 2.5em; align-content: start; }
  .price dd { font-size: 1.8rem; margin-top: auto; }
  .price--ask dd { font-size: 1.1rem; padding-bottom: .25em; }
  .ticket__stub {
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 18px 14px;
    border-top: 0;
    border-left: 2px dashed rgba(16, 41, 79, .45);
    text-align: center;
  }
  .hotel--noche .ticket__stub { border-left-color: rgba(246, 239, 224, .5); }
  .ticket.is-on .ticket__stub { border-left-color: rgba(10, 27, 54, .55); }
  .ticket__pick { flex: none; align-self: auto; flex-direction: column; gap: 8px; }
  .ticket__mark { width: 52px; height: 52px; border-width: 3px; border-radius: 14px; }
  .ticket__mark .icon { width: 28px; height: 28px; }
  .ticket__quote { align-self: stretch; padding-inline: .6em; font-size: var(--t-small); }
  .ticket__total { justify-content: flex-start; gap: 14px; }
  .tickets > .ticket:nth-child(odd) { rotate: -.45deg; }
  .tickets > .ticket:nth-child(even) { rotate: .4deg; }
  .tickets > .ticket.is-on, .tickets > .ticket:hover { rotate: 0deg; }
}

/* ==========================================================================
   Condiciones + preguntas
   ========================================================================== */
.clear {
  padding-block: clamp(56px, 8vw, 104px);
  background: var(--papel);
  border-top: 2px solid rgba(16, 41, 79, .12);
}
.clear__grid { display: grid; gap: 44px; }
.clear__title { font-size: clamp(3.4rem, 14.5vw, 6rem); }

.note {
  position: relative;
  margin: 40px 4px 0;
  padding: 30px 24px 24px;
  background: var(--ticket);
  border-radius: 4px;
  rotate: -1.3deg;
  box-shadow: 0 2px 0 rgba(16, 41, 79, .12), 0 22px 30px -16px rgba(16, 41, 79, .45);
}
.note__pin {
  position: absolute;
  left: 50%; top: -18px;
  width: 38px; height: 38px;
  margin-left: -19px;
  color: var(--mango);
  filter: drop-shadow(0 3px 1px rgba(10, 27, 54, .4));
}
.note__h { margin: 0; color: var(--azul); font-weight: 800; font-size: 1.15rem; line-height: 1.2; }
.note ul { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.note li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.35;
}
.note li::before {
  content: "";
  width: 11px; height: 11px;
  margin-top: .34em;
  background: var(--mango);
  border: 2px solid var(--tinta);
  border-radius: 50%;
}

.faq { align-self: start; border-bottom: 2px solid var(--tinta); }
.faq details { border-top: 2px solid var(--tinta); }
.faq summary, .preview summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
}
.faq summary { min-height: 64px; padding: 16px 2px; font-weight: 800; font-size: 1.16rem; line-height: 1.25; }
.faq summary::-webkit-details-marker, .preview summary::-webkit-details-marker { display: none; }
.faq summary .icon, .preview summary .icon { width: 22px; height: 22px; color: var(--azul); transition: transform .3s var(--ease); }
.faq details[open] summary .icon, .preview[open] summary .icon { transform: rotate(45deg); }
.faq details p { margin: 0 0 12px; max-width: 58ch; font-size: 1.04rem; }
.faq details > p:last-child, .faq details > div > p:last-child { margin-bottom: 22px; }
.faq details p b { font-weight: 800; }

@media (min-width: 960px) {
  .clear__grid { grid-template-columns: minmax(0, 4.4fr) minmax(0, 7fr); gap: 72px; }
  .faq summary { font-size: 1.3rem; min-height: 72px; }
}

/* ==========================================================================
   Cierre
   ========================================================================== */
.closing {
  --focus: #fff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 120px);
  background: var(--azul-hondo);
}
.closing__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(38, 88, 151, .5), rgba(16, 41, 79, .62));
}

.pass {
  --focus: var(--tinta);
  max-width: 1040px;
  margin-inline: auto;
  filter: drop-shadow(0 4px 0 rgba(10, 27, 54, .3)) drop-shadow(0 26px 30px rgba(10, 27, 54, .45));
}
.pass__body {
  --stub: 248px;
  --notch: 13px;
  --cut: #0000 97%, #000;
  position: relative;
  display: grid;
  grid-template-rows: auto var(--stub);
  overflow: hidden;
  background: var(--ticket);
  color: var(--tinta);
  border-radius: 20px;
  -webkit-mask:
    radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub)), var(--cut)) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub)), var(--cut)) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub)), var(--cut)) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub)), var(--cut)) right / 51% 100% no-repeat;
}
.pass__main { padding: 30px 24px 20px; }
.closing__title { font-size: clamp(3.9rem, 16.5vw, 7rem); }
.closing__text { margin: 16px 0 6px; max-width: 36ch; font-size: 1.14rem; line-height: 1.4; }
.pass__stub {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 24px;
  background: var(--papel-2);
  border-top: 2px dashed rgba(16, 41, 79, .45);
}
.pass__stub .btn { width: 100%; }
.pass__stub .assure { margin-top: 4px; text-align: center; }

@media (min-width: 860px) {
  .pass__body {
    --stub: 350px;
    grid-template-rows: auto;
    grid-template-columns: minmax(0, 1fr) var(--stub);
    -webkit-mask:
      radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, var(--cut)) top / 100% 51% no-repeat,
      radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, var(--cut)) bottom / 100% 51% no-repeat;
            mask:
      radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, var(--cut)) top / 100% 51% no-repeat,
      radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, var(--cut)) bottom / 100% 51% no-repeat;
  }
  .pass__main { padding: 48px 48px 40px; }
  .pass__stub { padding: 36px 32px; border-top: 0; border-left: 2px dashed rgba(16, 41, 79, .45); }
}

/* ==========================================================================
   Pie
   ========================================================================== */
.foot {
  --focus: #fff;
  padding-block: 48px 44px;
  background: var(--noche);
  color: rgba(246, 239, 224, .86);
  font-size: .95rem;
}
.foot__grid { display: grid; gap: 40px; }
.foot__brand img { display: block; width: 158px; height: auto; }
.foot__contact { display: grid; gap: 14px; justify-items: start; margin-top: 28px; }
.foot__contact .btn { width: 100%; max-width: 340px; }
.foot__call {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  min-height: 44px;
  color: var(--papel);
  font-size: 1.06rem;
  text-decoration: none;
}
.foot__call .icon { width: 1.2em; height: 1.2em; color: var(--mango); }
.foot__call b { font-weight: 800; text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
.foot__call:hover b { color: var(--mango); }
.foot__legal p { margin: 0; max-width: 60ch; }
.foot__h { margin: 0; color: var(--papel); font-weight: 800; font-size: 1rem; line-height: 1.3; }
.credits {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  max-width: 68ch;
  list-style: none;
  font-size: var(--t-small);
  line-height: 1.75;
}
.credits b { color: var(--papel); font-weight: 700; }
.credits a { padding-block: 8px; }
.credits a:hover { color: var(--mango); }

@media (min-width: 860px) {
  .foot__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; }
}

/* ==========================================================================
   Barra de cotización (fija abajo)
   ========================================================================== */
.tray {
  --focus: #fff;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
}
.tray__bar {
  position: relative;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--noche);
  color: var(--papel);
}
.tray__in {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: calc(var(--wrap) + var(--gut) * 2);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.tray > .airmail { position: relative; box-shadow: 0 -10px 24px rgba(10, 27, 54, .24); }

/* sin fechas elegidas: cambia según dónde está el visitante (data-pos) */
.tray__empty { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 52px; }
.tray__empty p { flex: 1; margin: 0; min-width: 0; font-size: .95rem; line-height: 1.25; }
.tray__empty strong { font-weight: 800; }
.tray__more { display: none; }
.tray__goto, .tray__ask { flex: none; min-height: 48px; padding-inline: 1em; white-space: nowrap; font-size: .97rem; }
.tray__goto .icon { width: 1.15em; height: 1.15em; transition: transform .35s var(--ease-out); }
.tray[data-pos="below"] .tray__goto .icon { transform: rotate(180deg); }
.tray[data-pos="in"] .tray__goto { display: none; }
.tray:not([data-pos="in"]) .tray__ask { display: none; }

.tray:not([data-count="0"]) .tray__empty { display: none; }
.tray[data-count="0"] .tray__toggle,
.tray[data-count="0"] .tray__chips,
.tray[data-count="0"] .tray__cta { display: none; }

/* con fechas */
.tray__toggle {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-items: center;
  flex: none;
  gap: 3px 5px;
  min-height: 52px;
  padding: 5px 10px 6px;
  background: rgba(246, 239, 224, .1);
  color: var(--papel);
  border: 2px solid rgba(246, 239, 224, .4);
  border-radius: 16px;
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.1;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.tray__toggle:hover { background: rgba(246, 239, 224, .18); border-color: var(--papel); }
.tray__toggle .icon { grid-row: 1; grid-column: 2; width: 16px; height: 16px; transition: transform .3s var(--ease); }
.tray__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.tray__count {
  display: grid;
  place-items: center;
  min-width: 30px; height: 26px;
  padding-inline: 6px;
  background: var(--mango);
  color: var(--noche);
  border-radius: 99px;
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 75%;
  font-size: 1.25rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tray__count.bump { animation: bump .45s var(--pop); }
.tray__label {
  grid-row: 2;
  grid-column: 1 / -1;
  font-weight: 700;
  font-size: var(--t-micro);
  white-space: nowrap;
}

.tray__chips {
  display: none;
  flex: 1;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 4px 28px 4px 2px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - 36px), #0000);
          mask: linear-gradient(90deg, #000 calc(100% - 36px), #0000);
}
.tray__chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 4px;
  padding-left: 12px;
  background: var(--ticket);
  color: var(--tinta);
  border-radius: 10px;
  font-size: var(--t-small);
  line-height: 1.25;
  white-space: nowrap;
}
.chip b { display: block; font-weight: 800; }
.chip button, .pick__rm, .tray__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  --focus: var(--tinta);
}
.chip button:hover, .pick__rm:hover, .tray__close:hover { background: rgba(16, 41, 79, .12); }
.chip button .icon { width: 16px; height: 16px; }
.chip button:focus-visible { outline-offset: -4px; }

.tray__cta { flex: 1 1 auto; min-width: 0; min-height: 52px; padding-inline: .9em; font-size: .97rem; white-space: nowrap; }

@media (max-width: 379px) {
  .tray__cta { font-size: .92rem; padding-inline: .7em; gap: .4em; }
  .tray__goto, .tray__ask { font-size: .92rem; padding-inline: .8em; }
  .tray__in { gap: 8px; }
}

@media (min-width: 900px) {
  .tray__bar { padding-block: 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .tray__in { gap: 16px; }
  .tray__chips { display: flex; }
  .tray__cta { flex: none; min-height: 56px; padding-inline: 1.5em; font-size: 1.08rem; }
  .tray__toggle {
    display: inline-flex;
    gap: 9px;
    padding: 5px 13px 5px 6px;
    border-radius: 999px;
  }
  .tray__count { min-width: 38px; height: 38px; font-size: 1.5rem; }
  .tray__label { font-size: .95rem; }
  .tray__toggle .icon { width: 18px; height: 18px; }
  .tray__empty p { font-size: 1.04rem; }
  .tray__more { display: inline; }
  .tray.is-open .tray__chips { visibility: hidden; }
}

/* panel */
.tray__backdrop {
  position: fixed;
  inset: 0;
  touch-action: none;
  background: rgba(10, 27, 54, .6);
  animation: fade .25s both;
}
.tray__panel {
  --focus: var(--tinta);
  position: absolute;
  left: 0; right: 0;
  bottom: 100%;
  max-height: calc(100vh - var(--tray-h) - 28px);
  max-height: calc(100dvh - var(--tray-h) - 28px);
  padding: 20px var(--gut) 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--papel);
  color: var(--tinta);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 50px rgba(10, 27, 54, .4);
  animation: sheet .34s var(--ease) both;
}
.tray__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tray__head h2 { font-size: 2.6rem; }
.tray__head h2:focus { outline: none; }
.tray__close { background: var(--papel-2); border-radius: 50%; }
.tray__close .icon { width: 20px; height: 20px; }

.tray__list { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.pick {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 6px 8px 16px;
  background: var(--ticket);
  border-radius: 12px;
  box-shadow: 0 2px 0 rgba(16, 41, 79, .14);
}
.pick__name {
  display: block;
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 62%;
  font-size: 1.36rem;
  line-height: 1;
  text-transform: uppercase;
}
.pick__when { display: block; margin-top: 4px; font-size: var(--t-small); line-height: 1.35; }
.pick__rm { width: auto; padding: 0 10px; gap: 6px; grid-auto-flow: column; font-family: var(--f-sans); font-weight: 700; font-size: var(--t-small); }
.pick__rm .icon { width: 15px; height: 15px; }
.tray__clear {
  display: block;
  min-height: 44px;
  margin: 4px 0 0 auto;
  padding: 0 10px;
  background: transparent;
  color: var(--tinta);
  border: 0;
  border-radius: 10px;
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: var(--t-small);
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.tray__clear:hover { background: rgba(16, 41, 79, .1); }

.who { margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.who legend, .field label, .stepper label { padding: 0; font-weight: 800; font-size: 1rem; }
.who small, .field small { margin-left: .35em; font-weight: 400; font-size: var(--t-small); }
.who__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.stepper label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .95rem; }
.stepper__ctl {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: stretch;
  overflow: hidden;
  background: var(--ticket);
  border: 2px solid var(--tinta);
  border-radius: 12px;
}
.stepper__ctl:focus-within { box-shadow: 0 0 0 3px rgba(45, 99, 173, .35); }
.stepper__ctl button {
  display: grid;
  place-items: center;
  height: 46px;
  padding: 0;
  background: var(--papel-2);
  color: var(--tinta);
  border: 0;
  cursor: pointer;
}
.stepper__ctl button:hover { background: var(--mango); }
.stepper__ctl button:focus-visible { outline-offset: -4px; }
.stepper__ctl button .icon { width: 18px; height: 18px; }
.stepper__ctl input {
  width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
  color: var(--tinta);
  border: 0;
  border-radius: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 75%;
  font-size: 1.5rem;
  text-align: center;
  -moz-appearance: textfield;
       appearance: textfield;
}
.stepper__ctl input:focus-visible { outline-offset: -4px; }
.stepper__ctl input::-webkit-outer-spin-button,
.stepper__ctl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.field { margin-top: 14px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .95rem; }
.field input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  background: var(--ticket);
  color: var(--tinta);
  border: 2px solid var(--tinta);
  border-radius: 12px;
  font-family: var(--f-sans);
  font-size: 1rem;  /* 16px: evita el zoom de iOS */
}

.preview { margin-top: 16px; border-top: 2px solid var(--tinta); border-bottom: 2px solid var(--tinta); }
.preview summary { min-height: 52px; padding: 10px 2px; font-weight: 700; font-size: 1rem; }
.preview pre {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: #dcf8c6;
  color: #0b1f14;
  border-radius: 4px 14px 14px 14px;
  font-family: var(--f-sans);
  font-size: .95rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tray__panel .assure { margin-top: 12px; }

@media (min-width: 900px) {
  .tray__panel {
    left: auto;
    right: max(var(--gut), calc((100vw - var(--wrap)) / 2));
    bottom: calc(100% + 12px);
    width: 460px;
    padding: 24px 26px 24px;
    border-radius: 22px;
    box-shadow: 0 6px 0 rgba(10, 27, 54, .35), 0 30px 60px rgba(10, 27, 54, .45);
  }
  .tray__backdrop { background: rgba(10, 27, 54, .35); }
}

/* ==========================================================================
   Movimiento
   El momento principal es la galería de la portada. Lo demás solo responde
   a lo que hace el visitante (marcar una fecha, abrir el panel).
   ========================================================================== */
@keyframes fade { from { opacity: 0; } }
@keyframes sheet { from { opacity: 0; transform: translateY(26px); } }
@keyframes bump { 40% { transform: scale(1.35) rotate(-8deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(.34em); } }
@keyframes drop { from { opacity: 0; transform: translateY(-34px) rotate(10deg) scale(1.05); } }
@keyframes thunk { from { opacity: 0; transform: rotate(-22deg) scale(1.7); } }
@keyframes sunup { from { transform: translate(-50%, -10%) scale(.5); opacity: 0; } }
@keyframes stamped { 0% { transform: scale(1.9) rotate(-18deg); opacity: 0; } 60% { transform: scale(.92) rotate(3deg); opacity: 1; } 100% { transform: none; } }
@keyframes bar { from { transform: scaleX(0); } }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes found { 0%, 60% { outline-color: var(--mango); } 100% { outline-color: transparent; } }

@media (prefers-reduced-motion: no-preference) {
  .hero__word { animation: rise .8s var(--ease) both; }
  .hero__row { animation: rise .8s var(--ease) .1s both; }
  .hero__body { animation: rise .8s var(--ease) .3s both; }
  .stamp { animation: drop .9s var(--ease) .2s both; }
  .postmark { animation: thunk .42s var(--pop) 1s both; }
  .hero__sun::after { animation: sunup 1.1s var(--ease) .1s both; }

  /* galería: la foto nueva entra como una cortina y se acerca despacio */
  .gallery__img.is-on { transition: clip-path .9s var(--ease-out); animation: drift 7s var(--ease-out) both; }
  .gallery__bars .is-on::after { animation: bar 5.2s linear both; }
  .gallery.is-paused .gallery__bars .is-on::after { animation-play-state: paused; }

  .ticket.just-on .ticket__mark { animation: stamped .45s var(--ease) both; }
  .ticket.is-found { animation: found 2.6s var(--ease-out) both; }
}

@media print {
  .tray, .gallery__ctl { display: none; }
  body { padding-bottom: 0; }
}
