/* Mundeira Travelers
   Palette and type follow the brand manual (Sunflower, 2026).
   Display: League Gothic stands in for Extenda; body: Urbanist stands in for Codec Pro. */

:root {
  --azul: #00273d;
  --azul-hondo: #001b2b;
  --azul-claro: #0e3a54;
  --terracota: #bc693e;
  --terracota-hondo: #a3532b;
  --terracota-luz: #e09a72;
  --verde: #8baaa2;
  --arena: #c0b29f;
  --arena-luz: #ece5da;
  --papel: #f7f3ed;
  --carbon: #222222;

  --display: "League Gothic", "Oswald", "Arial Narrow", sans-serif;
  --body: "Urbanist", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 78rem;
  --radius-frame: 1.25rem;
  --radius-control: 0.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--azul);
  color: var(--carbon);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--terracota-luz); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--papel); color: var(--azul); padding: .6rem 1rem; border-radius: var(--radius-control);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.25rem; padding: .8rem 1.6rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--terracota-hondo); color: #fff; }
.btn--primary:hover { background: #8e4522; }
.btn--ghost { border-color: rgba(247, 243, 237, .55); color: var(--papel); }
.btn--ghost:hover { border-color: var(--papel); background: rgba(247, 243, 237, .08); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--gutter);
  transition: background-color .3s ease, padding .3s ease;
}
.topbar.is-solid { background: rgba(0, 27, 43, .94); padding-block: .65rem; backdrop-filter: blur(8px); }
.topbar__brand img { width: clamp(9.5rem, 22vw, 13.5rem); height: auto; }
.topbar__nav { display: flex; align-items: center; gap: clamp(.75rem, 2.5vw, 2rem); }
.topbar__nav a { color: var(--papel); text-decoration: none; font-weight: 600; font-size: .95rem; }
.topbar__nav a:hover { color: var(--terracota-luz); }
.topbar__nav .topbar__cta {
  padding: .55rem 1.1rem; border: 1.5px solid rgba(247, 243, 237, .5); border-radius: 999px;
}
.topbar__nav .topbar__cta:hover { border-color: var(--terracota-luz); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: grid; align-items: end;
  padding: 8rem var(--gutter) clamp(3rem, 8vh, 6rem);
  background: radial-gradient(120% 90% at 85% 30%, var(--azul-claro) 0%, var(--azul) 55%, var(--azul-hondo) 100%);
  color: var(--papel);
}
.hero__photo {
  position: absolute; inset: 0; z-index: -2;
  background: url("../img/photos/hero.jpg") center 40% / cover no-repeat;
  opacity: .55; mix-blend-mode: luminosity;
}
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--azul-hondo) 10%, rgba(0, 39, 61, .55) 55%, rgba(0, 39, 61, .2) 100%);
}
.hero__compass {
  position: absolute; z-index: -1;
  width: min(78vh, 62vw); aspect-ratio: 1;
  right: max(-14vw, -9rem); top: 50%; translate: 0 -50%;
  color: var(--verde);
}
.hero__compass img {
  width: 100%; height: 100%; opacity: .32;
  transform: rotate(var(--turn, 0deg));
  will-change: transform;
}
.hero__body { max-width: 52rem; }
.hero__title {
  font-family: var(--display);
  font-size: clamp(4.25rem, 14vw, 10rem);
  line-height: .84;
  text-transform: uppercase;
  letter-spacing: .005em;
}
.hero__title span { display: block; }
.hero__title span:nth-child(2) { padding-left: .9em; }
.hero__trail {
  display: block; width: min(26rem, 80%); height: auto;
  margin: .6rem 0 1.4rem 2.2rem;
  overflow: visible;
}
.hero__route {
  fill: none; stroke: var(--papel); stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 0 9; opacity: .8;
}
.hero__plane path { fill: var(--terracota-luz); }
.hero__lede { max-width: 34rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; color: rgba(247, 243, 237, .88); }
.hero__question { margin-top: .9rem; font-size: clamp(1.1rem, 1.7vw, 1.35rem); font-weight: 600; line-height: 1.4; color: var(--papel); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

/* Page-load moment: the compass settles, then the trail is flown */
@media (prefers-reduced-motion: no-preference) {
  .hero__compass img { animation: settle 2.4s cubic-bezier(.2, .7, .1, 1) both; }
  .hero__trail { clip-path: inset(0 100% 0 0); animation: fly 1.6s .7s cubic-bezier(.45, 0, .2, 1) forwards; }
  @keyframes settle { from { opacity: 0; rotate: -55deg; scale: .92; } to { opacity: .32; rotate: 0deg; scale: 1; } }
  @keyframes fly { to { clip-path: inset(0 -10% 0 0); } }
}

/* ---------- Section title ---------- */
.section-title {
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: .9;
  text-transform: uppercase;
  color: var(--azul);
}
.section-title--light { color: var(--papel); }

/* ---------- Manifesto ---------- */
.manifesto {
  background: var(--papel);
  padding: clamp(4.5rem, 11vw, 9rem) var(--gutter) clamp(4rem, 9vw, 7rem);
}
.manifesto__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
}
.manifesto__title {
  font-family: var(--display);
  font-size: clamp(3.25rem, 8.5vw, 7.5rem);
  line-height: .88;
  text-transform: uppercase;
  color: var(--azul);
  max-width: 11ch;
}
.manifesto__text { display: grid; gap: 1rem; max-width: 30rem; color: #3a3a3a; }
.manifesto__text p:first-child { font-size: 1.2rem; color: var(--azul); font-weight: 600; line-height: 1.5; }

.frames {
  max-width: var(--max); margin: clamp(3.5rem, 8vw, 6rem) auto 0;
  display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(.75rem, 2vw, 1.5rem);
  align-items: center;
}
.frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-frame);
  background-color: var(--arena);
  background-size: cover; background-position: center;
}
.frame--tall { aspect-ratio: 3 / 5; }
.frame[data-photo="coliseo"] { background-image: url("../img/photos/coliseo.jpg?v=1"), linear-gradient(180deg, #7fb0cf 0%, #c98a55 60%, #5a3a26 100%); }
.frame[data-photo="costa"] { background-image: url("../img/photos/costa.jpg"), linear-gradient(180deg, #a9c4c2 0%, #8baaa2 45%, #0e3a54 100%); }
.frame[data-photo="parque-nacional"] { background-image: url("../img/photos/parque-nacional.jpg?v=1"), linear-gradient(180deg, #6f7f94 0%, #b9b2a4 45%, #3c5a2a 100%); }

/* ---------- Steps ---------- */
.steps {
  background: var(--arena-luz);
  padding: clamp(4.5rem, 10vw, 8rem) var(--gutter);
}
.steps__head { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; }
.steps__intro { max-width: 22rem; color: #4a4a4a; }
.steps__list {
  list-style: none; padding: 0; margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  max-width: var(--max);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem;
  position: relative;
}
/* the dotted route that joins the four stops */
.steps__list::before {
  content: ""; position: absolute; left: 1.75rem; right: calc((100% - 6rem) / 4 - 1.75rem); top: 1.75rem;
  border-top: 2.5px dotted var(--terracota);
}
.step { position: relative; }
.step__num {
  position: relative; display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--azul); color: var(--papel);
  font-family: var(--display); font-size: 1.75rem; line-height: 1;
  box-shadow: 0 0 0 6px var(--arena-luz);
}
.step h3 { margin-top: 1.5rem; font-family: var(--body); font-weight: 700; font-size: 1.2rem; color: var(--azul); line-height: 1.3; }
.step p { margin-top: .5rem; color: #4a4a4a; font-size: 1rem; max-width: 26ch; }

/* ---------- Plan / form ---------- */
.plan {
  position: relative; overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8rem) var(--gutter);
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  color: var(--papel);
}
.plan__aside { position: sticky; top: 7rem; align-self: start; display: grid; gap: 1.5rem; }
.plan__aside > p { max-width: 30rem; color: rgba(247, 243, 237, .82); }
.plan__alt { margin-top: 1rem; padding-top: 1.5rem; border-top: 1px solid rgba(247, 243, 237, .18); display: grid; gap: .35rem; }
.plan__alt p { color: rgba(247, 243, 237, .7); }
.link-wa { font-weight: 700; color: var(--terracota-luz); text-underline-offset: .25em; }
.plan__symbol {
  width: 11rem; margin-top: 2rem; opacity: .14;
}

.form {
  background: var(--papel); color: var(--carbon);
  border-radius: var(--radius-frame);
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid; gap: 2.25rem;
}
.form__group { border: 0; margin: 0; padding: 0; display: grid; gap: 1.25rem; min-width: 0; }
.form__group legend {
  padding: 0; margin-bottom: 1.25rem;
  font-family: var(--display); font-size: 2rem; line-height: 1; text-transform: uppercase; color: var(--azul);
}
.field { display: grid; gap: .45rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field label, .field__label { font-weight: 700; font-size: .95rem; color: var(--azul); }
.opt { font-weight: 500; color: #6d6a65; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem;
  padding: .7rem .9rem;
  font: 500 1rem/1.4 var(--body); color: var(--carbon);
  background: #fff; border: 1.5px solid #cfc6b9; border-radius: var(--radius-control);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2300273d' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: .75rem;
  padding-right: 2.4rem;
}
.field input::placeholder, .field textarea::placeholder { color: #8f887e; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(139, 170, 162, .55);
}
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: .9rem; font-weight: 600; }
.field__hint { margin: -.15rem 0 .2rem; font-size: .9rem; line-height: 1.45; color: #5b5750; }
.field .field__sublabel { font-weight: 600; font-size: .88rem; color: #5b5750; }
.field .field { gap: .35rem; }
.field textarea[aria-invalid="true"] { border-color: #b3261e; }
.chips[aria-invalid="true"] .chip span { border-color: #b3261e; }
[data-otro] { margin-top: .4rem; }

.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 2.6rem; padding: .5rem 1rem;
  border: 1.5px solid #cfc6b9; border-radius: 999px; background: #fff;
  font-weight: 600; font-size: .95rem; color: var(--azul);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover span { border-color: var(--azul); }
.chip input:checked + span { background: var(--azul); border-color: var(--azul); color: var(--papel); }
.chip input:focus-visible + span { outline: 3px solid var(--terracota); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__footer { display: grid; gap: 1rem; padding-top: .5rem; border-top: 1px solid #ddd4c7; padding-top: 1.75rem; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: .95rem; color: #3f3c38; cursor: pointer; }
.consent input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--azul); }
.form__status { font-weight: 600; color: #b3261e; }
.form__status:empty { display: none; }

.sent {
  grid-column: 2;
  background: var(--papel); color: var(--carbon); border-radius: var(--radius-frame);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid; justify-items: start; gap: 1rem; align-content: center;
}
.sent img { width: 5rem; }
.sent h3 { font-family: var(--display); font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: .95; text-transform: uppercase; color: var(--azul); }
.sent p { max-width: 32rem; }
.sent:focus { outline: none; }

/* ---------- Footer ---------- */
.footer {
  background: var(--azul-hondo); color: var(--papel);
  padding: clamp(3.5rem, 8vw, 5rem) var(--gutter) 2rem;
  display: grid; justify-items: center; text-align: center; gap: 1.25rem;
}
.footer__logo { width: min(26rem, 85%); height: auto; }
.footer__tag { font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; letter-spacing: .02em; color: var(--arena); }
.footer__links { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer__links a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 600; }
.footer__links a:hover { color: var(--terracota-luz); }
.footer__links svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.7; }
.footer__links svg .dot { fill: currentColor; stroke: none; }
.footer__legal { margin-top: 1.5rem; font-size: .85rem; color: rgba(247, 243, 237, .55); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 30;
  width: 3.75rem; height: 3.75rem; border-radius: 50%;
  display: grid; place-items: center;
  background: #1f8f4e; color: #fff;
  box-shadow: 0 10px 24px -8px rgba(0, 27, 43, .6);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 1.9rem; height: 1.9rem; fill: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .manifesto__inner { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .steps__list::before { display: none; }
  .plan { grid-template-columns: 1fr; }
  .plan__symbol { display: none; }
  .plan__aside { position: static; }
  .sent { grid-column: 1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .topbar__nav a:not(.topbar__cta) { display: none; }
  .hero { padding-top: 7rem; padding-bottom: 6rem; }
  .hero__compass { width: 120vw; right: -55vw; top: 34%; }
  .hero__title span:nth-child(2) { padding-left: .5em; }
  .hero__trail { margin-left: 1rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .frames { grid-template-columns: 1fr 1fr; }
  .frames .frame:nth-child(2) { display: none; }
  .frame, .frame--tall { aspect-ratio: 3 / 4; }
  .steps__list { grid-template-columns: 1fr; }
  .steps__list::before { display: block; left: 1.75rem; right: auto; top: 1.75rem; bottom: 2rem; border-top: 0; border-left: 2.5px dotted var(--terracota); }
  .step { padding-left: 5rem; }
  .step__num { position: absolute; left: 0; top: 0; }
  .step h3 { margin-top: .75rem; }
  .field-row { grid-template-columns: 1fr; }
  .form { padding: 1.5rem 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
