/* Lúmina · web de presentación — base común a las versiones A, B y C.
   Sistema descrito en docs/web-referencia/DESIGN-WEB.md. Colores: solo tokens de DESIGN.md. */

@font-face { font-family: "Manrope Variable"; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope Variable"; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3 Variable"; font-weight: 200 900; font-display: swap; src: url(fonts/source-sans-3-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3 Variable"; font-weight: 200 900; font-display: swap; src: url(fonts/source-sans-3-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #123d3b; --ink-hover: #22544e; --body: #253e3c; --muted: #607570;
  --canvas: #f4f7f6; --surface: #fff; --line: #dfe7e4; --field-line: #cedbd5;
  --mint: #b9ebc6; --soft-green: #e1ebe5; --focus: #31866a;
  --ok: #276440; --ok-bg: #eaf5ec;
  --bad: #a34e2b; --bad-bg: #fff0e8;
  --wait: #856520; --wait-bg: #fcf4df;
  --unk: #5b6470; --unk-bg: #eef0f3;

  --display: "Manrope Variable", ui-sans-serif, system-ui, sans-serif;
  --text: "Source Sans 3 Variable", ui-sans-serif, system-ui, sans-serif;

  --max: 1088px; --gutter: 16px;
  --r-chip: 2px; --r-btn: 4px; --r-tile: 6px; --r-card: 12px;
  --ease-soft: cubic-bezier(.22, 1, .36, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-std: cubic-bezier(.4, 0, .2, 1);
  --pad-x: 24px;
}
@media (min-width: 1024px) { :root { --gutter: 32px; --pad-x: 46px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--body); font: 400 17px/26px var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-btn); text-decoration: none; }
.skip:focus { top: 12px; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Contenedor con raíles ---------- */
.wrap { width: calc(100% - 2 * var(--gutter)); max-width: var(--max); margin-inline: auto; }
.rails { border-inline: 1px solid var(--line); }
.sec { border-top: 1px solid var(--line); }
.pad { padding-inline: var(--pad-x); }

/* ---------- Tipos ---------- */
.h1 { font: 600 40px/44px var(--display); letter-spacing: -.8px; color: var(--ink); text-wrap: balance; }
.h2 { font: 600 28px/32px var(--display); letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.h2 .sub, .h2-sub { display: block; color: var(--muted); }
.h3 { font: 600 19px/25px var(--text); color: var(--ink); }
.lead { font-size: 19px; line-height: 27px; color: var(--muted); }
.lead b, .em { font-weight: 400; color: var(--ink); }
.small { font-size: 15px; line-height: 22px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font: 600 13px/16px var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--focus); }
@media (min-width: 1024px) {
  .h1 { font-size: 50px; line-height: 52px; letter-spacing: -2px; }
  .h2 { font-size: 36px; line-height: 40px; }
}

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 12px 20px; border: 1px solid transparent; border-radius: var(--r-btn); font: 600 15px/16px var(--text); white-space: nowrap; text-decoration: none; cursor: pointer; background: none; color: inherit; transition: color .1s var(--ease-std), background-color .1s var(--ease-std), border-color .1s var(--ease-std); }
.btn svg.i { width: 16px; height: 16px; transition: transform .15s var(--ease-std); }
.btn:hover svg.i.go { transform: translateX(2px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--field-line); }
.btn-secondary:hover { background: var(--canvas); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--canvas); }
.btn.go-pad { padding: 12px 12px 12px 18px; }
.btn-sm { min-height: 34px; padding: 8px 14px; }
.btn-icon { width: 42px; padding: 0; }
.btn-icon[disabled] { opacity: .4; cursor: default; }
.link { display: inline-flex; align-items: center; gap: 4px; font: 600 15px/20px var(--text); color: var(--focus); text-decoration: none; }
.link svg.i { width: 16px; height: 16px; transition: transform .15s var(--ease-std); }
.link:hover svg.i { transform: translateX(2px); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Pastillas y estados ---------- */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; border: 1px solid var(--line); border-radius: var(--r-chip); font: 600 13px/16px var(--text); letter-spacing: .02em; color: var(--body); text-decoration: none; background: #fff; transition: background-color .1s var(--ease-std); }
a.badge:hover { background: var(--canvas); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: var(--r-chip); background: var(--ok-bg); color: var(--ok); font-variant-numeric: tabular-nums; }
.chip svg.i { width: 14px; height: 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 4px; font: 600 13px/16px var(--text); white-space: nowrap; }
.tag svg.i { width: 14px; height: 14px; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.wait { background: var(--wait-bg); color: var(--wait); }
.tag.unk { background: var(--unk-bg); color: var(--unk); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 22px/1 var(--display); letter-spacing: -.04em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand .dot { color: var(--focus); }
.nav { display: none; gap: 4px; margin-inline: auto; }
.nav a { padding: 6px 12px; border-radius: var(--r-btn); font: 600 15px/20px var(--text); color: var(--ink); text-decoration: none; transition: background-color .15s var(--ease-std); }
.nav a:hover { background: var(--canvas); }
.head-actions { display: none; gap: 8px; align-items: center; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-btn); padding: 2px; margin-right: 6px; }
.lang span, .lang a { padding: 4px 8px; font: 600 13px/16px var(--text); border-radius: 3px; text-decoration: none; color: var(--muted); }
.lang [aria-current] { background: var(--ink); color: #fff; }
.menu-btn { margin-left: auto; }
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 12px 0 20px; }
.site-header[data-open] .mobile-menu { display: block; animation: menu-in .22s var(--ease-expo) both; }
.mobile-menu a:not(.btn) { display: block; padding: 12px 0; font: 600 18px/24px var(--text); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu .actions { margin-top: 16px; }
.mobile-menu .actions .btn { flex: 1; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 900px) {
  .nav, .head-actions { display: flex; }
  .menu-btn, .mobile-menu, .site-header[data-open] .mobile-menu { display: none; }
}

/* ---------- Encabezado de sección ---------- */
.sec-head { position: relative; display: flex; flex-direction: column; gap: 28px; padding: 40px var(--pad-x); }
.sec-head::before { content: ""; position: absolute; left: -1px; top: 46px; width: 2px; height: 24px; background: var(--focus); }
.sec-head > div:first-child { max-width: 40rem; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 768px) { .sec-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; } }

/* ---------- Captura de producto ---------- */
.shot { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px -40px rgba(18, 61, 59, .35); }
.shot img { width: 100%; }
.browser { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px -40px rgba(18, 61, 59, .35); }
.browser .chrome { display: flex; align-items: center; gap: 6px; height: 34px; padding-inline: 14px; border-bottom: 1px solid var(--line); background: var(--canvas); }
.browser .chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--field-line); }
.browser .chrome span { margin-inline: auto; padding: 2px 40px; border-radius: 4px; background: #fff; font: 13px/18px var(--text); color: var(--muted); }
.phone { width: 260px; border: 8px solid var(--ink); border-radius: 36px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -30px rgba(18, 61, 59, .45); }

/* ---------- Mosaico ---------- */
.bento { display: grid; gap: 12px; grid-template-columns: 1fr; padding: 0 16px 16px; }
.card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 360px; padding: 28px; overflow: hidden; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-card); }
.card .art { position: absolute; inset: 0 0 76px; display: grid; place-items: center; padding: 28px; }
.card .h3 { position: relative; }
.card p { position: relative; font-size: 15px; line-height: 22px; color: var(--muted); }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); gap: 16px; } .bento .wide { grid-column: span 2; } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 412px; padding: 0 16px 16px; } .card { min-height: 0; } }

/* Piezas de interfaz simplificadas dentro de las tarjetas */
.ui { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; font-size: 14px; line-height: 20px; box-shadow: 0 12px 30px -18px rgba(18, 61, 59, .3); }
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ui-row:first-child { border-top: 0; padding-top: 0; }
.ui-row strong { color: var(--ink); font-weight: 600; }
.cmp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; border-radius: 6px; background: #f5f8f5; font-variant-numeric: tabular-nums; }
.cmp span { display: block; font-size: 13px; color: var(--muted); }
.cmp b { display: block; font-size: 17px; color: var(--ink); }
.cmp .diff b { color: var(--bad); }
.drop { display: grid; place-items: center; gap: 8px; width: 100%; max-width: 420px; padding: 28px 16px; border: 1.5px dashed var(--field-line); border-radius: 10px; background: #fff; text-align: center; color: var(--muted); font-size: 14px; }
.drop svg.i { width: 30px; height: 30px; color: var(--focus); }
.drop strong { font: 600 18px/22px var(--display); letter-spacing: -.03em; color: var(--ink); }
.files { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.files span { padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font: 600 12px/16px var(--text); color: var(--body); }

/* ---------- Carrusel ---------- */
.carousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + 16px)); padding: 16px max(var(--gutter), calc((100vw - var(--max)) / 2 + 16px)); scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; flex: none; }

/* ---------- Cifras ---------- */
.stats { display: grid; grid-template-columns: 1fr; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 32px var(--pad-x); border-top: 1px solid var(--line); }
.stat svg.i { color: var(--muted); margin-bottom: 18px; }
.stat b { font: 600 36px/40px var(--display); letter-spacing: -.72px; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(3, 1fr); } .stat { padding: 40px 32px; } .stat:first-child { padding-left: var(--pad-x); } .stat + .stat { border-left: 1px solid var(--line); } }

/* ---------- Cinta ---------- */
.ticker { display: flex; align-items: center; gap: 24px; padding: 22px var(--pad-x); }
.ticker > strong { flex: none; font: 600 17px/22px var(--text); color: var(--ink); }
.marquee { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee-track ul { display: flex; gap: 32px; padding-right: 32px; }
.marquee-track li { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 14px; color: var(--muted); }
.paused .marquee-track, .marquee:hover .marquee-track { animation-play-state: paused; }
.pause { flex: none; font: 600 13px/16px var(--text); color: var(--muted); background: none; border: 0; cursor: pointer; padding: 6px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: 24px; padding: 48px var(--pad-x) 64px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 20px 0; cursor: pointer; list-style: none; font: 600 18px/24px var(--text); color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg.i { margin-top: 2px; color: var(--muted); transition: transform .2s var(--ease-std); }
.faq-list details[open] summary svg.i { transform: rotate(180deg); }
.faq-list details > div { padding: 0 40px 22px 0; color: var(--muted); }
.faq-list details > div p + p { margin-top: 10px; }
@media (min-width: 900px) { .faq { grid-template-columns: 1fr 1.75fr; gap: 64px; padding-top: 64px; } .faq .h2 { position: sticky; top: 104px; align-self: start; } }

/* ---------- Banda de cierre ---------- */
.cta { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 24px; padding: 40px var(--pad-x); }
.cta .h2 { position: relative; z-index: 1; }
.cta .actions { position: relative; z-index: 1; }
@media (min-width: 900px) { .cta { flex-direction: row; align-items: center; justify-content: space-between; padding-block: 44px; } }

/* ---------- Pie ---------- */
.site-footer { padding: 72px 0 32px; }
.foot-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
.foot-grid .brand-col { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.foot-grid h3 { font: 400 14px/20px var(--text); color: var(--muted); margin-bottom: 14px; }
.foot-grid li a { display: inline-block; padding: 8px 0; font: 600 15px/20px var(--text); color: var(--ink); text-decoration: none; }
.foot-grid li a:hover { color: var(--focus); }
.foot-note { max-width: 26ch; font-size: 15px; line-height: 22px; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 4px 10px 4px 8px; border: 1px solid var(--line); border-radius: var(--r-btn); font-size: 14px; color: var(--body); text-decoration: none; }
.ping { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--focus); }
.ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.4s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { from { opacity: .65; } to { opacity: 0; transform: scale(3.2); } }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot-bottom a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot-bottom a:hover { color: var(--focus); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } .foot-grid .brand-col { grid-column: auto; } }

/* ---------- Haz de líneas (generado por site.js) ---------- */
.beam { position: absolute; pointer-events: none; }
.beam svg { width: 100%; height: 100%; overflow: visible; }
.beam path { fill: none; stroke-width: 1.2; stroke-dasharray: var(--len); animation: beam-draw 2.6s var(--ease-soft) var(--at, 0s) both; }
.beam g { animation: beam-drift 14s ease-in-out infinite alternate; transform-origin: center; }
@keyframes beam-draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
@keyframes beam-drift { to { transform: translateY(-14px) scaleY(1.04); } }

/* ---------- Aparición ligada al desplazamiento (sin JS; sin soporte, el contenido se ve sin animar) ---------- */
@keyframes reveal { from { opacity: 0; transform: translateY(10px); filter: blur(3px); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Selector de versión (solo para la revisión) */
.switcher { position: fixed; left: 50%; bottom: 16px; z-index: 150; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 6px; background: var(--ink); border-radius: 999px; box-shadow: 0 12px 32px -12px rgba(18, 61, 59, .55); font: 600 14px/16px var(--text); }
.switcher span { padding: 0 8px 0 10px; color: rgba(255, 255, 255, .7); }
.switcher a { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 999px; color: #fff; text-decoration: none; }
.switcher a:hover { background: rgba(255, 255, 255, .12); }
.switcher a[aria-current] { background: var(--mint); color: var(--ink); }
.switcher i { width: 1px; height: 20px; margin: 0 4px; background: rgba(255, 255, 255, .25); }
.switcher a:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.site-footer { padding-bottom: 72px; }
