/* Ligera order page. Built from Paper p-6-0, "09 · Página de pedido · Móvil 390".
   Spacing opened up on 2026-10-10 (Rufus: "give things breathing space"): an 8 px scale,
   56 px between bands, 24 px gutters. */

:root {
  --hibisco: #EC5A8C;
  --yeso: #FBF3EA;
  --pino: #0F3A24;
  --lima: #B7E05A;
  --tinta: #14110F;
  --field: #FBF8F2;
  --field-line: #14110F4D;
  --rule: #14110F2E;
  --muted: #6E675C;
  --error: #A3214F;
  --band-line: #EEE9DE4D;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --gutter: 24px;
  --band-y: 56px;
  --radius: 12px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--yeso);
  color: var(--tinta);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  overflow-wrap: anywhere;
}

h1, h2, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; }

.page { max-width: 480px; margin: 0 auto; background: var(--yeso); overflow: clip; }

/* Shared display face: Bricolage ExtraBold at 75% width */
.logo, .hero-title, .price-chip, .order-title, .howto-title, .step-num,
.flow-title, .flow-num, .faq-title, .success-title, .failed-title {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
}

.dot { display: block; flex-shrink: 0; width: 7px; height: 7px; border-radius: 4px; }
.dot--hibisco { background: var(--hibisco); }
.dot--lima { background: var(--lima); width: 8px; height: 8px; }

.logo { display: flex; align-items: flex-start; gap: 3px; color: var(--pino); font-size: 28px; line-height: 28px; letter-spacing: -0.01em; }

/* 1 · Hero (470 px at 390) */
.hero-top { padding: 24px var(--gutter) 28px; }
.hero-title {
  margin-top: 32px;
  color: var(--pino);
  font-size: min(64px, 16.4vw);
  line-height: 0.906;            /* 58/64 */
  letter-spacing: -0.035em;
}
.hero-photo { position: relative; aspect-ratio: 390 / 270; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.price { position: absolute; top: 24px; left: 59.5%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.price-chip { background: var(--lima); color: var(--tinta); border-radius: 999px; padding: 4px 14px; font-size: 34px; line-height: 40px; }
.price-note { color: var(--pino); font-size: 15px; line-height: 20px; font-weight: 700; }

/* 2 · Form */
.order { padding: 32px var(--gutter) var(--band-y); scroll-margin-top: 8px; }
.order-form { display: flex; flex-direction: column; gap: 0; }
.order-title { color: var(--tinta); font-size: 36px; line-height: 36px; letter-spacing: -0.03em; padding-bottom: 24px; }
.fields { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 14px; line-height: 18px; font-weight: 600; margin-bottom: 0; }
.label--gap { padding-top: 12px; }

.input {
  height: 54px;
  width: 100%;
  padding: 0 16px;
  background: var(--field);
  border: 1.5px solid var(--field-line);
  border-radius: var(--radius);
  color: var(--tinta);
  font: 16px/20px var(--body);   /* 16 px keeps iOS from zooming */
  outline: none;
}
.input::placeholder, .input--phone input::placeholder { color: var(--muted); opacity: 1; }
.input--phone { display: flex; align-items: center; gap: 10px; }
.input--phone input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; outline: none; }
.prefix { font-weight: 600; }
.input:focus, .input--phone:focus-within { border-color: var(--pino); box-shadow: 0 0 0 1px var(--pino); }

.input[aria-invalid="true"], .input--phone.is-invalid { border: 2px solid var(--error); box-shadow: none; padding: 0 15.5px; }
.field-error { color: var(--error); font-size: 14px; line-height: 20px; font-weight: 600; margin-top: -2px; }

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

.send { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; border-radius: var(--radius); border: 0;
  font-family: var(--body); text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn--primary { height: 58px; background: var(--pino); color: var(--yeso); font-size: 17px; line-height: 22px; font-weight: 700; }
.btn--ghost { height: 52px; background: transparent; color: var(--pino); border: 1.5px solid var(--pino); font-size: 16px; line-height: 20px; font-weight: 600; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .link:focus-visible { outline: 3px solid var(--hibisco); outline-offset: 2px; }
.btn[disabled] { cursor: progress; opacity: 0.85; }
.btn[disabled] .dot { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

.ask { display: flex; justify-content: center; padding-top: 0; color: var(--pino); font-size: 15px; line-height: 20px; font-weight: 600; }
.ask > span { text-align: center; text-wrap: balance; }
.link { color: var(--pino); font-size: 15px; line-height: 20px; font-weight: 600; text-decoration: underline 1px; text-underline-position: from-font; }

.fine { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--tinta); font-size: 13px; line-height: 20px; opacity: 0.78; text-align: center; text-wrap: pretty; }

/* Failed submission */
.failed {
  display: flex; flex-direction: column; gap: 16px; margin-top: 28px;
  padding: 24px; border: 1.5px solid var(--field-line); border-radius: var(--radius); background: var(--field);
}
.failed-title { font-size: 26px; line-height: 26px; letter-spacing: -0.02em; color: var(--tinta); }
.failed-text { font-size: 15px; line-height: 22px; }
.failed .ask { padding-top: 0; }
.order-form[data-state="failed"] .send { display: none; }

/* Success */
.success {
  scroll-margin-top: 18px;
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px 24px; border-radius: var(--radius); background: var(--pino); color: var(--yeso);
  outline: none;
}
.success-title { font-size: 34px; line-height: 32px; letter-spacing: -0.03em; }
.success-text { font-size: 15px; line-height: 22px; }
.success-text strong { font-weight: 700; white-space: nowrap; }
.success-strong { display: flex; align-items: baseline; gap: 10px; font-size: 15px; line-height: 22px; font-weight: 600; }
.success-strong .dot { transform: translateY(-1px); }

/* 3 · Preparation (pino band) */
.band { padding-inline: var(--gutter); }
.how-to { background: var(--pino); color: var(--yeso); padding-block: var(--band-y); display: flex; flex-direction: column; gap: 32px; }
.howto-title { font-size: min(52px, 13.3vw); line-height: 0.923; letter-spacing: -0.035em; }   /* 48/52 */
.steps { display: flex; gap: 12px; }
.step { flex: 1 1 0%; display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1.5px solid var(--band-line); }
.step--wide { flex-grow: 1.3; }
.step-num { color: var(--lima); font-size: min(44px, 11.3vw); line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.step-label { font-size: 14px; line-height: 18px; font-weight: 600; }
.howto-note { font-size: 15px; line-height: 23px; opacity: 0.85; text-wrap: pretty; }

/* 4 · How ordering works (hibisco band) */
.flow { background: var(--hibisco); padding-block: var(--band-y); display: flex; flex-direction: column; gap: 32px; }
.flow-title { color: var(--pino); font-size: 36px; line-height: 36px; letter-spacing: -0.03em; }
.flow-list { display: flex; flex-direction: column; gap: 24px; }
.flow-list li { display: flex; align-items: baseline; gap: 16px; font-size: 16px; line-height: 24px; text-wrap: pretty; }
.flow-num { flex-shrink: 0; width: 28px; color: var(--pino); font-size: 32px; line-height: 24px; }

/* 5 · FAQ */
.faq { padding: var(--band-y) var(--gutter) 0; }
.faq-title { color: var(--pino); font-size: 36px; line-height: 36px; letter-spacing: -0.03em; padding-bottom: 24px; }
.qa { display: flex; flex-direction: column; gap: 6px; padding-block: 20px; border-top: 1px solid var(--rule); }
.qa:last-child { border-bottom: 1px solid var(--rule); }
.qa dt { font-size: 16px; line-height: 22px; font-weight: 700; }
.qa dd { font-size: 15px; line-height: 23px; opacity: 0.8; text-wrap: pretty; }

/* 6 · Final CTA */
.final { display: flex; flex-direction: column; gap: 14px; padding: 40px var(--gutter) var(--band-y); }

/* 7 · Footer */
.footer { background: var(--pino); color: var(--yeso); display: flex; flex-direction: column; gap: 16px; padding: 48px var(--gutter) calc(56px + env(safe-area-inset-bottom)); }
.logo--footer { color: var(--yeso); font-size: 26px; line-height: 26px; margin-bottom: 8px; }
.footer p { font-size: 12px; line-height: 19px; opacity: 0.8; text-wrap: pretty; }

[hidden] { display: none !important; }
