/* =========================================================
   WAKANDA MARKETING — hoja de estilos principal
   Paleta: negro vibranium, violeta, oro arena.
   ========================================================= */

:root {
  /* Fondos */
  --ink:        #0B0910;
  --ink-2:      #110E1A;
  --surface:    #16121F;
  --surface-2:  #1D1829;
  --line:       rgba(233, 224, 255, 0.10);
  --line-soft:  rgba(233, 224, 255, 0.06);

  /* Texto */
  --text:       #F3EFE8;
  --text-dim:   #A79FB8;
  --text-faint: #6F6880;

  /* Acentos */
  --violet:     #7C5CFF;
  --violet-dim: #4C33B8;
  --gold:       #E9B44C;
  --gold-hot:   #FFD37A;
  --good:       #4ED6A1;
  --bad:        #FF6B6B;

  /* Tipografía */
  --font-display: "Unbounded", "Trebuchet MS", sans-serif;
  --font-body:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Métrica */
  --shell:      1180px;
  --radius:     16px;
  --radius-sm:  10px;
  --gutter:     clamp(1rem, 4vw, 2.5rem);
  --section-y:  clamp(4.5rem, 9vw, 8rem);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 0.82rem; }
p  { margin: 0 0 1rem; }
a  { color: inherit; }

::selection { background: var(--violet); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: #1A1206; padding: .75rem 1.25rem;
  font-weight: 700; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Contenedores ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell.narrow { max-width: 780px; }

.section { padding-block: var(--section-y); position: relative; }
.section-alt { background: var(--ink-2); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 680px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-sub { color: var(--text-dim); font-size: 1.06rem; margin-top: 1rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .9rem;
}

.grad {
  background: linear-gradient(100deg, var(--gold-hot) 0%, var(--gold) 38%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* el recorte a texto corta los descendentes: se amplía la caja sin mover el flujo */
  padding-bottom: .14em;
  margin-bottom: -.14em;
}

.unit { font-size: .55em; color: var(--text-faint); font-weight: 500; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .94rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn-lg { padding: .95rem 1.9rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-hot), var(--gold));
  color: #1A1206;
  box-shadow: 0 10px 30px -12px rgba(233, 180, 76, .8);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(233, 180, 76, .95); }

.btn-outline { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn-outline:hover { border-color: var(--violet); background: rgba(124, 92, 255, .12); }

.btn-ghost { color: var(--text-dim); padding-inline: .6rem; }
.btn-ghost:hover { color: var(--text); }

.link-btn {
  background: none; border: 0; padding: 0; margin-top: 1.5rem;
  color: var(--gold); font-family: var(--font-body); font-weight: 700;
  font-size: .94rem; cursor: pointer;
}
.link-btn:hover { color: var(--gold-hot); }

/* ---------- Chips ---------- */
.chip {
  font-family: var(--font-mono);
  font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--line);
  white-space: nowrap;
}
.chip-live { color: var(--good); border-color: rgba(78, 214, 161, .35); }
.chip-bad  { color: var(--bad);  border-color: rgba(255, 107, 107, .35); background: rgba(255,107,107,.08); }
.chip-good { color: var(--good); border-color: rgba(78, 214, 161, .35); background: rgba(78,214,161,.08); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: rgba(11, 9, 16, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(11, 9, 16, .94); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; color: var(--gold); display: block; flex: none; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--font-display); font-weight: 800; font-size: .98rem; letter-spacing: .1em;
}
.brand-text em {
  font-style: normal; font-family: var(--font-mono);
  font-size: .6rem; letter-spacing: .34em; color: var(--gold); margin-top: .28rem;
}

.nav { display: flex; align-items: center; gap: 1.85rem; }
.nav > a {
  text-decoration: none; color: var(--text-dim); font-size: .94rem; font-weight: 500;
  transition: color .18s ease;
}
.nav > a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 9px;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 0 0 auto; top: calc(72px + env(safe-area-inset-top, 0px));
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.6rem;
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav > a { padding: .95rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: .6rem; margin-top: 1.2rem; }
  .nav-actions .btn { width: 100%; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding-block: clamp(3.5rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% -10% auto; height: 760px; pointer-events: none;
  background:
    radial-gradient(48% 52% at 22% 34%, rgba(124, 92, 255, .30), transparent 68%),
    radial-gradient(38% 44% at 78% 18%, rgba(233, 180, 76, .16), transparent 70%);
}
.hero::after {
  /* trama vibranium */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    repeating-linear-gradient(60deg,  var(--line-soft) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(-60deg, var(--line-soft) 0 1px, transparent 1px 64px);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 78%);
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
}
.hero-copy .lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--text-dim);
  max-width: 34em;
  margin-top: 1.5rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.1rem; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem);
  list-style: none; margin: 3rem 0 0; padding: 2rem 0 0;
  border-top: 1px solid var(--line);
}
.hero-stats li { display: flex; flex-direction: column; gap: .2rem; }
.hero-stats strong {
  font-family: var(--font-display); font-size: 1.65rem; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--gold);
}
.hero-stats span { font-size: .84rem; color: var(--text-faint); }

/* Panel de señales */
.hero-panel {
  background: linear-gradient(168deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.05);
}
.panel-head { display: flex; align-items: center; gap: .6rem; }
.panel-title { font-size: .98rem; font-weight: 600; flex: 1; }
.panel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(78,214,161,.15); }
.panel-sub { font-family: var(--font-mono); font-size: .72rem; color: var(--text-faint); margin: .5rem 0 1.4rem; }

.signal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.05rem; }
.signal { display: grid; grid-template-columns: 1fr auto; gap: .45rem .75rem; align-items: baseline; }
.signal-name { grid-area: 1 / 1; font-size: .86rem; color: var(--text-dim); }
.signal-val {
  grid-area: 1 / 2; text-align: right;
  font-family: var(--font-mono); font-size: .82rem; color: var(--gold); font-variant-numeric: tabular-nums;
}
.signal-track {
  grid-area: 2 / 1 / 3 / -1; height: 6px; border-radius: 999px;
  background: rgba(255,255,255,.07); overflow: hidden;
}
.signal-fill {
  display: block; height: 100%; width: var(--val, 0%); border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  transform-origin: left; animation: grow 1.1s cubic-bezier(.22,.8,.3,1) both;
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .signal-fill { animation: none; } }

.panel-foot {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--text-faint);
}
.panel-foot strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--text); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { order: 2; }
}

/* =========================================================
   TIRA DE PLATAFORMAS
   ========================================================= */
.strip { padding-block: 2.5rem; border-block: 1px solid var(--line-soft); background: var(--ink-2); }
.strip-label {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-faint); text-align: center; margin: 0 0 1.4rem;
}
.logo-row {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .8rem clamp(1.2rem, 4vw, 2.8rem);
}
.logo-row li {
  font-family: var(--font-display); font-size: clamp(.92rem, 1.7vw, 1.15rem);
  font-weight: 400; color: var(--text-dim); opacity: .78;
  transition: opacity .2s ease, color .2s ease;
}
.logo-row li:hover { opacity: 1; color: var(--text); }

/* =========================================================
   BLOQUES PARTIDOS
   ========================================================= */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
}
.split-form { align-items: start; }
.split-copy p { color: var(--text-dim); max-width: 36em; }
.split-copy h2 + p { margin-top: 1.3rem; }

.check-list { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .8rem; }
.check-list li { position: relative; padding-left: 1.85rem; color: var(--text-dim); font-size: .96rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 11px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* =========================================================
   TARJETA DE AUDITORÍA
   ========================================================= */
.audit-card {
  margin: 0; padding: 1.6rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 34px 70px -44px rgba(0,0,0,.95);
}
.audit-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-faint);
}
.audit-score { display: flex; align-items: baseline; gap: .15rem; margin: 1.1rem 0 1.4rem; }
.audit-score strong { font-family: var(--font-display); font-size: 3.6rem; font-weight: 800; line-height: 1; }
.audit-bad  .audit-score strong { color: var(--bad); }
.audit-good .audit-score strong { color: var(--good); }
.audit-bad  { border-color: rgba(255,107,107,.22); }
.audit-good { border-color: rgba(78,214,161,.22); margin-top: 2.4rem; }

.audit-rows { margin: 0; display: grid; gap: 0; }
.audit-rows > div {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 0; border-top: 1px solid var(--line-soft);
}
.audit-rows dt { font-size: .88rem; color: var(--text-dim); }
.audit-rows dd {
  margin: 0; font-family: var(--font-mono); font-size: .92rem; font-variant-numeric: tabular-nums;
}
.audit-rows dd.bad  { color: var(--bad); }
.audit-rows dd.good { color: var(--good); }
.audit-note {
  margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line-soft);
  font-size: .8rem; color: var(--text-faint);
}

/* =========================================================
   TARJETAS Y REJILLAS
   ========================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.1rem; }

@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 860px)  { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px)  { .grid-4 { grid-template-columns: 1fr; } }

/* --- Tarjetas de señal --- */
.signal-card { display: flex; flex-direction: column; gap: .85rem; transition: border-color .2s ease, transform .2s ease; }
.signal-card:hover { border-color: rgba(124,92,255,.45); transform: translateY(-3px); }
.card-index {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--violet);
}
.signal-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.tag {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(233,180,76,.3); border-radius: 999px; padding: .15rem .5rem;
}
.signal-card p { color: var(--text-dim); font-size: .92rem; margin: 0; }

/* Maquetas dentro de las tarjetas */
.mock {
  margin-top: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  background: rgba(0,0,0,.28); padding: .85rem; font-size: .78rem;
}
.mock-chat p { margin: 0; font-size: .78rem; }
.mock-q { color: var(--text-faint); }
.mock-a { color: var(--text-dim); margin-top: .5rem !important; }
.mock-a mark { background: rgba(233,180,76,.16); color: var(--gold); padding: 0 .15rem; border-radius: 3px; }

.mock-player { display: flex; align-items: center; gap: .7rem; }
.mock-player .play {
  width: 22px; height: 22px; border-radius: 50%; background: var(--gold); flex: none; position: relative;
}
.mock-player .play::after {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%);
  border-left: 7px solid #1A1206; border-block: 4.5px solid transparent;
}
.mock-player .wave { display: flex; align-items: center; gap: 3px; flex: 1; height: 22px; }
.mock-player .wave i {
  flex: 1; background: var(--violet); border-radius: 2px; opacity: .8;
  height: 30%;
}
.mock-player .wave i:nth-child(2n)   { height: 70%; }
.mock-player .wave i:nth-child(3n)   { height: 100%; opacity: .55; }
.mock-player .wave i:nth-child(4n+1) { height: 45%; }
.mock-time { font-family: var(--font-mono); font-size: .7rem; color: var(--text-faint); }

.mock-press { display: flex; flex-wrap: wrap; gap: .4rem; }
.mock-press span {
  font-family: var(--font-display); font-size: .68rem; color: var(--text-dim);
  border: 1px solid var(--line-soft); border-radius: 6px; padding: .2rem .45rem;
}

.mock-serp { display: grid; gap: .4rem; }
.serp-row { font-family: var(--font-mono); font-size: .72rem; color: var(--text-faint); display: flex; gap: .55rem; }
.serp-row b { color: var(--text-faint); font-weight: 500; }
.serp-row.serp-1 { color: var(--gold); }
.serp-row.serp-1 b { color: var(--gold); }

/* --- Pasos --- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto minmax(0,1fr); gap: 1.4rem; align-items: start;
  padding: 1.7rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(120deg, var(--surface), rgba(22,18,31,.4));
}
.step-num {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 800;
  width: 56px; height: 56px; flex: none;
  display: grid; place-items: center; border-radius: 14px;
  color: var(--gold); border: 1px solid rgba(233,180,76,.28);
  background: rgba(233,180,76,.07);
}
.step h3 { font-size: 1.25rem; }
.step-when {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--violet); margin: .5rem 0 .8rem;
}
.step p:last-child { color: var(--text-dim); margin: 0; max-width: 60ch; }
@media (max-width: 560px) { .step { grid-template-columns: 1fr; gap: 1rem; } }

/* --- Casos --- */
.case-card { display: flex; flex-direction: column; gap: .9rem; }
.case-sector { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin: 0; }
.case-metric { display: flex; flex-direction: column; gap: .15rem; margin: 0; }
.case-metric strong {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; line-height: 1;
  color: var(--gold); font-variant-numeric: tabular-nums;
}
.case-metric span { font-size: .84rem; color: var(--text-faint); }
.case-card > p { color: var(--text-dim); font-size: .93rem; margin: 0; }
.case-card blockquote {
  margin: auto 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line-soft);
  font-size: .92rem; color: var(--text); font-style: italic;
}
.case-card cite {
  display: block; margin-top: .7rem; font-style: normal;
  font-family: var(--font-mono); font-size: .7rem; color: var(--text-faint); letter-spacing: .02em;
}

/* --- Sectores --- */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.tags a {
  display: block; text-decoration: none;
  padding: .55rem 1.05rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-dim); font-size: .9rem;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.tags a:hover { border-color: var(--gold); color: var(--gold); background: rgba(233,180,76,.07); }

/* --- Complementos --- */
.addon-card { padding: 1.8rem; }
.addon-card h3 { font-size: 1.3rem; }
.addon-card > p { color: var(--text-dim); margin-top: .9rem; }
.addon-card .check-list { margin-top: 1.4rem; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: inherit; margin: 0; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 400; color: var(--text);
  text-align: left; line-height: 1.35;
}
.faq-q:hover { color: var(--gold); }
.faq-icon { position: relative; width: 14px; height: 14px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; inset: 50% 0 auto; height: 2px; background: var(--gold);
  border-radius: 2px; transition: transform .22s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding-bottom: 1.4rem; }
.faq-a p { margin: 0; color: var(--text-dim); max-width: 68ch; font-size: .96rem; }

/* =========================================================
   FORMULARIO
   ========================================================= */
.cta-section { position: relative; overflow: hidden; }
.cta-section::before {
  content: ""; position: absolute; inset: auto -20% -60% 20%; height: 540px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(124,92,255,.22), transparent 70%);
}
.cta-section .shell { position: relative; z-index: 1; }

.form { padding: clamp(1.5rem, 3vw, 2.1rem); display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.form label {
  font-size: .82rem; font-weight: 600; color: var(--text-dim); letter-spacing: .01em;
}
.optional { font-weight: 400; color: var(--text-faint); }

.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; padding: .78rem .9rem;
  background: rgba(0,0,0,.3); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .95rem;
  transition: border-color .18s ease, background-color .18s ease;
}
.form textarea { resize: vertical; min-height: 92px; }
.form select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-faint) 50%), linear-gradient(135deg, var(--text-faint) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: 2.4rem;
}
.form select option { background: var(--surface-2); color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--violet); background: rgba(124,92,255,.07); outline: none;
}
.form [aria-invalid="true"] { border-color: var(--bad); }

.checkbox { display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; font-weight: 400 !important; }
.checkbox input { width: 18px; height: 18px; margin: .15rem 0 0; accent-color: var(--gold); flex: none; }
.checkbox span { font-size: .85rem; color: var(--text-dim); }
.checkbox a { color: var(--gold); }

.error { margin: 0; font-size: .78rem; color: var(--bad); min-height: 0; }
.error:empty { display: none; }

.form-note { margin: 0; text-align: center; font-size: .78rem; color: var(--text-faint); }
.form-success {
  margin: 0; padding: .9rem 1rem; border-radius: var(--radius-sm);
  background: rgba(78,214,161,.1); border: 1px solid rgba(78,214,161,.3);
  color: var(--good); font-size: .9rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink-2); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-top {
  display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 2.45fr);
  gap: clamp(2.5rem, 5vw, 4rem);
}
.footer-brand p { color: var(--text-faint); font-size: .9rem; margin-top: 1.2rem; max-width: 30ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)) minmax(250px, 1.5fr); gap: 2rem; }
.footer-cols h4 {
  font-family: var(--font-mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-cols a { color: var(--text-dim); text-decoration: none; font-size: .88rem; }
.footer-cols a:hover { color: var(--text); }
/* Newsletter del pie */
.footer-news p { font-size: .85rem; color: var(--text-faint); margin: 0 0 1.1rem; }
.news-row { display: flex; gap: .5rem; }
.news-row input {
  flex: 1; min-width: 0; padding: .62rem .8rem;
  background: rgba(0,0,0,.34); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .88rem;
  transition: border-color .18s ease, background-color .18s ease;
}
.news-row input::placeholder { color: var(--text-faint); }
.news-row input:focus { border-color: var(--violet); background: rgba(124,92,255,.07); outline: none; }
.news-row input[aria-invalid="true"] { border-color: var(--bad); }
.news-row .btn { flex: none; padding: .62rem 1.1rem; font-size: .85rem; }
.news-note { font-size: .74rem !important; color: var(--text-faint); margin: .7rem 0 0 !important; }
.news-form .error { margin-top: .5rem; }
.news-form .form-success { margin-top: .8rem; font-size: .82rem; }
.footer-mail { margin-top: 1.4rem !important; }

.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;
}

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.6rem; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--text-faint);
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
.footer-bottom a { color: var(--text-faint); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-news { grid-column: 1 / -1; max-width: 32rem; }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
  .news-row { flex-wrap: wrap; }
  .news-row .btn { width: 100%; }
}

/* =========================================================
   APARICIÓN AL HACER SCROLL
   ========================================================= */
.is-hidden { opacity: 0; transform: translateY(22px); }
[data-reveal] { transition: opacity .6s ease, transform .6s cubic-bezier(.22,.8,.3,1); }
@media (prefers-reduced-motion: reduce) {
  .is-hidden { opacity: 1; transform: none; }
  [data-reveal] { transition: none; }
}

/* =========================================================
   BANNER DE COOKIES
   ========================================================= */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  padding: 1.1rem var(--gutter);
  padding-bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  background: rgba(17, 14, 26, .97);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -24px 50px -30px rgba(0,0,0,.95);
}
/* La posición en reposo es la correcta: la entrada es una animación, no una
   transición, para que el banner nunca se quede a medio camino si el navegador
   la pausa (pestaña en segundo plano) o no llega a ejecutarla. */
@media (prefers-reduced-motion: no-preference) {
  .cookie-banner { animation: cookie-in .3s cubic-bezier(.22,.8,.3,1); }
}
.cookie-banner.is-leaving { animation: cookie-out .24s ease-in both; }

@keyframes cookie-in  { from { transform: translateY(102%); } to { transform: translateY(0); } }
@keyframes cookie-out { to { transform: translateY(102%); opacity: 0; } }

.cookie-inner {
  width: 100%; max-width: var(--shell); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(1rem, 3vw, 2.5rem);
}
.cookie-copy { flex: 1; min-width: 0; }
.cookie-copy h2 {
  font-size: .78rem; font-family: var(--font-mono); font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  margin-bottom: .5rem;
}
.cookie-copy p { margin: 0; font-size: .87rem; color: var(--text-dim); max-width: 78ch; }
.cookie-copy a { color: var(--gold); }

.cookie-actions { display: flex; gap: .6rem; flex: none; }
.cookie-actions .btn { padding: .62rem 1.3rem; font-size: .88rem; }

@media (max-width: 760px) {
  .cookie-inner { flex-direction: column; align-items: stretch; gap: 1rem; }
  .cookie-actions .btn { flex: 1; }
}

