/* Intivia public site. Mobile first: the page is a phone column.
   On desktop (>= 900px) the column sits in the middle and tours fill the sides. */

:root {
  --navy: #14213d; --night: #0d1629; --gold: #c8913a; --gold-light: #f3c77e; --green: #25d366;
  --bg: #faf6ef; --surface: #ffffff; --text: #1f2430; --muted: #667085; --line: #ece6db; --accent-bg: #f6ecdb;
  --gold-text: #8a5d17;   /* gold dark enough for small text (WCAG AA) */
  --hairline: var(--line);
  /* Tour sheet sections: one soft tint each */
  --tint-itinerary: rgba(96,140,220,.08);  --edge-itinerary: rgba(96,140,220,.18);
  --tint-difficulty: rgba(212,160,60,.08); --edge-difficulty: rgba(212,160,60,.18);
  --tint-included: rgba(80,180,120,.08);   --edge-included: rgba(80,180,120,.18);
  --tint-bring: rgba(150,120,210,.08);     --edge-bring: rgba(150,120,210,.18);
  --yes: #24804a; --no: #b23a2c;
  --easy-bg: #e1f3e8; --easy-text: #1d6b40;
  --moderate-bg: #f8ebd3; --moderate-text: #85570f;
  --challenging-bg: #fbe3df; --challenging-text: #a3301f;
  --tab-on: var(--navy);   /* selected "Traditional" tab */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark;
    --bg: #0f1420; --surface: #182033; --text: #e7e9ee; --muted: #9aa3b5; --line: #263049; --accent-bg: #2a2516;
    --gold-text: #f3c77e; --hairline: rgba(255,255,255,.08); --yes: #74d39b; --no: #f19a8c;
    --easy-bg: rgba(80,180,120,.2); --easy-text: #8fdcae;
    --moderate-bg: rgba(212,160,60,.2); --moderate-text: #f3c77e;
    --challenging-bg: rgba(220,90,70,.22); --challenging-text: #f4a597; --tab-on: #2c3d66; }
}
:root[data-theme="dark"] { color-scheme: dark;
  --bg: #0f1420; --surface: #182033; --text: #e7e9ee; --muted: #9aa3b5; --line: #263049; --accent-bg: #2a2516;
    --gold-text: #f3c77e; --hairline: rgba(255,255,255,.08); --yes: #74d39b; --no: #f19a8c;
    --easy-bg: rgba(80,180,120,.2); --easy-text: #8fdcae;
    --moderate-bg: rgba(212,160,60,.2); --moderate-text: #f3c77e;
    --challenging-bg: rgba(220,90,70,.22); --challenging-text: #f4a597; --tab-on: #2c3d66; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[x-cloak] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text);
  background: var(--night) radial-gradient(1400px 800px at 50% 20%, #1c2c50, var(--night)) fixed; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.01em; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ico { width: 20px; height: 20px; flex: none; }

/* ===== Layout ===== */
.scene { display: block; }
.side { display: none; }
.phone { background: var(--bg); min-height: 100vh; }
.frame { position: relative; width: 100%; height: min(100svh, 177.8vw); overflow: hidden; background: var(--night); }

/* ===== Hero video ===== */
.hero { position: absolute; inset: 0; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(8,12,24,.6), rgba(8,12,24,0) 24%, rgba(8,12,24,0) 50%, rgba(8,12,24,.9)); }
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 0; color: #fff; }
.bar { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; min-height: 44px; }
.logo img { height: 34px; width: auto; filter: brightness(0) invert(1); }
.sound { width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; display: grid; place-items: center; }
.sound svg { width: 18px; height: 18px; }
.bar-end { display: flex; align-items: center; gap: 8px; }
/* Language switch: a pill with [flag ES] [flag EN], as tall as the sound button */
.langs { display: flex; height: 44px; border-radius: 22px; background: rgba(10,16,30,.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lang { position: relative; display: flex; align-items: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 11px 0 9px;
  font-size: 12px; font-weight: 700; color: #fff; opacity: .6; transition: opacity .2s; isolation: isolate; }
.lang:hover, .lang.on { opacity: 1; }
.lang.on::before { content: ""; position: absolute; z-index: -1; inset: 5px 2px; border-radius: 17px; background: rgba(212,160,60,.25); border: 1px solid var(--gold); }
.lang img { position: relative; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.menu { display: flex; justify-content: space-between; margin-top: 10px; padding: 2px 0;
  border-top: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); font-size: 14px; }
.menu a { padding: 11px 6px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
/* Five links (with Gallery) on a 320–360 px phone: text and spacing shrink a little, never above the sizes above */
.menu { font-size: clamp(12.5px, 3.75vw, 14px); }
.menu a { padding-left: clamp(2px, 1vw, 6px); padding-right: clamp(2px, 1vw, 6px); }
.menu a:hover { color: var(--gold-light); }
/* Space between the menu and the bottom of the video: the title at the bottom and, above it, the social icons,
   centred in the free space that is left (so they never cover the menu, the title or the numbers) */
.hero-main { position: absolute; top: calc(118px + env(safe-area-inset-top, 0px)); left: 0; right: 0; bottom: 64px; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end; pointer-events: none; }
.hero-main > * { pointer-events: auto; }
.hero-text { margin: 0 20px; color: #fff; }
/* Social media: a column on the right of the video, like Instagram Reels */
.hero-social { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: auto 12px auto auto; }
/* Each logo in white (inline SVG, fill="currentColor") on a night-blue glass circle with a thin white edge.
   Hover or keyboard focus: the circle turns gold (the gold of the buttons) and the logo stays white. */
.hero-social a, .contact-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff;
  background: rgba(13,22,41,.55); border: 1px solid rgba(255,255,255,.3);
  transition: background-color .2s, border-color .2s, transform .2s; }
.hero-social svg, .contact-social svg { width: 26px; height: 26px; }   /* official logos, square: never stretched */
.hero-social a:focus-visible, .contact-social a:focus-visible { background: var(--gold); border-color: var(--gold); }
@media (hover: hover) {
  .hero-social a:hover, .contact-social a:hover { background: var(--gold); border-color: var(--gold); transform: scale(1.08); }
}
/* The page's only <h1> is the small line above the big title ("Cusco Tours", for Google); the big title is a <p> */
.eyebrow { font-family: inherit; font-weight: 400; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
.hero-title { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -.01em;
  font-size: 32px; line-height: 1.1; margin: 8px 0 4px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.stats { display: flex; gap: 6px; margin-top: 12px; }
.stats div { flex: 1; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 10px; padding: 6px 8px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.stats b { display: block; font-size: 14px; color: #fff; }
.stats span { font-size: 10px; color: rgba(255,255,255,.85); }
.scroll-hint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center;
  min-height: 44px; justify-content: center; font-size: 12px; color: rgba(255,255,255,.9); animation: bounce-m 2s ease-in-out infinite; }
@keyframes bounce-m { 0%, 100% { translate: 0 0; } 50% { translate: 0 5px; } }

/* ===== Tour cards ===== */
.card { position: relative; display: block; width: 100%; border-radius: 18px; overflow: hidden; text-align: left; color: #fff;
  background: linear-gradient(135deg, var(--navy), #3b2f1c); box-shadow: 0 10px 30px rgba(0,0,0,.35);
  outline: 3px solid transparent; outline-offset: 3px; transition: opacity .3s, filter .3s, transform .3s, outline-color .3s; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,16,30,.85), rgba(10,16,30,0) 60%); }
.card .txt { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 2px; }
.card strong { font-family: Georgia, serif; font-size: 17px; line-height: 1.2; }
.card small { font-size: 12px; opacity: .85; }
.card em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--gold-light); }
/* Tours with a VIP version: small "Traditional · VIP" label over the photo */
.versions-tag { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: #fff; background: rgba(10,16,30,.62); border: 1px solid rgba(243,199,126,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card.dim { opacity: .28; filter: saturate(.4); }
.card.on { outline-color: var(--gold); }
.card:not(.dim):hover { transform: scale(1.03); }

/* Mobile grid of tours: no mouse, so cards are always lit */
.row { background: var(--night); color: #fff; padding: 20px 16px 26px; }
.row h2 { font-size: 21px; margin-bottom: 12px; }
.tour-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tour-grid .card { aspect-ratio: 3 / 4; border-radius: 14px; }
.tour-grid .card .txt { left: 11px; right: 11px; bottom: 11px; gap: 3px; }
.tour-grid .card strong { font-size: 16px; line-height: 1.15; }
.tour-grid .card small { font-size: 11.5px; line-height: 1.3; }
.tour-grid .card strong, .tour-grid .card small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.tour-grid .card em { font-size: 13px; }
@media (min-width: 600px) { .tour-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== Tour sheet (takes the place of the video) ===== */
.sheet { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--surface); color: var(--text); }
.gallery { position: relative; flex: none; background: var(--surface); }
/* Swipeable photos: the next one peeks at the edge so it's clear there are more */
.g-track { position: relative; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.g-track::-webkit-scrollbar { display: none; }
.g-slide { position: relative; flex: 0 0 100%; aspect-ratio: 3 / 4; overflow: hidden; scroll-snap-align: center; background: #000; }
.g-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.g-empty { background: linear-gradient(135deg, var(--navy), #3b2f1c); }
.multi .g-track { gap: 8px; padding: 8px 12px 0; scroll-padding-inline: 12px; }
.multi .g-slide { flex-basis: 88%; border-radius: 12px; }
.multi .g-slide::after { content: ""; position: absolute; inset: auto 0 0; height: 72px; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0)); }
.nudge { animation: nudge .9s ease-in-out .45s 1; }
@keyframes nudge { 0%, 100% { translate: 0 0; } 45% { translate: -24px 0; } }
.g-count { position: absolute; top: 20px; left: 24px; z-index: 2; padding: 3px 10px; border-radius: 20px; pointer-events: none;
  background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.g-dots { position: absolute; left: 0; right: 0; bottom: 6px; z-index: 2; display: flex; justify-content: center; gap: 2px; }
.g-dot { width: 22px; height: 24px; display: grid; place-items: center; }
.g-dot::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.5); transition: width .3s, background .3s; }
.g-dot.on::before { width: 22px; background: var(--gold); }
.close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff;
  display: grid; place-items: center; font-size: 17px; }
.body { flex: 1; overflow-y: auto; padding: 16px 20px 12px; }
.route { font-size: 12px; color: var(--muted); }
.body h1, .body h2 { font-size: 25px; margin: 4px 0 8px; }
.summary { font-size: 14px; line-height: 1.5; color: var(--muted); margin-bottom: 14px; }
.highlights { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.highlights li { font-size: 12.5px; font-weight: 600; color: var(--gold); background: var(--accent-bg); padding: 5px 10px; border-radius: 20px; }
.highlights li::before { content: "✦ "; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.facts div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.facts span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts b { font-size: 13px; }
.block { border-radius: 12px; padding: 16px; margin-top: 12px; font-size: 14.5px; line-height: 1.5; }
.block > :first-child { display: flex; align-items: center; gap: 8px; font-family: inherit; font-size: 16px; letter-spacing: 0; margin: 0 0 10px; }
/* "Included" and "Not included" labels */
.block > :is(h3, h4):not(:first-child) { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 6px; }
.block > :first-child + :is(h3, h4) { margin-top: 0; }
.block ul { list-style: none; display: grid; gap: 6px; }
.b-itinerary { background: var(--tint-itinerary); border: 1px solid var(--edge-itinerary); }
.b-difficulty { background: var(--tint-difficulty); border: 1px solid var(--edge-difficulty); }
.b-included { background: var(--tint-included); border: 1px solid var(--edge-included); }
.b-bring { background: var(--tint-bring); border: 1px solid var(--edge-bring); }
/* Itinerary: vertical timeline, time on the left, a dot and a thin line joining the steps.
   The time never breaks ("4:30 a. m.", "Media mañana"). Its column is as wide as the longest time
   of the tour (at least 48 px), the same for every step: each <li> uses the columns of the <ol>
   (subgrid; older browsers: a fixed 7em column). The dot and the line hang from the <time>, so they
   follow the width of that column. */
.b-itinerary { container-type: inline-size; }
.itinerary { list-style: none; display: grid; grid-template-columns: minmax(48px, max-content) 1fr; column-gap: 22px; }
.itinerary li { grid-column: 1 / -1; display: grid; grid-template-columns: 7em 1fr; grid-template-columns: subgrid; column-gap: 22px; padding-bottom: 12px; }
.itinerary li:last-child { padding-bottom: 0; }
.itinerary time { position: relative; white-space: nowrap; font-weight: 700; color: var(--gold-text); font-variant-numeric: tabular-nums; }
.itinerary time::before { content: ""; position: absolute; left: calc(100% + 7px); top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.itinerary time::after { content: ""; position: absolute; left: calc(100% + 11px); top: calc(.5em + 13px); bottom: -10px; width: 1px; background: var(--gold); opacity: .4; }
.itinerary li:last-child time::after { display: none; }
/* Times longer than "Media mañana" ("long", set by the generator) on a narrow itinerary: there is no
   room beside the activity, so the time goes above it, with the dot and the line on the left.
   400 px of itinerary covers the whole phone column (286 px on a 360 px phone, 356 px in the 430 px
   desktop column). Times up to "Media mañana" always stay beside the activity (they fit at 360 px). */
@container (max-width: 400px) {
  .itinerary.long { display: block; }
  .itinerary.long li { position: relative; display: block; padding-left: 22px; }
  .itinerary.long time { position: static; display: block; }
  .itinerary.long time::before { left: 0; }
  .itinerary.long time::after { left: 4px; bottom: 2px; }
}
/* Difficulty: level badge, short summary, reasons */
.level { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.level-easy { background: var(--easy-bg); color: var(--easy-text); }
.level-moderate { background: var(--moderate-bg); color: var(--moderate-text); }
.level-challenging { background: var(--challenging-bg); color: var(--challenging-text); }
.lead { margin-bottom: 10px; }
.reasons li, .bring li { position: relative; padding-left: 16px; }
.reasons li::before, .bring li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; }
.reasons li::before { background: var(--gold); }
.bring li::before { background: rgb(150,120,210); }
/* Included / Not included */
.incl li { position: relative; padding-left: 24px; }
.incl li::before { position: absolute; left: 0; top: 0; width: 18px; text-align: center; font-weight: 700; }
.incl.yes li::before { content: "✓"; color: var(--yes); }
.incl.no li::before { content: "✕"; color: var(--no); }
.book { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface); }
.book > div:not(.book-v), .book-v > div { display: flex; flex-direction: column; line-height: 1.15; }
.book small { font-size: 11px; color: var(--muted); }
.book b { font-size: 21px; }
/* No price: only "Book now", across the whole bar (no empty space where the price would be).
   The small version label (VIP rows without a price) is only for pages without JavaScript. */
.no-price .btn-wa { flex: 1; justify-content: center; }
.tabbed .book-label { display: none; }
/* The button text ("Check availability", "Consultar disponibilidad") and the price never break.
   On phones the bar gets a little more compact so price and button fit side by side at 360 px. */
.book .btn-wa, .book b { white-space: nowrap; }
@media (max-width: 420px) {
  .book:not(.book-versions), .book-v { gap: 8px; }
  .book { padding-left: 16px; padding-right: 16px; }
  .book b { font-size: 19px; }
  .book .btn-wa { gap: 6px; padding: 12px; font-size: min(15px, 3.9vw); }
}
.btn-wa { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; background: var(--green); color: #fff; font-weight: 700; padding: 12px 20px; border-radius: 12px; }
/* ===== Traditional | VIP (tours with both versions) =====
   The sheet says the version in data-v; "tabbed" = JavaScript is on (Alpine.js, or the inline script
   of /tours/<slug>). Without it there are no tabs and both versions show, one under the other. */
.v-tabs { display: flex; gap: 4px; padding: 4px; margin: 4px 0 16px; border-radius: 26px; background: var(--bg); border: 1px solid var(--line); }
.v-tab { flex: 1; min-height: 44px; border-radius: 22px; font-size: 14.5px; font-weight: 700; color: var(--muted);
  transition: background .25s, color .25s, box-shadow .25s; }
.v-tab:hover { color: var(--text); }
.v-tab .star { color: var(--gold); transition: color .25s; }
.tabbed[data-v="trad"] .v-tab-trad { background: var(--tab-on); color: #fff; box-shadow: 0 2px 8px rgba(13,22,41,.25); }
.tabbed[data-v="vip"] .v-tab-vip { background: #8a5d17; color: #fff; box-shadow: 0 2px 8px rgba(138,93,23,.35); }
.tabbed[data-v="vip"] .v-tab-vip .star { color: var(--gold-light); }
.tabbed[data-v="trad"] .v-vip, .tabbed[data-v="vip"] .v-trad { display: none; }
.tabbed .body .v-title { display: none; }   /* the tabs say it */
.sheet:not(.tabbed) .v-tabs { display: none; }
.body .v-title { display: flex; align-items: center; gap: 6px; font-size: 19px; margin: 4px 0 10px; color: var(--gold-text); }
.sheet:not(.tabbed) .version + .version { margin-top: 24px; padding-top: 18px; border-top: 2px solid var(--line); }
/* Changing version: the new one fades in (not on the first view; prefers-reduced-motion: no animation) */
.switched .version, .switched .book-v { animation: v-in .35s ease both; }
@keyframes v-in { from { opacity: 0; transform: translateY(6px); } }
/* Booking bar with a row per version (only one shows with JavaScript) */
.book-versions { flex-direction: column; align-items: stretch; gap: 10px; }
.book-v { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.enter { transition: opacity .3s ease, transform .3s ease; }
.enter-start { opacity: 0; transform: scale(.97); }
.enter-end { opacity: 1; transform: scale(1); }

/* ===== Sections below the hero ===== */
/* Trust block: on mobile, a compact card right under the hero, before the tours */
.trust-wrap { background: var(--night); padding: 16px 16px 0; }
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 14px; font-size: 12.5px; line-height: 1.35; }
.trust b { display: block; font-size: 13px; color: var(--gold); }
/* Seal and SUNAT registration are one thing: one row across both columns */
.seal { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.seal picture { flex: none; }
.seal img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.sec { padding: 36px 18px; }
.sec h2 { font-size: 26px; margin-bottom: 16px; }
.reviews { display: grid; gap: 14px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; font-size: 14.5px; line-height: 1.55; }
.review .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; }
.review footer { font-size: 13px; color: var(--muted); margin-top: 10px; }
.review footer small { font-size: 12px; font-style: italic; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; padding: 4px 18px; }
.faq summary { font-weight: 700; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.faq p { padding-bottom: 12px; color: var(--muted); line-height: 1.5; }
.contact { background: var(--navy); color: #dfe4ee; padding: 36px 18px calc(100px + env(safe-area-inset-bottom, 0px)); }
.contact h2 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.contact .btn-wa { margin: 16px 0 10px; }   /* backup number (no advisors) */
.contact .legal a { text-decoration: underline; text-underline-offset: 3px; }
/* Email and legal line, centred under the advisors card */
.contact-meta { margin-top: 14px; text-align: center; }
.mail { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #fff; text-decoration: none; }
.mail:hover { text-decoration: underline; text-underline-offset: 3px; }
.mail .ico { width: 18px; height: 18px; opacity: .75; }
.contact-meta .legal { margin-top: 2px; }
/* The same social icons, in a row under the email and the RUC */
.contact-social { list-style: none; display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.contact-social a { background: rgba(13,22,41,.6); border-color: rgba(255,255,255,.22); }   /* on navy: a darker circle, softer edge */
.legal { font-size: 12px; opacity: .65; margin-top: 14px; line-height: 1.6; }
/* "Cookie settings": the last line of the footer, under the social icons */
.contact-cookies { text-align: center; margin-top: 8px; }
/* ===== Registered and authorized agency: the official logos in a light card =====
   Home: inside the contact footer, between the email and the social icons, with a thin line above and below.
   Tour page (.registry-page): the same block just before the footer. Two rows of three on every screen
   (the column is narrow on mobile and desktop alike). The three logos of a row have the SAME height:
   each one takes a share of the row (--share, from its proportions, set in pageTemplates.mjs), up to 48 px
   high. The card stays light in dark mode: the logos are drawn for a white background. */
.registry { margin-top: 16px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.registry h2 { font-size: 18px; color: #fff; text-align: center; margin-bottom: 12px; }
.registry-card { --gap: 14px; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 20px var(--gap); padding: 18px 14px; border-radius: 16px; background: #fff; }
.registry-card li { flex: var(--share) 0 calc((100% - 2 * var(--gap)) * var(--share)); min-width: 0; }
.registry-card img { width: 100%; height: auto; max-height: 48px; object-fit: contain; }
.registry-page { margin: 0; padding: 28px 18px; border-top: 1px solid var(--line); border-bottom: 0; }
.registry-page h2 { color: var(--text); }
.registry-page .registry-card { border: 1px solid var(--line); }
/* The WhatsApp logo brings its own green tile: it is the whole button. The shadow follows its shape. */
.float-wa { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--consent-h, 0px)); z-index: 5; width: 56px; height: 56px;
  border-radius: 11px; }   /* same corners as the tile, so the focus outline fits it */
.float-wa img { width: 100%; height: 100%; filter: drop-shadow(0 8px 12px rgba(0,0,0,.25)); }
/* The contact section has its own WhatsApp buttons: the floating one steps aside while it is on screen
   (class set by page.v11.js). Without JavaScript it stays, and the section's bottom padding keeps it clear. */
.float-wa { transition: opacity .25s, visibility .25s; }
.contact-in-view .float-wa { opacity: 0; visibility: hidden; }
.empty { padding: 36px 18px; text-align: center; color: var(--muted); }

/* ===== Single tour page (/tours/<slug>) ===== */
.standalone .sheet { position: relative; min-height: 100svh; }
.standalone .body { overflow: visible; }
.standalone .book { position: sticky; bottom: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }

/* ===== Mobile ===== */
@media (max-width: 899px) {
  /* The sheet opens full screen, with one natural scroll */
  /* Visible height (dvh), not the area under the browser toolbar */
  .frame .sheet { position: fixed; inset: 0 0 auto; height: 100vh; height: 100dvh; z-index: 40; display: block; overflow-y: auto; overscroll-behavior: contain;
    padding-top: env(safe-area-inset-top, 0px); padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .frame .body { overflow: visible; padding-bottom: 20px; }
  .frame .close { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); }
  /* "Book now" always on screen while the sheet is open */
  .frame .book { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 20px rgba(0,0,0,.12); }
  .sheet-open .float-wa { display: none; }
  /* Very short screens (a phone turned sideways): no room between the menu and the title.
     The icons stay in the contact section. */
  @media (max-height: 529px) { .hero-social { display: none; } }
}

/* ===== Desktop: phone column in the middle, tours on the sides ===== */
@media (min-width: 900px) {
  .scene { display: grid; grid-template-columns: 1fr 430px 1fr; gap: 36px; }
  .side { display: block; }
  .side-in { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: 24px 0; }
  .side-l .side-in { justify-content: flex-end; }
  .column { width: 280px; display: flex; flex-direction: column; gap: 14px; }
  .three { display: grid; grid-template-rows: repeat(3, min(25vh, 206px)); gap: 14px; overflow: hidden; }
  .three .card { grid-column: 1; }
  .pager { display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .dots { display: flex; gap: 4px; }
  .dot { width: 24px; height: 24px; display: grid; place-items: center; }
  .dot::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.3); transition: width .3s, background .3s; }
  .dot.on::before { width: 24px; background: var(--gold); }
  .more { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 30px; color: #fff; font-size: 14px; font-weight: 600;
    border: 1px solid rgba(200,145,58,.7); background: rgba(200,145,58,.18); transition: background .2s, transform .2s; }
  .more:hover { background: var(--gold); transform: translateY(1px); }
  .more svg { width: 18px; height: 18px; animation: bounce 1.6s ease-in-out infinite; transition: transform .3s; }
  .more.back svg { transform: rotate(180deg); animation: none; }
  @keyframes bounce { 0%, 100% { translate: 0 0; } 50% { translate: 0 3px; } }
  .card-in { transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1); transition-delay: var(--delay, 0ms); }
  .card-in-start { opacity: 0; transform: translateY(40px) scale(.96); }
  .card-in-end { transform: none; }
  .card-out { transition: opacity .25s ease, transform .25s ease; }
  .card-out-start { transform: none; }
  .card-out-end { opacity: 0 !important; transform: translateY(-30px) scale(.96); }
  .phone { box-shadow: 0 0 80px rgba(0,0,0,.5); }
  .frame { height: 764px; }
  .row, .scroll-hint { display: none; }
  /* Trust block: the full-width strip under the video, as before */
  .trust-wrap { background: none; padding: 0; }
  .trust { gap: 14px; padding: 22px 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 13.5px; }
  .trust b { font-size: inherit; }
  .seal { padding-bottom: 14px; }
  .seal img { width: 88px; height: 88px; }
  .hero-main { bottom: 24px; }
  .float-wa { right: calc(50% - 215px + 16px); }
  .standalone { max-width: 430px; margin: 0 auto; }
  /* Open tour: the sheet grows with its content and the whole page scrolls.
     "Book now" sits at the end of the sheet (not fixed) and nothing else of the page shows under it. */
  .sheet-open .frame { height: auto; overflow: visible; }
  .sheet-open .phone > :not(.frame), .sheet-open .float-wa { display: none; }
  .frame .sheet { position: relative; min-height: 100vh; }   /* a short sheet still ends at the bottom of the screen */
  .frame .body { overflow: visible; }
  .frame .close { position: sticky; top: 12px; margin: 12px 12px -56px auto; }   /* stays in its corner while scrolling */
  .g-slide { max-height: 70vh; }
}

/* ===== Travel advisors: contact section and "Who would you like to talk to?" ===== */
.advisors { list-style: none; display: grid; gap: 10px; }
.advisor { display: flex; align-items: center; gap: 12px; }
.advisor > div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.advisor b { font-size: 15.5px; }
.advisor small { font-size: 12.5px; color: var(--muted); }
.advisor .btn-wa { flex: none; min-height: 44px; padding: 10px 14px; }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.avatar-initial { display: grid; place-items: center; background: var(--accent-bg); color: var(--gold-text);
  font-family: Georgia, serif; font-size: 21px; font-weight: 700; }
/* Contact: all advisors in ONE card, one row each, separated by a thin line */
.ca-card { list-style: none; margin: 18px 0 0; border-radius: 16px; overflow: hidden;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.ca { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; transition: background-color .2s; }
.ca + .ca { border-top: 1px solid rgba(255,255,255,.1); }
.ca:hover { background: rgba(255,255,255,.04); }
.ca .avatar { width: 40px; height: 40px; }
.ca .avatar-initial { font-size: 18px; }
.ca-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ca-who b { color: #fff; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-who small { font-size: 12.5px; color: rgba(223,228,238,.7); }
/* Small outlined "Chat" button, filled on hover (dark text: white on green is not readable enough).
   Its ::after stretches over the row, so the whole row opens that advisor's WhatsApp. */
.ca-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--green); border-radius: 999px; color: var(--green); font-size: 14px; font-weight: 700;
  transition: background-color .2s, color .2s; }
.ca-btn img { width: 18px; height: 18px; }
.ca-btn::after { content: ''; position: absolute; inset: 0; }
.ca-btn:hover { background: var(--green); color: var(--night); }
/* The picker: a sheet from the bottom on mobile, a centered box on desktop. Above the tour sheet. */
.picker { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(8,12,24,.6); }
.picker-box { position: relative; width: 100%; max-height: 85vh; overflow-y: auto; background: var(--surface); color: var(--text);
  border-radius: 20px 20px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 40px rgba(0,0,0,.3); }
.picker-box h2 { font-size: 21px; margin: 0 52px 14px 0; }
.picker-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-size: 17px; background: var(--bg); }
.picker .advisors { gap: 0; }
.picker .advisor { padding: 12px 0; border-top: 1px solid var(--line); }
.picker-anim { transition: opacity .25s ease; }
.picker-anim .picker-box { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.picker-hide { opacity: 0; }
.picker-hide .picker-box { transform: translateY(100%); }
@media (min-width: 900px) {
  .picker { align-items: center; }
  .picker-box { width: 400px; border-radius: 20px; padding-bottom: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
  .picker-hide .picker-box { transform: translateY(16px) scale(.98); }
}

/* ===== Gallery page (/galeria/): carousel of whole photos on a dark background ===== */
/* Height of the photos: the window minus the header, title, counter and thumbnails
   (GALLERY_CHROME = 250 px in pageTemplates.mjs, also used for "sizes") */
.gallery-page { --gp-stage: clamp(240px, calc(100svh - 250px), 1100px); color: #e7e9ee; }
.gp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px; background: var(--night); border-bottom: 1px solid rgba(255,255,255,.08); }
.gp-head .logo img { filter: brightness(0) invert(1); }
.gp-top { display: flex; align-items: center; gap: 14px; padding: 6px 16px; }
.gp-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-light); font-weight: 600; font-size: 15px; }
.gp-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.gp-top h1 { font-size: 22px; color: #fff; }
.gp-stage { position: relative; }
/* The current photo takes 85% of the width (the track's inner width: 100% minus 7.5% at each side);
   the previous and next ones peek in those 7.5% */
.gp-track { list-style: none; display: flex; height: var(--gp-stage); overflow-x: auto; overflow-y: hidden; padding: 0 7.5%;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; }
.gp-track::-webkit-scrollbar { display: none; }
.gp-track:focus-visible { outline-offset: -3px; }
.gp-slide { flex: 0 0 100%; height: 100%; padding: 0 5px; scroll-snap-align: center;
  scroll-margin-top: 100vh;   /* arriving at #foto-<id>: the page stays at the top, header in view */
  content-visibility: auto; contain-intrinsic-size: auto 300px; }   /* off-screen slides are not painted */
.gp-slide figure { height: 100%; display: flex; flex-direction: column; }
/* Whole photo, never cropped. The blurred preview has the same shape, so "contain" puts it right behind. */
.gp-slide img { flex: 1; min-height: 0; width: 100%; height: 100%; object-fit: contain;
  background: center / contain no-repeat; transition: filter .35s ease, object-position .35s ease, background-position .35s ease; }
/* The neighbours lean towards the current photo, so their edges show at the sides (not empty dark space) */
.gp-ready .gp-slide.prev img { object-position: right center; background-position: right center; }
.gp-ready .gp-slide.next img { object-position: left center; background-position: left center; }
.gp-slide figcaption { flex: none; padding: 8px 6px 0; text-align: center; font-size: 14px; line-height: 1.4; color: rgba(231,233,238,.85); }
.gp-ready .gp-slide:not(.on) img { filter: brightness(.45); }   /* neighbours a bit darker */
/* Photos more than one step away: not drawn, so not downloaded ("far" is set only with JavaScript) */
.gp-slide.far img { display: none; }
.gp-arrow { display: none; }
.gp-count { margin-top: 8px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; color: rgba(231,233,238,.8); }
.gp-thumbs { list-style: none; display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px 18px; scrollbar-width: thin; }
.gp-thumbs li { flex: none; content-visibility: auto; contain-intrinsic-size: 60px 60px; }   /* same for thumbnails */
.gp-thumbs a { display: block; width: 60px; height: 60px; border-radius: 8px; overflow: hidden; opacity: .55; outline: 2px solid transparent;
  outline-offset: 2px; transition: opacity .2s, outline-color .2s; }
.gp-thumbs a:hover, .gp-thumbs a[aria-current="true"] { opacity: 1; }
.gp-thumbs a[aria-current="true"] { outline-color: var(--gold); }
.gp-thumbs a:focus-visible { opacity: 1; outline: 3px solid var(--gold); }
.gp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  /* Full width of the screen, with ‹ › at the sides */
  .gp-arrow { position: absolute; top: 50%; z-index: 2; translate: 0 -50%; display: grid; place-items: center; width: 52px; height: 52px;
    border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 34px; line-height: 1; padding-bottom: 4px; }
  .gp-arrow:hover:not(:disabled) { background: rgba(0,0,0,.85); }
  .gp-arrow:disabled { opacity: .25; cursor: default; }
  .gp-prev { left: 16px; }
  .gp-next { right: 16px; }
  .gp-top, .gp-head { padding-left: 32px; padding-right: 32px; }
  .gp-thumbs { justify-content: safe center; }
  .gallery-page .float-wa { right: 16px; }   /* no phone column on this page */
}

/* ===== Cookie notice (only with a Google Analytics ID in the panel) =====
   Small card at the bottom of the screen, above the tour sheet (z 40) and under the advisor picker (z 60).
   "Accept" and "Reject" have exactly the same size and look. While it is open, page.v11.js puts the class
   consent-open and --consent-h (its height + 8 px) on <html>: the floating WhatsApp button (above) and the
   booking bar go up by that much, and the page gets the same room at its end, so it never covers them. */
.consent { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  padding: 12px 14px; border-radius: 14px; background: var(--night); color: #dfe4ee; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: 13px; line-height: 1.45; }
.consent-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.consent-btns button { min-height: 44px; padding: 8px 12px; border-radius: 10px; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.4); transition: background .2s; }
.consent-btns button:hover { background: rgba(255,255,255,.2); }
.consent-anim { transition: opacity .25s ease, transform .25s ease; }
.consent-hide { opacity: 0; transform: translateY(12px); }
.consent-open body { padding-bottom: calc(var(--consent-h) + env(safe-area-inset-bottom, 0px)); }
.consent-open .standalone .book { bottom: calc(var(--consent-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: 12px; }
@media (max-width: 899px) {
  .consent-open .frame .book { bottom: calc(var(--consent-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: 12px; }
  .consent-open .frame .sheet { padding-bottom: calc(80px + var(--consent-h) + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 900px) {
  .consent { left: 50%; right: auto; width: 398px; translate: -50% 0; }   /* over the phone column */
}
/* "Cookie settings" in the footer: looks like a link */
.cookie-link { min-height: 44px; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }

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