/* ==========================================================================
   EL CÓDIGO DE LA DISCIPLINA · Sistema Obsidian & Deep Cobalt
   Diseño de alta conversión para venta de infoproducto y captación de leads.
   Estética estoica, sobria y premium: oscuro profundo, acentos cobalto y oro.
   ========================================================================== */

:root {
  /* Superficies oscuras con profundidad */
  --bg-page: #080c14;
  --bg-surface: #0d1527;
  --bg-card: #121d33;
  --bg-card-hover: #162442;
  --bg-ice: #102144;
  --surface: #0f1a30;
  
  /* Bordes y líneas */
  --line: rgba(148, 163, 184, 0.12);
  --line-strong: rgba(148, 163, 184, 0.24);
  --line-accent: rgba(59, 130, 246, 0.4);
  --line-gold: rgba(245, 158, 11, 0.35);

  /* Acento Cobalto */
  --cobalt: #3b82f6;
  --cobalt-deep: #2563eb;
  --cobalt-soft: #60a5fa;
  --cobalt-glow: rgba(37, 99, 235, 0.35);

  /* Acento Oro / Brass estoico */
  --brass: #f59e0b;
  --brass-soft: #fbbf24;
  --brass-deep: #b45309;
  --brass-glow: rgba(245, 158, 11, 0.25);

  /* Estados */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);

  /* Tipografía y Textos */
  --text-hi: #f8fafc;
  --text-body: #cbd5e1;
  --text-mute: #8193af;
  --text-dim: #546581;

  --f-display: "Syne", system-ui, -apple-system, sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-serif: "Cinzel", Georgia, serif;

  /* Espaciados rítmicos */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 80px;
  --s-8: 104px;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* Sombras y elevaciones */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-raise: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--line);
  --shadow-float: 0 16px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px -5px var(--cobalt-glow);
  --shadow-gold: 0 12px 35px -8px var(--brass-glow);
  
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1180px;
  --col: min(100% - 40px, var(--wrap));
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-page);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg-page);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.15), transparent 70%),
    radial-gradient(circle at 100% 40%, rgba(30, 58, 138, 0.08), transparent 45%);
  background-attachment: fixed;
  color: var(--text-body);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--cobalt-deep);
  color: #ffffff;
}

/* ==========================================================================
   Estructura & Secciones
   ========================================================================== */
.wrap {
  width: var(--col);
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.section {
  position: relative;
  padding: var(--s-7) 0;
  border-bottom: 1px solid var(--line);
}

.section--hero {
  padding: var(--s-6) 0 var(--s-7);
  background: radial-gradient(circle at 50% 10%, rgba(37, 99, 235, 0.12) 0%, transparent 65%);
}

.section--void {
  background: var(--bg-page);
}

.section--noir {
  background: var(--bg-surface);
  position: relative;
}

.section--noir::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.section--ice {
  background: linear-gradient(180deg, rgba(16, 33, 68, 0.6) 0%, var(--bg-page) 100%);
  border-top: 1px solid var(--line-accent);
}

.section--dark {
  background: linear-gradient(135deg, #091326 0%, #112347 50%, #060c18 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.section--tight {
  padding: var(--s-4) 0;
}

.section > .wrap {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Etiquetas Mono & Kicker
   ========================================================================== */
.tag {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cobalt-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--s-2);
}

.tag::before {
  content: "";
  width: 20px;
  height: 2px;
  background: currentColor;
  opacity: 0.8;
  border-radius: 2px;
}

.tag--brass {
  color: var(--brass-soft);
}

.tag--ink {
  color: var(--cobalt-soft);
}

/* Badges destacados */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt-soft);
  margin-bottom: var(--s-3);
}

.badge-pill--gold {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--brass-soft);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* ==========================================================================
   Titulares & Textos
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--text-hi);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.h-hero {
  font-size: clamp(38px, 5.8vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.h-1 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.h-2 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.h-3 {
  font-size: 20px;
  line-height: 1.35;
}

.h-4 {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.lead {
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.7;
  color: var(--text-body);
  max-width: 64ch;
}

.muted {
  color: var(--text-mute);
}

.accent {
  color: var(--cobalt-soft);
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent-gold {
  color: var(--brass-soft);
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 60%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p {
  margin: 0 0 var(--s-3);
}

p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Botones de Acción (CTAs de Alta Conversión)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-md);
  padding: 17px 32px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px -4px rgba(37, 99, 235, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}

.btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 12px 30px -6px rgba(37, 99, 235, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn:hover::after {
  transform: translateX(100%);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid var(--cobalt-soft);
  outline-offset: 3px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.btn--gold {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 6px 24px -4px rgba(217, 119, 6, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--gold:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 12px 30px -6px rgba(245, 158, 11, 0.75);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-hi);
  border-color: var(--line-strong);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: var(--cobalt);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.25);
}

.btn--wide {
  width: 100%;
}

.btn-note {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: var(--s-2);
}

/* Enlaces de texto */
.link {
  color: var(--cobalt-soft);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(96, 165, 250, 0.4);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link:hover {
  color: #ffffff;
  border-color: var(--cobalt);
}

.link:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   Tarjetas & Grids
   ========================================================================== */
.grid {
  display: grid;
  gap: var(--s-3);
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-fixed-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .grid-fixed-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-raise);
  position: relative;
  transition: transform 0.35s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  backdrop-filter: blur(8px);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-accent);
  box-shadow: var(--shadow-float);
  background: var(--bg-card-hover);
}

.card .num {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--cobalt-soft);
  display: block;
  margin-bottom: var(--s-2);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--text-body);
}

/* ==========================================================================
   Sentencia / Pull Quote Estoica
   ========================================================================== */
.pull {
  border-left: 3px solid var(--cobalt);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.08) 0%, transparent 100%);
  padding: var(--s-3) var(--s-4);
  margin: var(--s-5) 0 0;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  max-width: 32ch;
}

.pull p {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--text-hi);
  margin: 0;
}

.pull span {
  color: var(--cobalt-soft);
  display: block;
  margin-top: 4px;
}

/* ==========================================================================
   Hoja Editorial (Sheet)
   ========================================================================== */
.paper {
  background: var(--bg-surface);
  border-block: 1px solid var(--line);
}

.sheet {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-float);
  position: relative;
}

.sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cobalt), transparent);
}

.sheet-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: var(--s-4);
}

.sheet-head span:nth-child(2) {
  color: var(--cobalt-soft);
  text-align: center;
}

.sheet-head span:last-child {
  text-align: right;
}

.sheet p {
  color: var(--text-body);
}

.sheet .drop::first-letter {
  font-family: var(--f-display);
  font-size: 60px;
  line-height: 0.8;
  float: left;
  padding: 6px 14px 0 0;
  color: var(--cobalt-soft);
}

.sheet-quote {
  font-family: var(--f-display);
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-hi);
  border-left: 3px solid var(--brass);
  background: rgba(245, 158, 11, 0.05);
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: var(--s-4) 0;
}

.sheet-quote span {
  color: var(--brass-soft);
  display: block;
  margin-top: 6px;
}

/* ==========================================================================
   Índice de Contenido
   ========================================================================== */
.toc {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--s-2);
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background 0.2s var(--ease);
}

.toc li:hover strong {
  color: var(--cobalt-soft);
}

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--cobalt-soft);
  letter-spacing: 0.1em;
}

.toc strong, .toc em {
  grid-column: 2;
}

.toc strong {
  font-family: var(--f-display);
  font-size: 16.5px;
  color: var(--text-hi);
  letter-spacing: -0.01em;
  display: block;
  transition: color 0.2s var(--ease);
}

.toc .part {
  grid-column: 1 / -1;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-soft);
  background: rgba(245, 158, 11, 0.08);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(245, 158, 11, 0.2);
  margin-top: var(--s-3);
  counter-increment: none;
}

.toc .part::before {
  content: "";
}

/* ==========================================================================
   Figuras & Esquemas Vectoriales
   ========================================================================== */
.figure {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  background: var(--bg-card);
  box-shadow: var(--shadow-raise);
}

.figure-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cobalt-soft);
  margin-bottom: var(--s-3);
}

.figure svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.figure-caption {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-mute);
  margin-top: var(--s-3);
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
}

.fig-strong {
  fill: var(--text-hi);
  font-family: var(--f-mono);
  font-size: 1em;
  letter-spacing: 0.06em;
}

.fig-accent {
  fill: var(--cobalt-soft);
  font-family: var(--f-mono);
  font-size: 1em;
  letter-spacing: 0.06em;
}

.fig-mute {
  fill: var(--text-mute);
  font-family: var(--f-mono);
  font-size: 0.85em;
  letter-spacing: 0.08em;
}

.fig-on {
  fill: #ffffff;
  font-family: var(--f-mono);
  font-size: 0.92em;
  letter-spacing: 0.06em;
}

.fig-box {
  fill: #0c1424;
  stroke: var(--line-strong);
}

.fig-box-soft {
  fill: rgba(37, 99, 235, 0.18);
  stroke: var(--cobalt);
}

.fig-box-dash {
  fill: none;
  stroke: var(--line-strong);
  stroke-dasharray: 3 3;
}

.fig-line {
  stroke: var(--cobalt);
  fill: none;
}

.fig-fill {
  fill: var(--cobalt-deep);
}

/* ==========================================================================
   Planchas con Imagen (3 Cuerpos & Portada)
   ========================================================================== */
.plate {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  isolation: isolate;
  background: #090f1d;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-float);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.plate:hover {
  transform: translateY(-3px);
  border-color: var(--line-accent);
}

.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.95);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.plate:hover img {
  transform: scale(1.03);
  filter: contrast(1.1) brightness(1.02);
}

.plate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(8, 12, 20, 0.95) 5%, rgba(8, 12, 20, 0.4) 55%, transparent);
}

.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  mix-blend-mode: overlay;
  background: radial-gradient(circle at 50% 100%, rgba(37, 99, 235, 0.3), transparent 70%);
}

.plate-body {
  position: absolute;
  z-index: 3;
  inset: auto 0 0 0;
  padding: var(--s-4);
  color: var(--text-body);
}

.plate-body h1, .plate-body h2, .plate-body h3, .plate-body .h-2, .plate-body .h-3 {
  color: #ffffff;
}

.plate--soft::before {
  background: linear-gradient(to top, rgba(8, 12, 20, 0.92) 5%, rgba(8, 12, 20, 0.35) 60%, transparent);
}

.plate--soft img {
  filter: brightness(1.15) contrast(1.05);
}

/* ==========================================================================
   Sello / Motto
   ========================================================================== */
.motto {
  border-block: 1px solid var(--line);
  padding: var(--s-4) 0;
  margin-top: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: baseline;
  justify-content: space-between;
}

.motto-text {
  font-family: var(--f-serif);
  font-size: clamp(17px, 1.8vw, 22px);
  color: var(--text-hi);
  letter-spacing: 0.02em;
}

.motto-code {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-soft);
}

/* ==========================================================================
   Formulario de Captura de Leads
   ========================================================================== */
.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 580px;
  position: relative;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.form input[type=email],
.form input[type=text] {
  flex: 1 1 240px;
  min-width: 0;
  font-family: var(--f-body);
  font-size: 16px;
  color: #ffffff;
  background: rgba(13, 21, 39, 0.9);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 17px 20px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.form input[type=email]::placeholder,
.form input[type=text]::placeholder {
  color: #64748b;
}

.form input[type=email]:focus,
.form input[type=text]:focus {
  outline: none;
  border-color: var(--cobalt);
  background: #101c36;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-note {
  font-size: 13.5px;
  color: var(--text-mute);
  margin-top: var(--s-2);
  max-width: 58ch;
}

.form-status {
  display: none;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  line-height: 1.65;
  margin-top: var(--s-3);
  padding: 16px 20px;
  border-radius: var(--r-md);
  max-width: 580px;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-ok {
  background: var(--success-bg);
  border: 1px solid var(--success);
  color: #a7f3d0;
}

.form-status.is-err {
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  color: #fca5a5;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Listas de Verificación y Filtro
   ========================================================================== */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.list li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--cobalt-soft);
}

.list--no li::before {
  background: var(--brass-soft);
}

/* ==========================================================================
   Preguntas Frecuentes (FAQ Accordion)
   ========================================================================== */
.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.faq details[open] {
  border-color: var(--line-accent);
  background: var(--bg-card-hover);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 54px 22px 24px;
  position: relative;
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--text-hi);
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 18px;
  font-family: var(--f-mono);
  font-size: 22px;
  color: var(--cobalt-soft);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--brass-soft);
}

.faq summary:hover {
  color: var(--cobalt-soft);
}

.faq summary:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.faq .answer {
  padding: 0 24px 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
}

/* ==========================================================================
   Barra de Datos / Stats
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: var(--shadow-raise);
}

.stats div {
  padding: var(--s-3) var(--s-4);
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.stats div:last-child {
  border-right: 0;
}

.stats b {
  display: block;
  font-family: var(--f-display);
  font-size: 28px;
  color: var(--text-hi);
  letter-spacing: -0.02em;
}

.stats span {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ==========================================================================
   Caja de Oferta (Pricing Card)
   ========================================================================== */
.offer {
  background: var(--bg-card);
  border: 2px solid var(--cobalt);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-float);
  position: relative;
}

.offer::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--r-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--cobalt), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: var(--s-1);
}

.price b {
  font-family: var(--f-display);
  font-size: clamp(40px, 5.5vw, 58px);
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.price span {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  text-transform: uppercase;
}

/* Fallback de Hotmart */
.checkout-fallback {
  display: none;
  background: rgba(16, 28, 54, 0.7);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: var(--s-4);
  text-align: center;
}

.checkout-fallback.is-visible {
  display: block;
}

/* ==========================================================================
   Sellos de Confianza y Garantía
   ========================================================================== */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.trust-item svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--cobalt-soft);
  stroke-width: 2;
}

/* ==========================================================================
   Cabecera Flotante (Topbar)
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 12, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
  background: #090f1d;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.25);
  flex: 0 0 auto;
}

.brand b {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.topbar .btn {
  padding: 12px 22px;
  font-size: 11.5px;
}

/* ==========================================================================
   Barra Inferior Pegajosa de Compra (Sticky Buy Bar)
   ========================================================================== */
.sticky-buy-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 55;
  background: rgba(8, 12, 20, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-accent);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
  padding: 12px 0;
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}

.sticky-buy-bar.is-visible {
  transform: translateY(0);
}

.sticky-buy-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.sticky-product {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sticky-product-title {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.sticky-product-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}

.sticky-price-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sticky-price {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.sticky-buy-bar .btn {
  padding: 12px 24px;
  font-size: 12px;
}

/* ==========================================================================
   MODAL DE CHECKOUT EMBEBIDO DE HOTMART
   Se activa interactivamente al hacer clic en "Comprar"
   ========================================================================== */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.checkout-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.checkout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.checkout-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  overflow-y: auto;
  background: #0b1120;
  border: 1px solid var(--line-accent);
  border-radius: var(--r-xl);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px -10px var(--cobalt-glow);
  transform: scale(0.94) translateY(20px);
  transition: transform 0.4s var(--ease);
  display: grid;
  grid-template-columns: 360px 1fr;
}

.checkout-modal.is-open .checkout-dialog {
  transform: scale(1) translateY(0);
}

.checkout-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--text-mute);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.checkout-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: rotate(90deg);
}

/* Columna Izquierda: Resumen del Pedido */
.checkout-summary {
  background: #080c16;
  border-right: 1px solid var(--line);
  padding: var(--s-5) var(--s-4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.checkout-summary-head {
  margin-bottom: var(--s-4);
}

.checkout-product-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
  margin-top: var(--s-2);
}

.checkout-product-card img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.checkout-deliverables {
  list-style: none;
  padding: 0;
  margin: var(--s-3) 0 0;
  display: grid;
  gap: 8px;
}

.checkout-deliverables li {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-deliverables li svg {
  width: 14px;
  height: 14px;
  stroke: var(--success);
  fill: none;
  stroke-width: 2.5;
  flex-shrink: 0;
}

.checkout-guarantee-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--r-md);
  padding: 14px;
  margin-top: var(--s-4);
}

.checkout-guarantee-box b {
  display: block;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--brass-soft);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.checkout-guarantee-box p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-mute);
  margin: 0;
}

/* Columna Derecha: Ranura de Hotmart Checkout */
.checkout-body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 480px;
}

#inline_checkout {
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-mute);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   Pie de Página (Footer)
   ========================================================================== */
.foot {
  background: #05080e;
  border-top: 1px solid var(--line);
  padding: var(--s-6) 0 var(--s-5);
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  align-items: flex-start;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}

.foot a {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.foot a:hover {
  color: var(--cobalt-soft);
}

.foot a:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

.foot-legal {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: var(--s-5);
  line-height: 1.7;
  max-width: 78ch;
}

/* ==========================================================================
   Maqueta 3D de Portada (Cover)
   ========================================================================== */
.cover {
  perspective: 1400px;
}

.cover-sheet {
  background: #0a1122;
  color: #c8d3e8;
  border: 1px solid rgba(160, 188, 255, 0.25);
  border-radius: var(--r-md);
  padding: 30px 28px 24px;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.8), 0 0 35px -10px rgba(37, 99, 235, 0.35);
  transform: rotateY(-9deg) rotateX(2deg);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.cover:hover .cover-sheet {
  transform: rotateY(-3deg) rotateX(1deg) translateY(-6px);
  box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.9), 0 0 45px -5px rgba(37, 99, 235, 0.5);
}

.cover-head, .cover-foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fa0c4;
}

.cover-head {
  border-bottom: 1px solid rgba(160, 188, 255, 0.18);
  padding-bottom: 12px;
}

.cover-foot {
  border-top: 1px solid rgba(160, 188, 255, 0.18);
  padding-top: 12px;
  margin-top: auto;
}

.cover-kicker {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cobalt-soft);
  margin: 22px 0 12px;
}

.cover-title {
  font-family: var(--f-display);
  font-size: 34px;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 10px;
}

.cover-sub {
  font-size: 13px;
  line-height: 1.5;
  color: #a9b8d6;
  margin: 0;
}

.cover-rule {
  height: 2px;
  background: var(--cobalt);
  width: 48px;
  margin: 18px 0;
}

.cover-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.cover-list li {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #a9b8d6;
}

.cover-list .is-accent {
  color: var(--cobalt-soft);
  font-weight: 600;
}

/* ==========================================================================
   Hero Layouts
   ========================================================================== */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--s-6);
  align-items: center;
}

.hero-grid > div:first-child {
  max-width: 680px;
}

.hero-manual {
  padding-top: var(--s-6);
}

.indice-grid {
  display: grid;
  gap: var(--s-5);
}

@media (min-width: 900px) {
  .indice-grid {
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: var(--s-6);
    align-items: start;
  }
  .indice-grid > div:first-child {
    position: sticky;
    top: 90px;
  }
}

/* Plancha de Cierre */
.plate--cierre {
  aspect-ratio: 21 / 9;
  min-height: 440px;
}

@media (max-width: 820px) {
  .plate--cierre {
    aspect-ratio: auto;
    min-height: 0;
  }
  .plate--cierre img {
    aspect-ratio: 16 / 10;
  }
  .plate--cierre .plate-body {
    position: relative;
    inset: auto;
    padding: var(--s-4) var(--s-3);
  }
}

/* ==========================================================================
   Revelado al hacer Scroll (Reveal animations)
   ========================================================================== */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  html.js .reveal, html.js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .cover {
    max-width: 320px;
    margin-top: var(--s-4);
  }
  .checkout-dialog {
    grid-template-columns: 1fr;
    max-height: 96vh;
  }
  .checkout-summary {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: var(--s-3);
  }
  .checkout-body {
    padding: var(--s-3);
  }
}

@media (max-width: 860px) {
  .section {
    padding: var(--s-5) 0;
  }
  .stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .stats div:last-child {
    border-bottom: 0;
  }
  .pull {
    margin: var(--s-4) 0 0;
    max-width: none;
  }
  .sticky-product {
    display: none;
  }
  .sticky-buy-bar .wrap {
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  .brand b {
    font-size: 9px;
    letter-spacing: 0.05em;
  }
  .sheet {
    padding: var(--s-3);
  }
  .btn {
    width: 100%;
    padding: 16px 20px;
  }
  .topbar .btn {
    width: auto;
    padding: 10px 14px;
    font-size: 10.5px;
  }
  .wide-only {
    display: none;
  }
  .plate-body {
    padding: var(--s-3);
  }
  .toc li {
    grid-template-columns: 36px 1fr;
  }
}
