/*
  sugey tours landing page styles. one file, no build step, no framework -
  it drops onto the same apache host the old site runs on.

  tokens -> layout -> components -> motion -> responsive -> dark mode.

  the one number worth remembering: the brand orange #EA580C only hits 3.56:1
  on white, so it is NEVER a text or button background. buttons use #C2410C
  (5.17:1 with white) and the lighter orange stays for decoration only.
*/

:root {
  /* color - sky blue for the brand, orange reserved for the one action we want */
  --c-primary: #0EA5E9;
  --c-primary-deep: #0369A1;
  --c-accent: #EA580C;          /* decoration only, see note above */
  --c-accent-text: #C2410C;     /* safe on white: 5.17:1 */
  --c-bg: #F0F9FF;
  --c-fg: #0C4A6E;
  --c-card: #FFFFFF;
  --c-muted: #E8F2F8;
  --c-muted-fg: #475569;        /* 7.1:1 on --c-bg */
  --c-border: #BAE6FD;
  --c-ink: #082F49;             /* hero and footer dark ground */

  /* space - marketing page, so we run loose rather than dashboard-dense */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(8, 47, 73, .06), 0 8px 24px rgba(8, 47, 73, .08);
  --shadow-lg: 0 2px 4px rgba(8, 47, 73, .08), 0 18px 40px rgba(8, 47, 73, .14);

  --font-display: 'Calistoga', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-label: 'JetBrains Mono', ui-monospace, monospace;

  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0; }
p { margin: 0 0 var(--s-2); }
img { max-width: 100%; display: block; }
a { color: var(--c-primary-deep); }

/* one focus ring everywhere - we never remove it, we just make it ours */
:focus-visible {
  outline: 3px solid var(--c-accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--c-ink); color: #fff; padding: var(--s-2) var(--s-3);
}
.skip:focus { left: var(--s-2); top: var(--s-2); }

.label {
  font-family: var(--font-label); font-size: .75rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent-text);
}

/* ---------- buttons - every tap target clears 44px ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 var(--s-3);
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--c-accent-text); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: #9A3412; }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-outline { background: var(--c-card); color: var(--c-primary-deep); border-color: var(--c-border); }
.btn-outline:hover { border-color: var(--c-primary); }

/* ---------- country flags on the WhatsApp links ---------- */
/* drawn as inline SVG, not emoji: 🇵🇪 and 🇪🇸 render as bare letters "PE"/"ES"
   on most of Windows, which is exactly the audience sitting at a desk booking
   a trip. the shadow is a hairline border so a white stripe still reads. */
.flag {
  width: 20px; aspect-ratio: 3 / 2; flex: none; display: block;
  border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
}
/*
  ONE "Cotizar" button that opens a chooser: Perú or España. two side-by-side
  buttons ate the header width and read like two competing calls to action.
*/
.wa-menu { position: relative; display: inline-flex; }
.wa-menu .wa-chev { opacity: .85; transition: transform .18s ease; }
.wa-menu button[aria-expanded="true"] .wa-chev { transform: rotate(180deg); }

/* left-aligned by default (the form's button sits at the left of its column);
   the header one flips to right-aligned below, because its button is up against
   the right edge and a left-aligned panel would hang off the viewport */
.wa-menu-list {
  position: absolute; top: calc(100% + .5rem); left: 0; z-index: 70;
  min-width: 250px; padding: .35rem;
  display: grid; gap: .15rem;
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
/* without this, display:grid above beats the hidden attribute and the menu is
   permanently open */
.wa-menu-list[hidden] { display: none; }
.site-header .wa-menu-list { left: auto; right: 0; }
.wa-menu--center .wa-menu-list { right: auto; left: 50%; transform: translateX(-50%); }
/* the form's .wa-menu is a grid item and would stretch the full column, which
   drags the panel's edges away from the button it belongs to */
form .wa-menu { justify-self: start; }

/* scoped to .wa-menu-list on purpose: the catalogues CTA sits inside
   .contact-card, whose `.contact-card p { color:#fff }` outranks a bare
   .wa-menu-title and painted this white-on-white */
.wa-menu-list .wa-menu-title {
  margin: .25rem .5rem .3rem; font-family: var(--font-label);
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-muted-fg);
}
.wa-menu-list a,
.wa-menu-list button {
  display: flex; align-items: center; gap: .65rem; width: 100%;
  min-height: 52px; padding: .45rem .6rem;
  background: none; border: 0; border-radius: 10px;
  font: inherit; color: var(--c-fg); text-align: left; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.wa-menu-list a:hover, .wa-menu-list button:hover { background: var(--c-muted); }
.wa-menu-list span { font-weight: 600; }
.wa-menu-list small { display: block; font-size: .8rem; font-weight: 400; color: var(--c-muted-fg); }
.wa-menu-list .flag { width: 26px; }

/* on a phone the menu spans the width of its parent instead of hanging off it */
@media (max-width: 520px) {
  .wa-menu { display: flex; width: 100%; }
  .wa-menu > .btn { width: 100%; }
  .wa-menu-list { left: 0; right: 0; min-width: 0; }
  .wa-menu--center .wa-menu-list { left: 0; transform: none; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(240, 249, 255, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.header-row { display: flex; align-items: center; gap: var(--s-3); min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--c-fg); margin-right: auto; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; line-height: 1; }
.brand-sub { display: block; font-family: var(--font-label); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted-fg); }

.nav { display: flex; align-items: center; gap: var(--s-1); }
/*
  :not(.btn) is load-bearing. `.nav a` beats `.btn-primary` on specificity, so
  without it the Cotizar button in the header got this dark blue text on its
  rust background - 1.8:1, unreadable - and lost the pill radius and padding
  too. it only looked right on hover because the hover rule repainted it.
*/
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem;
  color: var(--c-fg); text-decoration: none; font-size: .95rem; font-weight: 500;
  border-radius: 8px; transition: background-color .18s ease, color .18s ease;
}
.nav a:not(.btn):hover { background: var(--c-muted); color: var(--c-primary-deep); }

.nav-toggle { display: none; }

/* ---------- hero - aurora mesh, no photo needed ---------- */
.hero { position: relative; overflow: hidden; background: var(--c-ink); color: #fff; }
.hero::before {
  content: ''; position: absolute; inset: -30%;
  background:
    radial-gradient(42% 46% at 18% 28%, rgba(14, 165, 233, .62), transparent 62%),
    radial-gradient(38% 42% at 78% 22%, rgba(56, 189, 248, .45), transparent 64%),
    radial-gradient(46% 50% at 62% 78%, rgba(234, 88, 12, .40), transparent 60%),
    radial-gradient(40% 40% at 28% 82%, rgba(13, 148, 136, .40), transparent 62%);
  filter: blur(18px);
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.12); }
}
.hero-inner { position: relative; z-index: 1; padding: var(--s-7) 0 var(--s-5); }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); max-width: 16ch; margin-bottom: var(--s-3); }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 54ch; color: rgba(255, 255, 255, .92); }
.hero .label { color: #FDBA74; }          /* lighter orange: 7.4:1 on the dark ground */
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }

.hero-facts {
  /* margin-block only - a plain `margin: 0` here would kill .wrap's auto inline
     margins and shove the row to the left edge, out of line with the headline */
  position: relative; z-index: 1; margin-block: 0;
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
  /* the skyline is 200/1800 of the viewport width = 11.1vw tall, so we reserve
     that much plus a gap or the fact row sits on top of the Colosseum */
  padding: 0 0 calc(11.2vw + 32px); color: rgba(255, 255, 255, .88); font-size: .95rem;
}
.hero-facts li { display: flex; align-items: center; gap: .5rem; list-style: none; }
.hero-facts svg { flex: none; color: #7DD3FC; }

/*
  the landmark panorama that closes the hero. height:auto lets the viewBox's own
  1800x200 ratio set the height, so the band shrinks with the screen and nothing
  gets cropped or stretched - a fixed height plus `slice` cut Machu Picchu off
  the left edge on phones.
*/
.hero-skyline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: auto; display: block; color: var(--c-bg); }

/* ---------- sections ---------- */
.section { padding: var(--s-7) 0; }
/* the header is sticky and 72px tall, so an anchor jump would land with the
   heading tucked underneath it - this pushes the landing point clear */
section[id] { scroll-margin-top: 88px; }
.section-head { max-width: 62ch; margin-bottom: var(--s-5); }
/* h1 too: the catalogues page's main heading sits in a .section-head, and a
   page with no h1 at all is a real accessibility hole */
.section-head h1,
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin: var(--s-1) 0 var(--s-2); }
/* :not(.label) matters - `.section-head p` outranks `.label` on specificity and
   would repaint the orange eyebrow muted grey at body size */
.section-head p:not(.label) { color: var(--c-muted-fg); font-size: 1.05rem; }
.section-alt { background: var(--c-card); border-block: 1px solid var(--c-border); }

/* ---------- proof strip ---------- */
/*
  minmax(0, 1fr), not 1fr. a plain 1fr track refuses to shrink below its
  content's min-content width, and "departamentos" / "Europamundo" set at
  1.35rem are wider than a phone-sized track - so the grid grew past the
  viewport and shoved the second column off the right edge. that is the
  "second block is cut off" on a phone.
*/
.proof { display: grid; gap: var(--s-3); grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.proof li { padding: var(--s-3); background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); }
.proof strong { display: block; font-family: var(--font-display); font-size: 1.35rem; margin-bottom: .25rem; overflow-wrap: break-word; }
.proof span { color: var(--c-muted-fg); font-size: .92rem; }

/* ---------- package cards ---------- */
.cards { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/*
  photo slot. the old site only ever had thumbnails, so until real photos land
  these are gradient plates with the destination initial. drop a 4:3 jpg in as
  an <img> inside .card-media and it covers the same box - no layout shift,
  because the aspect-ratio is already reserved.
*/
.card-media {
  /* 3:2, matching the 900x600 photos. it was 4:3, which meant object-fit:cover
     quietly shaved ~11% off the sides of crops that were framed deliberately.
     overflow:hidden so the zoom below cannot spill over the card text. */
  position: relative; aspect-ratio: 3 / 2; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--plate-a, #0EA5E9), var(--plate-b, #0369A1));
  color: rgba(255, 255, 255, .92);
}
/*
  the photos settle rather than just appearing: each starts a touch zoomed in
  and eases back to its real size as the card scrolls into view. it runs ONCE
  per card, not forever - eight images panning continuously is restless, and
  costs battery on a phone for no reason.

  the amount lives in --img-scale so the reveal and the hover can both set it
  without fighting over specificity.
*/
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--img-scale, 1));
  transition: transform .9s cubic-bezier(.22, .61, .36, 1);
}
.card.reveal { --img-scale: 1.08; }        /* before it arrives */
.card.reveal.is-in { --img-scale: 1; }     /* settled */

/* a smaller lift on hover, for mice only - a phone never gets this, which is
   why the settle above carries the motion on mobile */
@media (hover: hover) and (pointer: fine) {
  .card.reveal.is-in:hover { --img-scale: 1.05; }
}
.card-media .initial { font-family: var(--font-display); font-size: 3.4rem; opacity: .55; }
/* unused for now: the stamps came off the package photos, because most of them
   just repeated the line of text directly underneath. the rule stays so putting
   one back is a single <span class="card-tag"> inside a .card-media. */
.card-tag {
  position: absolute; left: var(--s-2); top: var(--s-2);
  background: rgba(8, 47, 73, .78); color: #fff; backdrop-filter: blur(6px);
  font-family: var(--font-label); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .6rem; border-radius: 999px;
}
.card-body { padding: var(--s-3); display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.card-body p { color: var(--c-muted-fg); font-size: .95rem; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-2); }
.card-foot .price-note { font-size: .85rem; color: var(--c-muted-fg); }
.card-link {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 44px;
  font-weight: 600; font-size: .95rem; color: var(--c-accent-text); text-decoration: none;
}
.card-link:hover { text-decoration: underline; }
.card-link svg { transition: transform .18s ease; }
.card-link:hover svg { transform: translateX(3px); }

/* ---------- services ---------- */
/*
  there are exactly 6 services, so we pick column counts that divide 6 - 2, 3, 6.
  auto-fit with a minmax() was fitting 5 across at mid widths and orphaning
  "Autos" on a row by itself. the 6-across only turns on at 1100px, below that
  the tracks get too narrow to read.
*/
.services { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
/* where the last card would sit alone on its row, it takes the whole row
   instead - that reads as deliberate, an orphan does not. nth-child(Nn+1) is
   "first item of a row", and :last-child means nothing follows it. */
.services li:last-child:nth-child(2n + 1) { grid-column: span 2; }
@media (min-width: 640px) {
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .services li:last-child:nth-child(2n + 1) { grid-column: auto; }
  .services li:last-child:nth-child(3n + 1) { grid-column: span 3; }
}
@media (min-width: 1100px) {
  /* 4 across, not 6: with seven services that gives 4+3, two tidy rows, and
     roomier cards than the 176px the six-column version left */
  .services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .services li:last-child:nth-child(3n + 1) { grid-column: auto; }
  .services li:last-child:nth-child(4n + 1) { grid-column: span 4; }
}
.service {
  padding: var(--s-3); background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.service-icon {
  width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: var(--s-2);
  background: var(--c-muted); color: var(--c-primary-deep); border-radius: 12px;
}
.service h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.service p { font-size: .9rem; color: var(--c-muted-fg); margin: 0; }

/* ---------- destinations ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-2);
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: 999px;
  color: var(--c-fg); text-decoration: none; font-size: .92rem; font-weight: 500;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.chip:hover { background: var(--c-primary-deep); border-color: var(--c-primary-deep); color: #fff; }

/* ---------- catalogue rack (catalogos.html) ---------- */
.rack { display: grid; gap: var(--s-4) var(--s-3); grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); list-style: none; margin: 0; padding: 0; }
.rack-item { display: flex; flex-direction: column; }
/* 3:2 landscape, matching the 900x600 destination photos pulled out of the PDFs.
   it was 3:4 back when the cover was the catalogue's own first page - which for
   the regional ones is an index table, so the rack looked like a spreadsheet.
   the ratio is declared so the grid doesn't shuffle while 11 photos load. */
.rack-cover {
  display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--c-border);
  background: var(--c-muted); box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rack-cover img { width: 100%; height: 100%; object-fit: cover; }
.rack-item:hover .rack-cover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.rack-pages {
  position: absolute; right: var(--s-1); bottom: var(--s-1);
  background: rgba(8, 47, 73, .82); color: #fff; backdrop-filter: blur(6px);
  font-family: var(--font-label); font-size: .66rem; letter-spacing: .06em;
  padding: .3rem .5rem; border-radius: 999px;
}
.rack-item h3 { font-size: 1.05rem; margin: var(--s-2) 0 .25rem; }
.rack-item h3 a { color: var(--c-fg); text-decoration: none; }
.rack-item h3 a:hover { color: var(--c-accent-text); text-decoration: underline; }
.rack-item p { font-size: .88rem; color: var(--c-muted-fg); margin: 0; }

/* ---------- about ---------- */
.about { display: grid; gap: var(--s-5); grid-template-columns: 1.1fr .9fr; align-items: start; }
.about-points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.about-points li { display: flex; gap: .75rem; }
.about-points svg { flex: none; color: var(--c-accent-text); margin-top: .2rem; }
.about-points strong { display: block; }
.about-points span { color: var(--c-muted-fg); font-size: .95rem; }

/* ---------- contact ---------- */
.contact { display: grid; gap: var(--s-5); grid-template-columns: 1fr 1fr; align-items: start; }
.contact-card { background: var(--c-ink); color: #fff; border-radius: var(--radius-lg); padding: var(--s-4); }
.contact-card h3 { font-size: 1.6rem; margin-bottom: var(--s-2); }
.contact-card p { color: rgba(255, 255, 255, .85); }
.contact-list { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.contact-list a {
  display: flex; align-items: center; gap: .75rem; min-height: 44px;
  color: #fff; text-decoration: none; font-weight: 500;
}
.contact-list a:hover { text-decoration: underline; }
.contact-list svg { flex: none; color: #7DD3FC; }

form { display: grid; gap: var(--s-2); }
.field { display: grid; gap: .35rem; }
.field label { font-size: .9rem; font-weight: 600; }
.field input, .field select, .field textarea {
  min-height: 48px; padding: .7rem var(--s-2);
  font: inherit; color: var(--c-fg); background: var(--c-card);
  border: 1px solid var(--c-border); border-radius: var(--radius);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-primary); }
.hint { font-size: .82rem; color: var(--c-muted-fg); }   /* also used on the note under the submit button, outside any .field */

/* ---------- footer ---------- */
.site-footer { background: var(--c-ink); color: rgba(255, 255, 255, .78); padding: var(--s-6) 0 var(--s-4); }
.footer-grid { display: grid; gap: var(--s-4); grid-template-columns: 2fr 1fr 1fr; }
.site-footer h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 var(--s-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: 1px solid rgba(255, 255, 255, .15);
  display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: space-between;
  font-size: .85rem;
}

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about, .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/*
  the hamburger has to arrive while the nav still FITS. measured, not guessed:
  six links plus the two WhatsApp buttons need 966px in a row. anything below
  that and the nav hangs off the right edge and scrolls the whole page
  sideways. this was 900px until the Spain button was added - if you add
  another nav item, re-measure and raise it again.
*/
@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; background: var(--c-card);
    border: 1px solid var(--c-border); border-radius: 12px; cursor: pointer; color: var(--c-fg);
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-card); border-bottom: 1px solid var(--c-border);
    padding: var(--s-2); box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { min-height: 52px; }
  .nav .btn { margin-top: var(--s-1); }
  .site-header { position: relative; }
  /* in the stacked dropdown the Cotizar button spans the menu width */
  .nav .wa-menu { display: flex; width: 100%; }
  .nav .wa-menu > .btn { width: 100%; }
  .nav .wa-menu-list { left: 0; right: 0; min-width: 0; }
}

/* phone layout proper - separate from the nav collapse above */
@media (max-width: 720px) {
  :root { --s-7: 3.5rem; --s-6: 2.5rem; }
  /* one per row. two side by side leaves each headline about 150px, which is
     not enough for "24 departamentos" - it overflowed and clipped the second. */
  .proof { grid-template-columns: 1fr; }
  .hero-inner { padding-top: var(--s-6); }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- dark mode ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #041C2C;
    --c-fg: #E6F4FB;
    --c-card: #082F49;
    --c-muted: #0B3B57;
    --c-muted-fg: #A8C9DC;      /* 7.9:1 on --c-bg */
    --c-border: #12506F;
    --c-accent-text: #FB923C;   /* light orange reads on dark; the deep one does not */
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .45), 0 18px 40px rgba(0, 0, 0, .45);
  }
  a { color: #7DD3FC; }
  .site-header { background: rgba(4, 28, 44, .86); }
  .btn-primary { background: #EA580C; color: #0B1B25; }   /* on dark we flip to black-on-orange: 5.9:1 */
  .btn-primary:hover { background: #FB923C; }
  .btn-outline { background: var(--c-card); color: #7DD3FC; }
  .service { background: var(--c-card); }
  .card-tag { background: rgba(4, 28, 44, .85); }
}

/* ---------- motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero::before { animation: none; }
  .btn:hover, .card:hover { transform: none; }
  /* no settle, no hover zoom - the photos just sit at their real size */
  .card.reveal, .card.reveal.is-in, .card.reveal.is-in:hover { --img-scale: 1; }
}
