/* ==========================================================================
   Jurídica en Línea — Landing Page
   Paleta del Manual de Identidad:
     Azul profundo  #022440 · Azul oscuro #04315A
     Azul turquesa  #1E89A7 · Cian acento #3FF3F2
   Tipografías del manual: Nasalization (display) y Helvetica Neue (texto).
   Sustitutos web: "Exo 2" e "Inter". Si tienes licencia de Nasalization,
   descomenta el @font-face.
   ========================================================================== */

/*
@font-face {
  font-family: "Nasalization";
  src: url("../assets/fonts/nasalization-rg.woff2") format("woff2");
  font-display: swap;
}
*/

:root {
  --azul-profundo: #022440;
  --azul-oscuro: #04315A;
  --turquesa: #1E89A7;
  --cian: #3FF3F2;

  /* Marca evolucionada (legal-tech) */
  --primary: #1E3A8A;        /* navy royal */
  --primary-strong: #022440; /* navy profundo (hero/CTA) */
  --cta: #EA580C;            /* ámbar cálido — acción primaria */
  --cta-strong: #C2410C;     /* hover / contraste AA */

  --ink: #0B2239;
  --ink-muted: #51677e;
  --paper: #F8FAFC;
  --surface: #FFFFFF;
  --line: #DCE6EE;

  --inverse: #EAF4F8;
  --inverse-muted: rgba(234, 244, 248, 0.72);
  --line-dark: rgba(63, 243, 242, 0.14);
  --glass: rgba(255, 255, 255, 0.06);

  --grad-accent: linear-gradient(90deg, #2BB8C9 0%, var(--cian) 100%);
  --grad-cta: linear-gradient(135deg, #F97316 0%, var(--cta) 55%, var(--cta-strong) 100%);
  --warn: #FF8A5B;
  --grad-warn: linear-gradient(90deg, #FF6B6B 0%, #FFA552 100%);

  --font-display: "Space Grotesk", "Exo 2", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 2px 8px rgba(2, 36, 64, 0.05), 0 12px 32px rgba(2, 36, 64, 0.08);
  --shadow-card-hover: 0 4px 12px rgba(2, 36, 64, 0.08), 0 20px 48px rgba(2, 36, 64, 0.16);
  --shadow-mockup: 0 24px 64px rgba(2, 36, 64, 0.22);
  --container: 1180px;
  --nav-height: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.55em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--turquesa); }

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

.text-gradient {
  background: linear-gradient(92deg, #4BE3E2 10%, var(--cian) 55%, #9ffaf9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(30, 137, 167, 0.1);
  border: 1px solid rgba(30, 137, 167, 0.25);
  color: var(--azul-oscuro);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--turquesa);
  box-shadow: 0 0 0 3px rgba(30, 137, 167, 0.2);
}

.eyebrow--dark {
  background: rgba(63, 243, 242, 0.07);
  border-color: rgba(63, 243, 242, 0.3);
  color: var(--cian);
}

.eyebrow--dark .eyebrow__dot {
  background: var(--cian);
  box-shadow: 0 0 12px rgba(63, 243, 242, 0.8);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  touch-action: manipulation;
}

.btn svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn:focus-visible { outline: 3px solid var(--cian); outline-offset: 3px; }

.btn--accent {
  background: var(--grad-accent);
  color: var(--azul-profundo);
  box-shadow: 0 4px 20px rgba(43, 184, 201, 0.35);
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(63, 243, 242, 0.45);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--inverse);
  box-shadow: inset 0 0 0 1.5px rgba(234, 244, 248, 0.35);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--cian); color: var(--cian); }

.btn--lg { min-height: 56px; padding: 15px 36px; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill svg { width: 11px; height: 11px; }

.pill--success { background: rgba(16, 185, 129, 0.14); color: #0a7a58; }
.pill--accent { background: rgba(30, 137, 167, 0.14); color: var(--azul-oscuro); }
.pill--warn { background: rgba(217, 119, 6, 0.13); color: #92580a; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(2, 36, 64, 0.55);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar--solid {
  background: rgba(255, 255, 255, 0.68);
  border-bottom-color: rgba(2, 36, 64, 0.08);
  box-shadow: 0 8px 32px rgba(2, 36, 64, 0.10);
}

/* Al hacer scroll el fondo es claro: oscurecemos logo y texto para legibilidad */
.navbar--solid .navbar__brand img { filter: brightness(0); }
.navbar--solid .navbar__brand-fallback { color: var(--ink); }
.navbar--solid .navbar__brand-fallback small { color: var(--turquesa); }
.navbar--solid .navbar__links a { color: var(--ink); }
.navbar--solid .navbar__links a:hover,
.navbar--solid .navbar__links a:focus-visible {
  color: var(--primary);
  background: rgba(30, 58, 138, 0.06);
}
.navbar--solid .navbar__toggle span { background: var(--ink); }

.navbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.navbar__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
}

.navbar__brand img { max-height: 46px; width: auto; }

.navbar__brand-fallback {
  display: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
  color: #fff;
}

.navbar__brand-fallback small {
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--cian);
}

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

.navbar__links a {
  position: relative;
  color: var(--inverse-muted);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar__links a:hover,
.navbar__links a:focus-visible {
  color: var(--cian);
  background: rgba(63, 243, 242, 0.07);
}

.navbar__cta {
  min-height: 42px;
  padding: 8px 22px;
  font-size: 0.92rem;
}

/* Navbar minimal (página Próximamente): solo logo + botón Prueba Gratis */
.navbar--minimal .navbar__inner { display: flex; }
.navbar__cta-solo {
  min-height: 42px;
  padding: 8px 22px;
  font-size: 0.92rem;
}

/* Elementos solo para móvil — ocultos en escritorio */
.navbar__cta-mobile,
.navbar__toggle,
.navbar__drawer { display: none; }

/* Hamburguesa moderna (dos trazos) */
.navbar__toggle {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.navbar__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--inverse);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}
.navbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.navbar__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Panel desplegable del menú móvil */
.navbar__drawer {
  position: absolute;
  top: calc(var(--nav-height) - 8px);
  right: 0;
  min-width: 210px;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(2, 36, 64, 0.92);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line-dark);
  box-shadow: 0 18px 44px rgba(1, 16, 30, 0.45);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.navbar__drawer.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.navbar__drawer a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 14px;
  border-radius: 10px;
  color: var(--inverse);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.navbar__drawer a:hover,
.navbar__drawer a:focus-visible {
  background: rgba(63, 243, 242, 0.08);
  color: var(--cian);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(168deg, #011a30 0%, var(--azul-profundo) 35%, var(--azul-oscuro) 80%, #05426f 100%);
  color: var(--inverse);
  padding: calc(var(--nav-height) + 88px) 0 72px;
}

.hero__grid-bg,
.cta__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(63, 243, 242, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 243, 242, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

.hero__glow--1 {
  width: 660px;
  height: 660px;
  right: -190px;
  top: -140px;
  background: radial-gradient(circle, rgba(30, 137, 167, 0.38), transparent 65%);
}

.hero__glow--2 {
  width: 460px;
  height: 460px;
  left: -160px;
  bottom: -200px;
  background: radial-gradient(circle, rgba(63, 243, 242, 0.14), transparent 65%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.hero__lead {
  font-size: 1.18rem;
  line-height: 1.75;
  color: var(--inverse-muted);
  max-width: 54ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0 36px;
}

.hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--inverse);
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(234, 244, 248, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.hero__trust li:hover {
  border-color: rgba(63, 243, 242, 0.4);
  background: rgba(63, 243, 242, 0.07);
}

.hero__trust svg { width: 17px; height: 17px; color: var(--cian); flex-shrink: 0; }

/* --- Collage de UI flotante --- */
.hero__visual { position: relative; }

.hero__visual-stack {
  position: relative;
  display: grid;
  gap: 18px;
  max-width: 440px;
  margin-left: auto;
}

.float-card {
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(234, 244, 248, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 48px rgba(1, 16, 30, 0.5);
  padding: 16px 18px;
}

/* Tarjeta tipo documento de papel */
.float-card--doc {
  animation: floaty 8s ease-in-out 0.8s infinite;
  min-width: 300px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFCFE 100%);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-mockup);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 28px 26px 26px;
}

.float-card__doc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.float-card__doc-title { font-weight: 600; font-size: 0.92rem; color: var(--ink); }

.float-card__doc-lines { display: grid; gap: 12px; margin-bottom: 34px; }
.float-card__doc-lines span {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: rgba(11, 34, 57, 0.10);
}

.float-card__doc-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.float-card__signature {
  font-family: "Snell Roundhand", "Segoe Script", cursive;
  font-size: 1.6rem;
  color: var(--azul-oscuro);
  border-bottom: 1px solid rgba(4, 49, 90, 0.28);
  display: inline-block;
  padding: 0 22px 3px 4px;
  position: relative;
}

.float-card__signature .sig-char {
  display: inline-block;
  opacity: 0;
  transition: opacity 0.08s ease;
}

.float-card__signature::after { display: none; }

/* Sello "Verificado" */
.float-card__seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--turquesa);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  animation: seal-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) 2.2s forwards;
}

.float-card__seal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(30, 137, 167, 0.12);
  color: var(--turquesa);
  flex-shrink: 0;
}

.float-card__seal-mark svg { width: 11px; height: 11px; }

@keyframes seal-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.rec-indicator i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f5f;
  animation: blink 1.4s ease-in-out infinite;
}

/* Waveform */
.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  margin-top: 10px;
}

.waveform span {
  flex: 1;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cian), var(--turquesa));
  animation: wave 1.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
  height: 85%;
  transform-origin: bottom;
}

/* Delays escalonados para que el bounce se propague de izquierda a derecha */
.waveform span:nth-child(1)  { animation-delay: 0.0s;  }
.waveform span:nth-child(2)  { animation-delay: 0.07s; }
.waveform span:nth-child(3)  { animation-delay: 0.14s; }
.waveform span:nth-child(4)  { animation-delay: 0.21s; }
.waveform span:nth-child(5)  { animation-delay: 0.28s; }
.waveform span:nth-child(6)  { animation-delay: 0.35s; }
.waveform span:nth-child(7)  { animation-delay: 0.42s; }
.waveform span:nth-child(8)  { animation-delay: 0.49s; }
.waveform span:nth-child(9)  { animation-delay: 0.56s; }
.waveform span:nth-child(10) { animation-delay: 0.63s; }
.waveform span:nth-child(11) { animation-delay: 0.70s; }
.waveform span:nth-child(12) { animation-delay: 0.77s; }

.waveform--lg { height: 34px; margin: 16px 0 14px; }

/* Cinta de stats */
.hero__stats {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 72px 0 0;
  padding: 0;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero__stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-accent);
  opacity: 0.85;
}

.hero__stat:hover {
  transform: translateY(-4px);
  border-color: rgba(63, 243, 242, 0.4);
  box-shadow: 0 16px 40px rgba(1, 16, 30, 0.45);
}

.hero__stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(63, 243, 242, 0.12);
  border: 1px solid rgba(63, 243, 242, 0.22);
  color: var(--cian);
  flex-shrink: 0;
}

.hero__stat-icon svg { width: 22px; height: 22px; }

.hero__stat strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--cian);
  white-space: nowrap;
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--inverse-muted);
}

/* ---------- Secciones ---------- */
section[id] { scroll-margin-top: calc(var(--nav-height) + 8px); }

.section { padding: 104px 0; }
.section--white { background: var(--surface); }

.section--dark {
  background: linear-gradient(165deg, var(--azul-profundo) 0%, var(--azul-oscuro) 100%);
  color: var(--inverse);
}

.section__head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 64px;
}

.section__head p { color: var(--ink-muted); font-size: 1.08rem; }

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}

.bento__card {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 32px 30px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bento__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.bento__card--hero {
  grid-column: span 4;
  background:
    radial-gradient(420px 200px at 90% -20%, rgba(63, 243, 242, 0.12), transparent 70%),
    linear-gradient(150deg, var(--azul-profundo), var(--azul-oscuro));
  border-color: rgba(63, 243, 242, 0.25);
  color: var(--inverse);
}

.bento__card--hero .bento__body p { color: var(--inverse-muted); }
.bento__card--hero .bento__link { color: var(--cian); }
.bento__card--hero .bento__icon {
  background: var(--grad-accent);
  color: var(--azul-profundo);
}

.bento__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(30, 137, 167, 0.45);
}

.bento__card:hover::before { opacity: 1; }

.bento__body { flex-grow: 1; }
.bento__body p { color: var(--ink-muted); margin: 0; font-size: 0.97rem; }

.bento__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--azul-oscuro), var(--turquesa));
  color: #fff;
  box-shadow: 0 8px 20px rgba(30, 137, 167, 0.35);
}

.bento__icon svg { width: 26px; height: 26px; }

.bento__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-weight: 600;
  color: var(--turquesa);
  font-size: 0.93rem;
}

.bento__link svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.bento__card:hover .bento__link svg { transform: translateX(4px); }

/* ---------- Módulos ---------- */
.module__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.module--reverse .module__inner { direction: rtl; }
.module--reverse .module__inner > * { direction: ltr; }

.module__number {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--turquesa);
  margin-bottom: 16px;
}

.module__number::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}

.section--dark .module__number { color: var(--cian); }

.module__hook {
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--azul-oscuro);
}

.section--dark .module__hook { color: #b7eef4; }

.module__content > p { color: var(--ink-muted); }
.section--dark .module__content > p { color: var(--inverse-muted); }

.feature-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.feature-list li {
  position: relative;
  padding-left: 38px;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.section--dark .feature-list li { color: var(--inverse-muted); }

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23022440" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>')
    center / 12px no-repeat,
    var(--grad-accent);
  box-shadow: 0 4px 12px rgba(43, 184, 201, 0.4);
}

.feature-list strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 2px;
}

.section--dark .feature-list strong { color: var(--inverse); }

/* Chips */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.chip {
  padding: 8px 17px;
  border-radius: 999px;
  background: rgba(30, 137, 167, 0.09);
  border: 1px solid rgba(30, 137, 167, 0.28);
  color: var(--azul-oscuro);
  font-size: 0.87rem;
  font-weight: 500;
}

.section--dark .chip {
  color: var(--inverse);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Callout — tarjeta destacada premium */
.callout {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 32px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30, 137, 167, 0.07) 0%, rgba(63, 243, 242, 0.05) 100%);
  border: 1px solid rgba(30, 137, 167, 0.18);
  box-shadow: 0 1px 2px rgba(2, 36, 64, 0.04), 0 14px 32px rgba(2, 36, 64, 0.07);
  overflow: hidden;
}

/* Badge del icono */
.callout__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--grad-accent);
  box-shadow: 0 6px 16px rgba(30, 137, 167, 0.28);
}
.callout__icon svg { width: 24px; height: 24px; color: var(--azul-profundo); }

.callout p { margin: 0; font-size: 0.97rem; line-height: 1.55; color: var(--ink); }
.callout strong { color: var(--primary); font-weight: 700; }

/* ---------- Mockups ---------- */
.module__visual { margin: 0; }

/* Imagen-marco (mockup de pantalla) dentro de un módulo */
.module__frame {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 28px 56px rgba(2, 36, 64, 0.22));
}

.mockup {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-mockup);
  overflow: hidden;
}

.mockup__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  background: #EEF4F9;
  border-bottom: 1px solid var(--line);
}

.mockup__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d4dee7;
}

.mockup__bar i:nth-child(1) { background: #ffb4ab; }
.mockup__bar i:nth-child(2) { background: #ffd58f; }
.mockup__bar i:nth-child(3) { background: #9be3b3; }

.mockup__bar span {
  margin-left: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mockup__bar--dark {
  background: rgba(2, 36, 64, 0.65);
  border-bottom-color: var(--line-dark);
}

.mockup__bar--dark i { background: rgba(234, 244, 248, 0.2); }

.mockup--glass {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(234, 244, 248, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 64px rgba(1, 16, 30, 0.55);
}

.rec-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ff9d9d !important;
}

/* Documento firmado */
.mockup__doc-body { padding: 28px 30px; }

.skeleton-line {
  height: 9px;
  border-radius: 5px;
  background: #E5EDF4;
  margin-bottom: 11px;
}

.signature-block {
  margin: 26px 0 22px;
  display: flex;
  flex-direction: column;
}

.signature-block__name {
  font-family: "Snell Roundhand", "Segoe Script", cursive;
  font-size: 1.9rem;
  color: var(--azul-oscuro);
  padding-left: 6px;
  position: relative;
  display: inline-block;
}

.signature-block__name .sig-char {
  display: inline-block;
  opacity: 0;
  transition: opacity 0.08s ease;
}

.signature-block__name::after { display: none; }

.signature-block__line {
  height: 1.5px;
  background: var(--ink);
  width: 220px;
  margin: 4px 0 6px;
}

.signature-block__label { font-size: 0.78rem; color: var(--ink-muted); }

.audit-trail {
  border-radius: var(--radius-sm);
  background: #F2FBF7;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 16px 18px;
}

.audit-trail ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.audit-trail b { color: var(--ink); font-weight: 600; }

/* Transcript */
.transcript { padding: 24px 26px; }

.transcript__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  margin-bottom: 14px;
  align-items: start;
}

.transcript__row p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--inverse-muted);
  line-height: 1.55;
}

.transcript__row mark {
  background: rgba(63, 243, 242, 0.18);
  color: var(--cian);
  padding: 0 4px;
  border-radius: 4px;
}

.speaker {
  display: inline-block;
  text-align: center;
  padding: 4px 0;
  border-radius: 7px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.speaker--judge { background: rgba(63, 243, 242, 0.14); color: var(--cian); }
.speaker--lawyer { background: rgba(155, 201, 255, 0.14); color: #9bc9ff; }
.speaker--defendant { background: rgba(255, 200, 130, 0.14); color: #ffc882; }

.mockup__action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(63, 243, 242, 0.4);
  background: rgba(63, 243, 242, 0.08);
  color: var(--cian);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: default;
  pointer-events: none;
}

.mockup__action svg { width: 17px; height: 17px; }

.mockup__action--solid {
  width: calc(100% - 48px);
  margin: 0 24px 24px;
  background: var(--grad-accent);
  border: 0;
  color: var(--azul-profundo);
  box-shadow: 0 6px 20px rgba(43, 184, 201, 0.35);
}

/* Buscador semántico */
.mockup--search { padding: 24px; background: var(--surface); }

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-radius: 13px;
  border: 1.5px solid var(--turquesa);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(30, 137, 167, 0.1);
  margin-bottom: 18px;
}

.search-bar svg { width: 19px; height: 19px; color: var(--turquesa); flex-shrink: 0; }

.search-bar__text {
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 500;
  min-width: 0;
  min-height: 1.4em;
  overflow-wrap: break-word;
}

/* Cursor de escritura (solo durante la animación) */
.mockup--search.is-animating .search-bar__text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.15em;
  background: var(--turquesa);
  animation: blink 1s steps(1) infinite;
}

.mockup--search.is-results .search-bar__text::after { display: none; }

/* Estado "IA analizando…" */
.search-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--turquesa);
  visibility: hidden;
}

.mockup--search.is-searching .search-status { visibility: visible; }

.search-status__dots { display: inline-flex; gap: 4px; }

.search-status__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--turquesa);
  animation: dot-bounce 1.1s ease-in-out infinite;
}

.search-status__dots i:nth-child(2) { animation-delay: 0.15s; }
.search-status__dots i:nth-child(3) { animation-delay: 0.3s; }

.result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
  background: var(--surface);
}

.result-card:last-child { margin-bottom: 0; }

.result-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.result-card__ref {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--azul-oscuro);
}

.result-card p { margin: 0 0 10px; font-size: 0.85rem; color: var(--ink-muted); }

.result-card__match {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-card__match i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--grad-accent);
  flex-shrink: 0;
  width: var(--match, 80%);
  max-width: 60%;
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}

/* Fases de la animación de búsqueda:
   mientras escribe/busca, los resultados se muestran como skeletons con
   shimmer; al llegar los resultados, el contenido aparece escalonado. */
.mockup--search.is-animating .result-card {
  position: relative;
  overflow: hidden;
}

.mockup--search.is-animating .result-card > * {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.mockup--search.is-animating .result-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #EDF3F8 25%, #F8FCFF 50%, #EDF3F8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

.mockup--search.is-animating .result-card__match i { width: 0; }

.mockup--search.is-results .result-card::after { content: none; }

.mockup--search.is-results .result-card > * { opacity: 1; }
.mockup--search.is-results .result-card:nth-of-type(2) > * { transition-delay: 0.14s; }
.mockup--search.is-results .result-card:nth-of-type(3) > * { transition-delay: 0.28s; }

.mockup--search.is-results .result-card__match i { width: var(--match, 80%); }

.result-card__match span { font-size: 0.74rem; font-weight: 600; color: var(--turquesa); white-space: nowrap; }

.result-card--muted { opacity: 0.65; }
.result-card--muted p { margin-bottom: 0; }

/* Notificaciones (módulo procesos) */
.notif-stack { display: grid; gap: 14px; }

.notif {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(234, 244, 248, 0.14);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 36px rgba(1, 16, 30, 0.4);
}

.notif--urgent {
  border-color: rgba(255, 139, 139, 0.45);
  box-shadow: 0 12px 36px rgba(1, 16, 30, 0.4), 0 0 24px rgba(255, 95, 95, 0.12);
}

.notif__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255, 95, 95, 0.16);
  color: #ff8b8b;
}

.notif__icon svg { width: 20px; height: 20px; }

.notif__icon--ok { background: rgba(63, 243, 242, 0.12); color: var(--cian); }
.notif__icon--wa { background: rgba(37, 211, 102, 0.14); color: #4be38a; }

.notif__body { flex-grow: 1; min-width: 0; }
.notif__body strong { display: block; font-size: 0.92rem; color: var(--inverse); }
.notif__body span { font-size: 0.78rem; color: var(--inverse-muted); }

.notif time { font-size: 0.74rem; color: var(--inverse-muted); flex-shrink: 0; }

.notif--ghost {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
  justify-content: center;
  text-align: center;
}

/* Tabla de liquidación */
.mockup--calc { background: var(--surface); }

.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 6px 0 20px;
}

.calc-table th,
.calc-table td {
  padding: 11px 24px;
  text-align: left;
}

.calc-table td:last-child,
.calc-table th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.calc-table thead th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}

.calc-table tbody td {
  color: var(--ink-muted);
  border-bottom: 1px solid #EDF3F8;
}

.calc-table tfoot td {
  font-weight: 700;
  color: var(--ink);
  background: rgba(30, 137, 167, 0.07);
  border-top: 2px solid var(--turquesa);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq__item[open] {
  border-color: rgba(30, 137, 167, 0.45);
  box-shadow: var(--shadow-card-hover);
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

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

.faq__item summary::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--turquesa);
  border-bottom: 2.5px solid var(--turquesa);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: -4px;
}

.faq__item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq__item p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--ink-muted);
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  background: linear-gradient(168deg, var(--azul-oscuro) 0%, var(--azul-profundo) 60%, #011a30 100%);
  color: var(--inverse);
  padding: 110px 0;
  overflow: hidden;
}

.cta__card {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 48px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(63, 243, 242, 0.22);
  backdrop-filter: blur(14px);
  box-shadow: 0 32px 80px rgba(1, 16, 30, 0.55), inset 0 1px 0 rgba(234, 244, 248, 0.12);
}

.cta__card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 26px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(63, 243, 242, 0.55), transparent 40%, transparent 65%, rgba(30, 137, 167, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.cta__logo { max-height: 130px; margin-bottom: 26px; }

.cta p {
  color: var(--inverse-muted);
  font-size: 1.12rem;
  max-width: 46ch;
  margin: 0 auto 1em;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}

/* ---------- Footer ---------- */
.footer {
  background: #011a30;
  color: var(--inverse-muted);
  padding: 72px 0 40px;
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.footer h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cian);
  margin-bottom: 18px;
}

.footer__body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px;
  padding-bottom: 48px;
}

.footer__brand img {
  max-height: 48px;
  margin-bottom: 16px;
  display: block;
}
.footer__brand .navbar__brand-fallback { font-size: 1.05rem; }
.footer__brand p {
  margin-top: 12px;
  line-height: 1.6;
}

.footer__social-col { display: flex; flex-direction: column; }

.footer__social {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__social a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--inverse-muted);
  text-decoration: none;
  padding: 6px 0;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer__social a svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.footer__social a:hover { color: var(--cian); }

.footer__links,
.footer__contact,
.footer__compliance {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__links a,
.footer__contact a,
.footer__compliance a {
  color: var(--inverse-muted);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.footer__links a:hover,
.footer__contact a:hover,
.footer__compliance a:hover { color: var(--cian); }

.footer__legal {
  border-top: 1px solid rgba(234, 244, 248, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(234, 244, 248, 0.4);
}

.footer__legal p { margin: 0; }

/* ---------- Animaciones ---------- */
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@keyframes wave {
  0%   { transform: scaleY(0.15); }
  40%  { transform: scaleY(1.0); }
  55%  { transform: scaleY(0.7); }
  70%  { transform: scaleY(0.95); }
  85%  { transform: scaleY(0.5); }
  100% { transform: scaleY(0.15); }
}

@keyframes dot-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: 180% 0; }
  100% { background-position: -20% 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

/* fade suave: mismo desplazamiento vertical que .reveal, una sola vez.
   (Antes deslizaba en horizontal, lo que generaba saltos en tablet/móvil.) */
.reveal--left {
  transition-duration: 0.8s;
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 768px) {
  /* Badges de confianza del hero centradas en móvil */
  .hero__trust { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .bento__card, .btn svg, .bento__link svg { transition: none; }
  .float-card--doc,
  .waveform span, .rec-indicator i { animation: none; }
  .float-card__seal { opacity: 1; transform: none; animation: none; }
  .float-card__signature .sig-char,
  .signature-block__name .sig-char { opacity: 1 !important; transition: none; }
  .float-card__signature::after,
  .signature-block__name::after { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero { padding: calc(var(--nav-height) + 56px) 0 56px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero__visual-stack { margin: 0 auto; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stat { padding: 24px 22px; }

  .section { padding: 72px 0; }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card, .bento__card--hero { grid-column: span 1; }

  /* Menú móvil: Prueba Gratis (izq) · logo (centro) · hamburguesa (der) */
  .navbar__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
  }
  .navbar__links,
  .navbar__cta { display: none; }

  .navbar__cta-mobile,
  .navbar__cta-solo {
    display: inline-flex;
    min-height: 38px;
    padding: 7px 16px;
    font-size: 0.85rem;
  }
  .navbar__cta-mobile { justify-self: start; }
  .navbar__brand { justify-self: center; margin-right: 0; }
  .navbar__brand img { max-height: 42px; }
  .navbar__toggle { display: inline-flex; justify-self: end; }
  .navbar__drawer { display: flex; }

  .module__inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .module__visual { max-width: 560px; width: 100%; }
  .module--reverse .module__visual { justify-self: start; }

  /* La imagen-marco se reduce para que se vea completa en pantalla móvil */
  .module__frame { max-width: 230px; }

  .transcript__row { grid-template-columns: 1fr; gap: 5px; }
  .speaker { width: 110px; }

  .footer__body { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 580px) {
  .container { padding: 0 20px; }

  .chip-list { justify-content: center; }

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

  .hero__actions .btn,
  .cta__actions .btn { width: 100%; }

  .hero__stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero__stat { padding: 20px 16px; gap: 10px; }
  .hero__stat strong { font-size: 1.6rem; }
  .hero__stat-icon { width: 38px; height: 38px; }
  .hero__stat-icon svg { width: 19px; height: 19px; }

  .float-card--doc { transform: none; }

  .cta__card { padding: 48px 24px; }

  .calc-table th, .calc-table td { padding: 10px 14px; }

  .footer__body { grid-template-columns: 1fr; gap: 32px; }
  .footer__brand img { max-height: 56px; }
  .footer__compliance { grid-column: auto; }
}

/* =====================================================================
   EMBUDO FIRMA ELECTRÓNICA — componentes añadidos
   ===================================================================== */

/* ---------- Navbar: enlace "Próximamente" ---------- */
.navbar__soon { display: inline-flex; align-items: center; gap: 7px; }
.navbar__soon-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--grad-accent);
  color: var(--azul-profundo);
}

/* ---------- CTA centrado dentro de una sección ---------- */
.section__cta { text-align: center; margin-top: 48px; }

/* ---------- Problema: lista editorial con divisores ---------- */
.pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 44px auto 0;
  padding: 0;
}
.pain-row {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 28px 4px;
  border-bottom: 1px solid rgba(234, 244, 248, 0.12);
}
.pain-row:first-child { padding-top: 8px; }
.pain-row:last-child { border-bottom: 0; }

.pain-row__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 138, 91, 0.1);
  color: var(--warn);
}
.pain-row__icon svg { width: 26px; height: 26px; }

.pain-row__text { padding-top: 2px; }
.pain-row__text h3 {
  color: var(--inverse);
  font-size: 1.24rem;
  margin: 0 0 8px;
}
.pain-row__text p {
  color: var(--inverse-muted);
  margin: 0;
  font-size: 1rem;
  max-width: 60ch;
}

/* ---------- Cómo funciona: pasos ---------- */
/* ---------- Línea de tiempo (Cómo funciona) ---------- */
.timeline {
  position: relative;
  list-style: none;
  margin: 48px auto 0;
  padding: 0;
  max-width: 720px;
}
/* Línea vertical que conecta los nodos */
.timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 25px;
  width: 2px;
  background: linear-gradient(180deg, var(--turquesa) 0%, rgba(30,137,167,0.25) 100%);
  z-index: 0;
}
.timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  padding-bottom: 40px;
}
.timeline__step:last-child { padding-bottom: 0; }

.timeline__node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--turquesa);
  /* El contorno es un inset shadow (sigue el círculo sin dejar arista al rellenar) */
  box-shadow: inset 0 0 0 2px rgba(30, 137, 167, 0.3), 0 6px 18px rgba(2, 36, 64, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}
.timeline__node svg { width: 24px; height: 24px; }

.timeline__step:hover .timeline__node,
.timeline__step.is-active .timeline__node {
  transform: scale(1.06);
  background: var(--grad-accent);
  box-shadow: 0 6px 18px rgba(2, 36, 64, 0.08);
  color: var(--azul-profundo);
}

.timeline__content { padding-top: 4px; }
.timeline__label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquesa);
  margin-bottom: 6px;
}
.timeline__content h3 { margin-bottom: 8px; }
.timeline__content p { margin: 0; color: var(--ink-muted); max-width: 56ch; }

/* ---------- Banda CTA intermedia ---------- */
.cta-band {
  background: var(--azul-oscuro);
  background-image: linear-gradient(120deg, var(--azul-profundo), var(--azul-oscuro));
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 56px 0;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band__inner h2 { color: var(--inverse); margin-bottom: 8px; }
.cta-band__inner p { color: var(--inverse-muted); margin: 0; max-width: 46ch; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Página "Próximamente": hero ---------- */
.soon-hero {
  position: relative;
  background: var(--azul-profundo);
  padding: calc(var(--nav-height) + 70px) 0 80px;
  overflow: hidden;
}
.soon-hero__inner {
  position: relative;
  max-width: 760px;
  text-align: center;
  z-index: 1;
}
.soon-hero__inner h1 { color: var(--inverse); margin-top: 18px; }
.soon-hero__lead {
  color: var(--inverse-muted);
  font-size: 1.12rem;
  max-width: 60ch;
  margin: 0 auto 28px;
}

/* ---------- Roadmap ---------- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.roadmap__item {
  display: flex;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.roadmap__icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(30, 137, 167, 0.1);
  color: var(--turquesa);
}
.roadmap__icon svg { width: 26px; height: 26px; }
.roadmap__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.roadmap__head h3 { margin: 0; }
.roadmap__body p { margin: 0; color: var(--ink-muted); font-size: 0.98rem; }

/* ---------- Lista de espera VIP ---------- */
.waitlist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.waitlist__copy h2 { color: var(--inverse); }
.waitlist__copy p { color: var(--inverse-muted); }
.waitlist__perks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.waitlist__perks li {
  position: relative;
  padding-left: 30px;
  color: var(--inverse);
  font-size: 0.98rem;
}
.waitlist__perks li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--grad-accent);
}
.waitlist__perks li::after {
  content: "";
  position: absolute;
  left: 6px; top: 7px;
  width: 6px; height: 9px;
  border: solid var(--azul-profundo);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.waitlist-form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-mockup);
  display: grid;
  gap: 18px;
}
.waitlist-form__field { display: grid; gap: 7px; }
.waitlist-form__field > span { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.waitlist-form input,
.waitlist-form select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
}
.waitlist-form input:focus,
.waitlist-form select:focus {
  outline: none;
  border-color: var(--turquesa);
  box-shadow: 0 0 0 3px rgba(30, 137, 167, 0.15);
}
.waitlist-form__submit { width: 100%; margin-top: 4px; }
.waitlist-form__ok {
  margin: 0;
  text-align: center;
  font-weight: 600;
  color: #0a7a58;
}
.waitlist-form__legal { margin: 0; font-size: 0.78rem; color: var(--ink-muted); line-height: 1.5; }

/* ---------- Responsive de los nuevos componentes ---------- */
@media (max-width: 900px) {
  .roadmap { grid-template-columns: 1fr; }
  .waitlist { grid-template-columns: 1fr; gap: 32px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 580px) {
  .cta-band__actions .btn { width: 100%; }
  .waitlist-form { padding: 26px 22px; }
}
