/* ======================================================================= */
/* ImIoT · web comercial (imiot.io)                                        */
/* Los tokens son los MISMOS que los de la consola del producto            */
/* (libs/ui/styles.css del repo imiot): mismo lienzo, mismo azul, mismos   */
/* radios. Si allí cambian, aquí también. Sin dependencias externas: cero  */
/* webfonts de terceros (RGPD) y cero JS de terceros.                      */
/* ======================================================================= */

:root {
  color-scheme: dark;

  --bg: #0a0b0d;
  --bg-elevated: #14161b;
  --bg-muted: #1a1d23;
  --bg-hover: #1f232a;

  --fg: #e6e9ef;
  --fg-secondary: #b6bcc6;
  --fg-muted: #a3a9b4;
  --fg-subtle: #6c727b;

  --border: #262a32;
  --border-strong: #353a44;
  --border-subtle: #1d2026;

  --brand: #5aa3ff;
  --brand-hover: #6fb1ff;
  --brand-strong: #3d7fd6;
  --brand-fg: #0a0b0d;
  --brand-light: color-mix(in srgb, var(--brand) 22%, var(--bg));
  --brand-accent: #b89cff;
  --brand-accent-soft: #2a1f48;

  --critical: #f87171;
  --critical-bg: #3a1818;
  --critical-border: #4d2020;
  --warning: #f5b54a;
  --warning-bg: #3a2e15;
  --warning-border: #4d3d1c;
  --info: #5aa3ff;
  --info-bg: #1d3756;
  --info-border: #26436a;
  --success: #4ade80;
  --success-bg: #15321f;
  --success-border: #1d4429;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 1px 3px 0 rgba(0, 0, 0, 0.45), 0 4px 12px -2px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 4px 12px -2px rgba(0, 0, 0, 0.5), 0 8px 24px -4px rgba(0, 0, 0, 0.4);

  --r-sm: 6px;
  --r: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  --hdr-bg: rgba(10, 11, 13, 0.75);
  --focus-ring: 0 0 0 3px rgba(90, 163, 255, 0.35);

  --max: 1120px;
  --header-h: 60px;
}

:root[data-theme='light'] {
  color-scheme: light;

  --bg: #f6f7f9;
  --bg-elevated: #ffffff;
  --bg-muted: #f2f4f7;
  --bg-hover: #eef1f5;

  --fg: #101828;
  --fg-secondary: #475467;
  --fg-muted: #667085;
  --fg-subtle: #98a2b3;

  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --border-subtle: #edeff3;

  --brand: #2f6fe0;
  --brand-hover: #2861c7;
  --brand-strong: #1d4ea8;
  --brand-fg: #ffffff;
  --brand-light: color-mix(in srgb, var(--brand) 10%, var(--bg-elevated));
  --brand-accent: #7a5af8;
  --brand-accent-soft: #f0ebff;

  --critical: #d92d20;
  --critical-bg: #fee4e2;
  --critical-border: #fecdca;
  --warning: #b54708;
  --warning-bg: #fef0c7;
  --warning-border: #fedf89;
  --info: #2f6fe0;
  --info-bg: #e8f0fd;
  --info-border: #cfdffa;
  --success: #079455;
  --success-bg: #dcfae6;
  --success-border: #abefc6;

  --shadow-sm: 0 1px 2px 0 rgba(16, 24, 40, 0.04);
  --shadow-md: 0 1px 3px 0 rgba(16, 24, 40, 0.06), 0 4px 12px -2px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 4px 12px -2px rgba(16, 24, 40, 0.08), 0 8px 24px -4px rgba(16, 24, 40, 0.06);

  --hdr-bg: rgba(255, 255, 255, 0.82);
  --focus-ring: 0 0 0 3px rgba(47, 111, 224, 0.25);
}

/* ----------------------------------------------------------------------- */
/* Base                                                                     */
/* ----------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
*:focus {
  outline: none;
}
*:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-sm);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  /* Inter si el sistema la tiene (idéntico a la consola); si no, la pila del
   * sistema. Sin webfont remota: ni dependencia ni transferencia a terceros. */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}
a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Los titulares llevan el tracking cerrado de la consola. */
h1,
h2,
h3,
h4 {
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 650;
}
h1 {
  font-size: clamp(34px, 5.2vw, 54px);
}
h2 {
  font-size: clamp(26px, 3.4vw, 36px);
}
h3 {
  font-size: 19px;
  letter-spacing: -0.01em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: var(--brand-fg);
  padding: 10px 16px;
  border-radius: 0 0 var(--r) 0;
  font-weight: 600;
  z-index: 100;
}
.skip:focus {
  left: 0;
}

/* ----------------------------------------------------------------------- */
/* Cabecera                                                                 */
/* ----------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--hdr-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
  margin-right: auto;
}
.brand svg {
  width: 24px;
  height: 24px;
  color: var(--brand);
  flex: 0 0 auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 7px 12px;
  border-radius: var(--r);
  color: var(--fg-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.12s, background 0.12s;
}
.nav-links a:hover {
  color: var(--fg);
  background: var(--bg-hover);
}
.nav-links a[aria-current='page'] {
  color: var(--fg);
  background: var(--bg-muted);
}
.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--fg-muted);
  cursor: pointer;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}
.icon-btn:hover {
  color: var(--fg);
  background: var(--bg-hover);
  border-color: var(--border-strong);
}
.icon-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .icon-moon {
  display: none;
}
:root[data-theme='light'] .theme-toggle .icon-moon {
  display: block;
}
:root[data-theme='light'] .theme-toggle .icon-sun {
  display: none;
}
.nav-toggle {
  display: none;
}

/* ----------------------------------------------------------------------- */
/* Botones                                                                  */
/* ----------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  color: var(--fg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: background 0.12s, border-color 0.12s, transform 0.08s, box-shadow 0.12s;
}
.btn:hover:not(:disabled) {
  background: var(--bg-muted);
  border-color: var(--border-strong);
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn.primary {
  background: var(--brand);
  color: var(--brand-fg);
  border-color: var(--brand);
}
.btn.primary:hover:not(:disabled) {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  box-shadow: var(--shadow-sm);
}
.btn.sm {
  padding: 7px 14px;
  font-size: 14px;
}
.btn.block {
  width: 100%;
}
.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----------------------------------------------------------------------- */
/* Secciones                                                                */
/* ----------------------------------------------------------------------- */

section {
  padding: 76px 0;
}
section.tight {
  padding: 52px 0;
}
section.soft {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow.accent {
  color: var(--brand-accent);
}
.lead {
  color: var(--fg-muted);
  font-size: 17px;
  max-width: 62ch;
  margin-top: 14px;
}
.section-head {
  max-width: 66ch;
  margin-bottom: 44px;
}

/* ----------------------------------------------------------------------- */
/* Hero                                                                     */
/* ----------------------------------------------------------------------- */

.hero {
  padding: 88px 0 64px;
  background: radial-gradient(
    900px 420px at 78% -8%,
    color-mix(in srgb, var(--brand) 13%, transparent),
    transparent 68%
  );
}
.hero h1 {
  max-width: 17ch;
}
.hero h1 .accent {
  color: var(--brand);
}
.hero .lead {
  font-size: 19px;
  max-width: 58ch;
  margin-top: 20px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--fg-subtle);
}

.nos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding: 0;
  list-style: none;
}
.nos li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 12px;
  font-size: 14px;
  font-weight: 550;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.nos svg {
  width: 15px;
  height: 15px;
  color: var(--success);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

/* ----------------------------------------------------------------------- */
/* Maqueta de consola (hero): la estética real del producto, en CSS         */
/* ----------------------------------------------------------------------- */

.console {
  margin-top: 56px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--fg-subtle);
}
.console-dots {
  display: flex;
  gap: 6px;
}
.console-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}
.console-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--success);
  letter-spacing: 0.04em;
}
.console-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.console-body {
  padding: 18px;
  display: grid;
  gap: 14px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.kpi {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  overflow: hidden;
}
/* El estado es un punto en la esquina, nunca una barra lateral: es la regla
 * del lenguaje visual de la consola. */
.kpi::before {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.kpi.warn::before {
  background: var(--warning);
}
.kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-subtle);
}
.kpi-value {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.kpi-value small {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0;
}
.console-chart {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.console-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.console-chart-head span:first-child {
  font-size: 13px;
  font-weight: 600;
}
.console-chart-head span:last-child {
  font-size: 11px;
  color: var(--fg-subtle);
  font-variant-numeric: tabular-nums;
}
.console-chart svg {
  display: block;
  width: 100%;
  height: 88px;
}
.console-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--warning) 6%, var(--bg));
  border: 1px solid var(--warning-border);
  border-radius: var(--r-md);
  font-size: 13px;
}
.console-alert svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--warning);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.console-alert time {
  margin-left: auto;
  color: var(--fg-subtle);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ----------------------------------------------------------------------- */
/* Rejillas y tarjetas                                                      */
/* ----------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 18px;
}
.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  transition: border-color 0.15s, transform 0.15s;
}
section.soft .card {
  background: var(--bg);
}
.card > svg,
.card-icon {
  width: 22px;
  height: 22px;
  color: var(--brand);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 14px;
}
.card h3 {
  margin-bottom: 8px;
}
.card p {
  color: var(--fg-muted);
  font-size: 15px;
}
.card.link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.card.link:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin-bottom: 10px;
}

.step .n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: var(--r);
  background: var(--brand-light);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.quote {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--bg-muted);
  border-left: 2px solid var(--brand);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 14px;
  color: var(--fg-secondary);
}

/* Lista de comprobación */
.checks {
  list-style: none;
  padding: 0;
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--fg-secondary);
}
.checks svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  flex: 0 0 auto;
  color: var(--success);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Fila de característica alternada */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 52px 0;
  border-top: 1px solid var(--border-subtle);
}
.feature-row:first-of-type {
  border-top: 0;
}
.feature-row.flip .feature-media {
  order: -1;
}
.feature-media {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
}

/* Panel de datos genérico dentro de una media */
.rows {
  display: grid;
  gap: 8px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 13px;
}
section.soft .row {
  background: var(--bg-elevated);
}
.row .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex: 0 0 auto;
}
.row .dot.warn {
  background: var(--warning);
}
.row .dot.crit {
  background: var(--critical);
}
.row .dot.off {
  background: var(--fg-subtle);
}
.row .val {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: var(--fg-muted);
  white-space: nowrap;
}
.row code {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--fg-secondary);
}

/* ----------------------------------------------------------------------- */
/* Código                                                                   */
/* ----------------------------------------------------------------------- */

pre,
code {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}
pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg-secondary);
}
section.soft pre {
  background: var(--bg-elevated);
}
pre .k {
  color: var(--brand-accent);
}
pre .s {
  color: var(--success);
}
pre .c {
  color: var(--fg-subtle);
}
:not(pre) > code {
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: 1px 6px;
  font-size: 0.88em;
}

/* ----------------------------------------------------------------------- */
/* Planes                                                                   */
/* ----------------------------------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}
.plan {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.plan.featured {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  box-shadow: var(--shadow-md);
}
.plan-flag {
  position: absolute;
  top: -11px;
  left: 24px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--brand);
  color: var(--brand-fg);
  border-radius: 999px;
}
.plan h3 {
  font-size: 20px;
}
.plan .who {
  margin-top: 6px;
  font-size: 14px;
  color: var(--fg-muted);
  min-height: 44px;
}
.plan .price {
  margin: 18px 0;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 15px;
  color: var(--fg-secondary);
}
.plan-amount {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--fg);
}
.plan-amount .num {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.plan-amount .per {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-muted);
}
.plan-plus {
  font-size: 15px;
  color: var(--fg-secondary);
}
.plan-plus strong {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.plan-fineprint {
  margin-top: 8px;
  font-size: 13px;
  color: var(--fg-subtle);
}
.plan-example {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--bg-muted);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--fg-secondary);
}
section.soft .plan-example {
  background: var(--bg);
}
.plan-example strong {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.plan .checks {
  margin-top: 0;
  margin-bottom: 24px;
  flex: 1;
}
.plan .checks li {
  font-size: 14px;
}

/* ----------------------------------------------------------------------- */
/* Aviso / callout                                                          */
/* ----------------------------------------------------------------------- */

.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 15px;
  color: var(--fg-secondary);
}
.callout.accent {
  background: var(--brand-accent-soft);
  border-color: color-mix(in srgb, var(--brand-accent) 35%, transparent);
}
.callout > svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--brand-accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.callout strong {
  color: var(--fg);
}

/* ----------------------------------------------------------------------- */
/* FAQ                                                                      */
/* ----------------------------------------------------------------------- */

.faq {
  max-width: 78ch;
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 2px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.18s;
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.faq details p {
  padding: 0 2px 20px;
  color: var(--fg-muted);
  max-width: 70ch;
}

/* ----------------------------------------------------------------------- */
/* CTA final                                                                */
/* ----------------------------------------------------------------------- */

.cta-final {
  text-align: center;
  padding: 56px 40px;
  background: linear-gradient(155deg, var(--brand-strong) 0%, color-mix(in srgb, var(--brand-strong) 60%, #000) 100%);
  border-radius: var(--r-lg);
  color: #fff;
}
.cta-final h2 {
  color: #fff;
  max-width: 20ch;
  margin: 0 auto;
}
.cta-final p {
  margin: 16px auto 0;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}
.cta-final .btn {
  margin-top: 30px;
  background: #fff;
  color: #0a0b0d;
  border-color: #fff;
}
.cta-final .btn:hover {
  background: #e8eef5;
  border-color: #e8eef5;
}

/* ----------------------------------------------------------------------- */
/* Formularios                                                              */
/* ----------------------------------------------------------------------- */

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-secondary);
}
.field .hint {
  font-size: 12px;
  color: var(--fg-subtle);
}
input[type='text'],
input[type='email'],
input[type='number'],
select {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 0.12s;
}
section.soft input,
section.soft select {
  background: var(--bg-elevated);
}
input:hover,
select:hover {
  border-color: var(--border-strong);
}
input[type='range'] {
  width: 100%;
  accent-color: var(--brand);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.form-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--critical-bg);
  border: 1px solid var(--critical-border);
  border-radius: var(--r);
  color: var(--critical);
  font-size: 14px;
}
:root[data-theme='light'] .form-error {
  color: var(--critical);
}
.quote-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
section.soft .quote-box {
  background: var(--bg-elevated);
}
.quote-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}
.quote-line.total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ----------------------------------------------------------------------- */
/* Pie                                                                      */
/* ----------------------------------------------------------------------- */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-subtle);
  margin-bottom: 14px;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 9px;
}
.footer-grid a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
}
.footer-grid a:hover {
  color: var(--fg);
}
.footer-about p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--fg-muted);
  max-width: 38ch;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--fg-subtle);
}

/* ----------------------------------------------------------------------- */
/* Prosa (legales)                                                          */
/* ----------------------------------------------------------------------- */

.prose {
  max-width: 76ch;
}
.prose h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
}
.prose h3 {
  margin-top: 26px;
  margin-bottom: 8px;
}
.prose p,
.prose li {
  color: var(--fg-secondary);
  font-size: 15px;
}
.prose p {
  margin-bottom: 14px;
}
.prose ul,
.prose ol {
  margin: 0 0 16px 22px;
  display: grid;
  gap: 7px;
}

/* ----------------------------------------------------------------------- */
/* Responsive                                                               */
/* ----------------------------------------------------------------------- */

@media (max-width: 900px) {
  .grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid.cols-3,
  .plans {
    grid-template-columns: 1fr;
  }
  .feature-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature-row.flip .feature-media {
    order: 0;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 11px 12px;
    font-size: 15px;
  }
  .nav-tools .btn {
    display: none;
  }
  section {
    padding: 56px 0;
  }
  .hero {
    padding: 56px 0 48px;
  }
  .grid.cols-2,
  .grid.cols-4,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .cta-final {
    padding: 40px 24px;
  }
  .console-body {
    padding: 14px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
