/* LA TRIBU DEL FUTURO · sistema visual compartido (landing, gracias, recursos) */
:root {
  --ground: #07070a;
  --ground-2: #101016;
  --ground-3: #1a1a22;
  --ground-4: #2a2a36;
  --ink: #f4efe6;
  --ink-2: #b9b4aa;
  --orange: #ff7a1a;
  --orange-hi: #ffb347;
  --violet: #8b5cff;
  --violet-hi: #b79bff;
  --wa: #25d366;
  --display: "Anton", "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Playfair Display", Georgia, serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--orange); color: #111; }
:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 3px; }

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

/* Tipografía */
.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  line-height: 0.92;
  margin: 0;
}
.hl-orange { color: var(--orange); }
.hl-violet { color: var(--violet-hi); }
.script { font-family: var(--script); font-style: italic; font-weight: 500; text-transform: none; letter-spacing: 0; }
.muted { color: var(--ink-2); }

/* Botones */
.btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--display); font-size: clamp(20px, 2.2vw, 26px); text-transform: uppercase; letter-spacing: .02em;
  padding: .72em 1.5em; min-height: 56px;
  background: var(--orange); color: #130a02;
  transition: transform .15s ease, background .15s ease, box-shadow .2s ease;
  box-shadow: 0 0 0 0 rgba(255, 122, 26, .0);
}
.btn:hover { background: var(--orange-hi); transform: translateY(-2px); box-shadow: 0 10px 40px -8px rgba(255, 122, 26, .65); }
.btn:active { transform: translateY(0); }
.btn--wa { background: var(--wa); color: #04210f; }
.btn--wa:hover { background: #4be58a; box-shadow: 0 10px 40px -8px rgba(37, 211, 102, .6); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink-2); }
.btn--ghost:hover { background: var(--ink); color: #111; box-shadow: none; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* Boleto cortado */
.ticket {
  --notch: 16px;
  position: relative;
  background: var(--ink);
  color: #14110c;
  -webkit-mask:
    radial-gradient(circle var(--notch) at 0 var(--cut, 62%), transparent 98%, #000 100%) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% var(--cut, 62%), transparent 98%, #000 100%) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle var(--notch) at 0 var(--cut, 62%), transparent 98%, #000 100%) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% var(--cut, 62%), transparent 98%, #000 100%) right / 51% 100% no-repeat;
}
.ticket__perf { border: 0; border-top: 3px dashed rgba(20, 17, 12, .35); margin: 0; }

/* Muescas con máscara en 2 mitades puede dejar costura: se tapa con filtro de resplandor del contenedor */
.ticket-glow { filter: drop-shadow(0 0 26px rgba(255, 122, 26, .45)) drop-shadow(0 0 70px rgba(139, 92, 255, .25)); }

/* Formularios */
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 700; color: #3a342a; }
.field input, .field select {
  width: 100%; min-height: 54px; padding: 0 14px;
  font: inherit; font-size: 17px; font-weight: 600;
  background: #fff; color: #14110c;
  border: 2px solid #14110c; border-radius: 0; appearance: none;
}
.field input::placeholder { color: #8a8478; font-weight: 500; }
.field input:focus, .field select:focus { outline: 3px solid var(--orange); outline-offset: 0; border-color: #14110c; }
.field .err { color: #b3261e; font-size: 14px; font-weight: 700; min-height: 1em; }

.phone-row { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }

/* Utilidades */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack > * + * { margin-top: var(--gap, 1rem); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
