/* ==========================================================================
   Serra — brand tokens (Serra_Marca.pdf)
   Terracota #B16F4F · Petróleo #2C5D68 · Arena #F0E8D9
   Titles: Squada One 400 · Labels/body: Blinker 400
   ========================================================================== */
:root {
  --terra: #B16F4F;
  --teal: #2C5D68;
  --cream: #F0E8D9;

  --terra-600: #9A5D40;
  --terra-300: #C8937A;
  --sand: #D9B8A3;
  --teal-700: #234B54;
  --teal-400: #4A7A84;
  --teal-300: #6E959C;
  --paper: #F7F2E8;
  --ink: #1E3F47;
  --muted: #5F7479;
  --line: rgba(44, 93, 104, .14);

  --font-title: "Squada One", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Blinker", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --shadow: 0 30px 60px -28px rgba(30, 63, 71, .45), 0 10px 24px -14px rgba(30, 63, 71, .25);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.center { text-align: center; margin-inline: auto; }
.terra { color: var(--terra); }
.sand { color: var(--sand); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--teal); color: var(--cream); padding: 10px 16px; border-radius: 10px; }

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terra);
}
.eyebrow span { opacity: .6; margin-inline: .3em; }
.eyebrow--light { color: var(--sand); }

.h2, .h3, .hero__title, .process__title {
  font-family: var(--font-title);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.02;
  margin-block: 0;
}
.h2 { font-size: clamp(40px, 6vw, 72px); color: var(--teal); max-width: 20ch; }
.h2--light { color: var(--cream); }
.h3 { font-size: clamp(32px, 4vw, 48px); color: var(--cream); }
.lead { max-width: 58ch; margin-top: 18px; color: var(--muted); font-size: 20px; }

/* Highlighted word, as in the brand video */
.hl {
  color: var(--cream);
  padding: 0 .14em .02em;
  border-radius: .12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl--terra { background: var(--terra); }
.hl--teal { background: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600; font-size: 17px; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--terra { background: var(--terra); color: var(--cream); box-shadow: 0 12px 24px -12px rgba(177, 111, 79, .8); }
.btn--terra:hover { background: var(--terra-600); }
.btn--ghost { border-color: rgba(240, 232, 217, .45); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); background: rgba(240, 232, 217, .08); }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, transform .35s var(--ease);
}
.header { background: rgba(240, 232, 217, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header.is-solid { box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(30, 63, 71, .35); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img:first-child { width: 34px; height: auto; }
.brand__word { width: 96px; height: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  position: relative; text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: .03em;
  color: var(--teal); transition: color .3s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--terra);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }

.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--teal); transition: transform .3s var(--ease), top .3s; }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex; flex-direction: column; justify-content: center;
  background: var(--teal);
  color: var(--cream);
  overflow: hidden;
  padding-top: calc(var(--header-h) + 40px);
}
.hero__curl {
  position: absolute; right: -10vw; bottom: 4%; width: min(44vw, 560px);
  opacity: .045; filter: brightness(0) invert(1);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; text-align: center; padding-bottom: clamp(140px, 18vw, 240px); }
.hero__title { font-size: clamp(48px, 9vw, 116px); line-height: 1; }
.hero__title .line { display: block; }
.hero__title .dot { color: var(--terra); }
.hero__lead { max-width: 56ch; margin: 28px auto 0; font-size: clamp(18px, 2vw, 21px); color: rgba(240, 232, 217, .82); }
.hero__ctas { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.layers { position: absolute; left: 0; width: 100%; pointer-events: none; }
.layers--hero { bottom: -1px; height: clamp(110px, 16vw, 220px); }

/* Intro animation */
.js .hero .eyebrow, .js .hero__title .line, .js .hero__lead, .js .hero__ctas { opacity: 0; transform: translateY(24px); }
.is-loaded .hero .eyebrow, .is-loaded .hero__title .line, .is-loaded .hero__lead, .is-loaded .hero__ctas {
  opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.is-loaded .hero__title .line:nth-child(1) { transition-delay: .12s; }
.is-loaded .hero__title .line:nth-child(2) { transition-delay: .24s; }
.is-loaded .hero__lead { transition-delay: .4s; }
.is-loaded .hero__ctas { transition-delay: .52s; }
.hero .hl { display: inline-block; }
.js .hero .hl { transform: scaleX(0); transform-origin: left; }
.is-loaded .hero .hl { transform: none; transition: transform .6s .75s var(--ease); }

/* ==========================================================================
   Phone mockup (shared)
   ========================================================================== */
.phone {
  --pw: 300px;
  position: relative;
  width: var(--pw);
  aspect-ratio: 9 / 19;
  background: var(--paper);
  border: calc(var(--pw) * .032) solid var(--teal);
  border-radius: calc(var(--pw) * .15);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: calc(var(--pw) * .042);
  line-height: 1.25;
  color: var(--ink);
  flex: none;
}
.phone__notch {
  position: absolute; top: calc(var(--pw) * .025); left: 50%; translate: -50% 0;
  width: 34%; height: calc(var(--pw) * .07); border-radius: 99px; background: var(--teal-700); z-index: 3;
}
.screen { position: absolute; inset: 0; padding: calc(var(--pw) * .05) calc(var(--pw) * .06); display: flex; flex-direction: column; gap: .7em; }
.status { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .8em; padding: .35em .4em 0; }
.status__icons { width: 2.6em; height: .8em; border-radius: 3px; background: linear-gradient(90deg, var(--teal) 0 30%, transparent 30% 40%, var(--teal) 40%); opacity: .8; }
.app-head { display: flex; justify-content: space-between; align-items: center; margin-top: .6em; }
.app-head small { display: block; color: var(--muted); font-size: .78em; }
.app-head strong { display: block; font-size: 1.28em; color: var(--teal); font-weight: 600; letter-spacing: -.005em; }
.avatar { width: 2.3em; height: 2.3em; border-radius: 50%; background: var(--terra); color: var(--cream); font-size: .8em; font-weight: 700; display: grid; place-items: center; }
.avatar--teal { background: var(--teal); }
.num { font-family: var(--font-title); font-weight: 400; letter-spacing: .02em; }

.stat {
  position: relative; overflow: hidden;
  background: var(--teal); color: var(--cream);
  border-radius: 1em; padding: 1em 1.1em; display: flex; flex-direction: column; gap: .15em;
}
.stat::after { content: ""; position: absolute; right: -2.5em; top: -2.5em; width: 7em; height: 7em; border-radius: 50%; border: 1.6em solid rgba(240, 232, 217, .06); }
.stat small { font-size: .78em; opacity: .85; }
.stat .num { font-size: 2.6em; line-height: 1; }
.chip { align-self: flex-start; margin-top: .6em; font-size: .72em; font-weight: 600; background: rgba(240, 232, 217, .14); padding: .35em .9em; border-radius: 99px; }
.bars { position: absolute; right: 1em; bottom: 1em; height: 45%; display: flex; align-items: flex-end; gap: .32em; }
.bars i { width: .6em; height: var(--h); background: rgba(240, 232, 217, .85); border-radius: .15em; transform-origin: bottom; }
.bars i.hot { background: var(--terra); }

.list-head { display: flex; justify-content: space-between; align-items: baseline; }
.list-head strong { color: var(--teal); font-weight: 600; font-size: 1.05em; }
.link { color: var(--terra); font-size: .78em; }
.row {
  display: flex; align-items: center; gap: .75em;
  background: #FBF8F2; border: 1px solid var(--line);
  border-radius: .9em; padding: .6em .75em;
}
.row__t { flex: 1; min-width: 0; }
.row__t b { display: block; font-weight: 600; color: var(--teal); font-size: .95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row small { display: block; color: var(--muted); font-size: .7em; }
.row__n { text-align: right; }
.row__n b { display: block; font-size: 1.35em; color: var(--teal); line-height: 1; }
.row__n .terra, .row small.terra { color: var(--terra); }
.row--dot::before { content: ""; width: .45em; height: .45em; border-radius: 50%; background: var(--terra); flex: none; }
.ico { width: 2.3em; height: 2.3em; border-radius: .6em; flex: none; position: relative; }
.ico::after { content: ""; position: absolute; inset: 32% 28% 30%; border-radius: .15em; background: var(--cream); box-shadow: 0 -.25em 0 -.05em var(--cream); }
.ico--terra { background: var(--terra); }
.ico--teal { background: var(--teal); }
.ico--sand { background: var(--sand); }
.ico--round { border-radius: 50%; width: 1.9em; height: 1.9em; }
.ico--round::after { inset: 34%; border-radius: .1em; box-shadow: none; }
.ico--mnt::after { inset: 30% 22% 26%; border-radius: 0; box-shadow: none; clip-path: polygon(0 100%, 38% 20%, 55% 55%, 70% 35%, 100% 100%); }
.cta-bar {
  margin-top: auto;
  background: var(--teal); color: var(--cream);
  border-radius: 99px; text-align: center; padding: .75em; font-weight: 600; font-size: .9em;
}
.cta-bar--split { display: flex; justify-content: space-between; padding-inline: 1.2em; }
.cta-bar em { font-style: normal; display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin-left: .4em; border-radius: 50%; background: var(--terra); font-size: .8em; }
.cta-bar + .tabbar { margin-top: 0; }
.tabbar { margin-top: auto; display: flex; justify-content: space-around; align-items: center; background: var(--teal); border-radius: 99px; padding: .65em 1em; }
.tabbar i { width: 1.1em; height: 1.1em; border-radius: .3em; border: 2px solid rgba(240, 232, 217, .7); }
.tabbar i.on { width: 2.1em; height: 2.1em; border-radius: 50%; border: 0; background: var(--terra); box-shadow: inset 0 0 0 .6em var(--terra), inset 0 0 0 2em var(--cream); }

/* ==========================================================================
   Proceso
   ========================================================================== */
/* overflow-anchor: switching steps changes the text height; without this the browser
   shifts the page scroll to compensate, which the header reads as "scrolling down" and hides. */
.process { position: relative; background: var(--cream); overflow: hidden; overflow-anchor: none; }
.process__grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(32px, 6vw, 96px); }
.process__title { font-size: clamp(52px, 6vw, 88px); }
.process__la { display: block; color: var(--teal); }
.process__verb { display: inline-block; color: var(--terra); }
.process__verb.swap { animation: verbIn .55s var(--ease); }
@keyframes verbIn { from { opacity: 0; transform: translateY(.3em); filter: blur(4px); } }

.steps { position: relative; display: flex; gap: 6px; margin: 34px 0 26px; padding-bottom: 12px; }
.step {
  border: 0; background: none; cursor: pointer; padding: 6px 12px 6px 0;
  font-size: 16px; font-weight: 600; color: rgba(44, 93, 104, .45); letter-spacing: .02em;
  transition: color .25s;
}
.step span { color: inherit; margin-right: 4px; font-weight: 400; }
.step[aria-selected="true"] { color: var(--teal); }
.step:hover { color: var(--teal); }
.steps__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps__bar span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--teal); }
/* All panels share one grid cell, so the block is always as tall as the longest one
   and switching steps never changes the page height. */
.panels { display: grid; }
.panel { grid-area: 1 / 1; }
.panel[hidden] { display: block; visibility: hidden; }
.panel p { margin: 0 0 16px; color: var(--muted); max-width: 46ch; }
.panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.panel li { position: relative; padding-left: 28px; font-weight: 600; color: var(--teal); }
.panel li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-radius: 0 0 8px 8px; background: var(--terra); }
.panel:not([hidden]) { animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

.process__stage {
  position: relative; min-height: 740px; display: grid; place-items: center;
  container-type: inline-size;
  /* phone width, code-card width and the gap between them (step 2 shows both side by side) */
  --spw: min(300px, 50cqi); --cw: min(340px, 46cqi); --gap: 3cqi;
}
.phone--lg { --pw: var(--spw); z-index: 2; transition: transform .8s var(--ease); }

/* Step 1 — design: the UI is wireframed */
.process .sk { transition: color .5s, background-color .5s, border-color .5s, box-shadow .5s; }
.process[data-step="1"] .sk,
.process[data-step="1"] .sk * { color: transparent !important; border-color: transparent !important; }
.process[data-step="1"] .sk { background: rgba(44, 93, 104, .08) !important; box-shadow: none !important; border-radius: .6em; }
.process[data-step="1"] .row.sk { border: 1.5px dashed rgba(44, 93, 104, .25) !important; background: transparent !important; }
.process[data-step="1"] .sk .ico, .process[data-step="1"] .sk .bars, .process[data-step="1"] .sk .chip, .process[data-step="1"] .tabbar.sk i { opacity: 0; }
.process[data-step="1"] .stat.sk::after { opacity: 0; }
.process .sk .ico, .process .sk .bars, .process .sk .chip, .process .tabbar i { transition: opacity .5s; }

.tokens { position: absolute; right: 2%; top: 50%; translate: 0 -50%; display: grid; gap: 14px; justify-items: center; z-index: 3; }
.tok { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 6px 14px -6px rgba(30, 63, 71, .5); }
.tok--teal { background: var(--teal); }
.tok--terra { background: var(--terra); }
.tok--cream { background: var(--cream); border: 2px solid #fff; }
.tok--type { width: auto; height: auto; border-radius: 12px; background: #fff; padding: 8px 12px; font-family: var(--font-title); font-size: 26px; color: var(--teal); line-height: 1; text-align: center; }
.tok--type small { display: block; font-family: var(--font-body); font-size: 10px; color: var(--muted); margin-top: 3px; }

.code {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: var(--cw);
  translate: calc(var(--spw) / 2 + var(--gap) / 2 - var(--cw) / 2) -50%;
  background: var(--teal); color: var(--cream);
  border-radius: 16px; box-shadow: var(--shadow);
  font: 12.5px/1.7 ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}
.code__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px 0; }
.code__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--terra); }
.code__bar i:nth-child(2) { background: var(--cream); }
.code__bar i:nth-child(3) { background: var(--teal-300); }
.code__bar span { margin-left: 10px; opacity: .6; font-size: 12px; }
.code pre { margin: 0; padding: 12px 16px 18px; min-height: 120px; white-space: pre-wrap; }
.code .k { font-weight: 700; }
.code .c { opacity: .55; font-style: italic; }
.code .caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: var(--terra); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.badge {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  background: #fff; color: var(--teal); font-weight: 600; font-size: 15px;
  border-radius: 999px; padding: 8px 16px 8px 10px; box-shadow: var(--shadow);
}
.badge--store { top: 10%; right: 0; }
.badge--stars { bottom: 16%; left: 2%; color: var(--terra); letter-spacing: .15em; padding: 8px 16px; }
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.confetti i { position: absolute; left: 50%; top: 45%; width: 8px; height: 8px; border-radius: 2px; background: var(--terra); opacity: 0; }
.confetti i:nth-child(3n) { background: var(--teal); }
.confetti i:nth-child(4n) { background: var(--sand); border-radius: 50%; }

/* Layers visibility per step */
.tokens, .code, .badge, .confetti { opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.process[data-step="1"] .tokens,
.process[data-step="2"] .code,
.process[data-step="3"] .badge,
.process[data-step="3"] .confetti { opacity: 1; transform: none; }
.process[data-step="2"] .phone--lg { transform: translateX(calc((var(--cw) + var(--gap)) / -2)); }
.process[data-step="3"] .phone--lg { transform: rotate(-4deg) translateY(-8px); }
.process[data-step="3"] .confetti i { animation: burst 1.4s var(--ease) forwards; }
.process[data-step="3"] .confetti i:nth-child(1) { --x: -210px; --y: -220px; --r: 120deg; }
.process[data-step="3"] .confetti i:nth-child(2) { --x: 190px; --y: -250px; --r: -90deg; animation-delay: .05s; }
.process[data-step="3"] .confetti i:nth-child(3) { --x: -240px; --y: 40px; --r: 200deg; animation-delay: .1s; }
.process[data-step="3"] .confetti i:nth-child(4) { --x: 230px; --y: 10px; --r: 60deg; animation-delay: .02s; }
.process[data-step="3"] .confetti i:nth-child(5) { --x: -150px; --y: 250px; --r: -140deg; animation-delay: .08s; }
.process[data-step="3"] .confetti i:nth-child(6) { --x: 170px; --y: 230px; --r: 90deg; animation-delay: .12s; }
.process[data-step="3"] .confetti i:nth-child(7) { --x: -60px; --y: -290px; --r: 45deg; animation-delay: .04s; }
.process[data-step="3"] .confetti i:nth-child(8) { --x: 70px; --y: 300px; --r: 300deg; animation-delay: .1s; }
.process[data-step="3"] .confetti i:nth-child(9) { --x: -260px; --y: -90px; --r: -30deg; animation-delay: .14s; }
.process[data-step="3"] .confetti i:nth-child(10) { --x: 260px; --y: -120px; --r: 160deg; animation-delay: .06s; }
.process[data-step="3"] .confetti i:nth-child(11) { --x: -200px; --y: 170px; --r: 250deg; animation-delay: .16s; }
.process[data-step="3"] .confetti i:nth-child(12) { --x: 210px; --y: 140px; --r: -200deg; animation-delay: .09s; }
@keyframes burst {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  15% { opacity: 1; }
  100% { opacity: .85; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
}

/* ==========================================================================
   Industrias
   ========================================================================== */
.industries { background: var(--cream); padding-top: 40px; }
.showcase {
  margin-top: clamp(48px, 6vw, 80px);
  display: flex; justify-content: center; gap: clamp(16px, 2.2vw, 36px);
  padding: 20px 16px 40px;
}
.show { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.phone--sm { --pw: clamp(180px, 16vw, 216px); transition: transform .5s var(--ease); }
.show:nth-child(even) .phone--sm { margin-top: 28px; }
.show:hover .phone--sm { transform: translateY(-10px); }
.show figcaption {
  font-size: 20px; font-weight: 600; color: var(--teal);
  padding: 8px 24px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
}
.js [data-reveal-group] .show { opacity: 0; transform: translateY(40px); }
[data-reveal-group].is-in .show { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal-group].is-in .show:nth-child(2) { transition-delay: .08s; }
[data-reveal-group].is-in .show:nth-child(3) { transition-delay: .16s; }
[data-reveal-group].is-in .show:nth-child(4) { transition-delay: .24s; }
[data-reveal-group].is-in .show:nth-child(5) { transition-delay: .32s; }

/* Mini-screens */
.days { display: flex; gap: .35em; }
.days span { flex: 1; text-align: center; font-size: .66em; color: var(--muted); background: #FBF8F2; border: 1px solid var(--line); border-radius: .7em; padding: .4em 0; }
.days b { display: block; font-family: var(--font-title); font-weight: 400; font-size: 1.7em; color: var(--teal); line-height: 1.1; }
.days .on { background: var(--teal); color: var(--cream); border-color: var(--teal); }
.days .on b { color: var(--cream); }
.card { border-radius: .9em; padding: .8em .9em; display: flex; flex-direction: column; gap: .2em; }
.card small { font-size: .7em; opacity: .85; display: block; }
.card .title { font-family: var(--font-title); font-weight: 400; font-size: 1.35em; }
.card--teal { background: var(--teal); color: var(--cream); }
.card--sand { background: var(--sand); color: var(--teal); flex-direction: row; align-items: center; gap: .6em; }
.card--sand b { font-weight: 600; font-size: .95em; }
.progress { height: .35em; border-radius: 99px; background: rgba(240, 232, 217, .2); margin: .5em 0 .2em; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--terra); border-radius: inherit; }

.screen--map { padding: 0; gap: 0; }
.map { position: absolute; inset: 0 0 32%; }
.map svg { width: 100%; height: 100%; }
.route { stroke-dasharray: 400; stroke-dashoffset: 400; }
.is-in .route { animation: draw 2.2s .4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.search { position: relative; z-index: 1; margin: 2.6em 1em 0; background: #fff; border-radius: 99px; padding: .6em 1em; font-size: .78em; color: var(--muted); box-shadow: 0 6px 16px -10px rgba(30, 63, 71, .5); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 1.3em 1.3em 0 0; padding: 1.1em 1.1em 1.3em; display: flex; flex-direction: column; gap: .8em; box-shadow: 0 -10px 24px -18px rgba(30, 63, 71, .6); }
.sheet::before { content: ""; width: 2.4em; height: .25em; border-radius: 99px; background: var(--line); margin: -.4em auto 0; }
.sheet__row { display: flex; justify-content: space-between; align-items: center; gap: .5em; }
.sheet__row .title { display: block; font-family: var(--font-title); font-weight: 400; font-size: 1.5em; color: var(--teal); line-height: 1; }
.sheet__row small { color: var(--muted); font-size: .68em; }
.sheet__row.small { border-top: 1px solid var(--line); padding-top: .6em; }
.pill { background: var(--teal); color: var(--cream); font-size: .66em; font-weight: 600; padding: .45em .9em; border-radius: 99px; white-space: nowrap; }

.tabs { display: flex; gap: .4em; }
.tabs span { font-size: .72em; font-weight: 600; padding: .4em .9em; border-radius: 99px; border: 1px solid var(--line); color: var(--teal); background: #FBF8F2; }
.tabs .on { background: var(--teal); color: var(--cream); border-color: var(--teal); }
.food { display: grid; grid-template-columns: 1fr 1fr; gap: .55em; }
.dish { background: #FBF8F2; border: 1px solid var(--line); border-radius: .9em; padding: .6em; display: flex; flex-direction: column; gap: .2em; }
.dish b { font-size: .76em; font-weight: 600; color: var(--teal); }
.plate { width: 3.6em; height: 3.6em; margin: .1em auto .3em; border-radius: 50%; background: var(--sand); box-shadow: inset 0 0 0 .35em #E9DCCB; position: relative; }
.plate--a { background: radial-gradient(circle at 35% 40%, var(--terra) 0 .22em, transparent .24em), radial-gradient(circle at 62% 35%, var(--terra) 0 .22em, transparent .24em), radial-gradient(circle at 50% 64%, var(--terra) 0 .22em, transparent .24em), radial-gradient(circle at 70% 60%, var(--terra) 0 .18em, transparent .2em), #E3BFA4; }
.plate--b { background: radial-gradient(circle at 38% 42%, #FBF8F2 0 .24em, transparent .26em), radial-gradient(circle at 62% 38%, #FBF8F2 0 .24em, transparent .26em), radial-gradient(circle at 50% 64%, #FBF8F2 0 .24em, transparent .26em), #E3BFA4; }
.plate--c { background: radial-gradient(circle, var(--terra) 0 1.05em, #C98A68 1.1em 1.25em, #EAD6C6 1.3em); }
.price { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-title); color: var(--terra); font-size: .95em; }
.price i { font-style: normal; font-family: var(--font-body); width: 1.4em; height: 1.4em; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: var(--cream); font-size: .8em; }

.hero-card { position: relative; border-radius: 1em; overflow: hidden; height: 8.2em; flex: none; }
.hero-card svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-card .tag { position: absolute; top: .7em; left: .7em; z-index: 1; background: #fff; color: var(--terra); font-size: .62em; font-weight: 700; padding: .3em .7em; border-radius: 99px; }
.hero-card .title { position: absolute; left: .7em; bottom: .5em; z-index: 1; font-family: var(--font-title); font-weight: 400; color: var(--cream); font-size: 1.2em; }
.heart { color: var(--terra); font-size: 1.2em; }

/* ==========================================================================
   Nosotros
   ========================================================================== */
.about { position: relative; background: var(--cream); padding-top: clamp(72px, 10vw, 128px); }
.about__head { position: relative; z-index: 1; padding-bottom: clamp(28px, 4vw, 48px); }
.about .h2 { max-width: 18ch; }
.layers--about { position: relative; display: block; height: clamp(170px, 24vw, 360px); margin-bottom: -1px; }
.about__body { background: var(--teal); color: rgba(240, 232, 217, .85); padding: clamp(24px, 4vw, 48px) 0 clamp(80px, 10vw, 128px); }
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.planet svg { width: 100%; max-width: 460px; margin-inline: auto; overflow: visible; }
.about__copy p { margin: 18px 0 30px; font-size: 19px; max-width: 54ch; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.values li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(240, 232, 217, .16); }
.values b { color: var(--cream); font-weight: 600; font-size: 18px; }
.values span { font-size: 17px; }

/* ==========================================================================
   Video
   ========================================================================== */
.video { background: var(--paper); }
.player {
  margin-top: clamp(36px, 5vw, 56px);
  border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow); border: 8px solid var(--teal);
  background: var(--teal); aspect-ratio: 16 / 9;
}
.player video { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact { position: relative; background: var(--teal); color: rgba(240, 232, 217, .85); overflow: hidden; }
.contact::before {
  content: ""; position: absolute; left: -12vw; bottom: -14vw; width: 46vw; aspect-ratio: 1;
  background: url("/assets/serra-mark.svg") center / contain no-repeat;
  opacity: .06; filter: brightness(0) invert(1); pointer-events: none;
}
.contact__grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__copy p { font-size: 19px; margin: 20px 0 28px; max-width: 44ch; }
.next { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.next li { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--cream); }
.next span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--terra); font-family: var(--font-title); font-size: 18px; flex: none; }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px;
  background: var(--cream); color: var(--ink);
  border-radius: 28px; padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 600; color: var(--teal); letter-spacing: .02em; }
.field label em { font-weight: 400; color: var(--muted); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid rgba(44, 93, 104, .22); border-radius: 14px;
  background: var(--paper); padding: 13px 15px; font-size: 17px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(44, 93, 104, .12); }
.field .is-invalid { border-color: var(--terra); }
.err { color: var(--terra-600); font-size: 14px; min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.form__status { margin: 0; font-weight: 600; color: var(--teal); }
.form__status.is-error { color: var(--terra-600); }
.form.is-sent .field, .form.is-sent [data-submit] { opacity: .5; pointer-events: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--cream); padding: 72px 0 40px; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; }
.footer__inner > img { width: 150px; height: auto; }
.footer__tag { margin: 18px 0 4px; font-size: 22px; color: var(--teal); font-weight: 600; }
.footer__os { margin: 0; font-size: 13px; letter-spacing: .4em; text-transform: uppercase; color: var(--terra); font-weight: 600; }
.footer__os span { margin-inline: .6em; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 32px 0 24px; }
.footer__nav a { text-decoration: none; color: var(--teal); font-weight: 600; }
.footer__nav a:hover { color: var(--terra); }
.footer small { color: var(--muted); font-size: 14px; }

/* Generic reveal */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .showcase { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: max(16px, (100vw - 1180px) / 2); scrollbar-width: none; }
  .showcase::-webkit-scrollbar { display: none; }
  .show { scroll-snap-align: center; }
  .phone--sm { --pw: 210px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: 8px 16px 20px; box-shadow: 0 20px 30px -20px rgba(30, 63, 71, .4);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { color: var(--teal); padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .header.menu-open { background: var(--cream); }

  .process__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .process__copy { text-align: left; }
  .process__stage { min-height: 0; display: flex; flex-direction: column; align-items: center; --spw: min(290px, 74vw); }
  .code { position: relative; left: auto; top: auto; translate: none; width: min(340px, 100%); margin-top: 28px; order: 1; }
  .process[data-step="2"] .phone--lg { transform: none; }
  .process__stage { margin-top: 24px; }
  .tokens { right: 0; }
  .planet { order: -1; }
  .planet svg { max-width: 320px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 56px); }
  .btn { padding: 14px 22px; }
  .hero__ctas .btn { flex: 1 1 100%; justify-content: center; }
  .steps { flex-wrap: wrap; }
  .step { font-size: 15px; }
  .process__stage { --spw: min(280px, 72vw); }
  .badge { font-size: 13px; }
  .badge--store { right: auto; left: 50%; translate: -50% 0; top: 0; white-space: nowrap; }
  .values li { grid-template-columns: 1fr; gap: 2px; }
  .form { grid-template-columns: 1fr; border-radius: 22px; }
  .form__foot .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
