/* ==========================================================================
   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;

  --ink: #0B2239;
  --ink-muted: #51677e;
  --paper: #F4F8FB;
  --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%);

  --font-display: "Nasalization", "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: 800; }
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;
  border: 1.5px solid transparent;
  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, border-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);
  border-color: rgba(234, 244, 248, 0.35);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover { border-color: 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.72);
  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(2, 36, 64, 0.95);
  box-shadow: 0 8px 32px rgba(1, 16, 30, 0.45);
}

.navbar__inner {
  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: 72px; width: auto; }

@media (min-width: 1081px) {
  .navbar__brand img { max-height: 110px; }
}

.navbar__brand-fallback {
  display: none;
  font-family: var(--font-display);
  font-weight: 800;
  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__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: none;
  border: 0;
  cursor: pointer;
}

.navbar__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--inverse);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- 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: 640px;
  height: 640px;
  right: -180px;
  top: -120px;
  background: radial-gradient(circle, rgba(30, 137, 167, 0.35), transparent 65%);
}

.hero__glow--2 {
  width: 480px;
  height: 480px;
  left: -160px;
  bottom: -200px;
  background: radial-gradient(circle, rgba(63, 243, 242, 0.12), 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 26px;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--inverse-muted);
}

.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.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;
}

.float-card--alert {
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(20px);
  animation: floaty 7s ease-in-out infinite;
}

.float-card--alert strong { display: block; font-size: 0.92rem; }
.float-card--alert span { font-size: 0.78rem; color: var(--inverse-muted); }

.float-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--turquesa), #2BB8C9);
  color: #fff;
}

.float-card__icon svg { width: 21px; height: 21px; }

.float-card__icon--pulse { position: relative; }
.float-card__icon--pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 11px;
  border: 2px solid rgba(63, 243, 242, 0.7);
  animation: pulse-ring 2.4s ease-out infinite;
}

.float-card--doc {
  animation: floaty 8s ease-in-out 0.8s infinite;
}

.float-card__doc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.float-card__doc-title { font-weight: 600; font-size: 0.92rem; }

.float-card__doc-lines { display: grid; gap: 7px; margin-bottom: 14px; }
.float-card__doc-lines span {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: rgba(234, 244, 248, 0.16);
}

.float-card__signature {
  font-family: "Snell Roundhand", "Segoe Script", cursive;
  font-size: 1.5rem;
  color: var(--cian);
  border-bottom: 1px solid rgba(63, 243, 242, 0.4);
  display: inline-block;
  padding: 0 18px 2px 4px;
  margin-bottom: 8px;
  position: relative;
}

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

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

.float-card__doc-meta { font-size: 0.74rem; color: var(--inverse-muted); }

.float-card--transcript {
  transform: translateX(20px);
  animation: floaty 9s ease-in-out 1.6s infinite;
}

.float-card--transcript p {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--inverse-muted);
}

.float-card--transcript b { color: var(--cian); font-weight: 600; }

.float-card__rec {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff8b8b;
  margin-bottom: 10px;
}

.float-card__rec i,
.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: 0;
  margin: 72px 0 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 28px;
  border-left: 3px solid var(--cian);
  background: linear-gradient(90deg, rgba(63, 243, 242, 0.07) 0%, transparent 60%);
  position: relative;
}

.hero__stats li + li {
  border-left-color: rgba(63, 243, 242, 0.35);
}

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

.hero__stats span {
  font-size: 0.81rem;
  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;
}

/* Callout */
.callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: rgba(30, 137, 167, 0.07);
  border: 1px solid rgba(30, 137, 167, 0.22);
  border-left: 4px solid var(--turquesa);
}

.callout svg { width: 26px; height: 26px; color: var(--turquesa); flex-shrink: 0; margin-top: 2px; }
.callout p { margin: 0; font-size: 0.95rem; color: var(--ink-muted); }
.callout strong { color: var(--ink); }

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

.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;
}

.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 pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.55); opacity: 0; }
}

@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; }

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

@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--alert, .float-card--doc, .float-card--transcript,
  .waveform span, .float-card__rec i, .rec-indicator i,
  .float-card__icon--pulse::after { 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) {
  .navbar__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(2, 36, 64, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-dark);
    padding: 8px 28px 18px;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }

  .navbar__links.is-open { transform: none; }

  .navbar__links a {
    padding: 15px 4px;
    border-radius: 0;
    border-bottom: 1px solid rgba(234, 244, 248, 0.08);
  }

  .navbar__cta { display: none; }
  .navbar__toggle { display: flex; }

  .navbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .navbar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .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; }
  .float-card--alert { transform: translateX(12px); }
  .float-card--transcript { transform: translateX(20px); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stats li { padding: 24px 22px; }

  .section { padding: 72px 0; }

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

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

  .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; }
  .hero__stats li { padding: 20px 16px; gap: 5px; }
  .hero__stats strong { font-size: 1.6rem; }

  .float-card--alert, .float-card--doc, .float-card--transcript { 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; }
}
