/* =============================================================
   Robin — Landing v4
   Inspirado en mockup "Robin": blanco, minimal, acento púrpura,
   tipografía sans aireada, personaje 3D al lado.
   ============================================================= */

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

:root {
  --ink:        #0e0e10;
  --ink-2:      #2a2a2e;
  --ink-3:      #5a5a62;
  --ink-4:      #8e8e96;
  --muted:      #b8b8be;

  --paper:      #ffffff;
  --bg:         #ffffff;
  --bg-2:       #f7f7f9;
  --bg-3:       #f0f0f3;

  --border:     #e8e8ec;
  --border-2:   #d8d8de;

  --violet:     #6c5cf2;
  --violet-2:   #8a7df5;
  --violet-3:   #efedfd;
  --violet-4:   #f6f4ff;

  --ok:         #22a06b;
  --danger:     #d24a4a;

  --radius-sm:  10px;
  --radius:     14px;
  --radius-lg:  22px;
  --radius-xl:  28px;
  --shadow-xs:  0 1px 2px rgba(14,14,16,.05);
  --shadow-md:  0 6px 24px rgba(14,14,16,.07);
  --shadow-lg:  0 24px 80px rgba(14,14,16,.10);
  --shadow-card:0 30px 70px -20px rgba(99,80,242,.18), 0 10px 30px rgba(14,14,16,.06);
}

html {
  scrollbar-gutter: stable;
}
html:has(.announce-bar) {
  scrollbar-gutter: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html:has(.announce-bar)::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.landing-root { background: var(--paper); }

a { color: inherit; text-decoration: none }

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

/* === TOPBAR === */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.topbar.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255,255,255,.92);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo {
  display: inline-flex; align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.logo .wordmark {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -.025em;
  color: #0a0a0c;
  line-height: 1;
}
.logo .wordmark-img {
  height: 48px;
  width: auto;
  display: block;
}
.topbar nav {
  display: flex; align-items: center; gap: 8px;
  flex: 1; justify-content: center;
}
.topbar nav .link {
  padding: .55rem .9rem; border-radius: 999px;
  font-size: .92rem; color: var(--ink-3);
  font-weight: 500;
  transition: color .15s ease, background .15s ease;
}
.topbar nav .link:hover { color: var(--ink); background: var(--bg-2) }
.topbar nav .link.active { color: var(--ink) }
.topbar .actions { display: inline-flex; align-items: center; gap: 10px }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .8rem 1.3rem;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: .92rem; line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px) }

.btn-dark {
  background: #0e0e10; color: #fff; border-color: #0e0e10;
  box-shadow: 0 6px 18px rgba(14,14,16,.18);
}
.btn-dark:hover { background: #1c1c20; border-color: #1c1c20 }

.btn-light {
  background: #fff; color: var(--ink); border-color: var(--border-2);
}
.btn-light:hover { border-color: var(--ink); background: var(--bg-2) }

.btn-violet {
  background: var(--violet); color: #fff; border-color: var(--violet);
  box-shadow: 0 8px 24px rgba(108,92,242,.30);
}
.btn-violet:hover { background: #5b4ce8; border-color: #5b4ce8 }

.btn-ghost-light {
  background: transparent; color: var(--ink-2); border-color: transparent;
}
.btn-ghost-light:hover { color: var(--ink); background: var(--bg-2) }

/* Aliases retro-compatibles */
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink) }
.btn-primary:hover { background: #000 }
.btn-white   { background: #fff; color: var(--ink); border-color: var(--border-2) }
.btn-white:hover { border-color: var(--ink) }
.btn-gold    { background: var(--violet); color: #fff; border-color: var(--violet) }
.btn-gold:hover { background: #5b4ce8; border-color: #5b4ce8 }

.btn.keep { /* mantiene estilo en topbar */ }
.btn-lg { padding: 1rem 1.6rem; font-size: 1rem }
.btn-sm { padding: .55rem .9rem; font-size: .82rem }

/* === ANNOUNCE BAR === */
.announce-bar {
  background: linear-gradient(90deg, var(--violet) 0%, #4a3df0 100%);
  color: #fff;
  text-align: center;
  font-size: .86rem; font-weight: 500;
  padding: .55rem 2rem;
  position: relative;
  letter-spacing: -.005em;
}
.announce-bar a {
  color: #fff; text-decoration: underline; margin-left: .6rem;
  font-weight: 600;
}
.announce-bar .close {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #fff; font-size: 1.1rem;
  cursor: pointer; opacity: .7;
}
.announce-bar .close:hover { opacity: 1 }

/* === HERO === */
.hero {
  position: relative;
  padding: 36px 0 56px;
  background:
    radial-gradient(1100px 600px at 88% 30%, rgba(108,92,242,.08), transparent 70%),
    radial-gradient(700px 400px at 5% 90%, rgba(108,92,242,.05), transparent 70%),
    #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(14,14,16,.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,14,16,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: radial-gradient(circle at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 70% 40%, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}

.hero-content { max-width: 620px }

.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: var(--violet-3);
  color: #463acb;
  font-size: .82rem; font-weight: 500;
  margin-bottom: 18px;
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(108,92,242,.18);
}
.pill .sep { color: rgba(70,58,203,.5); margin: 0 .15rem }

.hero h1 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 3.3vw, 2.8rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  margin: 0 0 18px;
  color: var(--ink);
}
.hero h1 .accent { color: var(--violet); display: block }

.hero .lede {
  font-size: 1rem;
  color: var(--ink-3);
  margin: 0 0 22px;
  max-width: 540px;
  line-height: 1.5;
}

.cta-row {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}

.sources-line {
  margin-top: 18px;
  font-size: .8rem;
  color: var(--ink-4);
  letter-spacing: .005em;
}
.sources-line strong { color: var(--ink-3); font-weight: 600 }

/* === HERO CHARACTER === */
.hero-figure {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-figure .char-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(180deg, #faf8ff 0%, #f5f1ff 100%);
  box-shadow: var(--shadow-card);
}
.hero-figure .char-frame img {
  display: block;
  width: 100%; height: auto;
}
.hero-figure .floating-square {
  position: absolute;
  border-radius: 14px;
  pointer-events: none;
}
.hero-figure .sq1 { width: 90px; height: 90px; left: -28px; top: 30%; transform: rotate(-8deg); background: var(--violet-4); opacity: .9 }
.hero-figure .sq2 { width: 56px; height: 56px; right: -18px; bottom: 18%; transform: rotate(12deg); background: var(--violet-3); opacity: .85 }

/* === Robin animado: el personaje se mueve, los libros se mueven con su mano === */

/* El recuadro contiene todas las escenas en posición absoluta */
.hero-figure .char-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Wrapper que cambia de POSE entre escenas — transición larga para evitar cortes */
.char-pose {
  position: relative;
  z-index: 2;
  width: 100%;
  display: block;
  transform-origin: 50% 95%;
  transition: transform 1.4s cubic-bezier(.45,.05,.55,1.0);
  will-change: transform;
}
.char-img {
  width: 100%;
  height: auto;
  display: block;
  /* la respiración sólo ocurre aquí — independiente de la pose */
  animation: robi-breath 4.5s ease-in-out infinite;
  transform-origin: 50% 95%;
}
@keyframes robi-breath {
  0%, 100% { transform: translateY(0) rotate(0) }
  50%      { transform: translateY(-3px) rotate(.4deg) }
}

/* Saludo entrada */
.hero-figure .hand-wave {
  position: absolute;
  z-index: 4;
  right: 22%;
  top: 28%;
  width: 64px; height: 64px;
  font-size: 56px;
  pointer-events: none;
  opacity: 0;
  transform-origin: 60% 80%;
  filter: drop-shadow(0 4px 10px rgba(14,14,16,.18));
}
.hero-figure .hand-wave span { display: inline-block; transform-origin: 70% 80%; }
@keyframes robi-wave-spin {
  0%, 100% { transform: rotate(-18deg) }
  25%      { transform: rotate(20deg) }
  50%      { transform: rotate(-22deg) }
  75%      { transform: rotate(18deg) }
}

/* Burbuja de habla */
.hero-figure .speech {
  position: absolute;
  z-index: 5;
  left: 8%;
  top: 12%;
  background: #fff;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: 0 10px 24px -8px rgba(14,14,16,.18);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}

/* Escritorio: aparece desde abajo cuando se "sienta" */
.hero-figure .desk {
  position: absolute;
  z-index: 3;
  left: -8%; right: -8%;
  bottom: 0;
  height: 30%;
  background:
    linear-gradient(180deg, #cfc6b9 0%, #cfc6b9 8%, #a08a73 9%, #816a52 100%);
  border-top: 1px solid rgba(14,14,16,.10);
  transform: translateY(110%);
  transition: transform .9s cubic-bezier(.32,.72,.32,1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}

/* Libro y folio EN FRENTE del personaje, sobre la zona donde estarían sus manos */
.hero-figure .desk-book,
.hero-figure .desk-paper {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  transform-origin: 50% 100%;
  left: 50%;
  bottom: 4%;
  transition: transform 1.0s cubic-bezier(.32,.72,.32,1), opacity .55s ease;
}
.hero-figure .desk-book {
  width: 60%;
  opacity: 0;
  transform: translate(-50%, 30%) rotate(8deg) scale(.6);
}
.hero-figure .desk-book .book-svg {
  display: block;
  width: 100%;
  transform-origin: 50% 100%;
}
.hero-figure .desk-paper {
  width: 52%;
  opacity: 0;
  transform: translate(-50%, 40%) rotate(-3deg) scale(.85);
}
.hero-figure .desk-paper svg { width: 100%; height: auto; display: block; }
.hero-figure .desk-book svg  { width: 100%; height: auto; display: block; }

.hero-figure .desk { height: 26%; }

/* Bolígrafo siguiendo la línea */
.pen-anim {
  transform: translate(40px, 60px);
  opacity: 0;
}

/* Líneas escritas — invisibles por defecto */
.wline {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

/* === Estados controlados por data-scene === */

/* === Estados controlados por data-scene === */
/* Las poses van en .char-pose (wrapper), la respiración vive en .char-img */

/* ENTRADA (saludo) */
[data-scene="enter"] .speech       { opacity: 1; transform: translateY(0); }
[data-scene="enter"] .hand-wave    { opacity: 1; animation: robi-wave-spin .55s ease-in-out infinite; }
[data-scene="enter"] .char-pose    { transform: translateY(0) rotate(0); }

/* IDLE (pensando) */
[data-scene="idle"]  .speech       { opacity: 1; transform: translateY(0); }
[data-scene="idle"]  .char-pose    { transform: translateY(-2px) rotate(-.6deg); }

/* RECOGER LIBRO (transición intermedia) */
[data-scene="reach-book"] .desk     { transform: translateY(0); }
[data-scene="reach-book"] .char-pose { transform: translateY(6px) rotate(-2.4deg); }
[data-scene="reach-book"] .desk-book { opacity: 1; transform: translate(-50%, 15%) rotate(6deg) scale(.85); }

/* LEYENDO */
[data-scene="reading"] .desk        { transform: translateY(0); }
[data-scene="reading"] .speech      { opacity: 1; transform: translateY(0); }
[data-scene="reading"] .char-pose   { transform: translateY(10px) rotate(-1.6deg); }
[data-scene="reading"] .desk-book   { opacity: 1; transform: translate(-50%, 0) rotate(-2deg) scale(1); }
[data-scene="reading"] .desk-book .book-svg { animation: book-tilt 4s ease-in-out infinite; }
@keyframes book-tilt {
  0%, 100% { transform: rotate(0) translateY(0) }
  50%      { transform: rotate(-1.5deg) translateY(-2px) }
}

/* RECOGER FOLIO (transición intermedia) */
[data-scene="reach-paper"] .desk    { transform: translateY(0); }
[data-scene="reach-paper"] .char-pose { transform: translateY(8px) rotate(1.8deg); }
[data-scene="reach-paper"] .desk-paper { opacity: 1; transform: translate(-50%, 20%) rotate(-2deg) scale(.95); }

/* ESCRIBIENDO */
[data-scene="writing"] .desk        { transform: translateY(0); }
[data-scene="writing"] .speech      { opacity: 1; transform: translateY(0); }
[data-scene="writing"] .char-pose   { transform: translateY(14px) rotate(2.2deg); }
[data-scene="writing"] .desk-paper  { opacity: 1; transform: translate(-50%, 0) rotate(0deg) scale(1); }
[data-scene="writing"] .pen-anim    { opacity: 1; animation: pen-trace 5s linear infinite; }
[data-scene="writing"] .wline       { animation: wline-write 5s linear infinite; }
[data-scene="writing"] .wline.w2    { animation-delay: .35s }
[data-scene="writing"] .wline.w3    { animation-delay: .70s }
[data-scene="writing"] .wline.w4    { animation-delay: 1.05s }
[data-scene="writing"] .wline.w5    { animation-delay: 1.40s }
[data-scene="writing"] .wline.w6    { animation-delay: 1.85s }
@keyframes wline-write {
  0%   { stroke-dashoffset: 200; opacity: 1 }
  60%  { stroke-dashoffset: 0;   opacity: 1 }
  100% { stroke-dashoffset: 0;   opacity: 1 }
}
@keyframes pen-trace {
  0%   { transform: translate(40px, 60px) }
  20%  { transform: translate(160px, 60px) }
  22%  { transform: translate(40px, 72px) }
  40%  { transform: translate(150px, 72px) }
  42%  { transform: translate(40px, 84px) }
  60%  { transform: translate(165px, 84px) }
  62%  { transform: translate(40px, 96px) }
  80%  { transform: translate(110px, 96px) }
  82%  { transform: translate(40px, 108px) }
  100% { transform: translate(155px, 108px) }
}

/* Tarjeta flotante "Robin" sobre el personaje */
.robi-card {
  position: absolute;
  right: -14px; bottom: 60px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px 12px;
  box-shadow: 0 18px 40px -12px rgba(14,14,16,.15), 0 4px 14px rgba(14,14,16,.06);
  width: 200px;
  font-size: .85rem;
  z-index: 3;
}
.robi-card .robi-head { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border) }
.robi-card .robi-name { font-weight: 700; font-size: .98rem; letter-spacing: -.01em }
.robi-card .robi-role { color: var(--ink-4); font-size: .76rem; margin-top: 1px }
.robi-card .robi-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 7px;
}
.robi-card .robi-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--ink-2);
}
.robi-card .robi-list .ri {
  width: 18px; display: inline-flex; justify-content: center;
  font-size: .92rem; opacity: .9;
}

/* === TRUST LOGOS / MARQUEE === */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0 22px;
  background: var(--bg-2);
}
.trust .caption {
  text-align: center; color: var(--ink-4);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  margin: 0 0 14px;
}
.marquee { overflow: hidden }
.marquee-track {
  display: flex; align-items: center; gap: 56px;
  white-space: nowrap;
  animation: marquee 42s linear infinite;
}
.marquee-track .logo {
  flex-shrink: 0;
  background: none !important; box-shadow: none !important; padding: 0 !important;
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px;
  width: auto;
}
.marquee-track .logo img {
  height: 38px !important;
  max-height: 38px !important;
  width: auto !important;
  max-width: 150px !important;
  object-fit: contain;
  filter: none;
  opacity: 1;
}
.marquee-track .logo em {
  font-style: italic; font-family: Georgia, serif; font-weight: 500;
}
@keyframes marquee {
  from { transform: translateX(0) }
  to   { transform: translateX(-50%) }
}

/* === SECTION PRODUCT === */
.section-product {
  padding: 110px 0 120px;
  background: #fff;
  text-align: center;
}
.section-product .label {
  display: inline-block;
  font-size: .78rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--violet); font-weight: 600;
  margin-bottom: 18px;
}
.section-product h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 0 0 18px;
}
.section-product .sub {
  color: var(--ink-3);
  max-width: 640px; margin: 0 auto 38px;
  font-size: 1.05rem;
}

/* === APP MOCKUP === */
.app-mockup {
  margin: 60px auto 80px;
  max-width: 1100px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}
.app-mockup .chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: #fafafb;
  border-bottom: 1px solid var(--border);
}
.app-mockup .chrome .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: #e2e2e6;
}
.app-mockup .chrome .dot:nth-child(1) { background: #ff5f57 }
.app-mockup .chrome .dot:nth-child(2) { background: #febc2e }
.app-mockup .chrome .dot:nth-child(3) { background: #28c840 }
.app-mockup .url-bar {
  margin-left: 14px;
  font-size: .82rem; color: var(--ink-4);
}
.app-mockup .layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 460px;
}
.app-mockup .sidebar {
  background: #fafafb;
  border-right: 1px solid var(--border);
  padding: 22px 14px;
}
.app-mockup .s-label {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-4); margin: 14px 8px 8px;
}
.app-mockup .s-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  font-size: .88rem; color: var(--ink-2);
  margin-bottom: 2px;
}
.app-mockup .s-item.active { background: var(--violet-3); color: #463acb; font-weight: 600 }
.app-mockup .s-ico { color: var(--ink-4); width: 14px; text-align: center }
.app-mockup .s-tag { margin-left: auto; color: var(--ok); font-size: .8rem }
.app-mockup .s-div {
  height: 1px; background: var(--border);
  margin: 14px 0;
}
.app-mockup .chat-area {
  display: flex; flex-direction: column;
}
.app-mockup .chat-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.app-mockup .ch-title { font-weight: 600; font-size: .98rem }
.app-mockup .ch-sub { font-size: .8rem; color: var(--ink-4); margin-top: 3px }
.app-mockup .ch-chips { display: flex; gap: 8px }
.app-mockup .ch-chip {
  padding: .35rem .65rem; border-radius: 999px;
  font-size: .72rem; font-weight: 500;
  background: var(--bg-2); color: var(--ink-3);
  border: 1px solid var(--border);
}
.app-mockup .ch-chip.ok { background: #f0faf4; color: #1f7a4d; border-color: #c3e8d2 }

.app-mockup .messages {
  padding: 22px;
  flex: 1;
  display: flex; flex-direction: column; gap: 18px;
}
.app-mockup .msg .who {
  font-size: .72rem; color: var(--ink-4);
  margin-bottom: 6px; letter-spacing: .04em;
}
.app-mockup .msg .bub {
  display: inline-block; padding: 12px 16px;
  border-radius: 14px;
  background: var(--bg-2);
  font-size: .92rem; line-height: 1.55;
  max-width: 78%;
  color: var(--ink-2);
}
.app-mockup .msg.me { text-align: right }
.app-mockup .msg.me .bub {
  background: var(--ink); color: #fff;
}
.app-mockup .msg .cite {
  margin-top: 8px;
  font-size: .76rem;
  color: var(--ink-3);
  border-left: 3px solid var(--violet);
  padding: 6px 10px;
  background: var(--violet-4);
  border-radius: 0 6px 6px 0;
  display: inline-block;
}
.app-mockup .inp-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.app-mockup .inp-fake {
  flex: 1; padding: 10px 14px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-4); font-size: .88rem;
}
.app-mockup .send-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--violet); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 6px 14px rgba(108,92,242,.32);
}

/* === FEATURES === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
  max-width: 1100px;
  margin: 0 auto;
}
.feat {
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: border-color .15s ease, transform .2s ease, box-shadow .2s ease;
}
.feat:hover {
  border-color: var(--violet-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feat .f-num {
  display: inline-block;
  font-size: .76rem; letter-spacing: .14em; color: var(--violet);
  font-weight: 600; margin-bottom: 14px;
}
.feat h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 1.18rem;
  margin: 0 0 10px; letter-spacing: -.015em;
  color: var(--ink);
}
.feat p { color: var(--ink-3); margin: 0; font-size: .95rem; line-height: 1.6 }

/* === FOOTER === */
.footer {
  background: #0e0e10;
  color: rgba(255,255,255,.7);
  padding: 64px 0 28px;
}
.footer .row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
  padding-bottom: 26px; margin-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer .brand {
  display: inline-flex; align-items: center; gap: .5rem;
  color: #fff; font-weight: 700; font-size: 1.2rem;
}
.footer .brand .mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--violet) 0%, #4a3df0 100%);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: .82rem;
}
.footer .brand .footer-logo-img {
  height: 30px;
  width: auto;
  display: block;
}
.footer nav { display: flex; gap: 22px; flex-wrap: wrap }
.footer nav a { color: rgba(255,255,255,.7); font-size: .9rem }
.footer nav a:hover { color: #fff }
.footer .copy { font-size: .8rem; color: rgba(255,255,255,.45) }
.footer .copy a { color: rgba(255,255,255,.7) }

/* === FOOTER v2 === Estructura por columnas (estilo Lefebvre/vLex) === */
.footer-grid {
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 36px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin: 0 0 14px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul a {
  color: rgba(255,255,255,.78);
  font-size: .9rem;
  text-decoration: none;
  transition: color .15s ease;
}
.footer-col ul a:hover { color: #fff }
.footer-col.brand-col p {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  line-height: 1.65;
  margin: 14px 0 18px;
  max-width: 280px;
}
.footer-col.brand-col .footer-logo-img {
  height: 36px;
  width: auto;
}
.footer-col.brand-col .footer-tagline {
  display: block;
  margin-top: 4px;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .88rem;
  transition: all .15s ease;
}
.footer-social a:hover {
  color: #fff;
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.05);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 36px;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  padding-top: 8px;
}
.footer-bottom .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
}
.footer-bottom .legal-links a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  padding: 2px 0;
  white-space: nowrap;
}
.footer-bottom .legal-links a:hover { color: #fff }
.footer-bottom .legal-links .sep {
  color: rgba(255,255,255,.18);
  user-select: none;
}
.footer-bottom .corp-info {
  font-size: .74rem;
  color: rgba(255,255,255,.36);
  letter-spacing: .02em;
}

@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 28px }
  .footer-col.brand-col { grid-column: 1 / -1 }
}
@media (max-width: 540px) {
  .footer { padding: 44px 0 24px }
  .footer-grid { grid-template-columns: 1fr; gap: 28px }
  .footer-bottom { flex-direction: column; align-items: flex-start }
}

/* === Hero ligero para producto / contacto / fuentes / planes === */
.page-hero-light {
  position: relative;
  padding: 36px 0 44px;
  background:
    radial-gradient(800px 400px at 80% 20%, rgba(108,92,242,.08), transparent 70%),
    #fff;
  overflow: hidden;
  text-align: left;
}
.page-hero-light h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.85rem, 3.3vw, 2.8rem);
  font-weight: 700; line-height: 1.06; letter-spacing: -.035em;
  margin: 12px 0 16px;
  max-width: 820px;
}
.page-hero-light h1 .accent { color: var(--violet) }
.page-hero-light .lede { color: var(--ink-3); font-size: 1rem; max-width: 640px; line-height: 1.55; margin: 0 }
.page-hero-light .cta-row { margin-top: 22px }

/* === COMPATIBILIDAD con producto / contacto / fuentes-juridicas === */
.page-dark-header {
  background: linear-gradient(180deg, #0e0e10 0%, #181822 100%);
  color: #fff;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.page-dark-header::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 80% 0%, rgba(108,92,242,.25), transparent 70%);
  pointer-events: none;
}
.page-dark-header .topbar {
  background: transparent; backdrop-filter: none;
  border-bottom-color: rgba(255,255,255,.08);
}
.page-dark-header .topbar.scrolled {
  background: rgba(14,14,16,.88);
}
.page-dark-header .logo, .page-dark-header .topbar nav .link { color: #fff }
.page-dark-header .topbar nav .link { color: rgba(255,255,255,.7) }
.page-dark-header .topbar nav .link:hover { color: #fff; background: rgba(255,255,255,.08) }
.page-dark-header .btn-ghost-light { color: rgba(255,255,255,.85) }
.page-dark-header .btn-ghost-light:hover { background: rgba(255,255,255,.08); color: #fff }
.page-dark-header .btn-white { background: #fff; color: #0e0e10; border-color: #fff }
.page-dark-header .btn-white:hover { background: #f1f1f2 }
.page-hero-content {
  position: relative; z-index: 1;
  padding: 80px 0 40px;
  max-width: 820px;
}
.page-hero-content h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -.035em;
  margin: 16px 0 22px;
}
.page-hero-content h1 em {
  font-style: normal; color: var(--violet-2);
}
.page-hero-content .lede {
  color: rgba(255,255,255,.72);
  font-size: 1.08rem; line-height: 1.55; max-width: 600px;
  margin: 0 0 30px;
}
.eyebrow-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .9rem; border-radius: 999px;
  background: rgba(255,255,255,.08); color: #fff;
  font-size: .8rem; font-weight: 500;
  border: 1px solid rgba(255,255,255,.12);
}
.eyebrow-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--violet);
  box-shadow: 0 0 0 4px rgba(108,92,242,.25);
}

.page-section { padding: 90px 0; }
.page-section .section-eyebrow {
  display: inline-block;
  font-size: .78rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--violet); font-weight: 600; margin-bottom: 16px;
}
.page-section h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -.03em;
  margin: 0 0 16px;
}
.page-section .sub {
  color: var(--ink-3); max-width: 640px; font-size: 1.02rem;
  margin: 0 0 40px;
}

.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr } }
.feat-card {
  padding: 30px 28px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--border);
  transition: border-color .15s ease, box-shadow .2s ease, transform .2s ease;
}
.feat-card:hover {
  border-color: var(--violet-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feat-card .num {
  font-size: .76rem; letter-spacing: .14em; color: var(--violet);
  font-weight: 600;
}
.feat-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.18rem; font-weight: 600; letter-spacing: -.015em;
  margin: 12px 0 10px;
}
.feat-card p { color: var(--ink-3); margin: 0; font-size: .95rem; line-height: 1.6 }

/* Compat extra para producto / contacto / fuentes */
.bg-off { background: var(--bg-2) }
.split-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
  align-items: center;
}
@media (max-width: 900px) { .split-grid { grid-template-columns: 1fr } }
.split-grid .intro h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700; letter-spacing: -.025em; line-height: 1.1;
  margin: 0 0 14px;
}
.split-grid .intro p { color: var(--ink-3); line-height: 1.6 }

.sources-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 900px) { .sources-grid { grid-template-columns: 1fr } }
.source-card {
  padding: 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--border);
  transition: border-color .15s, transform .2s, box-shadow .2s;
}
.source-card:hover { border-color: var(--violet-2); transform: translateY(-2px); box-shadow: var(--shadow-md) }
.source-card .ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--violet-3); color: var(--violet);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; margin-bottom: 10px;
}
.source-card h3 { font-family: 'DM Sans', sans-serif; font-size: 1.05rem; font-weight: 600; margin: 0 0 6px }
.source-card p { color: var(--ink-3); font-size: .9rem; margin: 0; line-height: 1.55 }

.cta-band {
  background: linear-gradient(180deg, #0e0e10 0%, #181822 100%);
  color: #fff; text-align: center;
  padding: 80px 0;
}
.cta-band h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700; letter-spacing: -.025em;
  margin: 0 0 14px;
}
.cta-band p { color: rgba(255,255,255,.65); margin: 0 0 26px }
.cta-band .btn-white { background: #fff; color: #0e0e10; border-color: #fff }
.cta-band .btn-ghost-light { color: rgba(255,255,255,.85) }
.cta-band .btn-ghost-light:hover { background: rgba(255,255,255,.08); color: #fff }

.contact-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
  padding: 80px 0;
}
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr } }
.contact-side h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.1;
  margin: 14px 0 16px;
}
.contact-side p { color: var(--ink-3); line-height: 1.6 }
.contact-form-box {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-md);
}
.cf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px }
@media (max-width: 600px) { .cf-row2 { grid-template-columns: 1fr } }
.cf-field { margin-bottom: 14px }
.cf-field .lbl {
  display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; margin-bottom: 6px;
}
.cf-field input, .cf-field textarea, .cf-field select {
  width: 100%; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--border-2); background: #fff;
  font-family: inherit; font-size: .95rem;
}
.cf-field input:focus, .cf-field textarea:focus, .cf-field select:focus {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-3);
}
.cf-check { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 12px; font-size: .9rem; color: var(--ink-3) }
.cf-note { color: var(--ink-4); font-size: .82rem }

.mockup-mini {
  background: #fff; border-radius: 14px; border: 1px solid var(--border);
  box-shadow: var(--shadow-md); padding: 16px;
  font-size: .9rem;
}
.msg-user { display: inline-block; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff; margin-bottom: 10px }
.msg-ai { padding: 10px 14px; border-radius: 12px; background: var(--bg-2); color: var(--ink-2); margin-bottom: 8px }
.cite-sm { font-size: .76rem; color: var(--ink-3); border-left: 3px solid var(--violet); padding: 4px 8px; background: var(--violet-4); border-radius: 0 6px 6px 0 }

.contact-ok {
  background: #f0faf4; color: #1f7a4d; border: 1px solid #c3e8d2;
  border-radius: 10px; padding: 12px 14px; font-size: .9rem;
}
.check-ico {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ok); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; font-size: .7rem;
  margin-right: 6px;
}

/* === RESPONSIVE === */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px }
  .hero-figure { order: -1; max-width: 420px; margin: 0 auto }
  .topbar nav { display: none }
  .topbar .actions { display: inline-flex }
  .features-grid { grid-template-columns: 1fr }
  .app-mockup .layout { grid-template-columns: 1fr }
  .app-mockup .sidebar { display: none }
}

@media (max-width: 640px) {
  .container { padding: 0 20px }
  .hero { padding: 36px 0 60px }
  .cta-row { flex-direction: column; align-items: stretch }
  .cta-row .btn { width: 100%; justify-content: center }
  .footer .row { flex-direction: column; align-items: flex-start }
}

