:root {
  color-scheme: light;
  --cream: #f8f3e9;
  --paper: #fffcf6;
  --ink: #262119;
  --muted: #625749;
  --rust: #8e2717;
  --rust-dark: #701e11;
  --line: #ded3c2;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.55 var(--sans); }
html:has(dialog[open]) { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
p, h1, h2, h3, figure { margin: 0; }
.frame { width: min(100% - 6rem, 1240px); margin-inline: auto; }

.skip-link {
  position: fixed; z-index: 5; inset: .5rem auto auto .5rem;
  transform: translateY(-160%); padding: .75rem 1rem;
  background: var(--paper); color: var(--rust);
}
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-content, .footer-content { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; }
.header-content { min-height: 5.5rem; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { object-fit: contain; }
nav { display: flex; align-items: center; gap: clamp(1rem, 4vw, 2.75rem); }
.nav-packages { font-weight: 700; text-decoration: none; }
.nav-packages:hover, .footer-content a:hover { color: var(--rust); }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.875rem;
  border-radius: .45rem; padding: .65rem 1rem; border: 1px solid transparent;
  background: transparent; font-weight: 700; text-decoration: none; text-align: center; cursor: pointer;
}
.button-outline { color: var(--rust); border-color: currentColor; }
.button-primary { color: #fffaf0; background: var(--rust); }

.hero {
  position: relative; isolation: isolate; display: grid; align-items: center;
  min-height: clamp(32rem, 47vw, 42rem); background: #142822; color: #fff9ed;
}
.hero-media, .hero-media > *, .hero::after { position: absolute; inset: 0; }
.hero-media { overflow: hidden; }
.hero-media > * { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero-media video { visibility: hidden; }
.hero-media video.has-frame { visibility: visible; }
.hero::after {
  content: ""; pointer-events: none;
  background: linear-gradient(90deg, #0d211de8 0%, #0d211dc9 32%, #0d211d46 69%, #0d211d12 100%),
    linear-gradient(0deg, #0d211d9c, transparent 28%);
}
.hero-content { position: relative; z-index: 1; padding-block: clamp(2.5rem, 6vw, 5rem); }
.eyebrow { color: #ffe0a6; text-transform: uppercase; letter-spacing: .13em; font-size: .875rem; font-weight: 700; margin-bottom: 1rem; }
h1, h2, h3 { font-family: var(--serif); }
h1 { font-size: clamp(3rem, 7.3vw, 6.6rem); font-weight: 750; line-height: .98; letter-spacing: -.055em; }
h1 span { color: #ffd386; }
.hero-description { max-width: 29rem; margin-block: 1.35rem 1.5rem; font-size: clamp(1.03rem, 2vw, 1.25rem); }
.hero-cta { min-height: 3.15rem; padding-inline: 1.3rem; color: #2e2118; background: #ffd386; }
.hero-logistics { margin-top: .95rem; color: #fff2d9; font-size: .9rem; }
.hero :focus-visible { outline-color: #ffd386; }
.hero-video-toggle {
  position: absolute; z-index: 2; inset: auto max(1.5rem, calc((100% - 1240px) / 2)) 1.5rem auto;
  display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem;
  padding: .4rem .7rem; border: 1px solid #fff9ed80; border-radius: .45rem;
  background: #10211de8; color: #fff9ed; font-size: .875rem; font-weight: 700; cursor: pointer;
}
.hero-video-toggle[hidden] { display: none; }
.hero-video-icon { display: block; width: .65rem; }
.hero-video-icon::before {
  display: block; content: ""; width: 0; height: 0;
  border: .32rem solid transparent; border-left: .56rem solid currentColor; border-right: 0;
}
.hero-video-toggle[data-playing] .hero-video-icon::before {
  width: .56rem; height: .66rem; border: 0; border-inline: .17rem solid currentColor;
}

.catalog { scroll-margin-top: 1rem; background: var(--paper); padding-block: clamp(2.75rem, 6vw, 5.5rem); border-block: 1px solid var(--line); }
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.7rem); font-weight: 720; line-height: 1.04; letter-spacing: -.055em; }
.catalog-head p { color: var(--muted); margin-top: .7rem; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.filters button {
  min-height: 2.7rem; border: 1px solid var(--line); background: transparent;
  border-radius: 2rem; padding: .35rem .75rem; color: var(--muted);
  cursor: pointer; font-size: .895rem; font-weight: 700;
}
.filters button[aria-pressed="true"] { color: #fffaf0; background: var(--rust); border-color: var(--rust); }
.result-count { margin-block: 1.4rem .65rem; color: var(--muted); font-size: .92rem; }
.package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.package {
  display: flex; flex-direction: column; min-width: 0;
  overflow: hidden; border: 1px solid var(--line); border-radius: .7rem;
  background: var(--paper);
}
.package[hidden] { display: none; }
.package-photo { position: relative; background: #b4875d; }
.package-photo img { width: 100%; height: auto; aspect-ratio: 1.9; object-fit: cover; }
.duration {
  position: absolute; inset: .75rem auto auto .75rem; padding: .23rem .64rem;
  border-radius: 2rem; color: var(--rust-dark); background: var(--paper);
  font-size: .88rem; font-weight: 700;
}
.package-body { display: flex; flex: 1; flex-direction: column; padding: 1.2rem; }
.package h3 { font-weight: 700; font-size: clamp(1.3rem, 2.15vw, 1.7rem); line-height: 1.1; letter-spacing: -.035em; }
.package-description { margin-top: .65rem; margin-bottom: 1.1rem; color: var(--muted); }
.package-price { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .94rem; }
.package-price strong { font-size: 1.32rem; font-weight: 700; color: var(--ink); }
.installments { display: block; }
.package-button { align-self: stretch; margin-top: .95rem; }
.footer-content { min-height: 7rem; padding-block: 1rem; flex-wrap: wrap; color: var(--muted); }
.footer-content a { text-underline-offset: .16em; }

dialog {
  width: min(42rem, 100% - 1.5rem); max-height: min(90dvh, 52rem);
  padding: 0; border: 1px solid var(--line); border-radius: .85rem;
  background: var(--paper); color: var(--ink); box-shadow: 0 1rem 5rem #1e150d50;
}
dialog::backdrop { background: #201912bc; }
.dialog-bar {
  position: sticky; z-index: 1; top: 0; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; padding: .7rem clamp(1rem, 5vw, 2rem);
  border-bottom: 1px solid var(--line); background: var(--paper); color: var(--rust);
  font-weight: 700;
}
.dialog-close {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line);
  background: var(--cream); cursor: pointer; color: var(--ink); line-height: 1; font-size: 1.5rem;
}
.dialog-content { padding: 1.5rem clamp(1rem, 5vw, 2rem) 1.75rem; }
.dialog-content h2 { font-size: clamp(1.8rem, 5vw, 2.75rem); }
.dialog-description { margin-top: .65rem; color: var(--muted); }
.route-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem 1rem; padding: 1rem; margin-block: 1.2rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--cream); }
.route-facts p { color: var(--muted); font-size: .94rem; }
.route-facts strong { display: block; color: var(--ink); }
.route-list { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.route-list li { padding-block: .8rem; border-bottom: 1px solid var(--line); }
.route-list h3 { margin-bottom: .2rem; font-size: 1.2rem; color: var(--rust); }
.route-list p + p { margin-top: .2rem; }
.route-note { color: var(--muted); font-size: .9rem; }
.dialog-actions { display: flex; gap: .8rem 1rem; flex-wrap: wrap; align-items: center; }
.dialog-actions > a:not(.button) { font-size: .94rem; text-underline-offset: .15em; }

@media (max-width: 940px) {
  .frame { width: min(100% - 3rem, 1240px); }
  .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .frame { width: calc(100% - 2rem); }
  .header-content { min-height: 4.6rem; gap: .5rem; }
  .header-content .brand img { width: 72px; height: auto; }
  nav { gap: .7rem; }
  .nav-packages { display: none; }
  .hero { min-height: clamp(31rem, 68svh, 37rem); align-items: end; }
  .hero-content { padding-block: 6rem 2.1rem; }
  .hero::after { background: linear-gradient(0deg, #0d211df2 0%, #0d211dcd 51%, #0d211d38 88%); }
  h1 { font-size: clamp(2.9rem, 10.3vw, 4.4rem); }
  .hero-video-toggle { inset: .85rem 1rem auto auto; }
  .package-grid { gap: .9rem; }
  .package-body { padding: 1rem; }
}
@media (max-width: 530px) {
  .package-grid { grid-template-columns: 1fr; }
  .footer-content { justify-content: flex-start; min-height: auto; padding-block: 1.4rem; }
  .footer-content p { flex: 1 0 60%; }
}
@media (hover: hover) and (pointer: fine) {
  .button-outline:hover, .dialog-close:hover { background: #f0e3d5; }
  .button-primary:hover { background: var(--rust-dark); }
  .hero-cta:hover { background: #ffe1a8; }
  .hero-video-toggle:hover { background: #293e35; }
  .filters button:hover { border-color: var(--rust); }
}

@media (prefers-reduced-motion: no-preference) {
  :is(.button, .filters button, .dialog-close) { transition: transform 140ms var(--ease-out); }
  :is(.button, .filters button, .dialog-close):active:not(:focus-visible) {
    transform: scale(.97);
    transition-duration: 100ms;
  }

  dialog[data-pointer-motion] {
    opacity: 0;
    transform: translateY(.375rem) scale(.98);
    transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out),
      display 160ms allow-discrete, overlay 160ms allow-discrete;
  }
  dialog[data-pointer-motion][open] {
    opacity: 1;
    transform: none;
    transition-duration: 220ms;
  }
  dialog[data-pointer-motion]::backdrop {
    opacity: 0;
    transition: opacity 160ms var(--ease-out), display 160ms allow-discrete,
      overlay 160ms allow-discrete;
  }
  dialog[data-pointer-motion][open]::backdrop {
    opacity: 1;
    transition-duration: 220ms;
  }

  @starting-style {
    dialog[data-pointer-motion][open] {
      opacity: 0;
      transform: translateY(.375rem) scale(.98);
    }
    dialog[data-pointer-motion][open]::backdrop { opacity: 0; }
  }
}
