/* ============================================================
   TRADING CIENTÍFICO — paper académico × terminal de trading
   ============================================================ */

:root {
  --ink:        #07090d;   /* fondo página */
  --ink-2:      #0b0e14;   /* paneles */
  --ink-3:      #11151d;   /* tarjetas */
  --paper:      #ece6d8;   /* texto principal (pergamino) */
  --muted:      #98917f;   /* texto secundario cálido */
  --gold:       #c9a84c;
  --gold-bright:#e8c25e;
  --green:      #41c98e;
  --red:        #e0524f;
  --line:       rgba(236, 230, 216, 0.10);
  --line-gold:  rgba(201, 168, 76, 0.28);
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Archivo", "Helvetica Neue", sans-serif;
  --font-mono:    "IBM Plex Mono", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* textura: papel milimetrado sutil + viñeta */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(236,230,216,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236,230,216,0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(0,0,0,0.55));
  pointer-events: none;
  z-index: 0;
}
main, section, header, footer { position: relative; z-index: 1; }

.mono { font-family: var(--font-mono); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.wrap--narrow { max-width: 860px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.12; }
h2 em, h1 em { font-style: italic; color: var(--gold-bright); }
sup { line-height: 0; }
sup a { color: var(--gold); text-decoration: none; font-family: var(--font-mono); font-size: 0.72em; }
sup a:hover { color: var(--gold-bright); }
::selection { background: rgba(201,168,76,0.35); }

/* ---------- botones ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 55%, var(--gold) 100%);
  background-size: 200% 200%;
  color: #14110a;
  box-shadow: 0 0 0 1px rgba(232,194,94,0.4), 0 12px 32px -12px rgba(201,168,76,0.55);
}
.btn--gold:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 0 0 1px rgba(232,194,94,0.7), 0 18px 40px -12px rgba(201,168,76,0.7);
}
.btn--ghost {
  color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-gold);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-bright); }
.btn--xl { font-size: 1.1rem; padding: 18px 40px; }
.btn--nav { padding: 10px 22px; font-size: 0.88rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(7, 9, 13, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.nav__brand img { height: 44px; width: auto; display: block; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--gold-bright); }

/* ---------- hero ---------- */
.hero { padding: 168px 0 96px; position: relative; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,9,13,0.82) 0%, rgba(7,9,13,0.94) 60%, var(--ink) 100%),
    url("../img/bg-ciudad.jpg") center 30% / cover no-repeat;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.kicker::before { content: "// "; color: var(--muted); }
.hero__title {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.06;
  margin-bottom: 24px;
}
.hero__sub { color: var(--muted); font-size: 1.12rem; max-width: 56ch; margin-bottom: 34px; }
.hero__sub strong { color: var(--paper); font-weight: 600; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.hero__stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 12px 36px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.hero__stats li { display: flex; flex-direction: column; gap: 4px; }
.hero__stats .num { font-size: 1.5rem; color: var(--gold-bright); font-weight: 500; }
.hero__stats .lbl { font-size: 0.78rem; color: var(--muted); max-width: 17ch; line-height: 1.4; }

/* panel estilo terminal */
.panel {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(201,168,76,0.06);
}
.panel__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 16px;
  font-size: 0.72rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: rgba(236,230,216,0.025);
}
.panel__bar .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(236,230,216,0.16); }
.panel__bar .dot:first-child { background: rgba(224,82,79,0.55); }
.panel__bar .dot:nth-child(2) { background: rgba(201,168,76,0.55); }
.panel__bar .dot:nth-child(3) { background: rgba(65,201,142,0.55); }

/* gráfico hero */
.chart { display: block; width: 100%; height: auto; }
.chart__grid line { stroke: rgba(236,230,216,0.07); stroke-width: 1; }
.chart__dd { fill: rgba(224,82,79,0.10); stroke: rgba(224,82,79,0.25); stroke-dasharray: 3 4; }
.chart__bench {
  fill: none; stroke: rgba(236,230,216,0.30); stroke-width: 1.6; stroke-dasharray: 5 5;
}
.chart__line {
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 2.6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(232,194,94,0.45));
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}
.chart--draw .chart__line { animation: draw 2.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart__ax text { fill: var(--muted); font-size: 11px; }
.chart__ann { fill: var(--muted); font-size: 11px; }
.chart__ann--gold { fill: var(--gold-bright); }
.fig {
  display: block;
  padding: 12px 16px 14px;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.fig::before { content: "▸ "; color: var(--gold); }

/* ---------- secciones ---------- */
.section { padding: 110px 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--ink-2); }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-num {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.sec-num::after {
  content: "";
  display: inline-block;
  width: 56px; height: 1px;
  background: var(--line-gold);
  margin-left: 14px;
  vertical-align: middle;
}
.sec-head--center .sec-num::after { display: none; }
.sec-lead { color: var(--muted); font-size: 1.08rem; margin-top: 18px; }

/* ---------- problema ---------- */
.bigstat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 10px;
  padding: 40px 44px;
  margin-bottom: 56px;
}
.bigstat__num .mono {
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 500;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.03em;
}
.bigstat__txt p { font-size: 1.15rem; max-width: 52ch; }
.bigstat__txt strong { color: var(--red); }
.bigstat__src { font-size: 0.75rem; color: var(--muted); margin-top: 12px; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 64px; }
.card {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--line-gold); transform: translateY(-3px); }
.card__n { color: var(--gold); font-size: 0.8rem; display: block; margin-bottom: 14px; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }

.figframe {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
}
.figframe img { display: block; width: 100%; height: auto; background: #fff; }
.figframe--term img { background: var(--ink-3); }

/* ---------- método ---------- */
.filters {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: filtro;
  margin-bottom: 88px;
}
.filters li {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px 28px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.filters li:hover { border-color: var(--line-gold); transform: translateY(-3px); }
.filters__n {
  display: inline-block;
  color: var(--ink);
  background: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.filters h3 { font-size: 1.2rem; margin-bottom: 10px; }
.filters p { color: var(--muted); font-size: 0.93rem; }

.lab__head { max-width: 720px; margin-bottom: 40px; }
.lab__title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.lab__head p { color: var(--muted); }
.lab__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lab__grid .figframe { max-width: none; margin: 0; }

/* ---------- tabla 10 sistemas ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--ink-2); }
.systable { width: 100%; border-collapse: collapse; min-width: 760px; }
.systable caption {
  text-align: left;
  padding: 16px 20px;
  font-size: 0.75rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  caption-side: top;
}
.systable th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-gold);
}
.systable td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  vertical-align: top;
}
.systable tbody tr { transition: background 0.15s; }
.systable tbody tr:hover { background: rgba(201,168,76,0.045); }
.systable tbody tr:last-child td { border-bottom: none; }
.systable td:first-child { color: var(--gold); font-size: 0.85rem; }
.systable td:nth-child(3) { color: var(--muted); font-size: 0.88rem; }
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 9px;
  border-radius: 999px;
  margin-right: 8px;
  white-space: nowrap;
}
.tag--ok   { color: var(--green); border: 1px solid rgba(65,201,142,0.4); }
.tag--mid  { color: var(--gold-bright); border: 1px solid rgba(201,168,76,0.45); }
.tag--warn { color: var(--red); border: 1px solid rgba(224,82,79,0.45); }

/* nombres de sistemas reservados (borrosos + candado) */
.sysname { display: inline-flex; align-items: center; gap: 10px; }
.sysname__blur {
  filter: blur(6.5px);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  opacity: 0.85;
  white-space: nowrap;
}
.sysname::after {
  content: "";
  flex: none;
  width: 12px; height: 14px;
  background-color: var(--gold);
  -webkit-mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5zm-3 8V7a3 3 0 1 1 6 0v3H9z"/%3E%3C/svg%3E') center / contain no-repeat;
  mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5zm-3 8V7a3 3 0 1 1 6 0v3H9z"/%3E%3C/svg%3E') center / contain no-repeat;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
}
.systable tbody tr:hover .sysname::after { opacity: 1; transform: scale(1.15); }
.evid__blur {
  display: inline-block;
  filter: blur(5px);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  opacity: 0.75;
  white-space: nowrap;
}
.evid__src { display: block; font-size: 0.7rem; color: var(--gold); margin-top: 4px; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.systable__note {
  max-width: 76ch;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 28px auto 0;
  padding-left: 18px;
  border-left: 2px solid var(--line-gold);
}
.systable__note strong { color: var(--paper); }

.midcta {
  text-align: center;
  margin-top: 72px;
  padding: 48px 32px;
  border: 1px dashed var(--line-gold);
  border-radius: 10px;
}
.midcta p { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 24px; }

/* ---------- gigantes ---------- */
.giants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.giant {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.giant:hover { border-color: var(--line-gold); transform: translateY(-4px); }
.giant img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: grayscale(0.85) contrast(1.04);
  transition: filter 0.4s;
}
.giant:hover img { filter: grayscale(0); }
.giant h3 { font-size: 1.25rem; padding: 20px 24px 0; }
.giant__tag { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 24px 0; }
.giant p:not(.giant__tag) { color: var(--muted); font-size: 0.92rem; padding: 12px 24px 24px; }
.giants__legal {
  margin-top: 36px;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- programa ---------- */
.phases {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 88px;
}
.phases li {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 10px;
  padding: 28px 26px;
}
.phases__wk { display: block; color: var(--gold); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.phases h3 { font-size: 1.2rem; margin-bottom: 10px; }
.phases p { color: var(--muted); font-size: 0.92rem; }

.team { margin-bottom: 88px; }
.team__title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 32px; }
.team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card--team h4 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 8px; }
.team__tag { color: var(--gold); font-size: 0.75rem; margin-bottom: 14px; }

.whofor { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.whofor__col { border-radius: 10px; padding: 34px 32px; border: 1px solid var(--line); }
.whofor__col--yes { background: rgba(65,201,142,0.05); border-color: rgba(65,201,142,0.25); }
.whofor__col--no  { background: rgba(224,82,79,0.05);  border-color: rgba(224,82,79,0.25); }
.whofor h3 { font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
.whofor__col--yes h3 { color: var(--green); }
.whofor__col--no h3 { color: var(--red); }
.whofor ul { list-style: none; display: grid; gap: 14px; }
.whofor li { padding-left: 22px; position: relative; color: var(--muted); font-size: 0.97rem; }
.whofor__col--yes li::before { content: "✓"; position: absolute; left: 0; color: var(--green); }
.whofor__col--no li::before { content: "✗"; position: absolute; left: 0; color: var(--red); }

/* ---------- aplicar ---------- */
.apply { position: relative; padding: 120px 0; overflow: hidden; border-top: 1px solid var(--line-gold); }
.apply__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,9,13,0.88), rgba(7,9,13,0.93)),
    url("../img/bg-ciudad.jpg") center 70% / cover no-repeat;
}
.apply .wrap { position: relative; }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 980px;
  margin: 0 auto 56px;
}
.steps li {
  background: rgba(11,14,20,0.85);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 28px;
  text-align: center;
}
.steps__n {
  display: inline-block;
  color: var(--gold-bright);
  font-size: 1rem;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  width: 42px; height: 42px;
  line-height: 40px;
  margin-bottom: 16px;
}
.steps h3 { font-size: 1.25rem; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 0.93rem; }
.apply__cta { text-align: center; }
.apply__alt { margin-top: 18px; font-size: 0.8rem; color: var(--muted); }
.apply__alt a { color: var(--gold-bright); text-decoration: none; }
.apply__alt a:hover { text-decoration: underline; }

/* ---------- inversión / precios ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}
.price:hover { border-color: var(--line-gold); transform: translateY(-4px); }
.price--star {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201,168,76,0.08), var(--ink-3) 40%);
  box-shadow: 0 30px 70px -30px rgba(201,168,76,0.35);
}
.price__badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #14110a;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.price__name {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.price__amount {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 8px;
}
.price__cur { font-size: 0.9rem; color: var(--muted); vertical-align: super; margin-right: 6px; }
.price__terms { font-size: 0.72rem; color: var(--muted); margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.price__list { list-style: none; display: grid; gap: 12px; margin-bottom: 30px; }
.price__list li { padding-left: 24px; position: relative; color: var(--muted); font-size: 0.93rem; }
.price__list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 600; }
.price__cta { margin-top: auto; text-align: center; }
.pricing__note {
  margin-top: 36px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---------- formulario de aplicación ---------- */
.appform {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 22px;
  background: rgba(11,14,20,0.92);
  border: 1px solid var(--line-gold);
  border-radius: 12px;
  padding: 40px 38px;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.9);
}
.appform__field { display: flex; flex-direction: column; gap: 8px; }
.appform__field--full { grid-column: 1 / -1; }
.appform label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.appform input,
.appform select,
.appform textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--paper);
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.appform input::placeholder, .appform textarea::placeholder { color: rgba(152,145,127,0.55); }
.appform select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.appform select:invalid { color: rgba(152,145,127,0.75); }
.appform textarea { resize: vertical; min-height: 110px; }
.appform input:focus, .appform select:focus, .appform textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.appform__submit { width: 100%; border: none; cursor: pointer; font-family: var(--font-body); }
.appform__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 14px; }
.faq details {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--line-gold); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  position: relative;
  padding-right: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 26px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 26px 24px; color: var(--muted); max-width: 70ch; }

/* ---------- referencias ---------- */
.refs__list {
  list-style: none;
  counter-reset: ref;
  display: grid;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}
.refs__list li {
  counter-increment: ref;
  padding: 14px 18px 14px 56px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink-3);
  scroll-margin-top: 100px;
}
.refs__list li::before {
  content: "[" counter(ref) "]";
  position: absolute;
  left: 16px;
  color: var(--gold);
}
.refs__list li:target { border-color: var(--gold); background: rgba(201,168,76,0.07); }
.refs__list em { color: var(--paper); font-style: italic; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-gold); padding: 64px 0 40px; background: var(--ink-2); }
.footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.footer__tag { color: var(--muted); font-size: 0.9rem; margin-top: 14px; max-width: 36ch; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.15s; }
.footer__links a:hover { color: var(--gold-bright); }
.footer__legal { border-top: 1px solid var(--line); padding-top: 28px; }
.footer__legal p { font-size: 0.7rem; color: var(--muted); line-height: 1.7; max-width: 100ch; }
.footer__legal p + p { margin-top: 14px; }

/* ---------- sticky CTA móvil ---------- */
.stickycta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(7,9,13,0.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-gold);
  transform: translateY(110%);
  transition: transform 0.3s ease;
  display: none;
}
.stickycta.show { transform: translateY(0); }
.stickycta .btn { display: block; text-align: center; }

/* ---------- reveals (solo se ocultan si hay JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }
.reveal.d4 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chart__line { stroke-dashoffset: 0 !important; animation: none !important; }
  .btn, .card, .giant, .filters li { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__chart { max-width: 640px; }
  .hero__stats { grid-template-columns: repeat(2, auto); }
  .filters { grid-template-columns: repeat(2, 1fr); }
  .giants { grid-template-columns: repeat(2, 1fr); }
  .phases { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .price--star { order: -1; }
}
@media (max-width: 880px) {
  .nav__links { display: none; }
  .lab__grid { grid-template-columns: 1fr; }
  .cards3 { grid-template-columns: 1fr; }
  .whofor { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .bigstat { grid-template-columns: 1fr; gap: 18px; padding: 32px 28px; }
  .section { padding: 84px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 130px 0 72px; }
  .appform { grid-template-columns: 1fr; padding: 28px 22px; }
  .giants { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
  .stickycta { display: block; }
  .btn--nav { display: none; }
  .nav__inner { height: 64px; }
  .nav__brand img { height: 38px; }
}
