/* Equipaje — boarding pass, tickets horizontales, sello */
:root {
  --navy: #1a2744;
  --ink: #0e1524;
  --cream: #f3efe6;
  --paper: #faf7f0;
  --stamp: #c45c3e;
  --line: rgba(26, 39, 68, 0.18);
  --font-serif: "Libre Baskerville", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--navy);
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem; }

.demo-chrome {
  position: sticky; top: 0; z-index: 40;
  background: rgba(14, 21, 36, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(243, 239, 230, 0.12);
}
.demo-banner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 0.45rem 1rem;
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cream);
}
.demo-banner a {
  text-decoration: none; margin-left: 0.85rem;
  border-bottom: 1px solid currentColor;
}

/* ——— Gate / check-in ——— */
.gate {
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem) 3rem;
  text-align: center;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(243, 239, 230, 0.08), transparent 55%),
    var(--navy);
}
.gate__flight {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  opacity: 0.7;
}
.gate__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin: 0.75rem 0 0.35rem;
  letter-spacing: 0.04em;
}
.gate__sub {
  margin: 0 0 2rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Boarding pass card */
.pass {
  display: flex;
  flex-direction: column;
  max-width: 28rem;
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  animation: pass-drop 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes pass-drop {
  from { transform: translateY(1.5rem) rotate(-1.2deg); }
  to { transform: none; }
}
@media (min-width: 640px) {
  .pass {
    flex-direction: row;
    max-width: 40rem;
  }
}
.pass__main {
  flex: 1;
  padding: 1.25rem 1.35rem 1.5rem;
  text-align: left;
  position: relative;
}
.pass__row--top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.pass__code {
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.pass__sep { opacity: 0.4; }
.pass__names span {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
}
.pass__names strong {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
}
.pass__photo {
  margin: 1rem 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.pass__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 45% 35%;
}
@media (max-width: 639px) {
  .pass__photo img {
    object-position: 42% 28%;
  }
}
.pass__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 0;
  border-top: 1px dashed var(--line);
  padding-top: 0.85rem;
}
.pass__meta dt {
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
  margin: 0;
}
.pass__meta dd {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Stub con perforación */
.pass__stub {
  position: relative;
  background: #ebe4d6;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 2px dashed rgba(26, 39, 68, 0.25);
}
@media (min-width: 640px) {
  .pass__stub {
    width: 7.5rem;
    border-top: none;
    border-left: 2px dashed rgba(26, 39, 68, 0.25);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }
}
.pass__stub::before,
.pass__stub::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  background: var(--navy);
  border-radius: 50%;
}
.pass__stub::before { top: -8px; left: 50%; transform: translateX(-50%); }
.pass__stub::after { bottom: -8px; left: 50%; transform: translateX(-50%); }
@media (min-width: 640px) {
  .pass__stub::before { top: 50%; left: -8px; transform: translateY(-50%); }
  .pass__stub::after { top: 50%; left: auto; right: -8px; bottom: auto; transform: translateY(-50%); }
}
.pass__stub-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.pass__barcode {
  display: block;
  width: 4.5rem;
  height: 2.2rem;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 4px,
    var(--ink) 4px 5px,
    transparent 5px 8px,
    var(--ink) 8px 11px,
    transparent 11px 13px
  );
}
@media (min-width: 640px) {
  .pass__barcode {
    width: 2.2rem;
    height: 4.5rem;
    background: repeating-linear-gradient(
      180deg,
      var(--ink) 0 2px,
      transparent 2px 4px,
      var(--ink) 4px 5px,
      transparent 5px 8px,
      var(--ink) 8px 11px,
      transparent 11px 13px
    );
  }
}
.pass__stub-code {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.gate__cta {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  border: 1px solid rgba(243, 239, 230, 0.4);
  padding: 0.75rem 1.4rem;
  transition: background 0.25s ease, color 0.25s ease;
}
.gate__cta:hover {
  background: var(--cream);
  color: var(--navy);
}

/* ——— Rail horizontal tickets ——— */
.rail {
  background: var(--cream);
  color: var(--ink);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.rail__head {
  padding: 0 clamp(1rem, 4vw, 2rem) 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.rail__head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0;
}
.rail__head p {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}
.rail__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem clamp(1rem, 4vw, 2rem) 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.ticket {
  flex: 0 0 min(72vw, 14rem);
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.25rem 1.1rem;
  position: relative;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.rail.is-in .ticket { opacity: 1; transform: none; }
.rail.is-in .ticket:nth-child(1) { transition-delay: 0.05s; }
.rail.is-in .ticket:nth-child(2) { transition-delay: 0.12s; }
.rail.is-in .ticket:nth-child(3) { transition-delay: 0.19s; }
.rail.is-in .ticket:nth-child(4) { transition-delay: 0.26s; }
.rail.is-in .ticket:nth-child(5) { transition-delay: 0.33s; }
.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  background: var(--cream);
  border-radius: 50%;
  border: 1px solid var(--line);
  top: 50%;
  transform: translateY(-50%);
}
.ticket::before { left: -8px; }
.ticket::after { right: -8px; }
.ticket time {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--stamp);
  margin-bottom: 0.65rem;
}
.ticket h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}
.ticket p {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Destination */
.dest {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--ink);
  color: var(--cream);
}
@media (min-width: 800px) {
  .dest { grid-template-columns: 1fr 1fr; min-height: 70vh; }
}
.dest__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 4rem);
}
.dest__label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
  margin: 0 0 0.75rem;
}
.dest__copy h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 0.5rem;
}
.dest__copy p { margin: 0 0 1.25rem; opacity: 0.8; }
.dest__copy a {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  align-self: flex-start;
  padding-bottom: 0.15rem;
}
.dest__photo { margin: 0; min-height: 50vh; overflow: hidden; }
.dest__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  min-height: 50vh;
}

/* Stamp RSVP */
.stamp-zone {
  background: var(--cream);
  padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem);
}
.stamp-zone__card {
  position: relative;
  max-width: 26rem;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  overflow: hidden;
}
.stamp-zone__label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
  margin: 0 0 0.5rem;
}
.stamp-zone__card h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 1.5rem;
}
.stamp-form {
  display: grid;
  gap: 1rem;
}
.stamp-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stamp-form input,
.stamp-form select {
  font: inherit;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 0;
}
.stamp-form button {
  margin-top: 0.35rem;
  font: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.95rem;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: var(--cream);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.stamp-form button:hover { background: var(--ink); }
.stamp-form button:active { transform: scale(0.98); }

.stamp-mark {
  position: absolute;
  top: 1.5rem;
  right: 1rem;
  width: 7rem;
  height: 7rem;
  border: 3px solid var(--stamp);
  border-radius: 50%;
  color: var(--stamp);
  display: grid;
  place-content: center;
  text-align: center;
  transform: rotate(-18deg) scale(0.4);
  opacity: 0;
  pointer-events: none;
}
.stamp-mark.is-stamped {
  animation: stamp-hit 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes stamp-hit {
  0% { opacity: 0; transform: rotate(-18deg) scale(1.6); }
  40% { opacity: 1; transform: rotate(-18deg) scale(0.92); }
  100% { opacity: 0.9; transform: rotate(-18deg) scale(1); }
}
.stamp-mark span {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.stamp-mark small {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}
.stamp-zone__note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  opacity: 0.65;
}

/* Packing list */
.cabin {
  background: var(--cream);
  color: var(--ink);
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1rem, 4vw, 2rem);
}
.cabin h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 1.25rem;
  text-align: center;
}
.cabin__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 28rem;
  display: grid;
  gap: 0.85rem;
}
.cabin__list li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
}
.cabin__list span {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stamp);
  padding-top: 0.15rem;
}

/* Contador departure */
.depart {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1rem, 4vw, 2rem);
  text-align: center;
  border-top: 1px solid rgba(243, 239, 230, 0.12);
}
.depart__label {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
}
.depart h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  margin: 0.5rem 0 1.25rem;
}
.depart__clock {
  display: grid;
  grid-template-columns: repeat(4, 4.5rem);
  gap: 0.5rem;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
.depart__clock strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.depart__clock span {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  opacity: 0.5;
}

/* Polaroids */
.polaroids {
  background: var(--cream);
  color: var(--ink);
  padding: clamp(2.5rem, 7vw, 4rem) clamp(1rem, 4vw, 2rem);
  overflow: hidden;
}
.polaroids__head {
  text-align: center;
  margin-bottom: 1.75rem;
}
.polaroids__head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 0.35rem;
}
.polaroids__head p {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
}
.polaroids__row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.polaroid {
  margin: 0;
  background: #fff;
  padding: 0.55rem 0.55rem 1.6rem;
  box-shadow: 0 12px 28px rgba(14, 21, 36, 0.18);
  width: min(42vw, 11rem);
}
.polaroid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.polaroid figcaption {
  margin-top: 0.55rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.polaroid--a { transform: rotate(-6deg); }
.polaroid--b { transform: rotate(2deg); z-index: 1; }
.polaroid--c { transform: rotate(7deg); }
.polaroids__hint {
  text-align: center;
  margin: 1.75rem 0 0;
  font-size: 0.75rem;
  opacity: 0.55;
}

/* Tag flotante */
.float-tag {
  position: fixed;
  z-index: 28;
  left: max(0.65rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  background: var(--stamp);
  color: #fff;
  padding: 0.55rem 0.7rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  animation: tag-bob 3.5s ease-in-out infinite;
  pointer-events: none;
}
.float-tag span { display: block; font-weight: 500; }
.float-tag small { display: block; opacity: 0.8; margin-top: 0.15rem; font-size: 0.55rem; }
@keyframes tag-bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.demo-foot {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(243, 239, 230, 0.55);
  background: var(--navy);
}
.demo-foot a { color: var(--cream); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .float-tag { animation: none; }
}
