/* ============================================================
   RAWHEARTH — COMPONENTS
   Patrones reusables extraídos de la landing.
   Requiere: tokens.css cargado antes.
   ============================================================ */

/* ============================================================
   TIPOGRAFÍA — escalas semánticas
   ============================================================ */

.t-eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: var(--ls-mono);
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 12px;
}
.t-eyebrow::before {
  content: ""; width: 24px; height: 1px;
  background: currentColor; opacity: 0.7;
}

.t-display-xl {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-display-xl);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  color: var(--ink);
  margin: 0;
}
.t-display-m {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-display-m);
  line-height: 1.08;
  letter-spacing: -0.024em;
  color: var(--ink);
  margin: 0;
}
.t-display-s {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--fs-display-s);
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0;
}
.t-serif-it {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.018em;
}
.t-grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.t-mono {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: var(--ls-mono);
  color: var(--muted);
}
.t-code-pill {
  font-family: var(--mono);
  font-weight: 500;
  background: var(--paper-cool);
  padding: 2px 6px;
  font-size: 0.92em;
  color: var(--ink);
}

/* ============================================================
   BOTONES — el botón "firma" de la marca
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  padding: 16px 22px 16px 26px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-0);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-med);
  position: relative;
}
.btn:hover {
  background: var(--ink-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn .arrow { font-family: var(--mono); font-weight: 400; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--paper-cool); }

.btn--invert {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn--invert:hover { background: #f0eee5; }

.btn--big { padding: 18px 30px; font-size: 16px; }

/* link estilo "nav-cta" — borde inferior */
.link-cta {
  font-family: var(--sans);
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.link-cta:hover { color: var(--electric); border-color: var(--electric); }

/* ============================================================
   BADGES / PILLS
   ============================================================ */

.badge {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--hairline-strong);
  font-family: var(--mono);
  font-size: var(--fs-mono-s);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--paper);
}
.badge--solid {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.badge--electric {
  color: var(--electric);
  background: rgba(58, 58, 255, 0.06);
  border-color: rgba(58, 58, 255, 0.25);
}

/* "live dot" — ese punto verde animado del nav */
.dot-live {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #1f8a3a;
  box-shadow: 0 0 0 3px rgba(31, 138, 58, 0.18), 0 0 10px rgba(31, 138, 58, 0.5);
  vertical-align: middle;
  margin-right: 6px;
}
.dot-live--electric {
  background: var(--electric);
  box-shadow: 0 0 0 3px rgba(58, 58, 255, 0.18), 0 0 10px var(--glow-blue);
}

/* ============================================================
   CARDS / CONTAINERS
   ============================================================ */

.card {
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
  padding: 24px;
}
.card--cool { background: var(--paper-cool); }
.card--ink  { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card--ink .t-mono, .card--ink .t-eyebrow { color: var(--muted-2); }

.card--selectable {
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-med);
}
.card--selectable:hover {
  border-color: var(--ink);
  background: var(--paper-cool);
}
.card--selectable[aria-pressed="true"],
.card--selectable.is-selected {
  border-color: var(--electric);
  background: linear-gradient(135deg, rgba(58,58,255,0.05), rgba(120,70,255,0.04));
  box-shadow: 0 0 0 1px var(--electric), 0 8px 24px -12px var(--glow-blue);
}

/* eyebrow numerado de sección (01, 02, 03…) */
.section-eyebrow {
  font-family: var(--mono); font-size: var(--fs-mono);
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0 0 var(--sp-6);
  display: flex; align-items: center; gap: 16px;
}
.section-eyebrow .num {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
}

/* ============================================================
   FORMS
   ============================================================ */

.input, .textarea, .select {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
  padding: 14px 16px;
  border-radius: var(--radius-0);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea { min-height: 88px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(58, 58, 255, 0.12);
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }

.field-label {
  font-family: var(--mono);
  font-size: var(--fs-mono-s);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: block;
  margin: 0 0 8px;
}

/* ============================================================
   BLOQUE OSCURO — sección sobre fondo --ink con beam
   ============================================================ */

.section-dark {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 120px 0 140px;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; height: 100%;
  max-width: 900px;
  pointer-events: none;
  background: var(--beam);
}
.section-dark > * { position: relative; z-index: 1; }

/* lista con checks (✓) — usada en oferta */
.list-checks { list-style: none; margin: 0; padding: 0; }
.list-checks li {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  line-height: 1.5;
}
.list-checks li:last-child { border-bottom: none; }
.list-checks .chk {
  color: var(--electric);
  font-family: var(--mono);
  font-weight: 500;
}
