/* Layout: a poster hero hung with papel picado; tours listed as a "cartelera" beside a cut-paper
   flag; each subpage opens with the same indigo band, then article + details box. A trip bar
   docks at the bottom once something is on the list. */

/* ---------- Fonts (self-hosted, Hebrew + Latin subsets) ---------- */
@font-face {
  font-family: 'Karantina'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/karantina-700-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Karantina'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/karantina-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(/assets/fonts/rubik-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Rubik'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(/assets/fonts/rubik-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/rubik-italic-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Rubik'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/rubik-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Palette: Oaxacan street colors on a pale agua wall */
  --anil: #1E2A78;        /* indigo, brand ink */
  --sun: #F4A10B;         /* cempasúchil marigold */
  --bugam: #D81F6B;       /* bougainvillea */
  --mar: #0B8A8F;         /* Pacific turquoise */
  --jaca: #7A4FC4;        /* jacaranda */
  --lima: #4A8420;        /* lime */
  --talavera: #2456C8;    /* talavera tile blue */

  --bg: #EDF4F1;
  --surface: #FFFFFF;
  --fg: #16193A;
  --muted: #535977;
  --line: #D3DEDA;
  --hero-bg: #1E2A78;
  --hero-fg: #FFF6E6;
  --hero-muted: #C9CDF0;
  --ink-on-sun: #16193A;
  --wa: #11864A;
  --wa-fg: #FFFFFF;
  --header-bg: rgba(237, 244, 241, 0.92);
  --link: var(--talavera);

  /* Palette keys used by pages and cards: --c is the accent, --on is text on it */
  --c-mar: var(--mar);           --on-mar: #FFFFFF;
  --c-talavera: var(--talavera); --on-talavera: #FFFFFF;
  --c-bugam: var(--bugam);       --on-bugam: #FFFFFF;
  --c-lima: var(--lima);         --on-lima: #FFFFFF;
  --c-sun: var(--sun);           --on-sun: #16193A;
  --c-jaca: var(--jaca);         --on-jaca: #FFFFFF;

  /* Type */
  --font-display: 'Karantina', 'Rubik', 'Arial Hebrew', system-ui, sans-serif;
  --font-body: 'Rubik', 'Arial Hebrew', 'Segoe UI', system-ui, sans-serif;
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: 1.625rem;

  --header-h: 60px;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --anil: #8C98F2;
    --sun: #FFB21E;
    --bugam: #FF5496;
    --mar: #2BB8BA;
    --jaca: #A986F4;
    --lima: #8BC956;
    --talavera: #7FA2FF;
    --bg: #0D1030;
    --surface: #171B47;
    --fg: #F2EEE4;
    --muted: #A8ACCF;
    --line: #2B3066;
    --hero-bg: #151A5A;
    --hero-fg: #FFF6E6;
    --hero-muted: #B9BEEA;
    --ink-on-sun: #16193A;
    --wa: #25A95E;
    --wa-fg: #06140C;
    --header-bg: rgba(13, 16, 48, 0.92);
    --on-mar: #06181A;
    --on-talavera: #0A1433;
    --on-bugam: #1C0612;
    --on-lima: #0E1A05;
    --on-sun: #16193A;
    --on-jaca: #140A2A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --anil: #8C98F2;
  --sun: #FFB21E;
  --bugam: #FF5496;
  --mar: #2BB8BA;
  --jaca: #A986F4;
  --lima: #8BC956;
  --talavera: #7FA2FF;
  --bg: #0D1030;
  --surface: #171B47;
  --fg: #F2EEE4;
  --muted: #A8ACCF;
  --line: #2B3066;
  --hero-bg: #151A5A;
  --hero-fg: #FFF6E6;
  --hero-muted: #B9BEEA;
  --ink-on-sun: #16193A;
  --wa: #25A95E;
  --wa-fg: #06140C;
  --header-bg: rgba(13, 16, 48, 0.92);
  --on-mar: #06181A;
  --on-talavera: #0A1433;
  --on-bugam: #1C0612;
  --on-lima: #0E1A05;
  --on-sun: #16193A;
  --on-jaca: #140A2A;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.has-trip { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
main [id] { scroll-margin-top: calc(var(--header-h) + 12px); }
.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}
.ico { width: 1.15em; height: 1.15em; flex: none; }
[lang="es"] { font-style: italic; }
.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--sun);
  color: var(--ink-on-sun);
}
.skip-link:focus { top: 0.75rem; }

.eyebrow {
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Shared list with diamond markers */
.list { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.list li { position: relative; padding-inline-start: 1.25rem; }
.list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0.1rem;
  top: 0.7em;
  width: 0.45em;
  height: 0.45em;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--c, var(--sun));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.6em 1.4em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 500 var(--t-md) / 1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: 0.4em 1em; font-size: var(--t-sm); }
.btn-block { width: 100%; }
.btn-sun { background: var(--sun); color: var(--ink-on-sun); }
.btn-wa { background: var(--wa); color: var(--wa-fg); }
.btn-ghost { border-color: currentColor; color: var(--hero-fg); background: transparent; }
.btn-ink { background: var(--ink-on-sun); color: var(--hero-fg); justify-self: start; }
.link-btn {
  background: none; border: 0; padding: 0.5em; cursor: pointer;
  color: var(--muted); font: inherit; font-size: var(--t-sm); text-decoration: underline;
}

/* Add-to-list toggle */
.add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 44px;
  padding: 0.45em 1em;
  border: 2px solid var(--c);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font: 500 var(--t-sm) / 1.2 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.add:hover { background: color-mix(in srgb, var(--c) 14%, transparent); }
.add-mark { font-size: 1.2em; line-height: 1; font-weight: 700; }
.add[aria-pressed="true"] { background: var(--c); color: var(--on); }
.add-lg { min-height: 48px; padding: 0.6em 1.4em; font-size: var(--t-md); }

/* ---------- Header & nav ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  direction: ltr;
}
.logo span { color: var(--bugam); }
.site-header .btn-wa { flex: none; }

.site-nav { border-bottom: 1px solid var(--line); }
.site-nav-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  min-height: 56px;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav-row::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  flex: none;
  padding: 0.4em 0.95em;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--t-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.chip::before {
  content: '';
  width: 0.65em;
  height: 0.65em;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--c);
}
.chip:hover, .chip[aria-current] { border-color: var(--c); }
.chip[aria-current="page"] { background: var(--c); color: var(--on); }
.chip[aria-current="page"]::before { background: var(--on); }

/* ---------- Papel picado ---------- */
.picado {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 10px;
  height: 64px;
  overflow: hidden;
  border-top: 2px solid var(--hero-muted);
}
.flag {
  width: 42px;
  height: 50px;
  flex: none;
  margin-top: -1px;
  fill: currentColor;
  transform-origin: 50% 0;
  animation: sway 5s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * -0.7s);
}
@keyframes sway {
  from { transform: rotate(-3deg); }
  to { transform: rotate(3deg); }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  background: var(--hero-bg);
  color: var(--hero-fg);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(1.5rem, 5vw, 3.5rem) 1rem;
  display: grid;
  gap: 1rem;
}
.hero .eyebrow { color: var(--hero-muted); }
.hero-title {
  display: grid;
  gap: 0.6rem;
  margin-block: 0.25rem 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
}
.h1-main {
  display: block;
  font-size: clamp(3.4rem, 12vw, 7.5rem);
  line-height: 0.85;
  letter-spacing: 0.01em;
}
.h1-main em { font-style: normal; color: var(--sun); }
.h1-rest {
  display: block;
  font-size: clamp(1.9rem, 5.2vw, 3.2rem);
  line-height: 1;
}
.hero-lede {
  font-size: clamp(1.3rem, 3.4vw, 1.75rem);
  line-height: 1.35;
  max-width: 32ch;
  text-wrap: balance;
}
.hero-lede em { font-style: normal; color: var(--sun); }
.hero-sub { max-width: 56ch; color: var(--hero-muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

.hero-sea {
  position: relative;
  height: clamp(90px, 14vw, 140px);
}
.sun {
  position: absolute;
  inset-inline-end: 8%;
  bottom: 18px;
  width: clamp(130px, 25vw, 340px);
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--sun), var(--bugam));
  opacity: 0.95;
  transform: translateY(40%);
}
.hero-sea::before,
.hero-sea::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20C40 0 80 0 120 20s80 20 120 0v20H0z'/%3E%3C/svg%3E") repeat-x bottom / 240px 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20C40 0 80 0 120 20s80 20 120 0v20H0z'/%3E%3C/svg%3E") repeat-x bottom / 240px 100%;
}
.hero-sea::before {
  height: 58px;
  background: var(--mar);
  -webkit-mask-position: 60px bottom;
  mask-position: 60px bottom;
}
.hero-sea::after { height: 36px; background: var(--bg); }

/* ---------- Subpage hero ---------- */
.page-hero {
  position: relative;
  background: var(--hero-bg);
  color: var(--hero-fg);
  overflow: hidden;
}
.page-hero .picado { height: 54px; }
.tour-page .page-hero { border-bottom: 6px solid var(--c); }
.page-hero-inner { display: grid; gap: 0.9rem; padding-block: 1.25rem 2.5rem; }
.page-hero h1 {
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 0.92;
}
.page-lede {
  max-width: 62ch;
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  line-height: 1.55;
}
.page-lede a { color: var(--sun); }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--t-sm);
  color: var(--hero-muted);
}
.crumbs li + li::before { content: '‹'; margin-inline-end: 0.35rem; opacity: 0.75; }
.crumbs a { color: var(--hero-fg); text-underline-offset: 3px; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--t-sm);
}
.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.35em 0.85em;
  border: 1px solid color-mix(in srgb, var(--hero-muted) 40%, transparent);
  border-radius: 999px;
}
.page-hero .add, .cta-band .add { color: var(--hero-fg); }
.page-hero .add[aria-pressed="true"], .cta-band .add[aria-pressed="true"] { color: var(--on); }

/* ---------- Home: intro, tours list ---------- */
.intro { padding-block: 2.75rem 0.5rem; }
.intro .prose { gap: 1rem; }
.experiences { padding-block: 2.5rem 1.5rem; }
.cat { display: grid; gap: 1.25rem; }
@media (min-width: 900px) {
  .cat { grid-template-columns: 290px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .cat-flag { position: sticky; top: calc(var(--header-h) + 20px); }
}
.cat-flag {
  --z: 11px;
  position: relative;
  background: var(--c);
  color: var(--on);
  padding: 1.25rem 1.4rem calc(var(--z) + 2.25rem);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
}
/* punched holes, like cut paper */
.cat-flag::after {
  content: '';
  position: absolute;
  inset-inline: 1.4rem;
  bottom: calc(var(--z) + 0.9rem);
  height: 10px;
  background: radial-gradient(circle, var(--bg) 0 3px, transparent 3.5px) 0 50% / 18px 10px repeat-x;
}
.cat-flag h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 3.4rem);
  line-height: 0.95;
}
.cat-blurb { margin-top: 0.5rem; font-size: var(--t-sm); line-height: 1.5; }
.cat-count {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-underline-offset: 3px;
}
.cat-list { display: grid; gap: 0.75rem; min-width: 0; }

.exp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}
.exp.is-picked, .exp:hover { border-color: var(--c); }
.exp-body { display: grid; gap: 0.4rem; min-width: 0; }
.exp-titles { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.exp h3 { font-size: var(--t-lg); font-weight: 700; }
.exp h3 a { text-decoration: none; }
.exp h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.exp-es { font-size: var(--t-xs); color: var(--muted); letter-spacing: 0.02em; }
.exp-tag {
  font-size: var(--t-xs);
  font-weight: 500;
  padding: 0.1em 0.6em;
  border-radius: 4px;
  background: var(--sun);
  color: var(--ink-on-sun);
}
.exp-desc { max-width: 62ch; }
.exp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--t-sm);
  color: var(--muted);
}
.exp-meta li { display: inline-flex; align-items: center; gap: 0.35em; }
.exp-meta .ico { width: 1em; height: 1em; }
.exp-more {
  justify-self: start;
  margin-top: 0.15rem;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--link);
  text-decoration: none;
}
.exp-more:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .exp { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .exp .add { justify-self: start; }
}

/* ---------- Sections ---------- */
.section-head { display: grid; gap: 0.35rem; margin-bottom: 1.75rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 4.5rem);
  line-height: 0.9;
}
.section-sub { color: var(--muted); max-width: 60ch; }
.section-sub a { color: var(--link); }

/* Services */
.services { padding-block: 3rem 2rem; }
.scards { display: grid; gap: 1rem; }
@media (min-width: 760px) { .scards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.scard {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.4rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.scard:hover { border-color: var(--talavera); }
.scard h3 { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; line-height: 0.95; }
.scard h3 a { text-decoration: none; }
.scard h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.scard p { font-size: var(--t-sm); color: var(--muted); }

.extras {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1.5px dashed var(--line);
}
.extras h3 { font-size: var(--t-lg); }
.extras p { font-size: var(--t-sm); color: var(--muted); }
.extras-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; min-width: 0; }
.xchip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  padding: 0.4em 1em;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font: 500 var(--t-sm) / 1.2 var(--font-body);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.xchip:hover { border-color: var(--c); }
.xchip .add-mark { color: var(--c); }
.xchip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: var(--on); }
.xchip[aria-pressed="true"] .add-mark { color: var(--on); }

/* How it works */
.how { padding-block: 3rem; }
.steps { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.steps li { counter-increment: step; display: grid; gap: 0.4rem; }
.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4.5rem;
  line-height: 0.8;
  color: var(--sun);
}
.steps h3 { font-size: var(--t-xl); }
.steps p { color: var(--muted); max-width: 36ch; }

/* Next destinations: a departures board */
.next { padding-block: 1rem 3.5rem; }
.board {
  display: grid;
  padding: 0.5rem clamp(1rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--hero-bg);
  color: var(--hero-fg);
}
.dest {
  display: grid;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
  border-bottom: 1px dashed color-mix(in srgb, var(--hero-muted) 35%, transparent);
}
.dest:last-child { border-bottom: 0; }
@media (min-width: 560px) {
  .dest { grid-template-columns: minmax(0, 1fr) auto; }
  .dest-body { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .dest { grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1.9fr); align-items: start; }
  .dest-body { grid-column: auto; }
}
.dest-name { min-width: 0; }
.dest-name h3 { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 0.95; }
.dest-es { display: block; margin-top: 0.3rem; font-size: var(--t-xs); color: var(--hero-muted); }
.dest-go { display: grid; gap: 0.2rem; align-content: start; }
.dest-time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--sun);
  white-space: nowrap;
}
.dest-how { display: inline-flex; align-items: center; gap: 0.4em; font-size: var(--t-sm); color: var(--hero-muted); white-space: nowrap; }
.dest-body { display: grid; gap: 0.4rem; min-width: 0; font-size: var(--t-sm); }
.dest-body a:not(.dest-stay) { color: var(--sun); }
.dest-tip { color: var(--hero-muted); }
.dest-tip strong { color: var(--sun); font-weight: 500; }
.dest-stay {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin-top: 0.3rem;
  padding: 0.35em 0.95em;
  border: 1.5px solid var(--sun);
  border-radius: 999px;
  color: var(--sun);
  font-weight: 500;
  text-decoration: none;
}
.dest-stay:hover { background: color-mix(in srgb, var(--sun) 15%, transparent); }

.stay-promo {
  display: grid;
  gap: 1rem 1.75rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--sun);
  color: var(--ink-on-sun);
}
@media (min-width: 760px) { .stay-promo { grid-template-columns: auto minmax(0, 1fr) auto; } }
.promo-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.5rem, 12vw, 6rem);
  line-height: 0.8;
}
.promo-num small { font-size: 1.7rem; line-height: 1; }
.promo-body { min-width: 0; }
.promo-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 0.95; }
.promo-body p { margin-top: 0.4rem; max-width: 60ch; }

.next-foot { display: grid; gap: 1.25rem; margin-top: 1.5rem; align-items: center; }
@media (min-width: 860px) { .next-foot { grid-template-columns: minmax(0, 1fr) auto; } }
.next-tips { font-size: var(--t-sm); color: var(--muted); }
.next-tips { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.next-tips li { position: relative; padding-inline-start: 1.1rem; }
.next-tips li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0.05rem;
  top: 0.65em;
  width: 0.45em;
  height: 0.45em;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--sun);
}

/* Tips */
.tips { padding-block: 1rem 3rem; }
.tips-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .tips-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tips-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tip {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  padding: 1.25rem;
  border-top: 4px solid var(--mar);
  background: var(--surface);
}
.tip:nth-child(2) { border-top-color: var(--bugam); }
.tip:nth-child(3) { border-top-color: var(--jaca); }
.tip:nth-child(4) { border-top-color: var(--lima); }
.tip h3 { font-size: var(--t-lg); }
.tip p { font-size: var(--t-sm); color: var(--muted); }

/* ---------- Article pages ---------- */
.page-grid { display: grid; gap: 2rem; padding-block: 2.5rem 3rem; }
@media (min-width: 960px) {
  .page-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; align-items: start; }
  .page-grid > .details { grid-column: 2; grid-row: 1; }
  .page-grid > .prose { grid-column: 1; grid-row: 1; }
}
.page-single { padding-block: 2.5rem 3rem; }
.page-single .prose { max-width: 760px; }
.hub-list { padding-block: 2.5rem 0; }
.hub-list h2 {
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 3.2rem);
  line-height: 0.95;
}

.details {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.details h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
}
.details h2::before {
  content: '';
  width: 0.35em;
  height: 0.35em;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--c);
}
.details dl { display: grid; gap: 0.9rem; margin: 0; }
.drow { display: grid; gap: 0.2rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.drow:first-child { padding-top: 0; border-top: 0; }
.drow dt { display: flex; align-items: center; gap: 0.45em; font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.04em; color: var(--muted); }
.drow dd { margin: 0; font-size: var(--t-sm); }
.drow .list { gap: 0.3rem; margin-top: 0.2rem; }
.details-cta { display: grid; gap: 0.6rem; margin-top: 0.25rem; }
.details-cta .btn, .details-cta .add { width: 100%; }

.prose { display: grid; gap: 2.5rem; min-width: 0; }
.prose section { display: grid; gap: 0.9rem; }
.prose h2, .faq h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 6vw, 3rem);
  line-height: 0.95;
}
.prose h3 { margin-top: 0.4rem; font-size: var(--t-lg); font-weight: 700; }
.prose p, .prose li { max-width: 68ch; line-height: 1.75; }
.prose a, .faq a { color: var(--link); text-underline-offset: 3px; }
.insider {
  padding: 1.5rem clamp(1rem, 3vw, 1.75rem);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--sun) 15%, var(--surface));
}
.insider .list li::before { background: var(--sun); }
.callout {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--sun) 15%, var(--surface));
}
.not-found-links { font-size: var(--t-lg); }
.not-found-links a { color: var(--link); }

/* FAQ */
.faq { display: grid; gap: 0.25rem; }
.faq h2 { margin-bottom: 0.5rem; }
.faq-item { display: grid; gap: 0.35rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.faq-item h3 { font-size: var(--t-lg); font-weight: 700; }
.faq-item p { max-width: 68ch; line-height: 1.7; }
.home-faq { padding-block: 1rem 3.5rem; }

/* Related tours */
.related { padding-block: 3rem; background: color-mix(in srgb, var(--c, var(--mar)) 9%, var(--bg)); }
.related h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 6vw, 3rem);
  line-height: 0.95;
}
.rcards { display: grid; gap: 1rem; margin-top: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.rcard {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.rcard:hover { border-color: var(--c); }
.rcard h3 { display: flex; align-items: center; gap: 0.5rem; font-size: var(--t-lg); }
.rcard h3::before {
  content: '';
  flex: none;
  width: 0.5em;
  height: 0.5em;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--c);
}
.rcard h3 a { text-decoration: none; }
.rcard h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.rcard p { font-size: var(--t-sm); color: var(--muted); }

/* CTA band */
.cta-band { background: var(--hero-bg); color: var(--hero-fg); }
.cta-inner { display: grid; justify-items: start; gap: 0.75rem; padding-block: 3rem; }
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  line-height: 0.92;
}
.cta-band p { color: var(--hero-muted); max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 2.5rem 1.5rem; font-size: var(--t-sm); color: var(--muted); border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: grid; gap: 0.45rem; align-content: start; }
.footer-brand .logo { justify-self: start; color: var(--fg); font-size: 2rem; margin-bottom: 0.25rem; }
.footer-title { margin-bottom: 0.6rem; font-size: var(--t-sm); font-weight: 700; letter-spacing: 0.04em; color: var(--fg); }
.site-footer ul { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); text-decoration: underline; }
.phone { font-variant-numeric: tabular-nums; user-select: all; unicode-bidi: isolate; }
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ---------- Trip bar ---------- */
.tripbar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  padding-block: 0.6rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--hero-bg);
  color: var(--hero-fg);
  box-shadow: 0 -6px 24px rgba(10, 12, 40, 0.25);
}
.tripbar-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tripbar-open {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: 500 var(--t-md) / 1.2 var(--font-body);
  cursor: pointer;
  text-align: start;
}
.tripbar-count {
  display: grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink-on-sun);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tripbar-edit { font-size: var(--t-sm); color: var(--hero-muted); text-decoration: underline; }
.tripbar .btn { flex: none; }
.bump { animation: bump 0.35s ease; }
@keyframes bump { 50% { transform: scale(1.25); } }

/* ---------- Trip dialog ---------- */
.trip-dialog {
  width: min(540px, 100%);
  max-width: 100%;
  max-height: min(88vh, 760px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 20px 60px rgba(10, 12, 40, 0.35);
}
.trip-dialog::backdrop { background: rgba(10, 12, 40, 0.55); }
@media (max-width: 600px) {
  .trip-dialog { margin: auto 0 0; border-radius: 16px 16px 0 0; max-height: 90vh; }
}
.trip-dialog-inner { display: grid; gap: 1rem; padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px)); }
.trip-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.trip-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  font-size: 1rem;
  cursor: pointer;
}
.trip-list { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.trip-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--bg);
}
.trip-list .dot { width: 0.6em; height: 0.6em; flex: none; border-radius: 2px; transform: rotate(45deg); background: var(--c); }
.trip-item-name { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.trip-remove {
  flex: none;
  min-height: 36px;
  padding: 0 0.75rem;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: var(--t-sm);
  text-decoration: underline;
  cursor: pointer;
}
.trip-empty { color: var(--muted); }
.trip-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.trip-form .btn, .trip-form .link-btn, .field-wide { grid-column: 1 / -1; }
.field { display: grid; gap: 0.3rem; }
.field label { font-size: var(--t-sm); font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--mar); outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Free attractions (shown only once src/content/free.mjs has items) ---------- */
.free { padding-block: 1rem 2.5rem; }
.free-page { padding-block: 2.5rem; }
.free-list-title {
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 3.2rem);
  line-height: 0.95;
}
.free-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.free-card {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.free-card h3 { font-size: var(--t-lg); }
.free-card a:not(.free-map) { color: var(--link); }
.free-tag {
  font-size: var(--t-xs);
  font-weight: 500;
  padding: 0.1em 0.6em;
  border-radius: 4px;
  background: var(--jaca);
  color: var(--on-jaca);
}
.free-tip { font-size: var(--t-sm); color: var(--muted); }
.free-tip strong { color: var(--fg); font-weight: 500; }
.free-map {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--link);
  text-decoration: none;
}
.free-map:hover { text-decoration: underline; text-underline-offset: 3px; }
.free-all { display: inline-block; margin-top: 1.25rem; }

/* ---------- "Fell in love with Puerto?" long-stay call ---------- */
.stay-long { background: var(--bugam); color: var(--on-bugam); }
.stay-long-inner { display: grid; gap: 1.25rem 2.5rem; align-items: center; padding-block: 2.75rem; }
@media (min-width: 900px) {
  .stay-long:not(.stay-long--card) .stay-long-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; }
}
.stay-long .eyebrow { color: inherit; opacity: 0.85; }
.stay-long h2 {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.5vw, 4rem);
  line-height: 0.92;
}
.stay-long-text p:last-child { margin-top: 0.6rem; max-width: 46ch; }
.stay-long .list li::before { background: currentColor; }
.stay-long .btn-ink { color: var(--hero-fg); justify-self: start; }
.stay-long--card { border-radius: var(--radius); }
.stay-long--card .stay-long-inner { padding: 1.5rem clamp(1rem, 3vw, 1.75rem); }
.stay-long--card h2 { font-size: clamp(2.2rem, 6vw, 2.8rem); }
