/*
 * Landing de Praxis Fact. Mismos tokens que la app (globals.css): índigo de
 * acción, degradado de marca solo en momentos de marca, verde/ámbar/rojo
 * SOLO como estados dentro de las maquetas del producto.
 */
:root {
  --font-sans: "Plus Jakarta Sans";
  --font-mono: "IBM Plex Mono";
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-alt: #eef0f5;
  --ink: #12131f;
  --ink-soft: #464a5e;
  --ink-faint: #5c6075;
  --border: #dfe2ea;
  --border-strong: #c3c8d6;
  --accent: #3b2bd9;
  --accent-hover: #2e1fbd;
  --accent-soft: #eeecff;
  --accent-ink: #3323c4;
  --on-accent: #ffffff;
  --good: #0d7044;
  --good-soft: #e2f4ea;
  --warn: #875600;
  --warn-soft: #fdf1d8;
  --critical: #b3261e;
  --critical-soft: #fde7e5;
  --marca: linear-gradient(90deg, #f5125a 0%, #c214b4 26%, #6c16e8 50%, #2230ea 72%, #14c4f0 100%);
  --sombra-1: 0 1px 2px rgba(18, 19, 31, 0.05);
  --sombra-2: 0 1px 2px rgba(18, 19, 31, 0.05), 0 10px 30px -14px rgba(18, 19, 31, 0.22);
  --sombra-3: 0 30px 80px -24px rgba(12, 13, 25, 0.45);
  --radio-sm: 8px;
  --radio: 12px;
  --radio-lg: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d15;
    --surface: #14151f;
    --surface-alt: #1c1e2b;
    --ink: #eceef7;
    --ink-soft: #aeb2c8;
    --ink-faint: #969ab2;
    --border: #2a2d3e;
    --border-strong: #3d4157;
    --accent: #a198ff;
    --accent-hover: #b8b1ff;
    --accent-soft: #242050;
    --accent-ink: #c2bcff;
    --on-accent: #0c0d15;
    --good: #4fd197;
    --good-soft: #11301f;
    --warn: #e8b04a;
    --warn-soft: #33280f;
    --critical: #ff8a7d;
    --critical-soft: #3b1a17;
    --sombra-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --sombra-2: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -14px rgba(0, 0, 0, 0.7);
    --sombra-3: 0 30px 80px -24px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-sans), "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  letter-spacing: -0.015em;
}

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

::selection {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.mono {
  font-family: var(--font-mono), ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.saltar {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: var(--radio-sm);
  font-weight: 600;
  text-decoration: none;
}

.saltar:focus {
  top: 12px;
}

.solo-lectores {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Logo: versión clara u oscura según el tema. */
.logo-oscuro {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .logo-claro {
    display: none;
  }
  .logo-oscuro {
    display: block;
  }
}

/* Revelado suave al hacer scroll (solo si hay JS; sin JS todo se ve). */
.js .revelar {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .revelar.visible {
  opacity: 1;
  transform: none;
}

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



.contenedor {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Encabezado ---------- */

.encabezado {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.encabezado::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--marca);
}

.barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.marcaEnlace {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radio-sm);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 12px;
  border-radius: var(--radio-sm);
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover {
  color: var(--ink);
  background: var(--surface-alt);
}

.accionesBarra {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.boton svg {
  flex: none;
}

.primario {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 80%, transparent);
}

.primario:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--accent) 85%, transparent);
}

.contorno {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink);
}

.contorno:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.fantasma {
  background: transparent;
  color: var(--ink-soft);
}

.fantasma:hover {
  color: var(--ink);
  background: var(--surface-alt);
}

.grande {
  min-height: 54px;
  padding: 0 28px;
  font-size: 16px;
}

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

.hero {
  position: relative;
  padding: 72px 0 88px;
  background:
    radial-gradient(760px 420px at 6% -4%, color-mix(in srgb, #c214b4 11%, transparent), transparent 62%),
    radial-gradient(820px 520px at 100% 30%, color-mix(in srgb, #14c4f0 12%, transparent), transparent 60%),
    radial-gradient(600px 400px at 60% 110%, color-mix(in srgb, #6c16e8 9%, transparent), transparent 60%);
}

.heroGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--sombra-1);
}

.puntoMarca {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--marca);
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.titular {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.subrayado {
  position: relative;
  white-space: nowrap;
}

.subrayado::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.14em;
  border-radius: 99px;
  background: var(--marca);
  opacity: 0.9;
  z-index: -1;
}

.bajada {
  margin: 22px 0 0;
  max-width: 560px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-soft);
  text-wrap: pretty;
}

.bajada strong {
  color: var(--ink);
  font-weight: 600;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.garantias {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}

.garantias li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.garantias svg {
  color: var(--accent);
}

/* ---------- Maqueta del producto (hero) ---------- */

.escena {
  position: relative;
  padding: 28px 8px 36px 28px;
}

.ventana {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--sombra-3);
  overflow: hidden;
}

.ventanaBarra {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.puntos {
  display: flex;
  gap: 6px;
}

.puntos span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.url {
  flex: 1;
  max-width: 260px;
  margin: 0 auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-faint);
  font-size: 12px;
  text-align: center;
}

.ventanaCuerpo {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ventanaCabecera {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ventanaEmpresa {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.ventanaMeta {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--ink-faint);
}

.pestanas {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: var(--surface-alt);
  font-size: 12.5px;
  font-weight: 700;
}

.pestanas span {
  padding: 5px 12px;
  border-radius: 8px;
  color: var(--ink-faint);
}

.pestanas .activa {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sombra-1);
}

.resumenMes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dato {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.datoValor {
  display: block;
  font-size: 17px;
  font-weight: 600;
}

.datoRotulo {
  display: block;
  font-size: 11.5px;
  color: var(--ink-faint);
}

.asiento {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.asientoTitulo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--surface-alt);
  font-size: 12.5px;
  font-weight: 700;
}

.asientoTitulo span:last-child {
  color: var(--ink-faint);
  font-weight: 500;
}

.asiento table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.asiento th,
.asiento td {
  padding: 7px 12px;
  text-align: left;
  border-top: 1px solid var(--border);
}

.asiento th {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.asiento .num {
  text-align: right;
  white-space: nowrap;
}

.asiento tbody tr {
  animation: entrar 0.5s both cubic-bezier(0.2, 0.7, 0.2, 1);
}

.asiento tbody tr:nth-child(1) { animation-delay: 0.35s; }
.asiento tbody tr:nth-child(2) { animation-delay: 0.5s; }
.asiento tbody tr:nth-child(3) { animation-delay: 0.65s; }
.asiento tbody tr:nth-child(4) { animation-delay: 0.8s; }

.cuenta {
  color: var(--ink-faint);
  margin-right: 8px;
}

.asiento tfoot td {
  font-weight: 700;
  background: color-mix(in srgb, var(--good-soft) 60%, transparent);
}

.insignia {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.insignia::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.ok {
  background: var(--good-soft);
  color: var(--good);
}

.enProceso {
  background: var(--warn-soft);
  color: var(--warn);
}

.revisar {
  background: var(--critical-soft);
  color: var(--critical);
}

.cuadra {
  animation: aparecer 0.5s 1.05s both cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

/* Fichas flotantes alrededor de la ventana. */
.ficha {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--sombra-2);
  font-size: 13px;
  line-height: 1.3;
  animation: flotar 6s ease-in-out infinite;
}

.ficha strong {
  display: block;
  font-size: 13px;
}

.ficha small {
  color: var(--ink-faint);
  font-size: 12px;
}

.fichaIcono {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.fichaArriba {
  top: 0;
  left: 0;
}

.fichaAbajo {
  right: 0;
  bottom: 4px;
  animation-delay: -3s;
}

@keyframes entrar {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes flotar {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

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

.seccion {
  padding: 96px 0;
}

.seccionAlterna {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.cabeceraSeccion {
  max-width: 720px;
  margin: 0 0 48px;
}

.centrada {
  margin-inline: auto;
  text-align: center;
}

.antetitulo {
  margin: 0 0 12px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tituloSeccion {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.textoSeccion {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  text-wrap: pretty;
}

/* ---------- Dolor ---------- */

.dolores {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dolor {
  padding: 24px;
  border-radius: var(--radio-lg);
  background: var(--bg);
  border: 1px solid var(--border);
}

.dolor h3 {
  margin: 14px 0 6px;
  font-size: 17px;
  line-height: 1.3;
}

.dolor p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.dolorIcono {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-alt);
  color: var(--ink-soft);
}

/* ---------- Pasos ---------- */

.pasos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}

.paso {
  position: relative;
  padding: 28px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sombra-1);
}

.pasoNumero {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 18px;
  font-weight: 700;
}

.paso h3 {
  margin: 20px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.paso p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.pasoNota {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Qué contabiliza ---------- */

.funciones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.funcion {
  padding: 28px;
  background: var(--surface);
}

.funcion h3 {
  margin: 16px 0 6px;
  font-size: 17.5px;
  line-height: 1.3;
}

.funcion p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.funcionIcono {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

/* ---------- Prueba (cifras reales) ---------- */

.prueba {
  position: relative;
  padding: 96px 0;
  background: #0c0d15;
  color: #eceef7;
  overflow: hidden;
}

.prueba::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 360px at 0% 0%, rgba(194, 20, 180, 0.22), transparent 60%),
    radial-gradient(700px 400px at 100% 100%, rgba(20, 196, 240, 0.18), transparent 60%);
  pointer-events: none;
}

.prueba .contenedor {
  position: relative;
}

.prueba .antetitulo {
  color: #c2bcff;
}

.prueba .textoSeccion {
  color: #aeb2c8;
}

.cifras {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cifra {
  padding: 26px 24px;
  border-radius: 18px;
  border: 1px solid #2a2d3e;
  background: rgba(20, 21, 31, 0.7);
}

.cifraValor {
  display: block;
  font-family: var(--font-mono), ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: clamp(34px, 3.6vw, 46px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.cifraValor em {
  font-style: normal;
  color: #c2bcff;
}

.cifraTexto {
  display: block;
  margin-top: 12px;
  color: #aeb2c8;
  font-size: 15px;
}

.notaPrueba {
  margin: 28px 0 0;
  color: #969ab2;
  font-size: 13.5px;
}

/* ---------- Comparación ---------- */

.comparacion {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.columnaComparacion {
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.columnaComparacion h3 {
  margin: 0 0 20px;
  font-size: 20px;
}

.columnaComparacion ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.columnaComparacion li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.columnaComparacion li svg {
  flex: none;
  margin-top: 3px;
}

.antes li svg {
  color: var(--ink-faint);
}

.despues {
  position: relative;
  background: var(--surface);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent) 45%, transparent);
}

.despues li {
  color: var(--ink);
}

.despues li svg {
  color: var(--accent);
}

/* ---------- Firmas con muchas empresas ---------- */

.dosColumnas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.listaPuntos {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.listaPuntos li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
}

.listaPuntos strong {
  display: block;
  font-size: 16.5px;
}

.listaPuntos span {
  color: var(--ink-soft);
  font-size: 15px;
}

.tablero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--sombra-2);
  overflow: hidden;
}

.tableroCabecera {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.tableroCabecera strong {
  font-size: 15px;
}

.tableroCabecera span {
  color: var(--ink-faint);
  font-size: 13px;
}

.tablero table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tablero th,
.tablero td {
  padding: 12px 20px;
  text-align: left;
  border-top: 1px solid var(--border);
}

.tablero thead th {
  border-top: 0;
  background: var(--surface-alt);
  color: var(--ink-faint);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tablero .num {
  text-align: right;
}

.tablero td small {
  display: block;
  color: var(--ink-faint);
  font-size: 12px;
}

/* ---------- Seguridad ---------- */

.seguridad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.seguridad article {
  padding: 26px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.seguridad h3 {
  margin: 14px 0 6px;
  font-size: 17px;
}

.seguridad p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- Preguntas ---------- */

.preguntas {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pregunta {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.15s;
}

.pregunta[open] {
  border-color: var(--border-strong);
}

.pregunta summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  border-radius: 14px;
}

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

.pregunta summary svg {
  flex: none;
  color: var(--ink-faint);
  transition: transform 0.2s;
}

.pregunta[open] summary svg {
  transform: rotate(45deg);
  color: var(--accent);
}

.pregunta p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ---------- Cierre ---------- */

.cierre {
  padding: 24px 0 96px;
}

.cierreCaja {
  position: relative;
  padding: 64px 48px;
  border-radius: 28px;
  text-align: center;
  background: #0c0d15;
  color: #eceef7;
  overflow: hidden;
  isolation: isolate;
}

.cierreCaja::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(520px 300px at 10% 0%, rgba(245, 18, 90, 0.35), transparent 60%),
    radial-gradient(520px 320px at 50% 120%, rgba(108, 22, 232, 0.45), transparent 60%),
    radial-gradient(520px 300px at 95% 10%, rgba(20, 196, 240, 0.35), transparent 60%);
}

.cierreCaja::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--marca);
}

.cierreCaja h2 {
  margin: 0 auto;
  max-width: 720px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cierreCaja p {
  margin: 18px auto 0;
  max-width: 580px;
  color: #c9ccdc;
  font-size: 18px;
}

.cierreCaja .ctas {
  justify-content: center;
}

.botonClaro {
  background: #ffffff;
  color: #12131f;
}

.botonClaro:hover {
  background: #eeecff;
  transform: translateY(-1px);
}

.botonVidrio {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.botonVidrio:hover {
  background: rgba(255, 255, 255, 0.16);
}

.numeroWhatsapp {
  margin-top: 18px !important;
  font-size: 14px !important;
  color: #aeb2c8 !important;
}

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

.pie {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  color: var(--ink-faint);
  font-size: 14px;
}

.pieFila {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.pie p {
  margin: 10px 0 0;
}

.pieEnlaces {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.pieEnlaces a {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}

.pieEnlaces a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- WhatsApp flotante ---------- */

.flotante {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: #1f9e53;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 36px -12px rgba(18, 90, 50, 0.6);
  transition: transform 0.15s, background 0.15s;
}

.flotante:hover {
  background: #188a47;
  transform: translateY(-2px);
}

/* ---------- Responsivo ---------- */

@media (max-width: 1040px) {
  .nav {
    display: none;
  }

  .heroGrid,
  .dosColumnas {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .escena {
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
  }

  .dolores,
  .cifras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funciones,
  .seguridad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .contenedor {
    padding: 0 16px;
  }

  .barra {
    height: 60px;
  }

  .ocultarMovil {
    display: none;
  }

  .hero {
    padding: 44px 0 64px;
  }

  .seccion,
  .prueba {
    padding: 72px 0;
  }

  .cabeceraSeccion {
    margin-bottom: 32px;
  }

  .pasos,
  .comparacion,
  .funciones,
  .seguridad,
  .dolores {
    grid-template-columns: minmax(0, 1fr);
  }

  .cifras {
    grid-template-columns: minmax(0, 1fr);
  }

  .escena {
    padding: 22px 0 30px;
  }

  .fichaArriba {
    left: 8px;
  }

  .fichaAbajo {
    right: 8px;
  }

  .ventanaCuerpo {
    padding: 14px;
  }

  .asiento th,
  .asiento td {
    padding: 7px 8px;
  }

  .ocultarAngosto {
    display: none;
  }

  .ctas .boton {
    flex: 1 1 100%;
  }

  .columnaComparacion,
  .paso {
    padding: 24px;
  }

  .tablero th,
  .tablero td {
    padding: 11px 14px;
  }

  .cierreCaja {
    padding: 48px 22px;
    border-radius: 22px;
  }

  .flotanteTexto {
    display: none;
  }

  .flotante {
    width: 58px;
    height: 58px;
    padding: 0;
    justify-content: center;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .subrayado {
    white-space: normal;
  }
}

/* ---------- Ajustes de la versión independiente ---------- */

.marcaEnlace img {
  height: 24px;
  width: auto;
}

.pie img {
  height: 18px;
  width: auto;
}

.titular {
  isolation: isolate;
}

.asiento tbody tr:nth-child(5) { animation-delay: 0.95s; }

.cuadra {
  animation-delay: 1.2s;
}

.listaPuntos .funcionIcono {
  width: 40px;
  height: 40px;
}

.nav a,
.accionesBarra .boton {
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .nav a:nth-child(n + 4) {
    display: none;
  }
}

/* En modo oscuro las bandas oscuras se separan del fondo con un borde. */
@media (prefers-color-scheme: dark) {
  .prueba {
    background: #08090f;
    border-block: 1px solid #2a2d3e;
  }
  .cierreCaja {
    border: 1px solid #2a2d3e;
  }
}

@media (max-width: 420px) {
  .marcaEnlace img {
    height: 19px;
  }
  .accionesBarra .boton {
    min-height: 42px;
    padding: 0 16px;
  }
}

/* ---------- Pie oscuro (el logo de Praxis One Tech es blanco con brillo:
   solo funciona sobre fondo oscuro, en ambos temas) ---------- */

.pie {
  background: #08090f;
  color: #969ab2;
  border-top: 1px solid #2a2d3e;
  padding: 56px 0 40px;
}

.pie .pieEnlaces a {
  color: #c9ccdc;
}

.pie .pieEnlaces a:hover {
  color: #ffffff;
}

.pieMarca {
  max-width: 380px;
}

.pieMarca p {
  margin-top: 14px;
}

.pieFirma {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #2a2d3e;
}

.pieRespaldo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.pie .pieRespaldo img {
  height: 58px;
  width: auto;
}

.pie .pieLegal {
  margin: 0;
  font-size: 13px;
}

/* ---------- Resultados: cifras de impacto y calculadora ---------- */

.resaltado {
  background: linear-gradient(90deg, #ff6aa2, #c2bcff 55%, #6fdcf7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cifraValor small {
  font-size: 0.5em;
  font-weight: 400;
  color: #c2bcff;
  margin: 0 0.06em;
}

.cifraTexto strong {
  color: #ffffff;
  font-weight: 600;
}

.cifraDestacada {
  position: relative;
  border-color: transparent;
  background:
    linear-gradient(#14151f, #14151f) padding-box,
    linear-gradient(135deg, #f5125a, #6c16e8 50%, #14c4f0) border-box;
}

.calculadora {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  margin-top: 28px;
  border: 1px solid #2a2d3e;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(20, 21, 31, 0.75);
}

.calcEntradas {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.calcEntradas h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  color: #ffffff;
}

.calcAyuda {
  margin: -10px 0 4px;
  color: #aeb2c8;
  font-size: 15px;
}

.control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #c9ccdc;
  font-size: 15px;
}

.controlFila {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.controlFila output {
  color: #ffffff;
  font-weight: 500;
}

.control input[type="range"] {
  --lleno: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.control input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, #a198ff var(--lleno), #2a2d3e var(--lleno));
}

.control input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, #a198ff var(--lleno), #2a2d3e var(--lleno));
}

.control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #a198ff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.control input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #a198ff;
}

.control input[type="range"]:focus-visible {
  outline: 2px solid #a198ff;
  outline-offset: 4px;
  border-radius: 8px;
}

.calcResultado {
  position: relative;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(20, 196, 240, 0.22), transparent 60%),
    radial-gradient(420px 260px at 0% 100%, rgba(194, 20, 180, 0.25), transparent 60%),
    #101120;
  border-left: 1px solid #2a2d3e;
}

.calcResultado::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--marca);
}

.calcRotulo {
  margin: 0;
  color: #aeb2c8;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calcGrande {
  margin: 0;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.calcGrande .mono {
  font-weight: 500;
}

.calcEquivale {
  margin: 0 0 14px;
  color: #c9ccdc;
  font-size: 17px;
}

.calcEquivale strong {
  color: #c2bcff;
}

.calcFila {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.calcFila div {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #2a2d3e;
  background: rgba(12, 13, 21, 0.6);
}

.calcFila .mono {
  display: block;
  font-size: 24px;
  color: #ffffff;
}

.calcFila small {
  display: block;
  margin-top: 2px;
  color: #aeb2c8;
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 1040px) {
  .calculadora {
    grid-template-columns: minmax(0, 1fr);
  }
  .calcResultado {
    border-left: 0;
    border-top: 1px solid #2a2d3e;
  }
}

@media (max-width: 760px) {
  .calcEntradas,
  .calcResultado {
    padding: 24px 20px;
  }
}
