/* ============================================
   DPODS Landing – landing.css
   Una columna de 1180px, nav y footer negros, hero claro.
   Ajustado a la Guía de marca DPODS:
   - Paleta oficial: #2D67E8 · #00237C · #17171B · #F3F3F3
   - Space Grotesk en Regular (400), Medium (500) y Bold (700)
   - Sobre fondo negro, el logo va en azul claro
============================================ */
:root {
  /* Paleta oficial */
  --blue: #2d67e8; /* Azul claro */
  --blue-deep: #00237c; /* Azul fuerte */
  --ink: #17171b; /* Negro */
  --ground: #f3f3f3; /* Blanco de marca */
  /* Tintes de la paleta oficial: texto secundario, bordes y superficies */
  --paper: #ffffff;
  --ground-2: #f9f9f9;
  --ink-2: #4a4a4d;
  --ink-3: #6e6e70;
  --line: #e3e3e4;
  --blue-soft: #eaf0fd;
  --blue-tint: #96b3f4;
  /* Estados: solo en chips, marcas y validaciones (igual que en la plataforma) */
  --ok: #1b8a4c;
  --ok-soft: #e4f4ea;
  --warn: #b9700f;
  --warn-soft: #fbf0dc;
  --bad: #c2372f;
  --bad-soft: #fae5e3;
  --font:
    "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --nav-h: 64px;
  --r: 12px;
  --r-lg: 18px;
  --w: 1180px;
  color-scheme: light;
}

/* ============================================
   BASE
============================================ */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
[hidden] {
  display: none !important;
}
img,
svg {
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-weight: 700;
}
h1,
h2 {
  font-weight: 500;
}
h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
}
h3 {
  font-size: 1.25rem;
}
p {
  margin: 0;
}
.wrap {
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: 20px;
}
section {
  padding-block: clamp(56px, 8vw, 100px);
}
.alt {
  background: var(--ground);
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.lead {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 62ch;
}
.sub {
  color: var(--ink-2);
}
.muted {
  color: var(--ink-3);
  font-size: 0.9rem;
}
.sec-head {
  max-width: 720px;
  margin-bottom: 40px;
  display: grid;
  gap: 14px;
}
.num {
  font-variant-numeric: tabular-nums;
}
.link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-deep);
}
.btn-primary::after {
  content: "→";
  display: inline-block;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    width 0.2s,
    opacity 0.2s,
    margin 0.2s;
}
.btn-primary:hover::after {
  width: 1em;
  opacity: 1;
  margin-left: 2px;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn-lg {
  padding: 16px 26px;
  font-size: 1.05rem;
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ============================================
   NAV
============================================ */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--nav-h);
}
/* Guía de marca: sobre fondo negro el logo va en azul claro */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--blue);
}
.brand svg {
  height: 30px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav-links a:hover {
  color: #fff;
}
.nav-links a.active {
  color: #fff;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 4px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-right .login {
  color: #fff;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 700;
  white-space: nowrap;
}
.nav .btn {
  padding: 10px 16px;
  font-size: 0.93rem;
}
.burger {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 8px;
  width: 40px;
  height: 36px;
  cursor: pointer;
  font-family: inherit;
}
.mobile-menu {
  display: none;
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-menu a {
  display: block;
  padding: 14px 20px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
@media (max-width: 980px) {
  .nav-links,
  .nav-right .login {
    display: none;
  }
  .burger {
    display: inline-block;
  }
  .mobile-menu.open {
    display: block;
  }
}

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  background: var(--ground);
  padding-block: clamp(56px, 7vw, 96px) clamp(48px, 6vw, 80px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(23, 23, 27, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: 10%;
  width: 46%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(45, 103, 232, 0.16), transparent);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  margin-bottom: 18px;
}
.hero .lead {
  margin-bottom: 26px;
}
.checks {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: 1rem;
}
.checks li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--blue)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/12px no-repeat;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
  min-width: 0;
  padding-bottom: 230px;
}
.visual-foot {
  margin-top: 12px;
  max-width: 60%;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero h1,
.hero .eyebrow,
.hero .lead,
.hero .checks,
.hero .hero-cta {
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero .eyebrow {
  animation-delay: 0.02s;
}
.hero h1 {
  animation-delay: 0.08s;
}
.hero .lead {
  animation-delay: 0.16s;
}
.hero .checks {
  animation-delay: 0.24s;
}
.hero .hero-cta {
  animation-delay: 0.32s;
}
.hero-visual {
  animation: rise 0.8s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    margin-top: 8px;
    padding-bottom: 0;
  }
  .visual-foot {
    max-width: 100%;
    text-align: center;
  }
}

/* Panel (mock del panel de Nivel 1) */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -30px rgba(23, 23, 27, 0.25);
  overflow: hidden;
  font-size: 0.82rem;
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--ground-2);
}
.panel-top .t {
  font-weight: 700;
}
.saldo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.05fr 1.2fr;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.row.head {
  color: var(--ink-3);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  background: #fff;
}
.row .ref {
  font-weight: 700;
  white-space: nowrap;
}
.row .dest {
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .cita {
  white-space: nowrap;
  color: var(--ink-2);
}
@media (max-width: 560px) {
  .row {
    grid-template-columns: 1fr 1.4fr 1fr;
  }
  .row .cita {
    display: none;
  }
}

/* Chips de estado */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background 0.3s,
    color 0.3s;
}
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.chip.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.chip.warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.chip.info {
  background: var(--blue-soft);
  color: var(--blue-deep);
}
.chip.live {
  background: var(--blue);
  color: #fff;
}
.chip.neutral {
  background: var(--ground);
  color: var(--ink-2);
}
.chip.info::before,
.chip.live::before {
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(45, 103, 232, 0.45);
  }
  60% {
    box-shadow: 0 0 0 5px rgba(45, 103, 232, 0);
  }
}

/* Teléfono (mock del hero) */
.phone {
  position: absolute;
  right: -24px;
  bottom: 0;
  width: 210px;
  background: var(--ink);
  border-radius: 26px;
  padding: 10px;
  box-shadow: 0 30px 50px -20px rgba(23, 23, 27, 0.45);
}
.screen {
  background: #fff;
  border-radius: 18px;
  padding: 14px 12px;
  font-size: 0.7rem;
  display: grid;
  gap: 9px;
  min-height: 300px;
  align-content: start;
}
.screen .k {
  color: var(--ink-3);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.screen .v {
  font-weight: 700;
}
.geo {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--ok-soft);
  color: var(--ok);
  padding: 6px 8px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.66rem;
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.seg span {
  padding: 6px;
  text-align: center;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--ink-3);
}
.seg span.on {
  background: var(--ink);
  color: #fff;
}
.pad {
  height: 52px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  position: relative;
  background: var(--ground-2);
}
.pad svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.screen .btnm {
  background: var(--blue);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 8px;
  font-weight: 700;
  font-size: 0.7rem;
  margin-top: auto;
}
@media (max-width: 900px) {
  .phone {
    position: static;
    width: 100%;
    max-width: 260px;
    margin: 16px auto 0;
    display: block;
  }
}

/* ============================================
   SIN PROYECTO
============================================ */
.noproj {
  background: var(--ink);
  color: #fff;
  padding-block: 44px;
}
.noproj h3 {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
  font-weight: 500;
}
.noproj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.noproj-grid div {
  border-left: 2px solid var(--blue);
  padding-left: 16px;
}
.noproj-grid strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 6px;
  font-weight: 700;
}
.noproj-grid p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.97rem;
}
@media (max-width: 820px) {
  .noproj-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   EL PROBLEMA
============================================ */
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--ground-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
}
.card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}
.card p {
  color: var(--ink-2);
  font-size: 0.98rem;
}
@media (max-width: 820px) {
  .cards3 {
    grid-template-columns: 1fr;
  }
}
.origin-wrap {
  margin-top: 40px;
  background: var(--ground);
  border-radius: var(--r-lg);
  padding: 32px;
}
.origin-head {
  margin-bottom: 22px;
}
.origin-head h3 {
  font-size: 1.4rem;
  font-weight: 500;
}
.origin {
  display: grid;
  grid-template-columns: 1fr 56px 1.15fr 56px 1fr;
  gap: 12px;
  align-items: stretch;
}
.o-src,
.o-end {
  border-radius: 14px;
  padding: 22px;
  display: grid;
  gap: 6px;
  align-content: center;
}
.o-src {
  background: var(--ink);
  color: #fff;
}
.o-end {
  background: #fff;
  border: 1px solid var(--bad);
  color: var(--ink);
}
.o-src small,
.o-end small {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.o-src small {
  color: var(--blue-tint);
}
.o-end small {
  color: var(--bad);
}
.o-src b,
.o-end b {
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.o-src p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}
.o-end p {
  color: var(--ink-2);
  font-size: 0.92rem;
}
.o-copies {
  display: grid;
  gap: 10px;
}
.o-copies div {
  background: #fff;
  border: 1px dashed var(--ink-3);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.o-arrows,
.o-arrow2 {
  color: var(--ink-3);
  display: flex;
  align-items: stretch;
}
.o-arrows svg,
.o-arrow2 svg {
  width: 100%;
  height: 100%;
}
.origin-close {
  margin-top: 22px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 56ch;
}
@media (max-width: 900px) {
  .origin {
    grid-template-columns: 1fr;
  }
  .o-arrows,
  .o-arrow2 {
    height: 40px;
    justify-content: center;
  }
  .o-arrows svg,
  .o-arrow2 svg {
    width: 40px;
    transform: rotate(90deg);
  }
}
.closing {
  margin-top: 32px;
  font-size: 1.25rem;
  max-width: 56ch;
  font-weight: 500;
  line-height: 1.4;
}

/* ============================================
   LO QUE ESCUCHAMOS + ANTES / DESPUÉS
============================================ */
.stats {
  background: var(--ground);
  padding-block: 64px;
}
.stats h3 {
  max-width: 640px;
  margin-bottom: 30px;
  font-size: 1.5rem;
  font-weight: 500;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
}
.stat .big {
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--blue-deep);
  margin-bottom: 12px;
}
.stat p {
  color: var(--ink-2);
  font-size: 0.97rem;
}
.stats .muted {
  margin-top: 16px;
}
@media (max-width: 820px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
.beforeafter {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
}
/* Igual que en el diseño: el padding también aplica a la etiqueta, la cifra y el texto,
   lo que da el espaciado amplio del bloque */
.beforeafter div {
  padding: 26px 28px;
}
.beforeafter .k {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink-3);
}
.beforeafter .huge {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 10px;
}
.beforeafter .before .huge {
  color: var(--ink);
  text-decoration: line-through;
  text-decoration-color: var(--bad);
  text-decoration-thickness: 3px;
}
.beforeafter .v {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.beforeafter .after {
  background: var(--blue-deep);
  color: #fff;
  border-radius: var(--r-lg);
}
.beforeafter .after .k {
  color: rgba(255, 255, 255, 0.7);
}
.beforeafter .after .v {
  color: rgba(255, 255, 255, 0.78);
}
@media (max-width: 700px) {
  .beforeafter {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .beforeafter .huge {
    margin-bottom: 6px;
  }
}

/* ============================================
   CALCULADORA
============================================ */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}
.calc-form {
  display: grid;
  gap: 16px;
  align-content: start;
}
.field {
  display: grid;
  gap: 6px;
}
.field label,
.field legend {
  font-size: 0.88rem;
  color: var(--ink-2);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.calc-out {
  background: var(--blue-deep);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 32px;
  display: grid;
  gap: 18px;
  align-content: start;
}
.calc-out .big {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.calc-out .lbl {
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.78);
}
.calc-out .line {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}
.calc-out .line b {
  font-size: 1.25rem;
  color: #fff;
}
.calc-out .since {
  background: #fff;
  color: var(--blue-deep);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 1.4;
}
.calc-out .since span {
  font-size: 1.25rem;
}
.calc-out .zero {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
}
.calc-foot {
  margin-top: 18px;
}
@media (max-width: 820px) {
  .calc {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CÓMO FUNCIONA
============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}
.step .n {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.step h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.step p {
  color: var(--ink-2);
  font-size: 0.97rem;
}
@media (max-width: 980px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Recorrido de quien recibe */
.receiver {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 40px;
}
.receiver h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  font-weight: 500;
}
.receiver .sub {
  margin-bottom: 22px;
  font-size: 0.97rem;
}
.tabs {
  display: grid;
  gap: 6px;
}
.tab {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink-2);
  font-size: 0.97rem;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.tab b {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.tab strong {
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}
.tab:hover {
  background: var(--ground-2);
}
.tab[aria-selected="true"] {
  background: #fff;
  border-color: var(--line);
}
.tab[aria-selected="true"] b {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.tab .bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--blue);
  border-radius: 0 3px 3px 0;
}
.tab[aria-selected="true"].auto .bar {
  animation: fill 4s linear forwards;
}
@keyframes fill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
.screens {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
/* Pantallas de la app: las imágenes ya incluyen el marco del teléfono */
.device {
  position: relative;
  width: 270px;
  max-width: 100%;
  aspect-ratio: 1170/2400;
  filter: drop-shadow(0 28px 36px rgba(23, 23, 27, 0.22));
}
.device img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.device img.on {
  opacity: 1;
}
@media (max-width: 900px) {
  .receiver {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
  .screens {
    order: -1;
    margin-bottom: 8px;
  }
  .device {
    width: 240px;
  }
}

/* ============================================
   QUÉ PRUEBA (documento + acordeón)
============================================ */
.opening {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 26ch;
  margin-bottom: 14px;
}
.pod {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
  margin-top: 40px;
}
.pod > * {
  min-width: 0;
}
.doc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(23, 23, 27, 0.3);
  padding: 26px 28px 20px;
  position: relative;
  font-size: 0.74rem;
  overflow: visible;
}
.doc .wm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  border-radius: 6px;
}
.doc .wm span {
  transform: rotate(-24deg);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(194, 55, 47, 0.1);
  border: 4px solid rgba(194, 55, 47, 0.1);
  padding: 6px 18px;
  border-radius: 8px;
  white-space: nowrap;
}
.doc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.doc-head .co {
  font-weight: 700;
  font-size: 0.9rem;
}
.doc-head .co small {
  display: block;
  font-weight: 400;
  color: var(--ink-3);
  font-size: 0.68rem;
}
.doc-head .fol {
  text-align: right;
  color: var(--ink-2);
}
.doc-head .fol b {
  display: block;
  color: var(--ink);
}
.doc-lines {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.doc-lines i {
  display: block;
  height: 8px;
  background: var(--ground);
  border-radius: 3px;
}
.doc-lines i.s {
  width: 60%;
}
.doc-lines i.m {
  width: 82%;
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.doc-table th,
.doc-table td {
  border: 1px solid var(--line);
  padding: 5px 7px;
  text-align: left;
}
.doc-table th {
  background: var(--ground-2);
  font-weight: 700;
  color: var(--ink-2);
}
.doc-sign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.doc-sign .box {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  min-height: 64px;
  min-width: 0;
  position: relative;
  overflow-wrap: anywhere; /* el correo del firmante no desborda en pantallas de 320px */
}
.doc-sign .box .k {
  color: var(--ink-3);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.doc-sign .box .v {
  font-weight: 700;
}
.doc-sign .box svg {
  position: absolute;
  right: 8px;
  bottom: 6px;
  width: 90px;
  height: 34px;
}
.doc-meta {
  border-top: 1px solid var(--ink);
  padding-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
  color: var(--ink-2);
  font-size: 0.64rem;
  position: relative;
}
.doc-meta b {
  color: var(--ink);
}
.doc-inc {
  margin-top: 10px;
  background: var(--bad-soft);
  border: 1px solid #f1c6c2;
  border-radius: 6px;
  padding: 8px 10px;
  position: relative;
}
.doc-inc b {
  color: var(--bad);
}
.doc-inc .ph {
  display: inline-block;
  width: 44px;
  height: 30px;
  background: #e6bcb8;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 6px;
}
.hl {
  position: relative;
  border-radius: 4px;
  transition:
    box-shadow 0.2s,
    background 0.2s;
}
.hl.on {
  box-shadow: 0 0 0 3px var(--blue);
  background: var(--blue-soft);
}
.tag {
  position: absolute;
  background: var(--ink-3);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px #fff;
  transition: background 0.2s;
}
.hl.on .tag {
  background: var(--blue);
}
.certfile {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.85rem;
  position: relative;
}
.certfile .ic {
  width: 34px;
  height: 40px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  position: relative;
  flex: none;
}
.certfile .ic::after {
  content: "NOM";
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.5rem;
  font-weight: 700;
}
.certfile b {
  display: block;
}
.certfile small {
  color: var(--ink-3);
}
.acc {
  display: grid;
  gap: 8px;
}
.acc details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.acc summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 1.05rem;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 12px;
  align-items: center;
}
.acc summary::-webkit-details-marker {
  display: none;
}
.acc summary b {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ground);
  color: var(--ink);
  font-size: 0.72rem;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.acc details[open] summary b {
  background: var(--blue);
  color: #fff;
}
.acc summary::after {
  content: "+";
  color: var(--blue);
  font-size: 1.3rem;
  font-weight: 400;
}
.acc details[open] summary::after {
  content: "–";
}
.acc details p {
  padding: 0 18px 18px 56px;
  color: var(--ink-2);
  font-size: 0.97rem;
}
@media (max-width: 900px) {
  .pod {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   COMPARADO
============================================ */
.scroll-hint {
  display: none;
  margin-bottom: 10px;
}
@media (max-width: 900px) {
  .scroll-hint {
    display: block;
  }
}
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}
table.compare {
  border-collapse: collapse;
  width: 100%;
  min-width: 860px;
  font-size: 0.92rem;
}
.compare th,
.compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  font-weight: 700;
  background: var(--ground-2);
}
.compare tbody th {
  font-weight: 700;
  color: var(--ink);
  width: 26%;
}
.compare td {
  color: var(--ink-2);
}
.compare tbody tr:last-child td,
.compare tbody tr:last-child th {
  border-bottom: 0;
}
.compare .dp {
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-weight: 700;
}
.compare thead .dp {
  background: var(--blue-deep);
  color: #fff;
}
.compare tbody .dp {
  border-left: 1px solid var(--blue-soft);
  border-right: 1px solid var(--blue-soft);
}
@media (max-width: 700px) {
  .compare tbody th,
  .compare thead th:first-child {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
    box-shadow: 2px 0 0 var(--line);
  }
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.mark::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.mark.y::before {
  background: var(--ok);
}
.mark.n::before {
  background: var(--bad);
}
.mark.p::before {
  background: var(--warn);
}
.punch {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.punch p {
  padding: 26px 28px;
  font-size: 1.05rem;
  line-height: 1.45;
}
.punch-a {
  color: var(--ink-2);
}
.punch-b {
  background: var(--blue-deep);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}
@media (max-width: 760px) {
  .punch {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   POR QUÉ IMPORTA
============================================ */
.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why div {
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--ground-2);
  border: 1px solid var(--line);
}
.why h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  color: var(--blue-deep);
}
.why p {
  color: var(--ink-2);
  font-size: 0.97rem;
}
@media (max-width: 820px) {
  .why {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CUMPLIMIENTO
============================================ */
.comp {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.comp div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}
.comp h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.comp p {
  color: var(--ink-2);
  font-size: 0.93rem;
}
@media (max-width: 980px) {
  .comp {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .comp {
    grid-template-columns: 1fr;
  }
}
.secline {
  margin-top: 22px;
  padding: 16px 20px;
  border-left: 3px solid var(--ink);
  font-size: 0.95rem;
  color: var(--ink-2);
}
.secline b {
  color: var(--ink);
}
.legal-foot {
  margin-top: 18px;
}

/* ============================================
   PRECIOS
============================================ */
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.plan .q {
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan .q small {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-2);
  display: block;
  margin-top: 4px;
}
.plan .price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-deep);
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.plan .price small {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ink-3);
}
.plan .btn {
  margin-top: 6px;
}
.plan.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
/* Debajo de 1140px los cuatro botones "Solicitar link de pago" ya no caben en una fila */
@media (max-width: 1140px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .plans {
    grid-template-columns: 1fr;
  }
}
.incl {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}
.incl-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 26px;
}
.incl-list h3 {
  font-size: 1rem;
  margin-bottom: 14px;
}
.incl-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.incl-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.incl-list li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--ok)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/11px no-repeat;
}
.incl-side {
  display: grid;
  gap: 16px;
}
.incl-side div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.incl-side b {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}
.incl-side a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.incl-side .vol {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.85);
  border-color: var(--blue-deep);
}
.incl-side .vol b {
  color: #fff;
  font-size: 1.05rem;
}
.incl-side .vol a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 900px) {
  .incl {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .incl-list ul {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PARA QUIÉN
============================================ */
.who {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.who div {
  padding: 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #fff;
}
.who h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}
.who p {
  color: var(--ink-2);
  font-size: 0.95rem;
}
.who .ent {
  background: var(--blue-deep);
  color: #fff;
  border-color: var(--blue-deep);
}
.who .ent p {
  color: rgba(255, 255, 255, 0.8);
}
@media (max-width: 980px) {
  .who {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .who {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PLATAFORMA
============================================ */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tier {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: grid;
  gap: 12px;
  grid-template-rows: auto auto 1fr auto;
  background: #fff;
}
.tier .lvl {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-weight: 700;
}
.tier h3 {
  font-size: 1.3rem;
}
.tier p {
  color: var(--ink-2);
  font-size: 0.97rem;
}
.tier .btn {
  justify-self: start;
  align-self: end;
  margin-top: 8px;
}
.tier.first {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.addons {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 0.97rem;
}
@media (max-width: 820px) {
  .tiers {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   INTEGRACIÓN
============================================ */
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.case {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  display: grid;
  gap: 10px;
  align-content: start;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.case:hover {
  border-color: var(--ink);
}
.case[aria-selected="true"] {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.case .lbl {
  display: inline-flex;
  justify-self: start;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}
.case h3 {
  font-size: 1.2rem;
}
.case .st {
  color: var(--ink-3);
  font-size: 0.9rem;
}
.case p {
  color: var(--ink-2);
  font-size: 0.97rem;
}
@media (max-width: 760px) {
  .cases {
    grid-template-columns: 1fr;
  }
}
.code {
  margin-top: 28px;
  background: var(--ink);
  color: #e8e8e9;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.code-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}
.code-top .t {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
.code-top .ep {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  border-radius: 6px;
}
.code pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
}
.limits {
  margin-top: 28px;
  padding: 18px 22px;
  border-left: 3px solid var(--ink);
  color: var(--ink-2);
  font-size: 0.95rem;
}
.limits b {
  color: var(--ink);
}
.int-more {
  margin-top: 22px;
}

/* ============================================
   FAQ
============================================ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 820px) 1fr;
  gap: 48px;
  align-items: start;
}
.faq {
  max-width: 820px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--blue);
  font-weight: 400;
  flex: none;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  padding: 0 0 20px;
  color: var(--ink-2);
  max-width: 68ch;
}
.faq .grp {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-weight: 700;
  margin: 34px 0 6px;
}
.faq .grp:first-of-type {
  margin-top: 0;
}
.faq-aside {
  position: sticky;
  top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 24px);
}
.faq-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  display: grid;
  gap: 12px;
}
.faq-card h3 {
  font-size: 1.15rem;
}
.faq-card p {
  color: var(--ink-2);
  font-size: 0.97rem;
}
.faq-card .btn {
  justify-self: start;
}
@media (max-width: 980px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .faq-aside {
    position: static;
  }
}

/* ============================================
   EMPIEZA (formulario unificado)
============================================ */
.start {
  background: var(--ground);
}
.start .sec-head {
  margin-bottom: 32px;
}
.start-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  align-items: start;
}
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  display: grid;
  gap: 16px;
}
.segment {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--ground);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.segment button {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 11px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.segment button[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(23, 23, 27, 0.12);
}
.pane {
  display: grid;
  gap: 16px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) {
  .two {
    grid-template-columns: 1fr;
  }
  .segment {
    grid-template-columns: 1fr;
  }
}
fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
fieldset.field legend {
  padding: 0;
  margin-bottom: 6px;
}
.radio-group {
  display: grid;
  gap: 8px;
}
.radio {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.97rem;
}
.radio:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.radio input {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
  margin: 0;
}
.field [aria-invalid="true"] {
  border-color: var(--bad);
  box-shadow: 0 0 0 3px var(--bad-soft);
}
.form-error {
  color: var(--bad);
  font-size: 0.95rem;
  font-weight: 500;
}
.form-error:empty {
  display: none;
}
.confirm {
  display: none;
  background: var(--ok-soft);
  color: var(--ok);
  border-radius: 10px;
  padding: 14px 16px;
  font-weight: 500;
}
.confirm.show {
  display: block;
}
.confirm:focus {
  outline: none;
}
/* Honeypot: fuera de pantalla para personas, visible para bots */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.start .after {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 28px;
}
.start .after h3 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  margin-bottom: 18px;
}
.start .after ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.start .after li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}
.start .after li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 8px;
}
.start .after .contact {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}
.start .after .contact a {
  color: #fff;
  text-underline-offset: 3px;
}
.start .after .contact .mail {
  display: block;
  font-weight: 500;
  text-decoration: none;
}
.start .after .contact .mail:hover {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .start-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CTA FIJO (móvil)
============================================ */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px rgba(23, 23, 27, 0.18);
  font-size: 0.92rem;
}
.sticky-cta .btn {
  padding: 11px 16px;
  font-size: 0.93rem;
}
@media (min-width: 901px) {
  .sticky-cta {
    display: none !important;
  }
}

/* ============================================
   FOOTER
============================================ */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding-block: 56px 32px;
  font-size: 0.92rem;
}
.foot {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.foot .brand {
  margin-bottom: 12px;
}
.foot .brand svg {
  height: 34px;
}
.foot h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  font-weight: 700;
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.foot a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}
.foot a:hover {
  color: #fff;
}
/* El logo conserva el azul claro de marca sobre el fondo negro */
.foot .brand,
.foot .brand:hover {
  color: var(--blue);
}
.foot-mail {
  margin-top: 14px;
}
.social {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition:
    background 0.15s,
    border-color 0.15s;
}
.social a:hover {
  background: var(--blue);
  border-color: var(--blue);
}
.social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 820px) {
  .foot {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .foot {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   WHATSAPP Y RECAPTCHA (elementos flotantes)
============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 58px;
  height: 58px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  z-index: 45;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    bottom 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}
.whatsapp-float::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.6;
  animation: wa-pulse 2s infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
/* Badge de reCAPTCHA en la esquina inferior izquierda: solo el logo, se expande al pasar el cursor */
.grecaptcha-badge {
  left: 16px !important;
  right: auto !important;
  bottom: 16px !important;
  width: 70px !important;
  overflow: hidden !important;
  z-index: 45 !important;
  transition:
    width 0.3s ease,
    bottom 0.3s ease !important;
}
.grecaptcha-badge:hover {
  width: 256px !important;
}
/* En móvil, suben cuando aparece el CTA fijo */
@media (max-width: 900px) {
  body.has-sticky .whatsapp-float {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
  body.has-sticky .grecaptcha-badge {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* ============================================
   ANIMACIÓN AL HACER SCROLL
============================================ */
.reveal {
  transform: translateY(18px);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transform: none;
  }
  .hero *,
  .hero-visual {
    animation: none !important;
  }
}
