/* form.css — página de conversión con marca Eatsy.
   Replica el sistema de eatsy-website (BRAND_USAGE.md): Poppins/Montserrat,
   naranja con moderación (regla del 8%), neutros cálidos, casi-negro #1C1917.
   SOLO para form.html — las advertoriales siguen usando advertorial.css. */

:root {
  --brand:        #EC6533;
  --brand-hover:  #D9551E;
  --brand-text:   #C2410C;
  --brand-muted:  #FFE4D1;

  --ink:    #1C1917;   /* body / headings — casi negro, no #000 */
  --ink-2:  #57534E;   /* secundario */
  --ink-3:  #78716C;   /* captions */
  --muted:  #A8A29E;   /* placeholder / disabled */

  --page:    #FFFFFF;
  --surface: #FAFAF9;  /* stone cálido */
  --inset:   #F5F5F4;

  --border:        #E7E5E4;
  --border-strong: #D6D3D1;

  --font-sans:    "Poppins", system-ui, -apple-system, sans-serif;
  --font-display: "Montserrat", var(--font-sans);

  --maxw: 680px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---- Nav / logo (única zona de marca arriba) ---- */
.nav {
  border-bottom: 1px solid var(--border);
  background: var(--page);
}
.nav .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav img.logo { height: 30px; width: auto; display: block; }
.nav .pill {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand-text);
  background: var(--brand-muted);
  padding: 6px 11px;
  border-radius: 999px;
}

/* ---- Hero ---- */
.hero { padding: 48px 0 8px; }
.hero .badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brand-text);
  background: var(--brand-muted);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.5vw, 42px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink);
}
.hero .lead {
  font-size: 19px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink-2);
  margin: 0;
}

/* ---- Card "qué incluye" ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 26px;
  margin: 34px 0;
}
.card h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--ink);
}
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  color: var(--ink-2);
}
.feature-list li:first-child { border-top: 0; }
.feature-list li strong { color: var(--ink); font-weight: 600; }
.feature-list li:before {
  content: "";
  position: absolute;
  left: 0; top: 17px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-muted) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C2410C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---- Form ---- */
.form-card {
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 26px;
  margin: 0 0 28px;
  box-shadow: 0 1px 2px rgba(28,25,23,.04), 0 8px 24px rgba(28,25,23,.05);
}
.form-card h2 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}
.form-card .sub { font-size: 16px; color: var(--ink-2); margin: 0 0 22px; }

.field { margin: 0 0 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin: 0 0 6px;
}
.field input {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 13px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--page);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field input::placeholder { color: var(--muted); }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(236,101,51,.15);
}

/* select (tipo de restaurante) — mismo look que los inputs */
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 13px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--page);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2378716C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color .12s ease, box-shadow .12s ease;
}

/* pasos del form */
.step[hidden] { display: none; }
.step-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin: 0 0 16px;
}

/* consentimiento (checkbox) */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 4px 0 18px;
  cursor: pointer;
}
.consent input[type="checkbox"] {
  width: 18px; height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--brand);
  cursor: pointer;
}

/* botón secundario "Atrás" */
button.link-back {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  padding: 8px;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
}
button.link-back:hover { color: var(--ink-2); }

button.submit {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 10px;
  padding: 16px 20px;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 1px 2px rgba(217,85,30,.25);
  transition: background .15s ease;
}
button.submit:hover { background: var(--brand-hover); }
button.submit:disabled { opacity: .6; cursor: default; }

.fineprint { font-size: 13px; color: var(--ink-3); margin: 14px 0 0; text-align: center; }

/* ---- Thank you ---- */
.thankyou { display: none; text-align: center; padding: 8px 0; }
.thankyou.show { display: block; }
.thankyou h2 { font-family: var(--font-display); color: var(--ink); margin: 0 0 8px; }
.thankyou p { color: var(--ink-2); margin: 0; }
.form-fields.hide { display: none; }

footer.foot {
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
  padding: 26px 0 50px;
  margin-top: 20px;
}
footer.foot a { color: var(--ink-2); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero { padding: 34px 0 4px; }
  .hero .lead { font-size: 17px; }
}
