/* v8 · Se carga después de web-claro.css / web.css. Solo variables y reglas nuevas, válidas en los dos temas.
   1. Fuera la letra monoespaciada (la veía «de Claude»): todo en Geist, cifras tabulares.
   2. Cobre más bronce y menos coral (cambiado en web.css, web-claro.css y fondos.js).
   3. Portada en una sola imagen, Labs destacado, Foundation dentro, selector de idioma y de tema. */

:root { --mono: var(--sans); }
[data-tema="claro"] { --sh: 40, 30, 20; --well: #ebe9e3; }
[data-tema="oscuro"] { --sh: 0, 0, 0; --well: #141412; }

::selection { background: color-mix(in srgb, var(--cu) 30%, transparent); color: var(--ink); }
html { scrollbar-color: color-mix(in srgb, var(--ink) 22%, transparent) transparent; }
a { text-underline-offset: 3px; }
.num, .doc__rows b, .tbl td, .mv b, .step__time, time, .kv dd, .shot b { font-variant-numeric: tabular-nums; }

/* ---------- Letra pequeña: sans y un punto más grande ---------- */
.note, .pend, .log__cap { font-size: 13.5px; letter-spacing: 0; }
.tab__src { font-size: 14px; color: var(--ink-2); }
.k, .state, .step__time, .fnode small, .node small, .col__n, .pipe__col p, .tbl th, .recon__h,
.para__row.is-head, .feed time, .log__rows time, .bubble__meta, .verdict, .live, .stamp, .linkbtn, .bench__src { font-size: 13px; letter-spacing: 0; }
.tag { font-size: 12px; letter-spacing: 0; }
.log__rows li > span:nth-child(2), .para__row .doc-id, .tbl td:first-child, .cell, .checks li em { font-size: 13px; }
.doc__title, .shot__title { letter-spacing: .02em; text-transform: none; }

/* Botones: misma forma de la v7, etiqueta en sans y sin mayúsculas */
.btn { font: 500 15px/1 var(--sans); text-transform: none; letter-spacing: -0.005em; }
.btn--sm .btn__l { font-size: 14px; letter-spacing: 0; }
.btn--lg .btn__l { font-size: 16.5px; }
.btn--xs { font-size: 13px; letter-spacing: 0; }
@media (max-width: 560px) { .nav .btn--sm .btn__l { padding: 0 10px; font-size: 13px; letter-spacing: 0; } }

/* ---------- Barra: enlaces, idioma y tema ---------- */
.nav { gap: 18px; }
.nav__links { gap: 22px; }
.nav__tools { display: flex; align-items: center; gap: 4px; position: relative; z-index: 4; }
.nav__links + .nav__tools { margin-left: 6px; }
@media (max-width: 760px) { .nav__tools { margin-left: auto; } .nav .btn { margin-left: 4px; } }
.lang { position: relative; }
.lang summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border-radius: 10px;
  cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color .25s, background .25s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.lang summary .ico { width: 17px; height: 17px; }
.lang .lang__caret { width: 11px; height: 11px; transition: transform .35s var(--ease); }
.lang[open] .lang__caret { transform: rotate(180deg); }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 12px); min-width: 196px; padding: 6px; border-radius: 16px; display: grid; gap: 2px;
  background: var(--bg-2); box-shadow: 0 0 0 1px var(--line-2), 0 28px 60px -24px rgba(var(--sh), .45);
}
.lang[open] .lang__list { animation: lang-in .35s var(--ease); }
@keyframes lang-in { from { opacity: 0; transform: translateY(-6px); } }
.lang__list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 14.5px; color: var(--ink-2); }
.lang__list a b { width: 26px; font-weight: 600; color: var(--ink); font-size: 13px; }
.lang__list a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.lang__list a[aria-current] { color: var(--ink); }
.lang__list a[aria-current]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cu); margin-left: auto; }
.themebtn {
  width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; border-radius: 10px; cursor: pointer;
  color: var(--ink-2); transition: color .25s, background .25s;
}
.themebtn:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.themebtn .ico { width: 19px; height: 19px; transition: transform .6s var(--ease); }
.themebtn:hover .ico { transform: rotate(-18deg); }
[data-tema="oscuro"] .themebtn__moon, [data-tema="claro"] .themebtn__sun { display: none; }
@media (max-width: 420px) {
  .nav { gap: 4px; padding: 0 8px 0 12px; }
  .nav__tools { gap: 0; }
  .lang summary { padding: 0 6px; gap: 4px; } .lang summary > span { display: none; }
  .themebtn { width: 34px; }
  .lang .lang__caret { display: none; }
  .nav .brand { font-size: 16px; gap: 8px; }
  .nav .brand__mark { width: 26px; height: 26px; }
  .nav .btn--sm .btn__a { display: none; }
  .nav .btn--sm .btn__l { padding: 0 12px; }
}

/* ---------- Portada: una sola imagen ---------- */
.shot { position: relative; margin: 0; padding-top: 12px; }
.shot__paper {
  position: relative; width: min(430px, 80%); padding: 30px 30px 26px; border-radius: 8px;
  background: #fffdf9; color: #1d1b18; transform: rotate(-3deg); transform-origin: 30% 60%;
  box-shadow: 0 1px 0 rgba(var(--sh), .08), 0 60px 90px -50px rgba(var(--sh), .55);
}
[data-tema="oscuro"] .shot__paper { background: #ece8e0; }
.shot__top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.shot__from { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; line-height: 1.2; }
.shot__from small { display: block; font-weight: 400; font-size: 12px; color: #5f5a52; letter-spacing: 0; margin-top: 2px; }
.shot__ref { font-size: 12px; color: #5f5a52; text-align: right; line-height: 1.5; font-variant-numeric: tabular-nums; }
.shot__title { margin-top: 30px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.shot__rows { margin-top: 12px; border-top: 1px solid rgba(29, 27, 24, .16); }
.shot__rows div { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(29, 27, 24, .1); font-size: 14px; }
.shot__rows b { font-weight: 500; }
.shot__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; font-size: 13px; color: #5f5a52; }
.shot__total b { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; color: #1d1b18; padding: 0 4px; background: linear-gradient(transparent 58%, color-mix(in srgb, var(--cu) 32%, transparent) 58%); }
.shot__card { width: min(410px, 84%); margin: -34px 0 0 auto; border-radius: var(--r-xl); z-index: 2; }
.shot__card .win__bar { padding: 15px 18px; }
.shot__body { position: relative; z-index: 3; display: grid; gap: 12px; padding: 18px 20px 20px; }
.shot__line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--ink-2); }
.shot__line b { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.shot__diff { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 500; color: var(--ink); background: color-mix(in srgb, var(--cu) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cu) 40%, transparent); }
.shot__diff .ico { color: var(--cu); width: 18px; height: 18px; }
.shot__ask { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.shot__card .gate { margin-top: 2px; }
.shot__cap { margin-top: 20px; font-size: 13.5px; color: var(--ink-3); text-align: right; }
@media (max-width: 980px) { .shot { max-width: 560px; } }
@media (max-width: 560px) {
  .shot__paper { width: 90%; padding: 22px 22px 20px; }
  .shot__title { margin-top: 20px; font-size: 19px; }
  .shot__rows div { font-size: 13px; padding: 8px 0; }
  .shot__total b { font-size: 24px; }
  .shot__card { width: 94%; margin-top: -26px; }
  .shot__cap { text-align: left; }
}

/* La pieza de Labs del bento es un enlace al bloque destacado */
a.tile { text-decoration: none; color: inherit; }
.tile__go { display: inline-block; vertical-align: -2px; color: var(--cu); transition: transform .5s var(--ease); }
a.tile:hover .tile__go { transform: translate(3px, 3px); }
.tile__shot--photo { overflow: hidden; border-radius: 18px; }

/* ---------- L’Evocative Labs, destacado ---------- */
.labs { position: relative; z-index: 1; padding: clamp(96px, 12vw, 168px) 0 clamp(80px, 9vw, 128px); }
.labs__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.labs .h2 { max-width: 18ch; }
.labs__name { display: flex; align-items: center; gap: 12px; font-size: .42em; letter-spacing: -0.02em; font-weight: 600; color: var(--ink); margin-bottom: .55em; }
.labs__mark { width: 1.5em; height: 1.5em; padding: .22em; border-radius: .38em; background: var(--cu); color: var(--cu-ink); fill: currentColor; }
.labs__side { display: grid; gap: 26px; justify-items: start; }
.labs__p { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 44ch; }
.labs__what { display: flex; flex-wrap: wrap; gap: 8px; }
.labs__what li { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.reel { position: relative; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.reel__track { display: flex; gap: 18px; width: max-content; animation: reel 70s linear infinite; }
.reel:hover .reel__track, .reel:focus-within .reel__track, .reel.is-paused .reel__track { animation-play-state: paused; }
@keyframes reel { to { transform: translateX(calc(-50% - 9px)); } }
.reel__item figure { margin: 0; width: clamp(240px, 24vw, 340px); }
.reel__item img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: 22px; background: var(--well); transition: transform 1s var(--ease), filter .6s; }
.reel__item:hover img { transform: translateY(-6px); }
.reel__item figcaption { display: flex; gap: 10px; align-items: baseline; padding: 14px 4px 0; font-size: 14px; color: var(--ink-3); }
.reel__item figcaption b { font-weight: 600; letter-spacing: .04em; color: var(--ink); font-size: 13px; }
.labs__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; }
.labs__foot .note { margin: 0; }
@media (max-width: 900px) { .labs__head { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .reel { overflow-x: auto; -webkit-mask: none; mask: none; }
  .reel__track { animation: none; padding-inline: 16px; }
  .reel__item[aria-hidden="true"] { display: none; }
  [data-reel-pause] { display: none; }
}

/* ---------- L’Evocative Foundation, dentro ---------- */
.found__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.fsec .h2 { margin: 0; max-width: 17ch; }
.found__lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.found__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: start; }
.found__case { display: grid; gap: 24px; }
.found__shot {
  display: block; padding: 8px; border-radius: 26px; text-decoration: none;
  background: color-mix(in srgb, var(--ink) 4%, transparent); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .7s var(--ease);
}
.found__shot:hover { transform: translateY(-4px); }
.found__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 18px 18px 0 0; background: var(--bg-2); font-size: 13px; color: var(--ink-3); }
.found__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.found__bar span { margin-left: 10px; }
.found__shot img { width: 100%; height: auto; border-radius: 0 0 18px 18px; }
.found__cap { display: grid; gap: 8px; padding: 0 8px; max-width: 60ch; }
.found__cap .h3 { font-size: 22px; }
.found__cap p { color: var(--ink-2); font-size: 16px; }
.found__cap .found__heard { color: var(--ink); font-weight: 500; }
.found__link { display: inline-flex; gap: 6px; align-items: center; justify-self: start; margin-top: 6px; color: var(--ink); font-weight: 500; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.found__link .ico { color: var(--cu); transition: transform .4s var(--ease); }
.found__link:hover .ico { transform: translate(3px, -3px); }
.found__deal { display: grid; gap: 22px; position: sticky; top: 100px; }
.found__panel { border-radius: var(--r-xl); padding: 26px 24px 14px; }
.found__panel > * { position: relative; z-index: 3; }
.found__ph { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.found__list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.found__list b { display: block; font-size: 16px; font-weight: 560; letter-spacing: -0.01em; }
.found__list p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.found__i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.found__i .ico { width: 19px; height: 19px; }
.found__list li.is-key .found__i { background: var(--cu); color: var(--cu-ink); box-shadow: none; }
.found__ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 18px; padding: 0 6px; }
.found__ask p { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
@media (max-width: 980px) {
  .found__head, .found__grid { grid-template-columns: 1fr; }
  .found__deal { position: static; }
}

.brand, .brand__mark { flex: none; }
/* La letra de las demos crece un punto: la ventana de áreas necesita algo más de alto */
.bench__win { min-height: 540px; }
@media (max-width: 760px) { .bench, .bench__win { min-height: 660px; } }
.nav > .brand, .nav > .nav__links { position: relative; z-index: 3; }
