/* /afiliados/ — public affiliate recruitment page. Brand tokens copied from
   bracmort.com/index.html (:root). New dated file per house rule; the host
   CDN ignores query strings, so a filename bump is how a change ships. */

:root {
  --canvas:      #0B0E14;
  --surface:     #141924;
  --surface-2:   #1A2030;
  --ink:         #F2EEE6;
  --ink-soft:    #A9AFBB;
  --ink-faint:   #6b7383;
  --accent:      #F07820;
  --accent-hover:#FF8A35;
  --accent-ink:  #170A02;
  --hairline:    rgb(242 238 230 / .10);
  --hairline-strong: rgb(242 238 230 / .20);
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --maxw: 1040px;
  --font: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body {
  margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; line-height: 1.55; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--gutter); top: -3rem; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: .5rem .9rem; border-radius: var(--r-sm); transition: top 140ms ease; }
.skip:focus { top: .75rem; }

/* ---------------------------------------------------------- header */
.head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem var(--gutter);
  background: linear-gradient(to bottom, rgb(11 14 20 / .96), rgb(11 14 20 / .85) 70%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.head__brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .95rem; letter-spacing: -0.01em; text-decoration: none; }
.head__brand img { width: 143px; height: auto; }
.lang { display: flex; gap: .2rem; padding: .2rem; border-radius: var(--r-pill); background: rgb(242 238 230 / .06); }
.lang a { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft); padding: .4rem .65rem; border-radius: var(--r-pill); text-decoration: none; transition: color 140ms ease, background-color 140ms ease; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { color: var(--ink); background: rgb(242 238 230 / .12); }

/* ---------------------------------------------------------- generic */
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--accent); margin-bottom: .6rem; }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--hairline); }
.section__head { max-width: 40rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section__head p { color: var(--ink-soft); margin-top: .6rem; font-size: 1.05rem; }

/* ---------------------------------------------------------- hero */
.hero { padding-block: clamp(3rem, 9vw, 6rem) clamp(2.5rem, 6vw, 4rem); text-align: center; }
.hero__inner { max-width: 42rem; margin-inline: auto; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); line-height: 1.06; }
.hero p.sub { margin-top: 1.1rem; font-size: 1.15rem; color: var(--ink-soft); max-width: 34rem; margin-inline: auto; }
.hero__note { margin-top: .9rem; font-size: .85rem; color: var(--ink-faint); }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  height: 3.1rem; padding-inline: 1.6rem; border-radius: var(--r-pill);
  font-weight: 600; font-size: .95rem; letter-spacing: -0.01em; white-space: nowrap;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease, box-shadow 160ms ease;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, 0 12px 28px -12px rgb(240 120 32 / .6); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.hero__cta { margin-top: 2rem; }

/* ---------------------------------------------------------- how (3 steps) */
.steps { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, 1fr); margin-top: 1rem; }
.step { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 1.5rem 1.4rem; }
.step__n { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: rgb(240 120 32 / .14); color: var(--accent); font-weight: 700; font-size: .95rem; margin-bottom: .9rem; }
.step h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.step p { color: var(--ink-soft); font-size: .92rem; }

/* ---------------------------------------------------------- get (bullets) */
.get { display: grid; gap: .7rem; margin-top: 1rem; }
.get__row { display: flex; align-items: flex-start; gap: .85rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); }
.get__ic { flex: none; width: 1.5rem; height: 1.5rem; color: var(--accent); margin-top: .1rem; }
.get__row p { font-size: .98rem; color: var(--ink); }

/* ---------------------------------------------------------- fit */
.fit__body { font-size: 1.1rem; color: var(--ink-soft); max-width: 40rem; }

/* ---------------------------------------------------------- faq */
.faq { display: grid; gap: .6rem; margin-top: 1rem; }
.faq__item { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; }
.faq__q { width: 100%; text-align: left; background: none; border: 0; color: var(--ink); font: inherit; font-weight: 600; font-size: 1rem; padding: 1.05rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; }
.faq__q svg { flex: none; width: 1.1rem; height: 1.1rem; color: var(--ink-soft); transition: transform 160ms ease; }
.faq__item[open] .faq__q svg { transform: rotate(180deg); }
.faq__a { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); font-size: .95rem; }

/* ---------------------------------------------------------- form */
.form-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: clamp(1.4rem, 4vw, 2.2rem); margin-top: 1.2rem; }
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  appearance: none; width: 100%; background: var(--surface-2); border: 1px solid var(--hairline-strong);
  border-radius: var(--r-sm); color: var(--ink); font: inherit; font-size: .98rem;
  padding: .85rem .95rem; min-height: 3rem;
}
.field select { background-image: none; }
.field textarea { min-height: 5.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.form-status { margin-top: 1rem; font-size: .92rem; min-height: 1.3em; }
.form-status[data-tone="ok"] { color: #3DDC84; }
.form-status[data-tone="bad"] { color: #F87171; }
.form-done { display: none; text-align: center; padding: 1rem 0; }
.form-done.is-on { display: block; }
.form-done svg { width: 2.6rem; height: 2.6rem; color: #3DDC84; margin: 0 auto .9rem; }
.form-done p { color: var(--ink-soft); margin-top: .5rem; }

/* ---------------------------------------------------------- footer */
.foot { padding-block: 2.2rem; border-top: 1px solid var(--hairline); text-align: center; }
.foot a.link { color: var(--ink-soft); font-size: .9rem; text-decoration: none; border-bottom: 1px solid var(--hairline-strong); }
.foot a.link:hover { color: var(--ink); border-color: var(--ink); }
.foot__rights { margin-top: .8rem; font-size: .78rem; color: var(--ink-faint); }

/* ---------------------------------------------------------- responsive */
@media (max-width: 780px) {
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .head__brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
