/* ==========================================================================
   Cryptoanarquista_SV — Estilos base
   ========================================================================== */

:root {
  --bg: #fafafa;
  --bg-alt: #f2f2f0;
  --bg-card: #ffffff;
  --border: #e3e2de;
  --orange: #d4af37;       /* acento dorado (Bitcoin) — fondos, bordes, badges */
  --orange-dark: #b8952e;
  --gold-text: #8f6f16;    /* dorado oscurecido, con contraste AA sobre fondo claro */
  --orange-glow: rgba(212, 175, 55, 0.30);
  --orange-tint: rgba(212, 175, 55, 0.10);
  --on-accent: #1a1a1a;    /* texto sobre fondos de acento (dorado / verde) */
  --text: #1a1a1a;
  --text-dim: #5c5c5c;
  --green: #1e9e56;
  --red: #d6423d;
  --btc-orange: #f7931a;   /* acento naranja Bitcoin */
  --btc-orange-dark: #d97b12;
  --btc-orange-glow: rgba(247, 147, 26, 0.30);
  --btc-orange-tint: rgba(247, 147, 26, 0.08);
  --shadow: 0 1px 2px rgba(20, 20, 20, 0.04), 0 8px 20px rgba(20, 20, 20, 0.06);
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --radius: 12px;
  --max-width: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: 20px;
}

.accent { color: var(--gold-text); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

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

/* Elevación compartida por todas las tarjetas/paneles sobre el fondo claro */
.countdown-unit,
.dca-form,
.dca-results,
.halving-projection,
.ret-block,
.ret-formula,
.highlight-card,
.service-card,
.nav-links.open {
  box-shadow: var(--shadow);
}

/* ---------- Ticker bar ---------- */
.ticker-bar {
  background: linear-gradient(90deg, var(--btc-orange), var(--orange));
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 12px;
  letter-spacing: 0.02em;
  flex-wrap: wrap;
  text-align: center;
  border-bottom: 3px solid var(--btc-orange);
}

.ticker-change.up { color: #0a3d1f; }
.ticker-change.down { color: #4a0e0e; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  white-space: nowrap;
}

.logo-mark {
  color: var(--btc-orange);
  margin-right: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:not(.nav-cta) {
  position: relative;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:not(.nav-cta):hover { color: var(--gold-text); border-bottom-color: var(--btc-orange); }

.nav-cta {
  background: var(--btc-orange);
  color: var(--on-accent) !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
}

.nav-cta:hover { background: var(--btc-orange-dark); }

/* ---------- Dropdown "Herramientas" ---------- */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0 0 4px;
  margin: 0;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--gold-text);
  border-bottom-color: var(--btc-orange);
}

.nav-caret {
  font-size: 0.7em;
  transition: transform 0.15s ease;
}

.nav-dropdown.open .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  list-style: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}

.nav-dropdown.open .nav-dropdown-menu { max-height: 220px; }

.nav-dropdown-menu a {
  display: block;
  padding: 10px 0 10px 14px;
  font-size: 0.9rem;
  color: var(--text-dim);
  border-left: 2px solid var(--border);
}

.nav-dropdown-menu a:hover { color: var(--gold-text); border-left-color: var(--btc-orange); }

/* En escritorio, el dropdown flota y se abre con hover (o con click/tap como respaldo) */
@media (min-width: 721px) {
  .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 200px;
    max-height: none;
    overflow: visible;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-dropdown-menu a {
    border-left: none;
    border-radius: 6px;
    padding: 9px 12px;
  }

  .nav-dropdown-menu a:hover { background: var(--btc-orange-tint); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--btc-orange);
  color: var(--on-accent);
  box-shadow: 0 0 0 rgba(247, 147, 26, 0);
}

.btn-primary:hover {
  background: var(--btc-orange-dark);
  box-shadow: 0 8px 24px var(--btc-orange-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--btc-orange);
  background: var(--btc-orange);
  color: var(--on-accent);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--on-accent);
}

.btn-whatsapp:hover { background: #1eb958; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35); }

.btn-full { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding-block: 90px 70px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, var(--orange-glow), transparent 60%),
    var(--bg);
}

.eyebrow {
  color: var(--gold-text);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.eyebrow-mark { color: var(--btc-orange); }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin-bottom: 22px;
}

.hero-phrase {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  max-width: 700px;
  margin: 0 auto 18px;
  color: var(--text);
}

.hero-sub {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- ¿Qué es Bitcoin? ---------- */
.btc-simple-intro {
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
  background: var(--orange-tint);
  border: 1px solid var(--orange-glow);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
}

.btc-simple-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
  background: var(--bg-card);
  border: 1px solid var(--orange-glow);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 14px;
}

.btc-simple-intro p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.5;
  color: var(--text);
}

.btc-explainer {
  max-width: 760px;
  margin: 0 auto;
}

.btc-explainer p {
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

.btc-explainer p:last-child { margin-bottom: 0; }

.btc-explainer strong { color: var(--text); }

.btc-diagram-wrap {
  max-width: 1040px;
  margin: 48px auto 0;
}

.btc-diagram {
  display: block;
  width: 100%;
  height: auto;
}

.diagram-caption {
  max-width: 640px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Versión mobile: lista vertical de pasos en vez del SVG (mejor lectura en pantallas chicas) */
.btc-steps {
  display: none;
  list-style: none;
  max-width: 560px;
  margin: 40px auto 0;
  flex-direction: column;
  gap: 14px;
}

.btc-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--btc-orange);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.btc-step-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border-radius: 999px;
  background: var(--bg-alt);
}

.btc-step h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.btc-step p {
  font-size: 0.83rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.btc-step-highlight { border-left-color: var(--orange-dark); }
.btc-step-highlight .btc-step-icon { background: var(--orange-tint); }

.btc-step-final { border-left-color: var(--orange-dark); }
.btc-step-final .btc-step-icon { background: var(--orange); color: var(--on-accent); }

.btc-step-discard {
  border-left-color: var(--red);
  border-left-style: dashed;
}
.btc-step-discard .btc-step-icon { background: rgba(214, 66, 61, 0.12); color: var(--red); }
.btc-step-discard h4 { color: var(--red); }

.btc-step-loop .btc-step-icon { background: var(--btc-orange-tint); color: var(--btc-orange); }

@media (max-width: 680px) {
  .btc-diagram-wrap { display: none; }
  .btc-steps { display: flex; }
}

/* Cajas del flujo */
.diagram-box {
  fill: var(--bg-card);
  stroke: var(--border);
  stroke-width: 1;
}

.diagram-box-race { stroke: var(--btc-orange-dark); stroke-width: 1.5; }
.diagram-box-final { fill: var(--bg-card); stroke: var(--btc-orange-dark); stroke-width: 1.5; }

.diagram-box-discard {
  fill: var(--bg-alt);
  stroke: var(--red);
  stroke-width: 1.25;
  stroke-dasharray: 4 4;
}

.diagram-icon { font-size: 18px; }
.diagram-icon-sm { font-size: 13px; }

.diagram-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  fill: var(--text);
}

.diagram-sub {
  font-family: var(--font-body);
  font-size: 11px;
  fill: var(--text-dim);
}

.diagram-discard-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  fill: var(--red);
}

.diagram-discard-sub {
  font-family: var(--font-body);
  font-size: 10.5px;
  fill: var(--text-dim);
}

/* Flechas */
.diagram-arrow { stroke: var(--gold-text); stroke-width: 2; fill: none; }
.diagram-arrow-dashed { stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 4 4; fill: none; }
.diagram-loop { stroke: var(--btc-orange); stroke-width: 2; stroke-dasharray: 6 5; fill: none; }

.diagram-arrowhead-gold { fill: var(--gold-text); }
.diagram-arrowhead-red { fill: var(--red); }
.diagram-arrowhead-orange { fill: var(--btc-orange); }

.diagram-loop-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  fill: var(--gold-text);
}

.diagram-loop-sub {
  font-family: var(--font-body);
  font-size: 10.5px;
  fill: var(--text-dim);
}

/* Nodos de la red (paso 2) */
.diagram-node { fill: var(--orange-dark); }
.diagram-node-link { stroke: var(--orange-dark); stroke-width: 1.25; }

/* Mineros compitiendo (paso 4) */
.diagram-node-miner {
  fill: var(--bg-alt);
  stroke: var(--border);
  stroke-width: 1;
  opacity: 0.65;
}

.diagram-node-miner-winner {
  fill: var(--btc-orange);
  stroke: var(--btc-orange-dark);
  stroke-width: 1.5;
}

.diagram-badge { fill: var(--btc-orange); stroke: var(--bg-card); stroke-width: 2; }
.diagram-badge-check {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  fill: var(--on-accent);
}

/* Cadena de bloques (paso 5) */
.diagram-chain-block { fill: var(--bg-alt); stroke: var(--border); stroke-width: 1; }
.diagram-chain-block-final { fill: var(--btc-orange); stroke: var(--btc-orange-dark); stroke-width: 1.5; }
.diagram-chain-link { stroke: var(--border); stroke-width: 2; }

@media (max-width: 640px) {
  .btc-explainer p { font-size: 0.95rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: 80px; }

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

.section-alt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--btc-orange);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 18px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: var(--btc-orange);
}

.section-lead {
  text-align: center;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 48px;
}

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.countdown-unit {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--btc-orange);
  border-radius: var(--radius);
  padding: 22px 26px;
  min-width: 110px;
  text-align: center;
}

.countdown-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--gold-text);
}

.countdown-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 4px;
}

.halving-meta {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.halving-meta p { color: var(--text-dim); margin-bottom: 14px; }

.progress-track {
  width: 100%;
  height: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--btc-orange));
  transition: width 0.6s ease;
}

.progress-caption {
  font-size: 0.85rem;
  margin-top: 10px !important;
}

/* ---------- DCA Calculator ---------- */
.dca-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}

.dca-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dca-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-top: 12px;
}

.dca-form input,
.dca-form select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-body);
}

.dca-form input:focus,
.dca-form select:focus {
  outline: none;
  border-color: var(--orange-dark);
}

.dca-form button { margin-top: 22px; }

.dca-results {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dca-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-dim);
  gap: 10px;
}

.dca-result-row:last-child { border-bottom: none; padding-bottom: 0; }

.dca-result-row strong {
  color: var(--text);
  font-family: var(--font-display);
  text-align: right;
}

.dca-result-highlight {
  background: var(--orange-tint);
  margin-inline: -14px;
  padding-inline: 14px;
  border-radius: 8px;
  border-bottom-color: transparent;
}

.dca-result-highlight strong { color: var(--gold-text); font-size: 1.15rem; }

.disclaimer {
  max-width: 700px;
  margin: 36px auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 16px 20px;
}

/* ---------- Proyección con halving (especulativa) ---------- */
.halving-projection {
  max-width: 900px;
  margin: 56px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 28px;
}

.projection-header h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.badge-speculative {
  background: var(--orange-tint);
  color: var(--gold-text);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--orange-glow);
}

.projection-warning {
  background: var(--orange-tint);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.projection-warning strong { color: var(--gold-text); }

.projection-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.projection-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 480px;
}

.projection-table th,
.projection-table td {
  text-align: right;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.projection-table th:first-child,
.projection-table td:first-child {
  text-align: left;
}

.projection-table thead th {
  color: var(--text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.projection-table tbody tr:last-child td { border-bottom: none; }

.projection-table tbody td { font-family: var(--font-display); }

.projection-table .projection-empty {
  font-family: var(--font-body);
  text-align: center;
  color: var(--text-dim);
  white-space: normal;
  padding: 24px 14px;
}

.projection-row-final td {
  color: var(--gold-text);
  font-weight: 700;
  background: var(--orange-tint);
}

/* ---------- Calculadora de Jubilación en Bitcoin ---------- */
.ret-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}

.ret-equivalence {
  font-size: 0.85rem;
  color: var(--gold-text);
  margin-top: 8px;
}

.ret-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.ret-advanced {
  margin-top: 14px;
}

.ret-advanced summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-text);
  width: fit-content;
}

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

.ret-advanced summary::before {
  content: "⚙ ";
}

.ret-advanced summary:hover { color: var(--btc-orange); }

.ret-advanced[open] summary { margin-bottom: 12px; }

.ret-advanced-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
}

.ret-results {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ret-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.ret-block h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ret-block .dca-result-row {
  font-size: 0.85rem;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.ret-goal-message {
  border-radius: var(--radius);
  padding: 22px;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.ret-goal-message strong { font-family: var(--font-display); }

.ret-goal-message.ret-goal-success {
  border-color: var(--orange-dark);
  background: var(--orange-tint);
  color: var(--text);
}

.ret-goal-message.ret-goal-success strong { color: var(--gold-text); }

.ret-goal-message.ret-goal-fail {
  border-color: var(--red);
  background: rgba(214, 66, 61, 0.08);
  color: var(--text);
}

.ret-goal-message.ret-goal-fail strong { color: var(--red); }

.ret-table-wrap { max-width: 980px; margin: 40px auto 0; }

.ret-formula {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.ret-formula summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.ret-formula-eq {
  font-family: var(--font-display);
  color: var(--gold-text);
  font-size: 1.05rem;
  margin: 14px 0;
}

.ret-formula ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.disclaimer-danger {
  border-color: var(--red);
  color: var(--text-dim);
}

.disclaimer-danger strong { color: var(--red); }

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

/* ---------- Glosario ---------- */
.glossary-search-wrap {
  max-width: 480px;
  margin: 0 auto 40px;
}

.glossary-search {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-body);
  box-shadow: var(--shadow);
}

.glossary-search:focus {
  outline: none;
  border-color: var(--btc-orange);
}

.glossary-search::-webkit-search-cancel-button { cursor: pointer; }

.glossary-results {
  max-width: var(--max-width);
  margin: 0 auto;
}

.glossary-group {
  margin-bottom: 32px;
}

.glossary-group:last-child { margin-bottom: 0; }

.glossary-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold-text);
  padding-bottom: 8px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--btc-orange);
  width: fit-content;
}

.glossary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.glossary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--btc-orange);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.glossary-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text);
}

.glossary-card p {
  font-size: 0.87rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.glossary-card mark {
  background: var(--btc-orange-tint);
  color: var(--gold-text);
  border-radius: 3px;
  padding: 0 2px;
}

.glossary-empty {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.glossary-empty p {
  color: var(--text-dim);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* ---------- Sobre mí ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-grid p { color: var(--text-dim); margin-bottom: 16px; }
.about-grid p:last-child { margin-bottom: 0; }

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--btc-orange);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.highlight-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-text);
  min-width: 64px;
}

.highlight-text { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Libros recomendados (carrusel) ---------- */
.books-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.books-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 16px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--btc-orange) var(--bg-alt);
}

.books-carousel::-webkit-scrollbar { height: 8px; }
.books-carousel::-webkit-scrollbar-track { background: var(--bg-alt); border-radius: 999px; }
.books-carousel::-webkit-scrollbar-thumb { background: var(--btc-orange); border-radius: 999px; }

.book-card {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.book-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--btc-orange);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 16px;
  overflow: hidden;
  text-align: center;
}

/* Tonos de "portada" sutilmente distintos: beige, gris cálido, blanco hueso */
.book-cover-beige { background: linear-gradient(160deg, #f7f0e2 0%, #ecdfc4 100%); }
.book-cover-warmgray { background: linear-gradient(160deg, #f2eeea 0%, #e2dad0 100%); }
.book-cover-bone { background: linear-gradient(160deg, #fbfaf7 0%, #efe9dd 100%); }

.book-cover-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 7.5rem;
  font-weight: 700;
  color: var(--btc-orange);
  opacity: 0.14;
  line-height: 1;
  pointer-events: none;
}

.book-cover-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.book-title {
  font-size: 1rem;
  line-height: 1.3;
  margin-top: 4px;
}

.book-author {
  font-size: 0.85rem;
  color: var(--gold-text);
  font-weight: 600;
}

.book-review {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.carousel-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.carousel-btn:hover {
  border-color: var(--btc-orange);
  background: var(--btc-orange);
  color: var(--on-accent);
}

@media (max-width: 640px) {
  .carousel-btn { display: none; }
}

/* ---------- Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--btc-orange);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  border-color: var(--orange-dark);
  border-top-color: var(--btc-orange);
  box-shadow: 0 8px 20px var(--btc-orange-tint);
  transform: translateY(-4px);
}

.service-icon { font-size: 1.8rem; display: block; margin-bottom: 14px; }

.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; }

.service-card p { color: var(--text-dim); font-size: 0.92rem; }

.asesoria-cta {
  text-align: center;
  margin-top: 48px;
}

/* ---------- Contacto ---------- */
.contact-section { text-align: center; }

.contact-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .dca-grid,
  .about-grid { grid-template-columns: 1fr; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 18px;
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-dropdown { width: 100%; }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 4px 0 4px;
    font-size: 0.95rem;
    font-weight: 500;
  }

  .services-grid { grid-template-columns: 1fr; }

  .countdown { gap: 12px; }

  .countdown-unit { min-width: 80px; padding: 16px 14px; }
}

@media (max-width: 420px) {
  .hero { padding-block: 70px 50px; }
}
