/*
  ValeViajar public landing v1.
  Plain CSS. No build step, no preprocessor, no third-party fonts or requests.
  System font stack only.
*/

:root {
  color-scheme: light;

  --ink: #0f1b2d;
  --ink-soft: #16263d;
  --paper: #faf7f2;
  --sand: #f0eadf;
  --line: #ddd5c6;
  --text: #1b2637;
  --muted: #495468;
  --on-ink: #f4f1ea;
  --on-ink-muted: #b8c2d2;
  --marigold: #f2a93b;
  --talavera: #234e9e;

  --radius: 18px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: 70rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--marigold);
  color: var(--ink);
  font-weight: 600;
  border-radius: 8px;
  transform: translateY(-200%);
}

.skip:focus {
  transform: translateY(0);
}

/* ---------- Header / wordmark ---------- */

.site-header {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: 1.5rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand__mark {
  /* The "V" sits ~21% inside its tile; pull the tile left so the glyph aligns with the content edge. */
  margin-left: -0.59rem;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
}

.brand__vale {
  font-weight: 800;
}

.brand__viajar {
  font-weight: 400;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.9rem, 7.5vw, 5.8rem);
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.95rem 0.35rem 0.8rem;
  border: 1px solid rgba(242, 169, 59, 0.6);
  border-radius: 999px;
  color: var(--marigold);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--marigold);
  transform: rotate(45deg);
}

.hero h1 {
  margin-top: 1.5rem;
  max-width: 14ch;
  font-size: clamp(2.6rem, 8vw, 4.9rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero__lede {
  margin-top: 1.5rem;
  max-width: 34rem;
  color: var(--on-ink-muted);
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  line-height: 1.6;
}

.hero__tagline {
  margin-top: 1.5rem;
  max-width: 34rem;
  padding-left: 1rem;
  border-left: 3px solid var(--marigold);
  font-weight: 600;
}

.hero__note {
  margin-top: 2rem;
  max-width: 34rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(244, 241, 234, 0.16);
  color: var(--on-ink-muted);
  font-size: 0.9375rem;
}

.hero__art {
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
}

/* ---------- Generic sections ---------- */

.section {
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.section h2 {
  max-width: 24ch;
  font-size: clamp(1.75rem, 4.6vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section p {
  max-width: 40rem;
}

.lead {
  font-size: clamp(1.0625rem, 2.2vw, 1.1875rem);
  color: var(--muted);
}

/* Why */

.why__grid {
  display: grid;
  gap: 1.75rem;
}

/* Pillars */

.pillars-section {
  background: var(--sand);
}

.pillars {
  display: grid;
  gap: 1rem;
  counter-reset: pillar;
}

.pillar {
  counter-increment: pillar;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pillar::before {
  content: "0" counter(pillar);
  display: block;
  margin-bottom: 1.25rem;
  color: var(--talavera);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.pillar h3 {
  font-size: 1.3125rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.pillar p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1rem;
}

.pillars-section h2 {
  margin-bottom: 2.5rem;
}

/* Opportunity concept */

.concept {
  background: var(--ink);
  color: var(--on-ink);
}

.concept .lead {
  margin-top: 1.25rem;
  color: var(--on-ink-muted);
}

.formula {
  margin-top: 3.5rem;
}

.formula__terms {
  display: grid;
  gap: 2.25rem;
}

.formula__terms li {
  position: relative;
  padding: 1.1rem 1.25rem;
  background: var(--ink-soft);
  border: 1px solid rgba(244, 241, 234, 0.16);
  border-radius: 14px;
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: center;
}

.formula__terms li:not(:last-child)::after {
  content: "+";
  content: "+" / "";
  position: absolute;
  left: 50%;
  bottom: -1.9rem;
  transform: translateX(-50%);
  color: var(--marigold);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.concept .formula__result {
  position: relative;
  max-width: none;
  margin-top: 3.25rem;
  padding: 1.5rem 1.25rem;
  background: var(--marigold);
  color: var(--ink);
  border-radius: var(--radius);
  font-size: clamp(1.25rem, 3.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.formula__result::before {
  content: "=";
  content: "=" / "";
  position: absolute;
  left: 50%;
  top: -2.3rem;
  transform: translateX(-50%);
  color: var(--marigold);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
}

/* Events */

.events__grid {
  display: grid;
  gap: 2.5rem;
}

.events__art {
  width: 100%;
  max-width: 36rem;
}

.events__text p {
  margin-top: 1.25rem;
}

/* Closing */

.closing {
  background: var(--sand);
  text-align: center;
}

.closing h2,
.closing p {
  margin-inline: auto;
}

.closing p {
  margin-top: 1.25rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--on-ink-muted);
  font-size: 0.9375rem;
}

.greca {
  display: block;
  width: 100%;
  height: 14px;
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 2rem;
}

.brand--footer {
  gap: 0.65rem;
  font-size: 1.2rem;
  color: var(--on-ink);
}

.brand--footer .brand__mark {
  margin-left: -0.45rem;
  width: 2.1rem;
  height: 2.1rem;
}

.brand__place {
  color: var(--on-ink-muted);
  font-size: 0.8em;
  font-weight: 400;
  letter-spacing: 0;
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--on-ink);
}

.notfound main {
  flex: 1;
  display: grid;
  align-content: center;
  padding-block: 4rem;
}

.notfound h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.notfound p {
  margin-top: 1rem;
  color: var(--on-ink-muted);
}

.notfound .back {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.7rem 1.25rem;
  background: var(--marigold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
}

/* ---------- Larger screens ---------- */

@media (min-width: 56rem) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }

  .why__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }

  .events__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }

  .formula__terms {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.75rem;
  }

  .formula__terms li {
    display: grid;
    place-items: center;
    min-height: 5.5rem;
  }

  .formula__terms li:not(:last-child)::after {
    left: auto;
    right: -1.9rem;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* ---------- Motion (opt-in only) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero__art .arc {
    stroke-dasharray: 1;
    animation: draw 1.9s cubic-bezier(0.22, 0.7, 0.2, 1) both;
  }

  .hero__art .arc:nth-of-type(2) {
    animation-delay: 0.25s;
  }

  .hero__art .arc:nth-of-type(3) {
    animation-delay: 0.5s;
  }

  .hero__art .node {
    animation: fade 0.8s ease-out 1.2s both;
  }

  @keyframes draw {
    from {
      stroke-dashoffset: 1;
    }
    to {
      stroke-dashoffset: 0;
    }
  }

  @keyframes fade {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}
