/* ============================================================
   Veredicta Legal — Landing
   ============================================================ */

.ld {
  background: var(--paper-1);
  color: var(--ink-0);
}

/* Textura envejecida en secciones */
.ld-section {
  position: relative;
}
.ld-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at top left, rgba(27,42,74,.03) 0%, transparent 50%),
              radial-gradient(ellipse at bottom right, rgba(27,42,74,.025) 0%, transparent 50%);
}

/* Marca de agua Veredicta — V con marco cuadrado, incrustada en fondo */
.ld-section[data-folio]::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'%3E%3Crect x='20' y='20' width='160' height='160' stroke='%23141B1D' stroke-width='4'/%3E%3Crect x='28' y='28' width='144' height='144' stroke='%23141B1D' stroke-width='1.5'/%3E%3Ctext x='100' y='145' text-anchor='middle' font-family='serif' font-size='120' font-weight='700' fill='%23141B1D'%3EV%3C/text%3E%3Crect x='88' y='160' width='24' height='4' fill='%236F2126'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.ld-section[data-folio="Folio I"]::after {
  top: 60px;
  right: 5%;
  transform: rotate(8deg);
}
.ld-section[data-folio="Folio II"]::after {
  bottom: 80px;
  left: 4%;
  transform: rotate(-6deg);
}
.ld-section[data-folio="Folio III"]::after {
  top: 50%;
  right: 3%;
  transform: translateY(-50%) rotate(12deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'%3E%3Crect x='20' y='20' width='160' height='160' stroke='%23F8F4F1' stroke-width='4'/%3E%3Crect x='28' y='28' width='144' height='144' stroke='%23F8F4F1' stroke-width='1.5'/%3E%3Ctext x='100' y='145' text-anchor='middle' font-family='serif' font-size='120' font-weight='700' fill='%23F8F4F1'%3EV%3C/text%3E%3Crect x='88' y='160' width='24' height='4' fill='%236F2126'/%3E%3C/svg%3E");
}
.ld-section[data-folio="Folio IV"]::after {
  top: 100px;
  left: 6%;
  transform: rotate(-10deg);
}
.ld-section[data-folio="Folio V"]::after {
  bottom: 60px;
  right: 5%;
  transform: rotate(5deg);
}
.ld-section[data-folio="Folio VI"]::after {
  top: 80px;
  left: 4%;
  transform: rotate(-4deg);
}
.ld-section[data-folio="Folio VII"]::after {
  bottom: 100px;
  right: 4%;
  transform: rotate(10deg);
}

.ld .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   HEADER  (fixed — siempre visible al hacer scroll)
   ============================================================ */
body.ld { padding-top: 64px; }

.ld-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(253, 252, 248, 0.95);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid rgba(20, 27, 29, 0.06);
  animation: ldFadeDown 600ms ease both;
}
@keyframes ldFadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ld-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.ld-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink-0);
}
.ld-brand img { height: 65px; width: auto; }
.ld-brand strong { font-weight: 600; }

.ld-nav {
  display: flex;
  gap: 28px;
  font-family: var(--ui);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.ld-nav a {
  transition: color 200ms ease;
  position: relative;
}
.ld-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal, #135B59);
  border-radius: 1px;
  transition: width 250ms ease;
}
.ld-nav a:hover {
  color: var(--teal, #135B59);
}
.ld-nav a:hover::after {
  width: 100%;
}

.ld-actions { display: flex; align-items: center; gap: 10px; }

.ld-burger {
  display: none;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  color: var(--ink-1);
  cursor: pointer;
}

@media (max-width: 980px) {
  .ld-nav { display: none; }
  .ld-burger { display: inline-flex; }
}
@media (max-width: 600px) {
  .ld-actions .desktop { display: none; }
}

.ld-mobile-menu {
  display: none;
  border-top: 1px solid var(--line-1);
  padding: 14px 28px 18px;
  background: var(--paper-0);
}
.ld-mobile-menu.open { display: block; }
.ld-mobile-menu a {
  display: block;
  padding: 10px 0;
  color: var(--ink-1);
  font-size: 14px;
  border-bottom: 1px solid var(--line-1);
}
.ld-mobile-menu a:last-child { border-bottom: 0; }

/* ============================================================
   HERO
   ============================================================ */
.ld-hero {
  position: relative;
  padding: 60px 0 80px;
  background: #F8F4F1;
  overflow: hidden;
  color: #141B1D;
}
.ld-hero::before {
  display: none;
}

.ld-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 1040px) {
  .ld-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.ld-hero-text { min-width: 0; }

.ld-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(20,27,29,.05);
  border: 1px solid rgba(20,27,29,.12);
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 500;
  color: #141B1D;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.ld-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--dorado);
  border: none;
  flex-shrink: 0;
}
.ld-eyebrow .sep {
  color: #135B59;
  font-weight: 400;
  border-left: 1px solid rgba(20,27,29,.15);
  padding-left: 10px;
  margin-left: 0;
}

.ld-hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #141B1D;
  margin: 0 0 28px;
}
.ld-hero h1 em {
  font-style: italic;
  color: #6F2126;
  font-weight: 500;
}

.ld-hero .lead {
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  color: #3D3D3D;
  max-width: 480px;
  margin: 0 0 32px;
}

.ld-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 56px;
}
.ld-hero .btn-primary {
  background: #135B59;
  color: #F8F4F1;
  border-color: #135B59;
}
.ld-hero .btn-primary:hover {
  background: #0E4846;
  border-color: #0E4846;
  color: #F8F4F1;
}
.ld-hero .btn-ghost {
  border: 1px solid #141B1D;
  color: #141B1D;
  background: transparent;
}
.ld-hero .btn-ghost:hover {
  background: rgba(20,27,29,.05);
  border-color: #141B1D;
  color: #141B1D;
}

.ld-trust {
  padding-top: 24px;
  border-top: 1px solid var(--line-1);
}
.ld-trust .lbl {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.ld-trust .logos {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-family: var(--display);
  font-size: 16px;
  color: var(--ink-3);
  font-style: italic;
}

/* ============================================================
   HERO — Tarjeta del Agente de Plazos
   ============================================================ */
.ld-hero-card {
  position: relative;
  min-width: 0;
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
}
.ld-hero-card:hover {
  transform: rotate(0deg) translateY(-4px);
}
.ag-window {
  background: var(--paper-0) url('/static/images/paper-texture.webp');
  background-size: 400px 400px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(0,0,0,.15),
    0 20px 60px -20px rgba(0,0,0,.4),
    4px 4px 0 var(--paper-2),
    8px 8px 0 var(--paper-3);
  position: relative;
}
.ag-window::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(43,182,157,0.18), transparent 50%, rgba(43,182,157,0.08));
  z-index: -1;
  filter: blur(20px);
  opacity: 0.7;
}

.ag-window .bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-1);
  background: var(--paper-1);
}
.ag-window .dots { display: flex; gap: 6px; }
.ag-window .dots i {
  width: 11px; height: 11px; border-radius: 50%;
}
.ag-window .dots i.r { background: #ED6A5E; }
.ag-window .dots i.y { background: #F4BF4F; }
.ag-window .dots i.g { background: #61C554; }
.ag-window .url {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  background: var(--paper-0);
  border: 1px solid var(--line-1);
  border-radius: 4px;
  padding: 5px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ag-window .body { padding: 22px 24px 20px; }

.ag-window .head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 11.5px;
  flex-wrap: wrap;
}
.ag-window .head .ai-glyph { width: 14px; height: 14px; }
.ag-window .head .ai-glyph::after { inset: 2px; }
.ag-window .head .kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ai-ink);
  text-transform: uppercase;
}
.ag-window .head .prop { color: var(--ink-2); font-size: 11px; }
.ag-window .head .time { color: var(--ink-4); font-size: 11px; }
.ag-window .head .badge-pending {
  margin-left: auto;
  background: var(--ai-bg);
  color: var(--ai-ink);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
}

.ag-window h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--ink-0);
  letter-spacing: -0.01em;
}
.ag-window > .body > p {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

.ag-window .meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--paper-1);
  border: 1px solid var(--line-1);
  border-radius: 8px;
  padding: 12px 0;
  margin-bottom: 18px;
}
.ag-window .meta-grid > div {
  padding: 0 14px;
  border-right: 1px solid var(--line-1);
}
.ag-window .meta-grid > div:last-child { border-right: 0; }
.ag-window .meta-grid .lb {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 4px;
}
.ag-window .meta-grid .vl {
  font-family: var(--ui);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-0);
}
.ag-window .meta-grid .vl.rose { color: #B83648; }

.ag-window .tools {
  background: var(--paper-1);
  border: 1px solid var(--line-1);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.ag-window .tools .tools-h {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--ink-4);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ag-window .tool-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  padding: 3px 0;
  flex-wrap: wrap;
}
.ag-window .tool-row .t {
  font-family: var(--mono);
  font-size: 10px;
  background: var(--ai-bg);
  color: var(--ai-ink);
  padding: 1px 6px;
  border-radius: 3px;
}
.ag-window .tool-row .call { color: var(--ink-1); font-size: 11.5px; }
.ag-window .tool-row .ok { color: var(--teal-ink); font-family: var(--mono); font-size: 11px; }

.ag-window .actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ag-window .btn-tealflat,
.ag-window .btn-flat {
  height: 30px;
  padding: 0 14px;
  border-radius: 6px;
  font-family: var(--ui);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter 160ms ease;
}
.ag-window .btn-tealflat {
  background: var(--teal-ink);
  color: white;
}
.ag-window .btn-tealflat:hover { background: var(--teal-500); }
.ag-window .btn-flat {
  background: var(--paper-0);
  border-color: var(--line-2);
  color: var(--ink-1);
}
.ag-window .btn-flat:hover { background: var(--paper-2); }
.ag-window .btn-flat.ghost { background: transparent; border-color: transparent; }
.ag-window .auton {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--ink-3);
}
.ag-window .auton em { color: var(--ai-ink); font-style: normal; font-weight: 500; }

/* ============================================================
   Section base
   ============================================================ */
.ld-section { padding: 96px 0; }
.ld-section.tight { padding: 64px 0; }
.ld-section.cream { background: var(--paper-2); }
.ld-section.dark {
  background: #141B1D;
  color: #D4C8B8;
}

.ld-section-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--teal-ink);
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 500;
}
.ld-section-meta.center { text-align: center; }

.ld-section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink-0);
  max-width: 820px;
  margin: 0 0 22px;
}
.ld-section-title.center { margin-left: auto; margin-right: auto; }
.ld-section.dark .ld-section-title { color: #F8F4F1; }
.ld-section.dark .ld-section-meta { color: #135B59; }

.ld-section-lead {
  font-family: var(--ui);
  font-size: 16px;
  color: var(--ink-2);
  max-width: 720px;
  margin: 0 0 56px;
  line-height: 1.55;
}
.ld-section-lead.center { margin-left: auto; margin-right: auto; text-align: center; }
.ld-section.dark .ld-section-lead { color: #A89B8A; }

/* ============================================================
   MÓDULOS · 9 cards
   ============================================================ */
.ld-modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-1);
  border-left: 1px solid var(--line-1);
  background: var(--paper-1);
}
@media (max-width: 980px) { .ld-modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ld-modules { grid-template-columns: 1fr; } }

.ld-mod {
  background: var(--paper-0) url('/static/images/paper-texture.webp');
  background-size: 400px 400px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--ink-0);
  border-radius: 2px;
  padding: 30px 28px 26px;
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow:
    0 1px 2px rgba(27,42,74,.06),
    2px 2px 0 var(--paper-2),
    2px 2px 1px rgba(27,42,74,.03);
}
.ld-mod:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(27,42,74,.08),
    2px 2px 0 var(--paper-2),
    2px 2px 1px rgba(27,42,74,.03);
}
.ld-mod .ic {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.ld-mod h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--ink-0);
  letter-spacing: -0.01em;
}
.ld-mod p {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.ld-mod .tags {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  text-transform: uppercase;
}

/* ============================================================
   AGENTES IA TIER 1 (sección oscura)
   ============================================================ */

.ld-tier1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
@media (max-width: 980px) { .ld-tier1 { grid-template-columns: 1fr; } }

.t1-card {
  background: #1E2628;
  border: 1px solid rgba(248,244,241,.08);
  border-left: 3px solid #135B59;
  border-radius: 2px;
  padding: 26px 24px 24px;
  transition: border-color 200ms ease, transform 200ms ease;
  box-shadow:
    0 2px 8px rgba(0,0,0,.25),
    3px 3px 0 rgba(0,0,0,.15);
}
.t1-card:hover { border-color: #135B59; transform: translateY(-2px); }

.t1-h {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  color: #135B59;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: rgba(19, 91, 89, 0.12);
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
}
.dark .t1-h { color: #4AADA8; background: rgba(19, 91, 89, 0.15); }

.t1-card h4 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #F8F4F1;
  margin: 0 0 12px;
}
.t1-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #A0A8AD;
  margin: 0 0 18px;
}
.t1-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.t1-tool {
  font-family: var(--mono);
  font-size: 11px;
  background: rgba(19, 91, 89, 0.12);
  color: #4AADA8;
  border-radius: 4px;
  padding: 4px 8px;
}

.ld-autonomy {
  border: 1px solid rgba(19, 91, 89, 0.25);
  border-radius: 14px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.02);
}
.ld-autonomy .auton-h {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  color: var(--teal-300);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.auton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 880px) { .auton-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .auton-grid { grid-template-columns: 1fr; } }

.auton-grid .lvl {
  font-size: 12.5px;
  color: #8E9AAD;
  margin-bottom: 4px;
}
.auton-grid h5 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  color: white;
  margin: 0 0 6px;
}
.auton-grid p {
  font-size: 12.5px;
  line-height: 1.5;
  color: #8E9AAD;
  margin: 0;
}
.auton-grid .def { color: var(--teal-300); }

/* ============================================================
   INTEGRACIONES · 5x2 cards
   ============================================================ */
.ld-integ {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .ld-integ { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .ld-integ { grid-template-columns: repeat(2, 1fr); } }

.ld-integ .it {
  background: var(--paper-0);
  border: 1px solid var(--line-1);
  border-radius: 10px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.ld-integ .it:hover { border-color: var(--teal-ink); transform: translateY(-2px); }
.ld-integ .it .glyph {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--paper-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-1);
  font-family: var(--display);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: -0.02em;
}
.ld-integ .it h5 {
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: var(--ink-0);
}
.ld-integ .it p {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-3);
  margin: 0;
}

/* ============================================================
   SEGURIDAD · 2 columnas
   ============================================================ */
.ld-security {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 980px) { .ld-security { grid-template-columns: 1fr; gap: 32px; } }

.sec-left .ld-section-title { margin-bottom: 16px; }
.sec-left .ld-section-lead { margin-bottom: 24px; }
.sec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sec-chips .chip {
  background: var(--paper-0);
  border: 1px solid var(--line-1);
  color: var(--ink-2);
  font-weight: 500;
}

.sec-right { display: flex; flex-direction: column; }

.sec-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line-1);
}
.sec-row:last-child { border-bottom: 1px solid var(--line-1); }
@media (max-width: 640px) { .sec-row { grid-template-columns: 1fr; gap: 8px; } }

.sec-key {
  font-size: 10.5px;
  letter-spacing: 0.10em;
  color: var(--ink-3);
  text-transform: uppercase;
  padding-top: 4px;
}
.sec-body h5 {
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-0);
  margin: 0 0 6px;
}
.sec-body p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.ld-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .ld-quotes { grid-template-columns: 1fr; max-width: 540px; } }

.ld-quote-card {
  background: var(--paper-0) url('/static/images/paper-texture.webp');
  background-size: 400px 400px;
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--sello);
  border-radius: 2px;
  padding: 28px 26px;
  position: relative;
  box-shadow:
    0 1px 3px rgba(27,42,74,.08),
    2px 2px 0 var(--paper-2),
    2px 2px 1px rgba(27,42,74,.03),
    4px 4px 0 var(--paper-3),
    4px 4px 1px rgba(27,42,74,.02);
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 240px;
}
.ld-quote-card .acta-header {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sello);
  margin-bottom: 14px;
  opacity: 0.7;
}
.ld-quote-card .q {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-1);
  margin: 0;
  flex: 1;
  letter-spacing: -0.005em;
}
.ld-quote-card .who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ld-quote-card .who .av {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.ld-quote-card .av-teal   { background: var(--teal-100); color: var(--teal-ink); border: 1px solid var(--teal-100); }
.ld-quote-card .av-paper  { background: var(--paper-2); color: var(--ink-1);     border: 1px solid var(--line-1); }
.ld-quote-card .av-violet { background: var(--ai-bg);   color: var(--ai-ink);    border: 1px solid var(--ai-bg); }
.ld-quote-card .name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-0);
}
.ld-quote-card .role {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ============================================================
   PRECIOS
   ============================================================ */
.ld-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
  text-align: left;
  margin-bottom: 32px;
}
@media (max-width: 980px) { .ld-pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto 32px; } }

.ld-pricing-addons {
  text-align: center;
  margin-top: 24px;
  padding: 20px 24px;
  border: 1px dashed var(--line-1);
  border-radius: 12px;
  background: var(--paper-1);
}
.ld-pricing-addons h4 {
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-1);
  margin-bottom: 8px;
}
.ld-pricing-addons p {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.6;
}

.ld-price {
  display: flex;
  flex-direction: column;
  background: var(--paper-0) url('/static/images/paper-texture.webp');
  background-size: 400px 400px;
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--dorado);
  border-radius: 2px;
  position: relative;
  box-shadow:
    0 1px 3px rgba(27,42,74,.08),
    2px 2px 0 var(--paper-2),
    2px 2px 1px rgba(27,42,74,.03);
  padding: 32px 28px;
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.ld-price:hover { transform: translateY(-3px); }

.ld-price.featured {
  background: var(--ink-0);
  color: var(--paper-0);
  border-color: var(--ink-0);
  box-shadow: 0 30px 60px -28px rgba(20, 30, 50, 0.45);
  transform: translateY(-12px);
}
.ld-price.featured:hover { transform: translateY(-15px); }
.ld-price .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal-500);
  color: white;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.ld-price h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--ink-0);
}
.ld-price.featured h3 { color: var(--paper-0); }

.ld-price .desc {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 22px;
  line-height: 1.5;
  min-height: 50px;
}
.ld-price.featured .desc { color: #B8C2D2; }

.ld-price .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.ld-price .price .val {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  line-height: 1;
}
.ld-price.featured .price .val { color: var(--paper-0); }
.ld-price .price .per { font-size: 13px; color: var(--ink-3); }
.ld-price.featured .price .per { color: #B8C2D2; }

.ld-price .cycle {
  font-size: 12px;
  color: var(--ink-3);
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-1);
}
.ld-price.featured .cycle { color: #B8C2D2; border-color: rgba(255, 255, 255, 0.12); }

.ld-price ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex: 1;
  font-size: 13.5px;
  color: var(--ink-1);
}
.ld-price.featured ul { color: #DCE3EE; }
.ld-price ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
}
.ld-price ul li::before {
  content: "✓";
  color: var(--teal-ink);
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.ld-price.featured ul li::before { color: var(--teal-300); }

.btn-onlight {
  background: var(--paper-0);
  color: var(--ink-0);
  border-color: var(--paper-0);
}
.btn-onlight:hover {
  background: var(--paper-2);
  color: var(--ink-0);
  border-color: var(--paper-2);
}

.ld-pricing-foot {
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-top: 24px;
  text-align: center;
}

/* ============================================================
   FOOTER  (siempre visible)
   ============================================================ */
.ld-footer {
  background: #FDFCF8;
  border-top: 1px solid var(--line-1);
  padding: 64px 0 32px;
  margin-top: 0;
  font-size: 13px;
  color: var(--ink-2);
}
.ld-footer .grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 880px) { .ld-footer .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .ld-footer .grid { grid-template-columns: 1fr; } }

.ld-footer h6 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 500;
}
.ld-footer ul { list-style: none; margin: 0; padding: 0; }
.ld-footer ul li { padding: 5px 0; }
.ld-footer ul a { color: var(--ink-2); transition: color 160ms ease; }
.ld-footer ul a:hover { color: var(--ink-0); }

.ld-footer .brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink-0);
  margin-bottom: 14px;
}
.ld-footer .brand-block img {
  height: 96px;
  width: auto;
}
.ld-footer .tagline {
  color: var(--ink-3);
  max-width: 280px;
  font-size: 13px;
  line-height: 1.5;
}

.ld-footer .legal {
  border-top: 1px solid var(--line-1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ============================================================
   PÁGINAS INTERIORES (auth, legal, suscribirse)
   ============================================================ */
.ld-page-pad { padding: 96px 0 80px; }

.ld-form-card {
  max-width: 540px;
  margin: 0 auto;
  background: var(--paper-0);
  border: 1px solid var(--line-1);
  border-radius: 12px;
  padding: 40px 36px;
}
.ld-form-card.wide { max-width: 720px; }
.ld-form-card h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ink-0);
}
.ld-form-card .lead {
  font-size: 14.5px;
  color: var(--ink-3);
  margin: 0 0 28px;
}
.ld-field { margin-bottom: 18px; }
.ld-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-1);
  margin-bottom: 6px;
}
.ld-field label .req { color: var(--rose-500); }
.ld-field label .opt { color: var(--ink-4); font-weight: 400; font-size: 11.5px; margin-left: 6px; }
.ld-input, .ld-select, .ld-textarea {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink-0);
  background: var(--paper-0);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.ld-textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 100px; }
.ld-input:focus, .ld-select:focus, .ld-textarea:focus {
  outline: none;
  border-color: var(--teal-ink);
  box-shadow: 0 0 0 3px rgba(43, 182, 157, 0.15);
}
.ld-help { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

.ld-alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13.5px;
  margin-bottom: 18px;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ld-alert.error { background: var(--rose-100); color: #8B2D38; border-color: #F2C2C8; }
.ld-alert.success { background: var(--sage-100); color: #2E5C46; border-color: #C0D9C5; }
.ld-alert.info { background: var(--teal-50); color: var(--teal-ink); border-color: var(--teal-100); }

.ld-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-1);
  margin-bottom: 18px;
}
.ld-checkbox input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-top: 2px;
  accent-color: var(--teal-ink);
}
.ld-checkbox a { color: var(--teal-ink); text-decoration: underline; }

.ld-submit {
  width: 100%;
  height: 46px;
  font-size: 14.5px;
}

/* Páginas legales (terminos, privacidad, faq) */
.ld-legal { max-width: 820px; margin: 0 auto; }
.ld-legal h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 40px;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  margin: 0 0 8px;
}
.ld-legal .updated {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 36px;
}
.ld-legal h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  margin: 36px 0 12px;
  color: var(--ink-0);
}
.ld-legal h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  margin: 24px 0 8px;
  color: var(--ink-0);
}
.ld-legal p, .ld-legal li {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.ld-legal ul { padding-left: 20px; }

/* FAQ (acordeón nativo) */
.ld-faq { max-width: 820px; margin: 0 auto; }
.ld-faq details {
  border-bottom: 1px solid var(--line-1);
  padding: 22px 0;
}
.ld-faq details:first-child { border-top: 1px solid var(--line-1); }
.ld-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink-0);
}
.ld-faq summary::-webkit-details-marker { display: none; }
.ld-faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 22px;
  color: var(--ink-3);
  flex-shrink: 0;
  transition: transform 200ms ease;
}
.ld-faq details[open] summary::after { content: "−"; }
.ld-faq details p {
  margin: 14px 0 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* Suscribirse: layout 2 cols (resumen + plan) */
.ld-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 880px) { .ld-sub-grid { grid-template-columns: 1fr; } }

.ld-plan-card {
  background: var(--paper-0);
  border: 2px solid var(--line-1);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  transition: border-color 200ms ease, transform 160ms ease;
}
.ld-plan-card.popular { border-color: var(--ink-0); }
.ld-plan-card.popular::before {
  content: "Más popular";
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--ink-0);
  color: var(--paper-0);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
.ld-plan-card h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--ink-0);
}
.ld-plan-card .price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 18px 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-1);
}
.ld-plan-card .price .val {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 500;
  color: var(--ink-0);
  line-height: 1;
}
.ld-plan-card .price .per { font-size: 13px; color: var(--ink-3); }
.ld-plan-card ul { list-style: none; margin: 0 0 22px; padding: 0; font-size: 13.5px; color: var(--ink-1); }
.ld-plan-card ul li { display: flex; gap: 10px; padding: 6px 0; }
.ld-plan-card ul li::before {
  content: "✓";
  color: var(--teal-ink);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   DEMO EN VIVO — widget con tabs
   ============================================================ */
.ld-demo-widget {
  max-width: 1180px;
  margin: 0 auto;
}

/* Tabs */
.ld-demo-tabs {
  display: inline-flex;
  background: var(--paper-0);
  border: 1px solid var(--line-1);
  border-radius: 999px;
  padding: 4px;
  margin: 0 auto 24px;
  gap: 2px;
}
.ld-demo-tabs {
  /* center the inline-flex container */
  display: flex;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}
.ld-tab {
  border: 0;
  background: transparent;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
  white-space: nowrap;
}
.ld-tab:hover { color: var(--ink-1); }
.ld-tab.active {
  background: var(--ink-0);
  color: var(--paper-0);
}

/* Cockpit (ventana macOS) */
.ld-demo-cockpit {
  background: var(--paper-0);
  border: 1px solid var(--line-1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(20, 30, 50, 0.04),
    0 30px 80px -32px rgba(20, 30, 50, 0.30);
}
.ld-demo-cockpit .bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-1);
  background: var(--paper-1);
}
.ld-demo-cockpit .dots { display: flex; gap: 6px; }
.ld-demo-cockpit .dots i { width: 11px; height: 11px; border-radius: 50%; }
.ld-demo-cockpit .dots i.r { background: #ED6A5E; }
.ld-demo-cockpit .dots i.y { background: #F4BF4F; }
.ld-demo-cockpit .dots i.g { background: #61C554; }
.ld-demo-cockpit .url {
  flex: 1;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-3);
  background: var(--paper-0);
  border: 1px solid var(--line-1);
  border-radius: 4px;
  padding: 5px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ld-demo-cockpit .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rose-100);
  color: #B83648;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
}
.ld-demo-cockpit .live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #D14B5A;
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.85); }
}

/* Cuerpo del cockpit: sidebar | main | kpis */
.cockpit-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 240px;
  min-height: 480px;
}
@media (max-width: 1040px) {
  .cockpit-body { grid-template-columns: 1fr; }
  .cp-side, .cp-kpis { display: none; }
}

/* Sidebar */
.cp-side {
  background: var(--paper-1);
  border-right: 1px solid var(--line-1);
  padding: 18px 16px;
}
.cp-side h6 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 16px 0 10px;
  font-weight: 500;
}
.cp-side h6:first-child { margin-top: 0; }

.cp-side .ban {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 6px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--ink-1);
}
.cp-side .ban .ban-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-side .ban .dot { width: 7px; height: 7px; border-radius: 50%; }
.cp-side .ban .dot.run   { background: var(--teal-500); box-shadow: 0 0 0 3px rgba(43,182,157,0.18); }
.cp-side .ban .dot.draft { background: var(--ink-4); }
.cp-side .ban .dot.pause { background: var(--amber-500); }
.cp-side .ban .state {
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--ink-4);
  text-transform: lowercase;
}

.cp-side .who {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px 6px;
  font-size: 12.5px;
  color: var(--ink-1);
}
.cp-side .who .av {
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 10.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cp-side .who .av-teal   { background: var(--teal-100); color: var(--teal-ink); }
.cp-side .who .av-paper  { background: var(--paper-2); color: var(--ink-1); border: 1px solid var(--line-1); }
.cp-side .who .av-violet { background: var(--ai-bg);   color: var(--ai-ink); }
.cp-side .who .state {
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}
.cp-side .who .state.ok   { color: var(--teal-ink); }
.cp-side .who .state.busy { color: var(--amber-500); }

/* Panel central */
.cp-main { padding: 26px 28px; min-width: 0; position: relative; }

.demo-panel { display: none; opacity: 0; }
.demo-panel.active { display: block; opacity: 1; animation: dpFadeIn 380ms ease both; }
@keyframes dpFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.dp-head .ai-glyph { width: 26px; height: 26px; flex-shrink: 0; }
.dp-head .ai-glyph::after { inset: 4px; }
.dp-meta { flex: 1; min-width: 0; }
.dp-meta .kicker {
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--ai-ink);
  text-transform: uppercase;
}
.dp-meta .dp-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.dp-timer {
  font-size: 12px;
  color: var(--ink-3);
  background: var(--paper-1);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--line-1);
}

.dp-subject {
  background: var(--paper-1);
  border: 1px solid var(--line-1);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.dp-subject .lb {
  font-size: 9.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 6px;
}
.dp-subject .from {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.dp-subject .subj {
  font-family: var(--ui);
  font-size: 14px;
  color: var(--ink-0);
  font-weight: 500;
}

.dp-status {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--teal-ink);
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 16px;
}
.dp-status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-500);
  animation: pulseDot 1.4s ease-in-out infinite;
}

.dp-tools {
  background: var(--paper-1);
  border: 1px solid var(--line-1);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.dp-tools .tools-h {
  font-size: 9.5px;
  letter-spacing: 0.10em;
  color: var(--ink-4);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.dp-tools .t-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 11.5px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 280ms ease, transform 280ms ease;
  flex-wrap: wrap;
}
.dp-tools .t-row.shown {
  opacity: 1;
  transform: translateX(0);
}
.dp-tools .t-row .t {
  font-size: 9.5px;
  background: var(--ai-bg);
  color: var(--ai-ink);
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dp-tools .t-row .call { color: var(--ink-1); }
.dp-tools .t-row .ok { color: var(--teal-ink); margin-left: auto; }

.dp-result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--paper-1);
  border: 1px solid var(--line-1);
  border-radius: 8px;
  padding: 12px 0;
  margin-bottom: 14px;
}
.dp-result.wide { grid-template-columns: 1fr; padding: 8px; gap: 4px; }
.dp-result > div {
  padding: 0 14px;
  border-right: 1px solid var(--line-1);
}
.dp-result > div:last-child { border-right: 0; }
.dp-result.wide > div { border-right: 0; padding: 0; }

.dp-result .lb {
  font-size: 9.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 4px;
}
.dp-result .rv {
  font-family: var(--ui);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-0);
}
.dp-result .rv.rose { color: #B83648; }
.dp-result .rv.teal { color: var(--teal-ink); }

.judg-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
}
.judg-row + .judg-row { border-top: 1px solid var(--line-1); }
.judg-row .judg-roj {
  font-size: 11px;
  color: var(--ai-ink);
  background: var(--ai-bg);
  padding: 2px 8px;
  border-radius: 3px;
  text-align: center;
}
.judg-row .judg-text {
  font-size: 12.5px;
  color: var(--ink-1);
}

.dp-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dp-actions .btn-tealflat,
.dp-actions .btn-flat {
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  font-family: var(--ui);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter 160ms ease, background 160ms ease;
}
.dp-actions .btn-tealflat { background: var(--teal-ink); color: white; }
.dp-actions .btn-tealflat:hover { background: var(--teal-500); }
.dp-actions .btn-flat {
  background: var(--paper-0);
  border-color: var(--line-2);
  color: var(--ink-1);
}
.dp-actions .btn-flat:hover { background: var(--paper-2); }
.dp-actions .btn-flat.ghost { background: transparent; border-color: transparent; color: var(--ink-3); }
.dp-actions .auton {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--ink-3);
}
.dp-actions .auton em { color: var(--ai-ink); font-style: normal; font-weight: 500; }

/* KPIs derecha */
.cp-kpis {
  background: var(--paper-1);
  border-left: 1px solid var(--line-1);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-1);
  border: 1px solid var(--line-1);
  border-radius: 8px;
  overflow: hidden;
}
.kpi-grid .kpi {
  background: var(--paper-0);
  padding: 12px 12px;
}
.kpi-grid .kv {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-0);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 4px;
}
.kpi-grid .kl {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  text-transform: uppercase;
}

.kpi-spark {
  background: var(--paper-0);
  border: 1px solid var(--line-1);
  border-radius: 8px;
  padding: 12px;
  color: var(--teal-ink);
}
.kpi-spark .kl {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.kpi-spark svg {
  width: 100%;
  height: 50px;
  display: block;
}
.spark-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: sparkDraw 1800ms ease-out 600ms forwards;
}
@keyframes sparkDraw {
  to { stroke-dashoffset: 0; }
}

.kpi-final {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: 8px;
  padding: 12px;
}
.kpi-final .check {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--teal-ink);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.kpi-final .kf-text {
  font-size: 12.5px;
  color: var(--ink-1);
}
.kpi-final .kf-meta {
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

/* ============================================================
   PILARES (resumen de módulos)
   ============================================================ */
.ld-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.ld-pillar {
  background: var(--paper-0) url('/static/images/paper-texture.webp');
  background-size: 400px 400px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--ink-0);
  border-radius: 2px;
  padding: 32px 28px;
  text-align: left;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow:
    0 1px 3px rgba(27,42,74,.08),
    3px 3px 0 var(--paper-2),
    3px 3px 1px rgba(27,42,74,.04),
    6px 6px 0 var(--paper-3),
    6px 6px 1px rgba(27,42,74,.02);
}
.ld-pillar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--paper-1) 50%, var(--line-1) 50%);
}
.ld-pillar:hover {
  transform: translateY(-2px) rotate(-0.3deg);
  box-shadow:
    0 4px 12px rgba(27,42,74,.10),
    3px 3px 0 var(--paper-2),
    3px 3px 1px rgba(27,42,74,.04),
    6px 6px 0 var(--paper-3),
    6px 6px 1px rgba(27,42,74,.02);
}
.pillar-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: transparent;
  color: var(--teal-500);
  margin-bottom: 16px;
}
.pillar-icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}
.ld-pillar h3 {
  font-family: var(--ui);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-0);
  margin-bottom: 10px;
}
.ld-pillar p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 16px;
}
.pillar-mods {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   INTEGRACIONES COMPACTAS (chips)
   ============================================================ */
.ld-integ-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
  margin-bottom: 32px;
}
.integ-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--paper-1);
  border: 1px solid var(--line-1);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-1);
  letter-spacing: 0.02em;
  transition: border-color 0.2s, background 0.2s;
}
.integ-chip:hover {
  border-color: var(--teal-500);
  background: var(--paper-0);
}

/* ============================================================
   SEGURIDAD HIGHLIGHTS (condensado)
   ============================================================ */
.ld-sec-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
  text-align: center;
}
.sec-hl {
  padding: 28px 20px;
  border-radius: 14px;
  background: var(--paper-0);
  border: 1px solid var(--line-1);
}
.sec-hl-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.sec-hl-icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.sec-hl h4 {
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-0);
  margin-bottom: 8px;
}
.sec-hl p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   CTA BAND (intermedio)
   ============================================================ */
.ld-cta-band {
  padding: 48px 0;
  background: var(--paper-1);
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
}
.cta-band-text {
  font-family: var(--display);
  font-size: 20px;
  color: var(--ink-0);
  margin-bottom: 20px;
}

/* ============================================================
   SECTION CTA (enlace a página de detalle)
   ============================================================ */
.ld-section-cta {
  text-align: center;
  margin-top: 36px;
}

/* Sello de lacre (para badge precios) */
.sello-lacre {
  width: 56px;
  height: 56px;
  background: var(--lacre);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F5E0E0;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: absolute;
  top: -12px;
  right: -12px;
  box-shadow: 0 2px 8px rgba(139,32,32,.3), inset 0 -2px 4px rgba(0,0,0,.2);
  transform: rotate(8deg);
}

/* Separador tipo documento oficial */
.ld-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 0;
}
.ld-divider::before,
.ld-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.ld-divider .lacre-mini {
  width: 24px;
  height: 24px;
  background: var(--lacre);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(139,32,32,.25);
}
.ld-divider .lacre-mini::after {
  content: "V";
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  color: #F5E0E0;
}

/* ============================================================
   FIGURAS ILUSTRADAS (dirección "Tinta y señal")
   ============================================================ */
.ld-section-figure {
  max-width: 560px;
  margin: 4px auto 44px;
}
.ld-section-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.ld-figure-banner {
  margin: 8px 0 44px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(248,244,241,.08);
}
.ld-figure-banner img {
  width: 100%;
  height: auto;
  display: block;
}
.ld-divider-band {
  width: 100%;
  padding: 8px 0 0;
}
.ld-divider-band img {
  width: 100%;
  max-width: 880px;
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 0.9;
}

/* ============================================================
   HERO SLIDER (eslóganes + imágenes)
   ============================================================ */
.hero-slides { display: grid; }
.hero-slide-text {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.hero-slide-text.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.hero-visuals {
  display: grid;
  align-items: center;
}
.hero-slide-visual {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(16px) scale(.985);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.hero-slide-visual.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.hero-slide-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 24px 60px -28px rgba(20,27,29,.45), 0 2px 8px rgba(20,27,29,.06);
}

.hero-dots {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 30px;
}
.hero-dot {
  width: 30px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  background: rgba(20,27,29,.16);
  transition: background .3s ease, width .3s ease;
}
.hero-dot:hover { background: rgba(20,27,29,.32); }
.hero-dot.is-active {
  width: 46px;
  background: var(--teal, #135B59);
}

/* ============================================================
   INTERACCIONES AVANZADAS
   ============================================================ */

/* Sellos decorativos estáticos (sin rotación) */

/* Stamps se presionan al hover (escala + opacidad) */
/* Pestañas/cards se levantan al hover */
.ld-pillar,
.ld-quote-card,
.ld-price,
.t1-card {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}
.ld-pillar:hover {
  transform: translateY(-4px) rotate(-0.3deg);
  box-shadow:
    0 8px 24px rgba(20,27,29,.10),
    3px 3px 0 var(--paper-2),
    6px 6px 0 var(--paper-3);
}
.ld-quote-card:hover {
  transform: translateY(-4px) rotate(0.2deg);
  box-shadow: 0 8px 24px rgba(20,27,29,.10);
}
.ld-price:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(20,27,29,.12);
}

/* Cursor deja tinta — gotitas absorbidas por el papel */
.ink-toggle {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(20, 27, 29, 0.14);
  border-radius: 999px;
  background: rgba(253, 252, 248, 0.94);
  color: #141B1D;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(20, 27, 29, 0.12);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ink-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(20, 27, 29, 0.22);
  box-shadow: 0 0 0 3px rgba(20, 27, 29, 0.04);
}
.ink-toggle.is-active {
  border-color: rgba(19, 91, 89, 0.35);
  color: #135B59;
}
.ink-toggle.is-active::before {
  background: #135B59;
  box-shadow: 0 0 0 3px rgba(19, 91, 89, 0.12);
}

.ink-trail {
  position: fixed;
  width: var(--ink-size, 12px);
  height: var(--ink-size, 12px);
  border-radius: 44% 56% 48% 52% / 56% 43% 57% 44%;
  background:
    radial-gradient(circle at 42% 38%, rgba(20, 27, 29, 0.42) 0 22%, rgba(20, 27, 29, 0.22) 42%, rgba(20, 27, 29, 0.02) 72%);
  box-shadow:
    0 0 0 1px rgba(20, 27, 29, 0.05),
    0 0 14px rgba(20, 27, 29, 0.12);
  filter: blur(0.25px);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 9999;
  animation: inkAbsorb 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.ink-trail::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: rgba(20, 27, 29, 0.18);
  filter: blur(1px);
}
.ink-trail.drop {
  width: var(--ink-size, 4px);
  height: var(--ink-size, 4px);
  opacity: 0.85;
  animation-duration: 1.8s;
}
.ink-trail.ink-light {
  background:
    radial-gradient(circle at 42% 38%, rgba(248, 244, 241, 0.48) 0 22%, rgba(248, 244, 241, 0.25) 42%, rgba(248, 244, 241, 0.03) 72%);
  box-shadow:
    0 0 0 1px rgba(248, 244, 241, 0.06),
    0 0 14px rgba(248, 244, 241, 0.10);
  mix-blend-mode: screen;
}
.ink-trail.ink-light::after {
  background: rgba(248, 244, 241, 0.18);
}
@keyframes inkAbsorb {
  0% { transform: translate(-50%, -50%) scale(0.65) rotate(var(--ink-rot, 0deg)); opacity: 0; }
  12% { opacity: 0.72; }
  45% { transform: translate(-50%, -50%) scale(1.35) rotate(var(--ink-rot, 0deg)); opacity: 0.34; }
  100% { transform: translate(-50%, -50%) scale(2.6) rotate(var(--ink-rot, 0deg)); opacity: 0; }
}
