/* =============================================================
   ACTO VOLTAJE · WEB v2 · páginas interiores
   Extiende av.css (home v4 validada). Mismos tokens, mismas curvas,
   un solo acento en texto (amarillo), rosa solo en atmósfera.
   ============================================================= */

/* ---------- cartel de página (hero interior) ---------- */
.page-hero { padding: calc(var(--nav-h) + 22px) clamp(10px, 1.6vw, 22px) 0; }
.stage--page { height: clamp(460px, 66vh, 680px); min-height: 0; }
.stage--short { height: clamp(380px, 52vh, 540px); }
.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; transform: scale(1.04); transition: transform 2400ms var(--ease-out); }
.is-open .stage-img { transform: none; }
.stage--page .stage-veil {
  background:
    radial-gradient(ellipse at 70% 40%, rgba(15, 146, 178, 0) 0%, rgba(9, 49, 96, 0.5) 55%, rgba(9, 49, 96, 0.9) 100%),
    linear-gradient(90deg, rgba(9, 49, 96, 0.92) 0%, rgba(9, 49, 96, 0.5) 50%, rgba(9, 49, 96, 0.2) 100%),
    linear-gradient(0deg, rgba(4, 21, 43, 0.85), transparent 55%);
}
.crumbs { display: flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 12.5px; color: var(--fg-2); margin: 0 0 22px; }
.crumbs a { text-decoration: none; color: var(--fg-2); transition: color 200ms ease; }
.crumbs span[aria-hidden] { opacity: 0.5; }
.page-title {
  margin: 0 0 18px;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 15ch;
}
.page-title em { font-style: normal; color: var(--yellow); }
.page-lede { color: var(--fg-2); font-size: clamp(1rem, 1.25vw, 1.18rem); max-width: 52ch; margin: 0; text-wrap: pretty; }
.page-hero .hero-copy { padding-bottom: clamp(40px, 7vh, 80px); }
.page-hero .hero-copy > .hero-line:last-child { margin-top: 26px; }

/* ---------- secciones ---------- */
.section { position: relative; overflow: clip; padding: clamp(96px, 12vw, 170px) 0; }
.section--tight { padding: clamp(64px, 8vw, 110px) 0; }
.section > .shell { position: relative; z-index: 1; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 880px; }
.section-head .lede { color: var(--fg-2); font-size: 1.12rem; max-width: 58ch; margin: 22px 0 0; text-wrap: pretty; }
.section--navy { background: var(--navy); }
.aura--hero-r { right: -30vmax; top: -20vmax; }
.aura--hero-l { left: -34vmax; bottom: -36vmax; opacity: 0.4; animation-delay: -9s; }

/* =============================================================
   MANIFESTO · el guion
   ============================================================= */
.script { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.script-side { position: sticky; top: calc(var(--nav-h) + 48px); }
.script-side .bezel img { width: 100%; border-radius: var(--r); }
.script-side figcaption { font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); margin-top: 14px; }
.stanzas { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(64px, 9vw, 120px); }
.stanza { display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.stanza-n { font-family: var(--mono); font-size: 13px; color: var(--yellow); padding-top: 0.6em; }
.stanza p { margin: 0 0 0.5em; font-size: clamp(1.5rem, 2.9vw, 2.6rem); line-height: 1.16; letter-spacing: -0.025em; font-weight: 700; text-wrap: pretty; }
.stanza p.small { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 500; color: var(--fg-2); letter-spacing: -0.01em; line-height: 1.45; }
.stanza em { font-style: normal; color: var(--yellow); }
.stanza--close p { font-size: clamp(1.8rem, 3.6vw, 3.3rem); }
@media (max-width: 860px) {
  .script { grid-template-columns: 1fr; }
  .script-side { position: relative; top: auto; max-width: 340px; }
  .stanza { grid-template-columns: 1fr; }
}

/* filas de enlace grandes (navegación entre actos) */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows a {
  display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.1fr) 56px; gap: 20px; align-items: center;
  padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: color 200ms ease;
}
.rows .r-n { font-family: var(--mono); font-size: 13px; color: var(--fg-3); }
.rows .r-t { font-size: clamp(1.6rem, 3.2vw, 2.8rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.rows .r-d { color: var(--fg-2); }
.rows .r-a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: background-color 200ms ease, color 200ms ease, transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .rows a:hover .r-t { color: var(--yellow); }
  .rows a:hover .r-a { background: var(--yellow); color: var(--ink); transform: rotate(-45deg); }
}
@media (max-width: 760px) { .rows a { grid-template-columns: 1fr 44px; } .rows .r-n, .rows .r-d { display: none; } .rows .r-a { width: 44px; height: 44px; } }

/* =============================================================
   ACTUACIONES
   ============================================================= */
.posters--page .poster { height: min(84vh, 780px); }
.deliver { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.deliver li { font-family: var(--mono); font-size: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(var(--tint), 0.08); box-shadow: inset 0 0 0 1px var(--line); }

/* prisma: un haz de luz que se descompone */
.prism { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.prism-visual { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; }
.prism-visual svg { width: 100%; height: 100%; overflow: visible; }
.prism-beam { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1400ms var(--ease-in-out); }
.prism.is-in .prism-beam { stroke-dashoffset: 0; }
.prism.is-in .prism-beam:nth-of-type(2) { transition-delay: 500ms; }
.prism.is-in .prism-beam:nth-of-type(3) { transition-delay: 620ms; }
.prism.is-in .prism-beam:nth-of-type(4) { transition-delay: 740ms; }
.facets { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.facet { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.facet:first-child { border-top: 1px solid var(--line); }
.facet b { display: block; font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.facet span { color: var(--fg-2); }
.facet i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--c, var(--yellow)); padding-top: 6px; }
@media (max-width: 860px) { .prism { grid-template-columns: 1fr; } .prism-visual { max-width: 360px; } }

/* formatos de colaboración: filas tipo entrada */
.formats { display: grid; gap: 14px; }
.format {
  display: grid; grid-template-columns: 70px minmax(0, 1.2fr) minmax(0, 1.4fr) auto; gap: 24px; align-items: center;
  padding: 28px clamp(20px, 3vw, 36px);
  border-radius: var(--r);
  background: rgba(var(--tint), 0.04);
  box-shadow: inset 0 0 0 1px var(--line);
  position: relative;
  text-decoration: none;
  transition: background-color 250ms ease, transform 300ms var(--ease-out);
}
.format::before, .format::after { content: ""; position: absolute; right: 150px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.format::before { top: -11px; } .format::after { bottom: -11px; }
.format-n { font-family: var(--mono); color: var(--yellow); font-size: 13px; }
.format h3 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.75rem); letter-spacing: -0.025em; line-height: 1.1; }
.format p { margin: 0; color: var(--fg-2); }
.format-stub { font-family: var(--mono); font-size: 12.5px; color: var(--fg-2); white-space: nowrap; padding-left: 28px; border-left: 2px dashed rgba(var(--tint), 0.25); min-width: 130px; }
@media (hover: hover) and (pointer: fine) { .format:hover { background: rgba(var(--tint), 0.07); transform: translateX(6px); } }
@media (max-width: 860px) {
  .format { grid-template-columns: 1fr; gap: 10px; }
  .format::before, .format::after { display: none; }
  .format-stub { border-left: 0; padding-left: 0; border-top: 2px dashed rgba(var(--tint), 0.25); padding-top: 12px; }
}

/* banda de cierre */
.encore { text-align: left; }
.encore-box {
  position: relative; overflow: hidden;
  border-radius: calc(var(--r) + 10px);
  padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 88px);
  background: radial-gradient(ellipse 70% 120% at 100% 0%, rgba(255, 107, 126, 0.28), transparent 60%), radial-gradient(ellipse 60% 100% at 0% 100%, rgba(255, 183, 0, 0.22), transparent 60%), var(--navy);
  box-shadow: inset 0 0 0 1px rgba(var(--hl), 0.08);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.encore-box .h2 { max-width: 14ch; }

/* =============================================================
   OBRAS ANTERIORES
   ============================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 8px 0 18px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(var(--tint), 0.06); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px; font-weight: 600; color: var(--fg-2);
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.chip b { font-family: var(--mono); font-size: 12px; font-weight: 400; min-width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: rgba(var(--tint), 0.08); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--ink); box-shadow: none; }
.chip[aria-pressed="true"] b { background: var(--ink); color: var(--fg); }
@media (hover: hover) and (pointer: fine) { .chip:not([aria-pressed="true"]):hover { color: var(--fg); background: rgba(var(--tint), 0.1); } }
.filters-note { margin-left: auto; font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); }

.cases { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.case {
  grid-column: span 6;
  position: relative;
  padding: 6px; border-radius: calc(var(--r) + 6px);
  background: rgba(var(--hl), 0.04); box-shadow: inset 0 0 0 1px rgba(var(--hl), 0.08);
  text-align: left; border: 0; color: inherit; font: inherit; cursor: pointer;
  transition: transform 400ms var(--ease-out), opacity 300ms ease;
}
.case[hidden] { display: none; }
.case.is-entering { opacity: 0; transform: translateY(14px) scale(0.98); }
.case-core { position: relative; height: 100%; min-height: 380px; border-radius: var(--r); overflow: hidden; background: var(--navy); display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.case-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 900ms var(--ease-out); }
.case-core::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(4, 21, 43, 0.95) 0%, rgba(4, 21, 43, 0.55) 45%, rgba(4, 21, 43, 0.05) 75%); }
.case-top { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; }
.case-tag { color: var(--ink); background: var(--c, var(--yellow)); padding: 4px 11px; border-radius: 999px; font-weight: 700; }
.case-year { color: var(--fg-2); background: rgba(4, 21, 43, 0.5); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.case-body { padding: 24px; }
.case-logo { height: 26px; width: auto; max-width: 140px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: 16px; }
.case-client { font-family: var(--mono); font-size: 12.5px; color: var(--fg-2); margin: 0 0 8px; }
.case h3 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 22ch; }
.case-metric { display: inline-flex; margin-top: 16px; font-family: var(--mono); font-size: 12.5px; color: var(--c, var(--yellow)); }
.case-open { position: absolute; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--tint), 0.1); backdrop-filter: blur(8px); transition: background-color 200ms ease, color 200ms ease, transform 300ms var(--ease-out); }
.case--brand { --c: var(--yellow); } .case--media { --c: var(--electric); } .case--next { --c: var(--teal); }
.case:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .case:hover .case-img { transform: scale(1.05); }
  .case:hover .case-open { background: var(--yellow); color: var(--ink); transform: rotate(-45deg); }
}
.case--feature .case-core { min-height: 560px; }
.case--feature h3 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
/* casos demo: la interfaz es la imagen */
.case--demo .case-core { background: linear-gradient(160deg, #0b2a52, #061b38); justify-content: space-between; }
.case--demo .case-core::before { display: none; }
.case--demo .demo { margin: 64px 18px 0; }
.case-demo-label { color: var(--teal); }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr; } .case, .case[style] { grid-column: auto !important; } .case-core, .case--feature .case-core { min-height: 400px; } }

/* panel lateral del caso */
.drawer-backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(1, 8, 20, 0.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity 300ms ease; }
.drawer-backdrop.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 10px; right: 10px; bottom: 10px; z-index: 160;
  width: min(600px, calc(100% - 20px));
  border-radius: calc(var(--r) + 4px);
  background: #061b38; box-shadow: inset 0 0 0 1px rgba(var(--hl), 0.1), -30px 0 80px -20px rgba(1, 8, 20, 0.8);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(calc(100% + 20px));
  transition: transform 480ms var(--ease-drawer);
}
.drawer.is-open { transform: none; }
.drawer[hidden], .drawer-backdrop[hidden] { display: none; }
.drawer-media { position: relative; aspect-ratio: 16 / 10; margin: 8px; border-radius: var(--r); overflow: hidden; background: var(--navy); }
.drawer-media img.d-img { width: 100%; height: 100%; object-fit: cover; }
.drawer-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 27, 56, 0.9), transparent 60%); }
.drawer-media .demo { position: absolute; inset: 22px; z-index: 1; }
.drawer-logo { position: absolute; left: 24px; bottom: 22px; z-index: 2; height: 30px; width: auto; max-width: 160px; object-fit: contain; filter: brightness(0) invert(1); }
.drawer-close { position: sticky; top: 16px; float: right; margin: 16px 16px -62px 0; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(4, 21, 43, 0.7); backdrop-filter: blur(10px); color: var(--fg); font-size: 20px; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.drawer-close:active { transform: scale(0.94); }
.drawer-body { padding: 18px clamp(20px, 4vw, 40px) 40px; }
.drawer-tag { display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--ink); background: var(--c, var(--yellow)); padding: 4px 11px; border-radius: 999px; font-weight: 700; }
.drawer h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.05; letter-spacing: -0.035em; margin: 16px 0 6px; }
.drawer-client { font-family: var(--mono); font-size: 13px; color: var(--fg-2); margin: 0 0 28px; }
.acts3 { list-style: none; margin: 0 0 32px; padding: 0; }
.acts3 li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.acts3 dt, .acts3 .k { font-family: var(--mono); font-size: 12px; color: var(--fg-3); padding-top: 3px; }
.acts3 .v { color: var(--fg-2); }
.acts3 li:last-child .v { color: var(--fg); font-weight: 600; }
.demo-note { font-family: var(--mono); font-size: 12px; color: var(--fg-3); margin: -14px 0 26px; }
@media (max-width: 520px) { .acts3 li { grid-template-columns: 1fr; gap: 4px; } }

/* =============================================================
   NEXT GEN
   ============================================================= */
.pains { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pain {
  display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start;
  padding: 18px 20px; border-radius: 16px; cursor: pointer;
  background: rgba(var(--tint), 0.04); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.pain:active { transform: scale(0.99); }
.pain input { position: absolute; opacity: 0; pointer-events: none; }
.pain-box { width: 26px; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px rgba(var(--tint), 0.35); display: grid; place-items: center; transition: background-color 200ms ease, box-shadow 200ms ease; }
.pain-box svg { width: 14px; height: 14px; stroke: var(--ink); stroke-width: 3; fill: none; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 260ms var(--ease-out); }
.pain input:checked ~ .pain-box { background: var(--yellow); box-shadow: none; }
.pain input:checked ~ .pain-box svg { stroke-dashoffset: 0; }
.pain input:focus-visible ~ .pain-box { outline: 2px solid var(--yellow); outline-offset: 3px; }
.pain:has(input:checked) { background: rgba(255, 183, 0, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 183, 0, 0.35); }
.pain span:last-child { font-size: 1.06rem; color: var(--fg); }
.verdict {
  position: sticky; top: calc(var(--nav-h) + 40px);
  padding: 6px; border-radius: calc(var(--r) + 6px); background: rgba(var(--hl), 0.04); box-shadow: inset 0 0 0 1px rgba(var(--hl), 0.08);
}
.verdict-core { border-radius: var(--r); padding: 30px; background: radial-gradient(ellipse 90% 80% at 100% 0%, rgba(0, 180, 151, 0.22), transparent 60%), var(--navy); }
.meter { display: flex; gap: 6px; margin: 18px 0 22px; }
.meter i { flex: 1; height: 8px; border-radius: 99px; background: rgba(var(--tint), 0.12); transition: background-color 300ms ease; }
.meter i.on { background: var(--teal); }
.verdict-n { font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.verdict-n small { font-size: 0.4em; color: var(--fg-3); font-weight: 700; letter-spacing: 0; }
.verdict-text { color: var(--fg-2); margin: 0 0 24px; min-height: 3em; transition: opacity 180ms ease, filter 180ms ease; }
.verdict-text.is-swapping { opacity: 0; filter: blur(3px); }
@media (max-width: 860px) { .pains { grid-template-columns: 1fr; } .verdict { position: relative; top: auto; } }

.stack-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack-item { padding: 28px 24px; }
.stack-item + .stack-item { box-shadow: -1px 0 0 var(--line); }
.stack-item b { display: block; font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.stack-item span { font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); }
@media (max-width: 860px) { .stack-row { grid-template-columns: 1fr 1fr; } .stack-item:nth-child(3) { box-shadow: 0 -1px 0 var(--line); } .stack-item:nth-child(4) { box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); } }

/* escenas: pestañas + demo viva */
.scenes { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.scene-tabs { display: grid; gap: 6px; }
.scene-tab {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; text-align: left;
  padding: 18px 18px; border: 0; border-radius: 16px; cursor: pointer;
  background: transparent; color: var(--fg-2);
  transition: background-color 200ms ease, color 200ms ease;
}
.scene-tab small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--fg-3); margin-bottom: 4px; }
.scene-tab b { font-size: 1.08rem; line-height: 1.25; font-weight: 600; }
.scene-tab .n { font-family: var(--mono); font-size: 12.5px; padding-top: 2px; }
.scene-tab[aria-selected="true"] { background: rgba(var(--tint), 0.07); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.scene-tab[aria-selected="true"] .n { color: var(--yellow); }
@media (hover: hover) and (pointer: fine) { .scene-tab:not([aria-selected="true"]):hover { color: var(--fg); background: rgba(var(--tint), 0.04); } }
.scene-panel { position: sticky; top: calc(var(--nav-h) + 36px); }
.scene-panel[hidden] { display: none; }
.scene-shell { padding: 6px; border-radius: calc(var(--r) + 6px); background: rgba(var(--hl), 0.04); box-shadow: inset 0 0 0 1px rgba(var(--hl), 0.08); }
.scene-core { border-radius: var(--r); padding: clamp(18px, 2.4vw, 28px); background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(15, 146, 178, 0.2), transparent 60%), #0a2649; }
.scene-intro { color: var(--fg-2); margin: 0 0 18px; font-size: 15.5px; }
.flow { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: f; }
.flow li { padding: 14px; border-radius: 14px; background: rgba(4, 21, 43, 0.5); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--fg-2); }
.flow li b { display: block; color: var(--fg); font-size: 14px; margin-bottom: 4px; }
.flow li small { display: block; font-family: var(--mono); font-size: 11px; color: var(--teal); margin-bottom: 6px; }
.result-line { margin: 16px 0 0; font-family: var(--mono); font-size: 12.5px; color: var(--teal); }
@media (max-width: 960px) { .scenes { grid-template-columns: 1fr; } .scene-panel { position: relative; top: auto; } .flow { grid-template-columns: 1fr 1fr; } }

/* sala de máquinas: galería de demos */
.engine { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.engine-item { grid-column: span 6; padding: 6px; border-radius: calc(var(--r) + 6px); background: rgba(var(--hl), 0.04); box-shadow: inset 0 0 0 1px rgba(var(--hl), 0.08); }
.engine-item:nth-child(4n+1), .engine-item:nth-child(4n+4) { grid-column: span 7; }
.engine-item:nth-child(4n+2), .engine-item:nth-child(4n+3) { grid-column: span 5; }
.engine-core { border-radius: var(--r); padding: 22px; height: 100%; background: linear-gradient(160deg, #0b2a52, #061b38); display: flex; flex-direction: column; gap: 18px; }
.engine-core h3 { margin: 0; font-size: 1.3rem; letter-spacing: -0.02em; }
.engine-core p { margin: 4px 0 0; color: var(--fg-2); font-size: 15px; }
.engine-core .demo { margin-top: auto; }
@media (max-width: 900px) { .engine { grid-template-columns: 1fr; } .engine-item { grid-column: auto !important; } }

/* proceso: línea de tiempo */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: linear-gradient(90deg, var(--yellow), var(--teal)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1600ms var(--ease-in-out); }
.timeline.is-in::before { transform: scaleX(1); }
.timeline li { padding-right: 22px; }
.timeline .dot { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); box-shadow: inset 0 0 0 2px var(--yellow); font-family: var(--mono); font-size: 13px; color: var(--yellow); position: relative; margin-bottom: 22px; }
.timeline small { display: block; font-family: var(--mono); font-size: 12px; color: var(--fg-3); margin-bottom: 6px; }
.timeline b { display: block; font-size: 1.2rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.timeline p { margin: 0; color: var(--fg-2); font-size: 15px; }
@media (max-width: 960px) {
  .timeline { grid-template-columns: 1fr; gap: 26px; }
  .timeline::before { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform: scaleY(0); transform-origin: 50% 0; }
  .timeline.is-in::before { transform: scaleY(1); }
  .timeline li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 0; }
  .timeline .dot { margin: 0; }
}
.deliverables { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.deliverables span { font-family: var(--mono); font-size: 12.5px; padding: 8px 14px; border-radius: 999px; background: rgba(0, 180, 151, 0.12); color: #7ee0cf; box-shadow: inset 0 0 0 1px rgba(0, 180, 151, 0.3); }

/* =============================================================
   DEMOS EN VIVO (interfaces programadas)
   ============================================================= */
.demo {
  --d-bg: rgba(4, 21, 43, 0.78);
  border-radius: 14px; overflow: hidden;
  background: var(--d-bg);
  box-shadow: inset 0 0 0 1px rgba(var(--hl), 0.09), 0 24px 60px -30px rgba(1, 8, 20, 0.9);
  font-size: 13px; line-height: 1.35;
  backdrop-filter: blur(10px);
}
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(var(--hl), 0.07); font-family: var(--mono); font-size: 11.5px; color: var(--fg-3); }
.demo-bar .dots { display: flex; gap: 5px; }
.demo-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(var(--tint), 0.18); }
.demo-bar .title { color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--teal); white-space: nowrap; }
.demo-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(0, 180, 151, 0.2); }
.demo.is-running .demo-live::before { animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 50% { box-shadow: 0 0 0 6px rgba(0, 180, 151, 0); } }
.demo-body { padding: 12px; min-height: 210px; position: relative; }
.demo-foot { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; border-top: 1px solid rgba(var(--hl), 0.07); font-family: var(--mono); font-size: 11px; color: var(--fg-3); }
.demo-foot b { color: var(--fg); font-weight: 400; }

/* filas de bandeja / log */
.d-rows { display: grid; gap: 6px; }
.d-row {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 9px 10px; border-radius: 10px; background: rgba(var(--tint), 0.04);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out), background-color 300ms ease;
}
.d-row.is-new { opacity: 0; transform: translateY(-8px); }
.d-row.is-hot { background: rgba(0, 180, 151, 0.1); }
.d-av { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 10.5px; background: rgba(15, 146, 178, 0.25); color: #9fdcec; }
.d-main { min-width: 0; }
.d-main b { display: block; font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-main span { display: block; color: var(--fg-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-tag { font-family: var(--mono); font-size: 10.5px; padding: 3px 8px; border-radius: 999px; white-space: nowrap; background: rgba(var(--tint), 0.08); color: var(--fg-2); transition: background-color 300ms ease, color 300ms ease; }
.d-tag.t-ok { background: rgba(0, 180, 151, 0.18); color: #7ee0cf; }
.d-tag.t-warn { background: rgba(255, 183, 0, 0.16); color: #ffd36b; }
.d-tag.t-info { background: rgba(15, 146, 178, 0.2); color: #8fd3e6; }
.d-tag.t-hot { background: rgba(255, 107, 126, 0.18); color: #ffadb8; }
.d-tag.t-wait { color: var(--fg-3); }

/* métricas */
.d-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.d-kpi { padding: 10px; border-radius: 10px; background: rgba(var(--tint), 0.04); }
.d-kpi small { display: block; font-family: var(--mono); font-size: 10px; color: var(--fg-3); margin-bottom: 4px; }
.d-kpi b { font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.d-kpi i { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--teal); margin-left: 4px; }
.d-chart { height: 96px; display: flex; align-items: flex-end; gap: 5px; padding: 8px 4px 0; border-radius: 10px; background: rgba(var(--tint), 0.03); }
.d-chart i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--teal), rgba(15, 146, 178, 0.5)); transform-origin: 50% 100%; transform: scaleY(0.05); transition: transform 700ms var(--ease-out); }
.d-chart i.hl { background: linear-gradient(180deg, var(--yellow), rgba(255, 183, 0, 0.4)); }
.d-text { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(15, 146, 178, 0.1); color: var(--fg-2); font-size: 12.5px; min-height: 52px; }
.d-text b { color: var(--fg); font-weight: 600; }
.caret::after { content: ""; display: inline-block; width: 6px; height: 13px; margin-left: 2px; background: var(--teal); vertical-align: -2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* pipeline (OCR, render) */
.d-pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.d-step { padding: 10px 8px; border-radius: 10px; background: rgba(var(--tint), 0.04); text-align: center; font-size: 11.5px; color: var(--fg-3); transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease; }
.d-step b { display: block; font-family: var(--mono); font-size: 10px; margin-bottom: 4px; }
.d-step.on { background: rgba(0, 180, 151, 0.14); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(0, 180, 151, 0.4); }
.d-step.done { color: #7ee0cf; }
.d-doc { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
.d-paper { border-radius: 8px; background: #e9eef5; padding: 9px 8px; display: grid; gap: 5px; align-content: start; position: relative; overflow: hidden; }
.d-paper i { display: block; height: 4px; border-radius: 2px; background: #b8c4d4; }
.d-paper i:nth-child(1) { width: 60%; background: #6c7e97; height: 6px; }
.d-paper i:nth-child(odd) { width: 80%; }
.d-paper::after { content: ""; position: absolute; left: 0; right: 0; height: 18px; top: -18px; background: linear-gradient(180deg, transparent, rgba(0, 180, 151, 0.55), transparent); }
.d-paper.scan::after { animation: scan 1.2s var(--ease-in-out) 1; }
@keyframes scan { to { transform: translateY(150px); } }
.d-fields { display: grid; gap: 5px; }
.d-field { display: flex; justify-content: space-between; gap: 8px; padding: 6px 9px; border-radius: 8px; background: rgba(var(--tint), 0.04); font-size: 12px; }
.d-field span { color: var(--fg-3); font-family: var(--mono); font-size: 10.5px; }
.d-field b { font-weight: 600; opacity: 0; transform: translateX(6px); transition: opacity 300ms ease, transform 300ms var(--ease-out); }
.d-field.on b { opacity: 1; transform: none; }

/* chat (whatsapp, rag) */
.d-chat { display: flex; flex-direction: column; gap: 7px; }
.d-msg { max-width: 82%; padding: 8px 11px; border-radius: 12px; font-size: 12.5px; transition: opacity 300ms ease, transform 300ms var(--ease-out); }
.d-msg.is-new { opacity: 0; transform: translateY(6px); }
.d-msg.in { align-self: flex-start; background: rgba(var(--tint), 0.08); border-bottom-left-radius: 4px; }
.d-msg.out { align-self: flex-end; background: rgba(0, 180, 151, 0.2); color: #dff7f2; border-bottom-right-radius: 4px; }
.d-msg .src { display: block; margin-top: 5px; font-family: var(--mono); font-size: 10px; color: #8fd3e6; }
.d-typing { align-self: flex-end; display: inline-flex; gap: 3px; padding: 9px 11px; border-radius: 12px; background: rgba(0, 180, 151, 0.12); }
.d-typing i { width: 5px; height: 5px; border-radius: 50%; background: #7ee0cf; animation: typing 1s ease-in-out infinite; }
.d-typing i:nth-child(2) { animation-delay: 0.15s; } .d-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 50% { transform: translateY(-3px); opacity: 0.5; } }

/* agentes (grafo) */
.d-graph { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.d-node { padding: 9px 10px; border-radius: 10px; background: rgba(var(--tint), 0.05); font-size: 12px; display: flex; gap: 8px; align-items: center; transition: background-color 300ms ease, box-shadow 300ms ease; }
.d-node::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fg-3); flex: none; transition: background-color 300ms ease; }
.d-node.on { background: rgba(0, 180, 151, 0.14); box-shadow: inset 0 0 0 1px rgba(0, 180, 151, 0.4); }
.d-node.on::before { background: var(--teal); }
.d-hub { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; text-align: center; font-family: var(--mono); font-size: 10px; background: radial-gradient(circle, rgba(255, 183, 0, 0.3), rgba(255, 183, 0, 0.05)); box-shadow: inset 0 0 0 1px rgba(255, 183, 0, 0.5); color: #ffd36b; }
.d-col { display: grid; gap: 6px; }

/* progreso */
.d-bar { height: 6px; border-radius: 99px; background: rgba(var(--tint), 0.08); overflow: hidden; margin-top: 8px; }
.d-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--teal), var(--electric)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 600ms var(--ease-out); }
.d-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; margin-top: 10px; }
.d-thumbs i { aspect-ratio: 1; border-radius: 6px; background: rgba(var(--tint), 0.06); transition: background-color 400ms ease, transform 400ms var(--ease-out); transform: scale(0.94); }
.d-thumbs i.on { transform: none; background: linear-gradient(135deg, rgba(15, 146, 178, 0.6), rgba(0, 180, 151, 0.35)); }

@media (prefers-reduced-motion: reduce) {
  .d-row, .d-msg, .d-field b, .d-chart i, .d-bar i, .d-thumbs i { transition: none !important; }
  .d-paper.scan::after, .caret::after, .d-typing i, .demo.is-running .demo-live::before { animation: none !important; }
}

/* =============================================================
   CONTACTO · GRACIAS
   ============================================================= */
.contact { padding: calc(var(--nav-h) + clamp(70px, 10vw, 130px)) 0 clamp(90px, 12vw, 160px); position: relative; overflow: clip; background: var(--navy); }
.contact .telon-grid { align-items: start; }
.select { position: relative; }
.select select { width: 100%; appearance: none; background: transparent; border: 0; border-bottom: 1px solid rgba(var(--hl), 0.28); border-radius: 0; padding: 10px 28px 10px 0; font: inherit; font-size: 1.05rem; color: var(--fg); outline: none; transition: border-color 160ms ease; }
.select select:focus { border-bottom-color: var(--yellow); }
.select select option { color: var(--ink); }
.select::after { content: "↓"; position: absolute; right: 2px; bottom: 12px; font-size: 14px; color: var(--fg-3); pointer-events: none; }
.legal-note { font-size: 13px; color: var(--fg-3); margin: 14px 0 0; }
.legal-note a { color: var(--fg-2); }

.thanks { min-height: 100dvh; display: grid; place-items: center; padding: calc(var(--nav-h) + 40px) var(--gutter) 60px; position: relative; overflow: clip; }
.thanks-ticket {
  position: relative; z-index: 1;
  width: min(760px, 100%);
  display: grid; grid-template-columns: 1fr 120px;
  border-radius: calc(var(--r) + 6px);
  background: var(--fg); color: var(--ink);
  box-shadow: 0 50px 120px -40px rgba(1, 8, 20, 0.9);
}
.thanks-ticket::before, .thanks-ticket::after { content: ""; position: absolute; right: 108px; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); }
.thanks-ticket::before { top: -13px; } .thanks-ticket::after { bottom: -13px; }
.thanks-main { padding: clamp(28px, 5vw, 56px); border-right: 2px dashed rgba(9, 49, 96, 0.25); }
.thanks-main small { font-family: var(--mono); font-size: 12.5px; color: #3b5578; }
.thanks-main h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 0.95; letter-spacing: -0.05em; margin: 14px 0 18px; color: var(--navy); }
.thanks-main p { margin: 0 0 26px; color: #2a4a75; max-width: 42ch; }
.thanks-main .btn--primary { background: var(--navy); color: var(--fg); box-shadow: none; }
.thanks-main .btn--primary .btn-ico { background: rgba(var(--hl), 0.14); }
.thanks-stub { display: grid; place-items: center; }
.thanks-stub span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; color: #3b5578; white-space: nowrap; }
.thanks-ticket { animation: ticket-in 900ms var(--ease-out) both 200ms; }
@keyframes ticket-in { from { opacity: 0; transform: translateY(30px) rotate(-2deg); } }
@media (max-width: 600px) { .thanks-ticket { grid-template-columns: 1fr; } .thanks-ticket::before, .thanks-ticket::after { display: none; } .thanks-main { border-right: 0; border-bottom: 2px dashed rgba(9, 49, 96, 0.25); } .thanks-stub { padding: 14px; } .thanks-stub span { writing-mode: horizontal-tb; transform: none; } }

/* =============================================================
   LIBRETOS
   ============================================================= */
.lib-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.search { position: relative; flex: 0 1 320px; }
.search input { width: 100%; height: 44px; border-radius: 999px; border: 0; padding: 0 18px 0 42px; background: rgba(var(--tint), 0.06); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); font: inherit; font-size: 15px; outline: none; transition: box-shadow 200ms ease; }
.search input::placeholder { color: var(--fg-3); }
.search input:focus { box-shadow: inset 0 0 0 1.5px var(--yellow); }
.search svg { position: absolute; left: 15px; top: 13px; width: 18px; height: 18px; stroke: var(--fg-3); fill: none; stroke-width: 1.6; }

.lib-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; text-decoration: none; margin-bottom: clamp(48px, 7vw, 96px); }
.lib-feature .bezel { border-radius: calc(var(--r) + 6px); }
.lib-cover { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border-radius: var(--r); display: block; transition: transform 900ms var(--ease-out); }
.lib-cover-wrap { overflow: hidden; border-radius: var(--r); position: relative; }
.lib-cover-wrap .cover-word { position: absolute; left: 22px; bottom: 16px; font-weight: 900; font-size: clamp(2.6rem, 6vw, 5.4rem); letter-spacing: -0.06em; line-height: 0.9; color: var(--fg); text-shadow: 0 10px 40px rgba(1, 8, 20, 0.6); }
.cover-word .brk { font-weight: 500; }
.lib-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); margin-bottom: 16px; }
.lib-cat { color: var(--ink); background: var(--yellow); padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.lib-feature h2, .lib-row h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.lib-feature h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.lib-feature p, .lib-row p { color: var(--fg-2); margin: 16px 0 22px; text-wrap: pretty; }
@media (hover: hover) and (pointer: fine) {
  .lib-feature:hover .lib-cover, .lib-row:hover .lib-cover { transform: scale(1.04); }
  .lib-feature:hover h2, .lib-row:hover h3 { color: var(--yellow); }
}
.lib-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.lib-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 300px); gap: clamp(18px, 3vw, 40px); align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.lib-row[hidden] { display: none; }
.lib-n { font-family: var(--mono); font-size: 13px; color: var(--fg-3); align-self: start; padding-top: 6px; }
.lib-row h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); transition: color 200ms ease; }
.lib-row p { margin: 10px 0 0; font-size: 15.5px; }
.lib-row .lib-cover { aspect-ratio: 16 / 10; }
.lib-empty { padding: 40px 0; color: var(--fg-2); }
@media (max-width: 860px) {
  .lib-feature { grid-template-columns: 1fr; }
  .lib-row { grid-template-columns: 1fr; }
  .lib-row .lib-cover-wrap { order: -1; }
  .lib-n { display: none; }
}

.glossary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.glossary div { padding: 26px 22px 26px 0; }
.glossary div + div { padding-left: 22px; box-shadow: -1px 0 0 var(--line); }
.glossary dt { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.glossary dd { margin: 0; color: var(--fg-2); font-size: 14.5px; }
@media (max-width: 960px) { .glossary { grid-template-columns: 1fr 1fr; } .glossary div + div { box-shadow: none; padding-left: 0; } .glossary div { border-bottom: 1px solid var(--line); padding-right: 16px; } }
@media (max-width: 520px) { .glossary { grid-template-columns: 1fr; } }

/* ---------- artículo ---------- */
.reading-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 120; background: linear-gradient(90deg, var(--yellow), #F2A07A, var(--rosa)); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) { .reading-progress { animation: grow linear both; animation-timeline: scroll(root); } }
.art-wrap { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 720px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 40px); font-size: 14px; }
.toc p { font-family: var(--mono); font-size: 12px; color: var(--fg-3); margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: t; }
.toc a { display: grid; grid-template-columns: 28px 1fr; gap: 6px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--fg-3); line-height: 1.35; transition: color 200ms ease, background-color 200ms ease; counter-increment: t; }
.toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--mono); font-size: 11px; padding-top: 2px; }
.toc a.is-active { color: var(--fg); background: rgba(var(--tint), 0.06); }
.toc a.is-active::before { color: var(--yellow); }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--fg); } }
.art-aside { position: sticky; top: calc(var(--nav-h) + 40px); }
.side-cta { padding: 6px; border-radius: calc(var(--r) + 6px); background: rgba(var(--hl), 0.04); box-shadow: inset 0 0 0 1px rgba(var(--hl), 0.08); }
.side-cta > div { border-radius: var(--r); padding: 24px; background: radial-gradient(ellipse 90% 80% at 100% 0%, rgba(0, 180, 151, 0.22), transparent 60%), var(--navy); }
.side-cta small { font-family: var(--mono); font-size: 12px; color: var(--teal); }
.side-cta h3 { margin: 10px 0 8px; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.15; }
.side-cta p { color: var(--fg-2); font-size: 14.5px; margin: 0 0 18px; }
.side-cta .btn { height: 46px; font-size: 15px; }
@media (max-width: 1180px) { .art-wrap { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); } .art-aside { display: none; } }
@media (max-width: 860px) { .art-wrap { grid-template-columns: 1fr; } .toc { position: relative; top: auto; display: none; } }

.prose { font-size: 18px; line-height: 1.7; color: #dbe5f1; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.2em; text-wrap: pretty; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.12; letter-spacing: -0.03em; color: var(--fg); margin: 2.4em 0 0.8em; scroll-margin-top: calc(var(--nav-h) + 40px); text-wrap: balance; }
.prose h2[data-n]::before { content: attr(data-n); display: block; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0; color: var(--yellow); margin-bottom: 12px; font-weight: 400; }
.prose h3 { font-size: 1.3rem; color: var(--fg); letter-spacing: -0.02em; margin: 1.8em 0 0.6em; }
.prose strong { color: var(--fg); }
.prose a { color: var(--fg); text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.4em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--yellow); }
.prose blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--yellow); font-size: 1.25em; line-height: 1.45; color: var(--fg); font-weight: 600; letter-spacing: -0.01em; }
.prose .table-wrap { overflow-x: auto; margin: 1.8em 0; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th { text-align: left; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--fg-3); background: rgba(var(--tint), 0.04); }
.prose th, .prose td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose details { border-top: 1px solid var(--line); padding: 4px 0; }
.prose details:last-of-type { border-bottom: 1px solid var(--line); }
.prose summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 700; color: var(--fg); position: relative; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 22px; color: var(--yellow); transition: transform 200ms var(--ease-out); }
.prose details[open] summary::after { transform: rotate(45deg); }
.prose details > *:not(summary) { margin-top: 0; }
.prose .sources { margin-top: 3em; padding-top: 1.5em; border-top: 1px solid var(--line); font-size: 14px; }
.prose .sources h2 { font-size: 1rem; margin: 0 0 1em; font-family: var(--mono); font-weight: 400; color: var(--fg-3); }
.prose .sources h2::before { display: none; }
.prose figure { margin: 2em 0; }
.prose img { border-radius: 16px; }
.prose .tldr, .prose .callout, .prose .key, .prose aside { margin: 2em 0; padding: 22px 24px; border-radius: 16px; background: rgba(255, 183, 0, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 183, 0, 0.25); }
.art-hero-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-family: var(--mono); font-size: 12.5px; color: var(--fg-2); margin-bottom: 18px; }
.art-title { font-size: clamp(2rem, 4.4vw, 3.9rem); line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 18px; max-width: 20ch; text-wrap: balance; font-weight: 800; }
.author { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 14px; color: var(--fg-2); }
.author i { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-weight: 800; color: var(--ink); background: linear-gradient(135deg, var(--yellow), #F2A07A); }
.related { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.related a { grid-column: span 6; text-decoration: none; }
.related h3 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.15; margin: 16px 0 0; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .related a:hover h3 { color: var(--yellow); } .related a:hover .lib-cover { transform: scale(1.04); } }
@media (max-width: 760px) { .related { grid-template-columns: 1fr; } .related a { grid-column: auto; } }

.hero-ctas-row { display: flex; flex-wrap: wrap; gap: 12px; }

.stage--short .page-title { font-size: clamp(2rem, 4.6vw, 4.2rem); max-width: 20ch; }

/* ajustes tras revisión visual */
.page-title { font-size: clamp(2.3rem, 5.2vw, 5rem); max-width: 22ch; }
.page-title .hero-line, .page-hero .hero-line { padding-bottom: 0.16em; margin-bottom: -0.16em; }
.stage--short .page-title { font-size: clamp(1.9rem, 3.8vw, 3.4rem); max-width: 26ch; line-height: 1.04; }
.lib-row .cover-word { font-size: clamp(1.6rem, 2.6vw, 2.4rem); left: 14px; bottom: 10px; }
.related .cover-word { font-size: clamp(2rem, 4vw, 3.4rem); }
@media (max-width: 900px) {
  .cases, .engine { grid-template-columns: minmax(0, 1fr); }
  .case--feature h3 { font-size: clamp(1.5rem, 6.4vw, 2rem); }
  .case h3 { overflow-wrap: anywhere; }
  .demo, .d-graph { min-width: 0; }
}
