/* ==========================================================================
   Reasoning Matter — sistema visual
   Concepto: página editorial corta. Serif de lectura para las ideas, sans
   precisa para la interfaz, marfil cálido y un acento de colores vivos mezclados.
   ========================================================================== */
:root {
  --marfil: #f5f2ec;
  --marfil-2: #e8e5db;
  --papel: #fbfaf6;
  --pizarra: #191a17;
  --grafito: #55574f;
  --piedra: #9b9a8f;
  --piedra-texto: #6b6c62; /* piedra legible: textos de ejemplo sobre marfil (4,7:1) */
  --linea: #d9d6ca;
  --ok: #3f6b4f;
  --salvia: #8c9a84;
  --bosque: #1c2420;
  --bosque-2: #26302a;
  --salvia-claro: #e3e7dc;
  --sombra: 0 30px 60px -40px rgba(25,26,23,.35);
  /* acento: colores vivos mezclados. v- para piezas y titulares grandes; vt- (más oscuros) para texto pequeño */
  --v-naranja: #e8480f; --v-fucsia: #e01e6e; --v-violeta: #6a3cf2; --v-azul: #1a66e6; --v-turquesa: #00957a;
  --vt-naranja: #c2410c; --vt-fucsia: #be1259; --vt-violeta: #5a2fe0; --vt-azul: #1656c9; --vt-turquesa: #007a64;
  --vivo: linear-gradient(100deg, var(--v-naranja), var(--v-fucsia) 26%, var(--v-violeta) 50%, var(--v-azul) 74%, var(--v-turquesa));
  --vivo-texto: linear-gradient(100deg, var(--vt-naranja), var(--vt-fucsia) 26%, var(--vt-violeta) 50%, var(--vt-azul) 74%, var(--vt-turquesa));
  --vivo-noche: linear-gradient(100deg, #ffb000, #ff7a45 20%, #ff5c9a 42%, #a88bff 64%, #5ea2ff 82%, #2fd6b0);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4.5vw, 56px);
  --maxw: 1280px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --nav-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; font-kerning: normal; -webkit-tap-highlight-color: transparent; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--marfil); color: var(--pizarra); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
html { scrollbar-width: thin; scrollbar-color: var(--salvia) var(--marfil); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--marfil); }
::-webkit-scrollbar-thumb { background: var(--salvia); border-radius: 99px; border: 3px solid var(--marfil); }
::-webkit-scrollbar-thumb:hover { background: var(--vivo); }
::selection { background: var(--vt-fucsia); color: var(--papel); }
input, textarea, select { caret-color: var(--v-fucsia); accent-color: var(--vt-violeta); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--vt-violeta); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--pizarra); color: var(--marfil); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.symbol-src { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- tipografía ---------- */
.display { font-family: var(--serif); font-weight: 350; font-variation-settings: "opsz" 72; font-size: clamp(3.2rem, 9.2vw, 9.4rem); line-height: 1; letter-spacing: -.012em; text-wrap: balance; }
.display em, .h2 em, .statement__quote em, .page__title em { font-style: italic; font-weight: 300; color: var(--v-fucsia); background: var(--vivo) 0 0 / 160% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline: .06em .14em; margin-inline: -.06em -.14em; animation: vivo 9s ease-in-out infinite alternate; }
@keyframes vivo { to { background-position: 100% 0; } }
.display em::selection, .h2 em::selection, .statement__quote em::selection, .foot__now .mono::selection { -webkit-text-fill-color: var(--papel); }
.statement__quote em::selection { -webkit-text-fill-color: var(--bosque); }
@media (forced-colors: active) { .display em, .h2 em, .statement__quote em, .foot__now .mono { -webkit-text-fill-color: currentColor; background: none; } }
.h2 { font-family: var(--serif); font-weight: 350; font-variation-settings: "opsz" 72; font-size: clamp(2.6rem, 6vw, 5.6rem); line-height: 1.02; letter-spacing: -.01em; }
.label, .mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.label { color: var(--grafito); display: inline-flex; align-items: center; gap: .6rem; }
.label::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: conic-gradient(var(--v-naranja), var(--v-fucsia), var(--v-violeta), var(--v-azul), var(--v-turquesa), var(--v-naranja)); box-shadow: 0 0 0 0 rgba(224,30,110,.4); animation: beat 2.6s ease-out infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(224,30,110,.4); } 35% { box-shadow: 0 0 0 4px rgba(106,60,242,.25); } 70%, 100% { box-shadow: 0 0 0 9px rgba(26,102,230,0); } }
.sec__sub { color: var(--grafito); font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 34ch; text-wrap: balance; }

/* ---------- botones ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: 0 1.35rem; border-radius: 10px; border: 1px solid var(--pizarra); font-weight: 500; font-size: .98rem; text-decoration: none; white-space: nowrap; overflow: hidden; isolation: isolate; transition: color .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), transform .2s var(--ease); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--solid { background: var(--pizarra); color: var(--marfil); }
.btn--solid::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--vt-naranja), var(--vt-fucsia) 35%, var(--vt-violeta) 70%, var(--vt-azul)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.btn--solid:hover::before { transform: scaleX(1); }
.btn--solid:hover { border-color: var(--vt-violeta); }
.btn--line { background: transparent; }
.btn--line:hover { background: var(--pizarra); color: var(--marfil); }
.btn--text { background: none; border-color: transparent; padding-inline: .5rem; color: var(--grafito); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color .3s, text-underline-offset .3s; }
.btn--text:hover { text-underline-offset: 8px; color: var(--pizarra); }
.btn.is-ok { background: var(--ok); border-color: var(--ok); color: var(--papel); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- navegación ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); transition: background .4s var(--ease), color .4s, box-shadow .4s, transform .45s var(--ease); }
.nav.is-scrolled { background: color-mix(in srgb, var(--marfil) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--linea); }
.nav.is-dark { color: var(--marfil); }
.nav.is-dark.is-scrolled { background: color-mix(in srgb, var(--bosque) 86%, transparent); box-shadow: 0 1px 0 var(--bosque-2); }
.nav.is-dark .nav__cta:hover, .nav.is-dark .nav__cta[aria-current] { background: var(--marfil) !important; color: var(--bosque); border-color: var(--marfil); }
.nav.is-dark .nav__progress { opacity: 1; }
.nav.is-dark :focus-visible, .statement :focus-visible { outline-color: #a88bff; }
.nav.is-dark .brand__mark { filter: invert(1) sepia(.15); }
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-menu { background: var(--marfil) !important; box-shadow: none !important; }
.nav__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; opacity: 0; transition: opacity .4s; }
.nav.is-scrolled .nav__progress { opacity: 1; }
.nav__progress i { display: block; height: 100%; background: var(--vivo); transform-origin: left; transform: scaleX(0); }
.nav__toggle { display: none; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .3rem 0 .8rem; border: 0; background: none; font-size: .93rem; }
.nav__burger { position: relative; width: 22px; height: 12px; }
.nav__burger i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease), top .45s var(--ease); }
.nav__burger i:first-child { top: 2px; } .nav__burger i:last-child { top: 9px; }
.nav__toggle[aria-expanded="true"] .nav__burger i:first-child { top: 5.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__burger i:last-child { top: 5.5px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 49; background: var(--marfil); padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; transition: opacity .35s var(--ease); }
.menu.is-open { opacity: 1; }
.menu__links { display: grid; }
.menu__links a { display: flex; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--linea); text-decoration: none; font-family: var(--serif); font-size: 2.3rem; line-height: 1.1; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease), color .3s; transition-delay: calc(.06s * var(--i) + .08s); }
.menu__links a span { font-family: var(--mono); font-size: .72rem; color: var(--vt-naranja); }
.menu__links a:nth-child(2) span { color: var(--vt-fucsia); } .menu__links a:nth-child(3) span { color: var(--vt-violeta); } .menu__links a:nth-child(4) span { color: var(--vt-azul); }
.menu__links a:active { color: var(--vt-violeta); }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu__foot { color: var(--grafito); }
.nav__inner { height: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; margin-left: .4rem; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 999px; }
.nav__links { margin-left: auto; }
.lang button { min-width: 2.4rem; min-height: 34px; padding: 0 .55rem; border: 0; border-radius: 999px; background: none; color: inherit; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; opacity: .62; cursor: pointer; transition: background .3s, color .3s, opacity .3s; }
.lang button:hover { opacity: 1; }
.lang button[aria-pressed="true"] { background: var(--pizarra); color: var(--marfil); opacity: 1; }
.nav.is-dark .lang button[aria-pressed="true"] { background: var(--marfil); color: var(--bosque); }
html:not([lang="en"]) [data-only="en"] { display: none; }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; text-decoration: none; border-radius: 6px; }
.brand__mark { width: 22px; height: auto; transition: transform .6s var(--ease), filter .4s; }
.brand:hover .brand__mark { transform: rotate(90deg); }
.brand__word { white-space: nowrap; font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: -.01em; }
.nav__links { display: flex; align-items: center; gap: .2rem; font-size: .93rem; }
.nav__links a { padding: .45rem .75rem; border-radius: 8px; text-decoration: none; transition: background .25s; }
.nav__links a:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.nav__cta { border: 1px solid currentColor; margin-left: .4rem; }
.nav__links a:not(.nav__cta) { position: relative; }
.nav__links a:not(.nav__cta)::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .3rem; height: 1.5px; background: var(--vivo); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav__links a[aria-current]::after { transform: scaleX(1); }
.nav__cta { transition: background .25s, color .25s, border-color .25s; }
.nav__cta:hover, .nav__cta[aria-current] { background: var(--pizarra) !important; color: var(--marfil); border-color: var(--pizarra); }

/* ==========================================================================
   PORTADA — partículas que forman el símbolo
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; min-height: min(100svh, 62rem); display: flex; align-items: center; padding-block: calc(var(--nav-h) + 2rem) 3rem; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner { position: relative; display: grid; gap: 1.6rem; justify-items: start; pointer-events: none; }
.hero__inner > * { pointer-events: auto; }
.hero .display { max-width: 9ch; font-size: clamp(3.2rem, min(9.2vw, 15svh), 9.4rem); }
.hero__cue { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); display: grid; justify-items: center; gap: .5rem; color: var(--grafito); text-decoration: none; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; transition: opacity .4s; }
.hero__cue i { width: 2px; height: 36px; border-radius: 2px; background: linear-gradient(var(--v-fucsia), var(--v-violeta) 25%, var(--v-azul) 50%, transparent 0) 0 0 / 100% 200%; animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--grafito); max-width: 30ch; text-wrap: balance; }

/* ==========================================================================
   QUÉ HAGO
   ========================================================================== */
.sec { padding-block: clamp(5rem, 12vw, 10rem); }
.sec__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.hago .h2 { margin-bottom: clamp(2rem, 5vw, 4rem); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.card { display: grid; grid-template-rows: auto auto auto 1fr; gap: .6rem; padding: clamp(1.25rem, 2vw, 1.75rem); border: 1px solid var(--linea); border-radius: 16px; background: var(--papel); transition: border-color .3s, box-shadow .4s, transform .5s var(--ease); }
@media (hover: hover) {
  .card:hover { border-color: var(--pizarra); transform: translateY(-4px); box-shadow: var(--sombra); }
  .card:hover .card__t { color: var(--card-c); }
}
.card__t { transition: color .3s; }
.card__fx { display: grid; place-items: center; height: 168px; margin-bottom: .8rem; border-radius: 10px; background: var(--salvia-claro); overflow: hidden; }
.card__fx .row__fx { justify-self: center; transform: scale(1.8); }
.js .card:not(.is-in) .row__fx i { animation-play-state: paused; }
.card__n { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--card-c); }
.card { --card-c: var(--vt-naranja); } .card:nth-child(2) { --card-c: var(--vt-fucsia); } .card:nth-child(3) { --card-c: var(--vt-violeta); } .card:nth-child(4) { --card-c: var(--vt-azul); }
.card__t { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.card__d { color: var(--grafito); max-width: 32ch; text-wrap: pretty; }
/* micro‑animaciones de cada línea */
.row__fx { position: relative; width: 96px; height: 56px; justify-self: end; }
.row__fx i { position: absolute; display: block; background: var(--pizarra); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.row__fx--scan i { width: 10px; height: 14px; top: 21px; left: calc(var(--k) * 20px); opacity: .25; animation: scan 2.4s var(--ease-io) infinite; animation-delay: calc(var(--k) * .18s); }
.row__fx--scan i:nth-child(1) { --k: 0; --c: var(--v-naranja) } .row__fx--scan i:nth-child(2) { --k: 1; --c: var(--v-fucsia) } .row__fx--scan i:nth-child(3) { --k: 2; --c: var(--v-violeta) } .row__fx--scan i:nth-child(4) { --k: 3; --c: var(--v-azul) } .row__fx--scan i:nth-child(5) { --k: 4; --c: var(--v-turquesa) }
@keyframes scan { 0%, 100% { opacity: .2; transform: translateY(0); } 40% { opacity: 1; background: var(--c); transform: translateY(-8px); } }
.row__fx--build i { width: 20px; height: 26px; animation: build 3.2s var(--ease) infinite; }
.row__fx--build i:nth-child(1) { left: 26px; top: 0; --x: -30px; --y: -10px; }
.row__fx--build i:nth-child(2) { left: 50px; top: 0; --x: 30px; --y: -12px; }
.row__fx--build i:nth-child(3) { left: 26px; top: 30px; --x: -26px; --y: 14px; }
.row__fx--build i:nth-child(4) { left: 50px; top: 30px; --x: 28px; --y: 12px; background: linear-gradient(135deg, var(--v-fucsia), var(--v-violeta) 55%, var(--v-azul)); }
@keyframes build { 0%, 12% { transform: translate(var(--x), var(--y)) rotate(40deg); opacity: .15; } 45%, 85% { transform: none; opacity: 1; } 100% { transform: translate(var(--x), var(--y)) rotate(40deg); opacity: .15; } }
.row__fx--web i { background: var(--pizarra); border-radius: 2px; transform-origin: left; animation: web 4.2s var(--ease) infinite; }
.row__fx--web i:nth-child(1) { inset: 0; background: transparent; border: 1.5px solid var(--pizarra); border-radius: 5px; animation: none; }
.row__fx--web i:nth-child(2) { left: 7px; top: 7px; width: 26px; height: 4px; animation-delay: 0s; }
.row__fx--web i:nth-child(3) { left: 7px; top: 16px; width: 82px; height: 14px; background: var(--vivo); animation-delay: .25s; }
.row__fx--web i:nth-child(4) { left: 7px; top: 35px; width: 38px; height: 13px; background: var(--salvia); animation-delay: .5s; }
.row__fx--web i:nth-child(5) { left: 51px; top: 35px; width: 38px; height: 13px; background: var(--salvia); animation-delay: .75s; }
@keyframes web { 0% { transform: scaleX(0); opacity: 0; } 18%, 80% { transform: none; opacity: 1; } 95%, 100% { transform: scaleX(0); opacity: 0; } }
.row__fx--flow::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: var(--linea); }
.row__fx--flow i { width: 12px; height: 12px; top: 21px; left: 0; border-radius: 3px; animation: flow 2.7s linear infinite; }
.row__fx--flow i { --c: var(--v-fucsia); } .row__fx--flow i:nth-child(2) { animation-delay: .9s; --c: var(--v-violeta); } .row__fx--flow i:nth-child(3) { animation-delay: 1.8s; --c: var(--v-turquesa); }
@keyframes flow { 0% { transform: translateX(0) rotate(0); opacity: 0; } 10% { opacity: 1; } 55% { background: var(--pizarra); border-radius: 3px; } 60% { background: var(--c); border-radius: 99px; } 90% { opacity: 1; } 100% { transform: translateX(84px) rotate(180deg); opacity: 0; background: var(--c); border-radius: 99px; } }

/* ==========================================================================
   CÓMO TRABAJO — cuatro pasos con un ejemplo
   ========================================================================== */
.how { background: var(--marfil-2); }
.how__art { transition: box-shadow .4s, transform .5s var(--ease); }
@media (hover: hover) { .how__step:hover .how__art { box-shadow: var(--sombra); transform: translateY(-3px); } }
.how__steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.how__steps::before { content: ""; position: absolute; left: 0; right: 0; top: .5rem; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--v-naranja), var(--v-fucsia) 33%, var(--v-violeta) 60%, var(--v-azul) 85%, var(--v-turquesa)); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease-io); }
.how__steps.is-in::before { transform: scaleX(1); }
.how__step { position: relative; display: grid; grid-template-rows: auto auto auto 1fr; gap: .5rem; padding-top: 2.2rem; opacity: 1; transform: translateY(10px); transition: opacity .55s var(--ease) var(--d), transform .7s var(--ease) var(--d); }
.how__steps.is-in .how__step { opacity: 1; transform: none; }
.how__step::before { content: ""; position: absolute; top: 0; left: 0; width: 1.1rem; height: 1.1rem; border-radius: 99px; background: var(--marfil-2); border: 1px solid var(--salvia); box-shadow: 0 0 0 5px var(--marfil-2); transition: background .4s var(--d); }
.how__steps.is-in .how__step::before { background: var(--step-c); border-color: var(--step-c); }
.how__step { --step-c: var(--v-naranja); } .how__step:nth-child(2) { --step-c: var(--v-fucsia); } .how__step:nth-child(3) { --step-c: var(--v-violeta); } .how__step:nth-child(4) { --step-c: var(--v-azul); }
.how__n { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--vt-naranja); }
.how__step:nth-child(2) .how__n { color: var(--vt-fucsia); } .how__step:nth-child(3) .how__n { color: var(--vt-violeta); } .how__step:nth-child(4) .how__n { color: var(--vt-azul); }
.how__t { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.1; }
.how__d { color: var(--grafito); max-width: 28ch; text-wrap: pretty; }
.how__art { margin-top: 1rem; padding: 1.1rem; border-radius: 16px; background: var(--papel); border: 1px solid var(--linea); min-height: 168px; display: grid; align-content: center; gap: .7rem; font-size: .92rem; }
.bubble { position: relative; background: var(--marfil); border: 1px solid var(--linea); border-radius: 14px 14px 14px 4px; padding: .8rem .9rem; font-family: var(--serif); font-size: 1.05rem; line-height: 1.4; }
.checks { display: grid; gap: .55rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 1rem; height: 1rem; margin-top: .15em; border-radius: 5px; border: 1px solid var(--piedra); background: var(--papel) no-repeat center / 70% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='%23faf8f3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); transition: background-color .3s, border-color .3s; transition-delay: calc(var(--d) + .25s + var(--i) * .3s); }
.how__steps.is-in .checks li::before { background-color: var(--pizarra); border-color: var(--pizarra); }
.versions { display: flex; gap: .4rem; }
.versions span { font-family: var(--mono); font-size: .75rem; padding: .3rem .6rem; border-radius: 8px; border: 1px solid var(--linea); color: var(--piedra); transition: all .3s; }
.how__steps.is-in .versions span { color: var(--pizarra); border-color: var(--pizarra); }
.how__steps.is-in .versions span:nth-child(1) { transition-delay: .5s; } .how__steps.is-in .versions span:nth-child(2) { transition-delay: .85s; }
.how__steps.is-in .versions span:nth-child(3) { transition-delay: 1.2s; background: var(--pizarra); color: var(--marfil); }
.meter { height: 6px; border-radius: 6px; background: var(--marfil-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--vivo); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease-io) .5s; }
.how__steps.is-in .meter i { transform: scaleX(1); }
.how__note { font-size: .82rem; color: var(--grafito); }
.orders { display: grid; gap: .45rem; }
.orders li { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr) auto; align-items: baseline; gap: .4rem; padding: .45rem .6rem; border-radius: 8px; background: var(--marfil); font-size: .84rem; opacity: 0; transform: translateX(-8px); transition: opacity .5s, transform .5s var(--ease); transition-delay: calc(var(--d) + .25s + var(--i) * .25s); }
.orders li span { font-weight: 600; }
.orders li::after { content: "✓"; color: var(--ok); font-weight: 700; }
.how__steps.is-in .orders li { opacity: 1; transform: none; }

/* ==========================================================================
   FRASE — franja oscura con el símbolo grande
   ========================================================================== */
.statement { position: relative; overflow: hidden; background: var(--bosque); color: var(--marfil); padding-block: clamp(6rem, 14vw, 11rem); isolation: isolate; }
.statement__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.statement__inner { position: relative; display: grid; gap: 1.6rem; }
.statement__label { color: #a9b3a4; }
.statement__quote { font-family: var(--serif); font-weight: 350; font-variation-settings: "opsz" 72; font-size: clamp(2.6rem, 7vw, 6.6rem); line-height: 1.04; letter-spacing: -.012em; max-width: 14ch; text-wrap: balance; }
.statement__quote em { color: #ff5c9a; background-image: var(--vivo-noche); }
.statement__sub { color: #a9b3a4; font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 34ch; }
.statement ::selection { background: #ff5c9a; color: var(--bosque); }

/* ==========================================================================
   CASOS — elige un problema
   ========================================================================== */
.casos { --c: var(--v-naranja); display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); border: 1px solid var(--linea); border-radius: 20px; background: var(--papel); overflow: hidden; box-shadow: var(--sombra); }
.casos__tabs { display: grid; align-content: start; gap: .25rem; padding: .7rem; border-right: 1px solid var(--linea); }
.caso__tab { position: relative; display: grid; grid-template-columns: 2rem 1fr; gap: .15rem .4rem; text-align: left; padding: 1rem 1rem 1rem .9rem; border: 0; border-radius: 12px; background: none; transition: background .3s; }
.caso__tab::before { content: ""; position: absolute; left: 0; top: 1rem; bottom: 1rem; width: 3px; border-radius: 3px; background: var(--c); transform: scaleY(0); transition: transform .45s var(--ease); }
.caso__tab:hover { background: color-mix(in srgb, var(--marfil-2) 60%, transparent); }
.caso__tab[aria-selected="true"] { background: var(--marfil); }
.caso__tab[aria-selected="true"]::before { transform: none; }
.caso__n { grid-row: 1 / 3; font-family: var(--mono); font-size: .72rem; color: var(--grafito); padding-top: .3rem; }
.caso__tab[aria-selected="true"] .caso__n { color: var(--pizarra); font-weight: 500; }
.caso__t { font-family: var(--serif); font-size: 1.22rem; line-height: 1.2; }
.caso__k { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grafito); }
.casos__stage { display: grid; grid-template-rows: 1fr auto; padding: clamp(1.25rem, 3vw, 2.25rem); background: color-mix(in srgb, var(--c) 6%, var(--marfil)); transition: background .6s var(--ease); min-width: 0; }
.caso { min-height: 400px; min-width: 0; border-radius: 12px; }
.caso:focus-visible { outline-offset: 6px; }
.casos__foot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .6rem 1.5rem; margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid color-mix(in srgb, var(--pizarra) 14%, transparent); }
.casos__say { flex: 1 1 26rem; font-family: var(--serif); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.4; min-height: 2.8em; max-width: 54ch; text-wrap: pretty; }
.casos__say.is-in { animation: sayIn .7s var(--ease) both; }
@keyframes sayIn { from { opacity: 0; transform: translateY(6px); } }
.casos__replay { margin-top: -.6rem; }
.casos__replay svg { order: -1; }
.casos__replay:hover svg { transform: rotate(-200deg); transition-duration: .6s; }
.try__foot { margin-top: 1rem; font-size: .85rem; color: var(--grafito); }

/* 01 · mensajes */
.inbox { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; min-height: 360px; }
.inbox__col { display: grid; align-content: start; gap: .55rem; }
.inbox__h { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grafito); padding-bottom: .5rem; border-bottom: 1px solid color-mix(in srgb, var(--pizarra) 14%, transparent); }
.inbox__list { display: grid; gap: .55rem; }
.msg { position: relative; padding: .65rem .8rem; border-radius: 12px; background: var(--papel); border: 1px solid var(--linea); box-shadow: 0 10px 24px -18px rgba(25,26,23,.4); transition: transform 1s var(--ease), opacity .45s var(--ease); }
.msg.is-loose { opacity: 0; }
.msg.is-loose.is-here { opacity: 1; }
.msg__src { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.msg__src::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--c); }
.msg__txt { font-size: .88rem; line-height: 1.35; margin-top: .2rem; }
.msg__flag { position: absolute; top: .55rem; right: .6rem; font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; padding: .12rem .45rem; border-radius: 99px; background: var(--vt-fucsia); color: var(--papel); opacity: 0; transform: scale(.6); transition: opacity .4s, transform .5s var(--ease); }
.inbox.is-sorted .msg__flag { opacity: 1; transform: none; }

/* 02 · facturas */
.doc { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1rem, 3vw, 2rem); align-items: start; min-height: 360px; }
.doc__paper { position: relative; overflow: hidden; padding: 1.2rem 1.25rem; border-radius: 6px; background: #fff; border: 1px solid var(--linea); box-shadow: 0 18px 40px -26px rgba(25,26,23,.45); font-size: .8rem; transform: rotate(-1.5deg); opacity: 0; }
.doc__paper.is-in { animation: paperIn .8s var(--ease) forwards; }
.doc__paper.is-out { animation: paperOut .45s var(--ease-io) forwards; }
@keyframes paperIn { from { opacity: 0; transform: translateX(-24px) rotate(-6deg); } to { opacity: 1; transform: rotate(-1.5deg); } }
@keyframes paperOut { from { opacity: 1; transform: rotate(-1.5deg); } to { opacity: 0; transform: translateX(30px) rotate(3deg); } }
.doc__paper.is-scan::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40px; background: linear-gradient(transparent, color-mix(in srgb, var(--v-fucsia) 22%, transparent)); border-bottom: 2px solid var(--v-fucsia); animation: scan2 1s var(--ease-io) .25s both; }
@keyframes scan2 { from { transform: translateY(-40px); } to { transform: translateY(330px); opacity: 0; } }
.pp__h { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: .6rem; margin-bottom: .6rem; border-bottom: 1px solid var(--linea); }
.pp__h b { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; letter-spacing: .04em; }
.pp__h span, .pp__f small { font-family: var(--mono); font-size: .62rem; color: var(--grafito); }
.pp__f { margin: .35rem -.35rem; padding: .2rem .35rem; border-radius: 4px; transition: box-shadow .3s, background .3s; }
.pp__f small { display: block; text-transform: uppercase; letter-spacing: .06em; }
.pp__f.is-hit { box-shadow: 0 0 0 1.5px var(--v-fucsia); background: color-mix(in srgb, var(--v-fucsia) 7%, transparent); }
.pp__lines { margin: .7rem 0; }
.pp__lines i { display: block; height: 6px; margin: .4rem 0; border-radius: 3px; background: var(--marfil-2); }
.pp__lines i:nth-child(1) { width: 92%; } .pp__lines i:nth-child(2) { width: 70%; } .pp__lines i:nth-child(3) { width: 82%; }
.pp__row { display: flex; justify-content: space-between; font-size: .76rem; color: var(--grafito); }
.pp__total { margin-top: .45rem; padding-top: .45rem; border-top: 1px solid var(--linea); font-weight: 600; color: var(--pizarra); font-size: .84rem; }
.doc__sheet { padding: 1rem 1.1rem; border-radius: 14px; background: var(--papel); border: 1px solid var(--linea); }
.doc__h { color: var(--grafito); margin-bottom: .6rem; }
.doc__table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.doc__table th { font-family: var(--mono); font-size: .6rem; font-weight: 400; letter-spacing: .07em; text-transform: uppercase; color: var(--grafito); text-align: left; padding: .4rem .4rem; }
.doc__table td { padding: .6rem .4rem; border-top: 1px solid var(--linea); height: 2.6rem; }
.doc__table .num { text-align: right; white-space: nowrap; }
.doc__table tr.is-new { animation: rowIn .5s var(--ease) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } }
.doc__table tfoot th, .doc__table tfoot td { border-top: 1.5px solid var(--pizarra); padding-top: .7rem; font-family: var(--sans); font-size: .9rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--pizarra); }
[data-doc-sum].is-pop { animation: pop .5s var(--ease); }
@keyframes pop { 40% { color: var(--vt-fucsia); transform: scale(1.06); } }
[data-doc-sum] { display: table-cell; transform-origin: right; }

/* 03 · análisis */
.ana { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(1rem, 3vw, 2.2rem); align-items: center; min-height: 360px; }
.ana__msgs { display: flex; flex-wrap: wrap; gap: .45rem; align-content: center; }
.ask { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 99px; background: var(--papel); border: 1px solid var(--linea); font-size: .86rem; transition: border-color .4s, background .4s; }
.ask.is-tagged { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--papel)); }
.ask.is-tagged::after { content: attr(data-tag); font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; padding: .1rem .4rem; border-radius: 99px; background: var(--c); color: var(--papel); animation: tagPop .4s var(--ease) both; }
@keyframes tagPop { from { opacity: 0; transform: scale(.6); } }
.ana__bars { display: grid; gap: 1.1rem; padding: 1.2rem; border-radius: 14px; background: var(--papel); border: 1px solid var(--linea); }
.bar { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr) 1.4rem; align-items: center; gap: .7rem; font-size: .9rem; }
.bar__t { height: 10px; border-radius: 99px; background: var(--marfil-2); overflow: hidden; }
.bar__t i { display: block; height: 100%; border-radius: inherit; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.bar__n { font-family: var(--mono); font-size: .8rem; text-align: right; }
.bar.is-top .bar__l, .bar.is-top .bar__n { font-weight: 600; color: var(--c); }

/* 04 · web */
.web__tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.web__switch { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--marfil-2); border: 1px solid var(--linea); }
.web__switch button { min-height: 38px; padding: 0 .95rem; border: 0; border-radius: 8px; background: none; font-size: .88rem; color: var(--grafito); transition: background .25s, color .25s; }
.web__switch button[aria-pressed="true"] { background: var(--pizarra); color: var(--marfil); }
.web__name input { min-height: 44px; width: 12.5rem; padding: 0 .9rem; border: 1px solid var(--linea); border-radius: 10px; background: var(--papel); font-size: .95rem; }
.web__name input { transition: border-color .2s, box-shadow .2s; }
.web__name input:focus { border-color: var(--pizarra); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--vt-violeta) 22%, transparent); }
.web__colors { display: flex; gap: .25rem; }
.web__colors button { width: 34px; height: 34px; border-radius: 99px; border: 4px solid var(--papel); background: var(--sw); box-shadow: 0 0 0 1px var(--linea); transition: box-shadow .2s, transform .2s; }
.web__colors button:hover { transform: scale(1.08); }
.web__colors button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--pizarra); }
.browser { --brand: var(--vt-azul); border-radius: 12px; overflow: hidden; background: var(--papel); border: 1px solid var(--linea); box-shadow: 0 24px 50px -34px rgba(25,26,23,.5); }
.browser__bar { display: flex; align-items: center; gap: .35rem; padding: .55rem .8rem; background: var(--marfil-2); border-bottom: 1px solid var(--linea); }
.browser__bar i { width: 9px; height: 9px; border-radius: 99px; background: var(--linea); }
.browser__bar span { margin-left: .6rem; padding: .12rem .7rem; border-radius: 99px; background: var(--papel); font-family: var(--mono); font-size: .66rem; color: var(--grafito); }
.browser__view { position: relative; height: 290px; overflow: hidden; }
.old { position: absolute; inset: 0; background: #e6e8f0; color: #333; font-family: "Times New Roman", Times, serif; transition: opacity .6s var(--ease), transform .8s var(--ease), filter .6s; }
.old__top { background: linear-gradient(#4a6cb5, #2d4a8a); color: #fff; text-align: center; padding: .7rem .5rem .5rem; }
.old__top b { display: block; font-size: 1rem; letter-spacing: .04em; color: #ffe46b; }
.old__top span { display: block; font-size: .62rem; text-decoration: underline; margin-top: .35rem; }
.old__body { padding: .8rem; font-size: .74rem; line-height: 1.35; text-align: justify; }
.old__img { float: left; width: 84px; height: 64px; margin: 0 .6rem .3rem 0; background: repeating-linear-gradient(45deg, #c9ccd6 0 6px, #d6d9e2 6px 12px); border: 1px solid #999; }
.old__foot { position: absolute; left: 0; right: 0; bottom: .5rem; text-align: center; font-size: .6rem; color: #777; }
.browser.is-new .old { opacity: 0; transform: scale(.97); filter: blur(3px); }
.new { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: .8rem; padding: .9rem 1.2rem; }
.new > * { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.new > :nth-child(2) { transition-delay: .12s; } .new > :nth-child(3) { transition-delay: .26s; } .new > :nth-child(4) { transition-delay: .4s; }
.browser.is-new .new > * { opacity: 1; transform: none; }
.browser:not(.is-new) .new { pointer-events: none; }
.new__nav { display: flex; align-items: center; gap: .9rem; font-size: .74rem; color: var(--grafito); }
.new__nav b { margin-right: auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--serif); font-size: 1.05rem; font-weight: 500; color: var(--pizarra); }
.new__nav span { flex: none; white-space: nowrap; }
.new__pill { padding: .25rem .7rem; border-radius: 99px; background: var(--brand); color: var(--papel); transition: background .4s; }
.new__eyebrow { font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); transition: color .4s; }
.new__title { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.05; margin-top: .25rem; }
.new__title em { color: var(--brand); transition: color .4s; }
.new__cta { display: flex; gap: .45rem; margin-top: .6rem; }
.new__btn { padding: .4rem .8rem; border-radius: 8px; background: var(--brand); color: var(--papel); font-size: .74rem; font-weight: 500; transition: background .4s; }
.new__btn--line { background: transparent; color: var(--pizarra); border: 1px solid var(--pizarra); }
.new__hours { display: flex; flex-wrap: wrap; gap: .2rem 1rem; padding: .5rem .75rem; border-radius: 8px; border-left: 3px solid var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--papel)); font-size: .7rem; transition: border-color .4s, background .4s; }
.new__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.new__cards span { padding: .5rem .6rem; border-radius: 8px; border: 1px solid var(--linea); font-size: .66rem; color: var(--grafito); }
.new__cards b { display: block; font-family: var(--serif); font-size: .92rem; font-weight: 500; color: var(--pizarra); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ==========================================================================
   TRABAJO REAL — una ficha con un proyecto entregado
   ========================================================================== */
.obra-sec { padding-top: 0; }
.obra { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); border: 1px solid var(--linea); border-radius: 20px; background: var(--papel); overflow: hidden; box-shadow: var(--sombra); }
.obra__main { display: grid; gap: 1.1rem; justify-items: start; align-content: start; padding: clamp(1.5rem, 3.5vw, 2.75rem); min-width: 0; }
.obra__k { color: var(--vt-turquesa); }
.obra__t { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }
.obra__d { color: var(--grafito); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 42ch; text-wrap: pretty; }
.obra__list { display: grid; gap: .55rem; }
.obra__list li { display: flex; align-items: baseline; gap: .7rem; text-wrap: pretty; }
.obra__list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 99px; background: var(--v-naranja); transform: translateY(-.12em); }
.obra__list li:nth-child(2)::before { background: var(--v-fucsia); } .obra__list li:nth-child(3)::before { background: var(--v-violeta); }
.obra__link { margin-top: .6rem; }
.obra__link:hover svg { transform: translate(2px, -2px); }
.obra__facts { margin: 0; display: grid; align-content: center; padding: clamp(1.25rem, 3.5vw, 2.75rem); border-left: 1px solid var(--linea); background: color-mix(in srgb, var(--v-turquesa) 6%, var(--marfil)); }
.obra__fact { display: grid; grid-template-columns: minmax(2.2em, auto) minmax(0, 1fr); align-items: baseline; gap: 1.2rem; padding-block: 1.1rem; font-size: clamp(2.8rem, 4.6vw, 4.2rem); }
.obra__fact + .obra__fact { border-top: 1px solid color-mix(in srgb, var(--pizarra) 14%, transparent); }
.obra__fact dd { order: -1; margin: 0; font-family: var(--serif); font-weight: 350; font-variation-settings: "opsz" 72; line-height: 1; letter-spacing: -.012em; font-variant-numeric: lining-nums; }
.obra__fact dt { font-family: var(--mono); font-size: .72rem; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; color: var(--grafito); }

/* ==========================================================================
   CIERRE — una carta con huecos
   ========================================================================== */
.close__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.close__title { font-size: clamp(2.8rem, 7.6vw, 7.4rem); }
.brief { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.brief__main { display: grid; gap: 1.6rem; min-width: 0; }
.me { display: flex; align-items: center; gap: 1rem; }
.me__avatar { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 99px; background: var(--papel); border: 1px solid var(--linea); }
.me__name { font-weight: 600; }
.me__role { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grafito); margin-top: .15rem; }
.me__hi { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--grafito); max-width: 38ch; text-wrap: pretty; }
.letter { display: grid; gap: 1rem; font-family: var(--serif); font-size: clamp(1.45rem, 2.6vw, 2.2rem); line-height: 1.55; letter-spacing: -.01em; padding-top: 1.6rem; border-top: 1px solid var(--linea); }
.letter p { margin: 0; }
.gap { font: inherit; font-style: italic; color: var(--gap-c, var(--vt-violeta)); background: transparent; border: 0; border-bottom: 1.5px solid var(--piedra); border-radius: 0; padding: .18em .1em .1em; margin: 0 .1em; max-width: 100%; transition: border-color .2s; }
.gap:hover, .gap:focus { border-bottom-color: var(--gap-c, var(--vt-violeta)); outline: none; }
.gap[name="nombre"] { --gap-c: var(--vt-fucsia); } .gap[name="negocio"] { --gap-c: var(--vt-violeta); } .gap[name="necesidad"] { --gap-c: var(--vt-azul); } .gap[name="problema"] { --gap-c: var(--vt-turquesa); }
.gap:focus-visible { box-shadow: 0 2px 0 var(--gap-c, var(--vt-violeta)); }
.gap::placeholder { color: var(--piedra-texto); opacity: 1; }
select.gap { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 1.1em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%2355574f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right center / .7em; text-overflow: ellipsis; }
select.gap.is-empty { color: var(--piedra-texto); }
select.gap option { font-style: normal; color: var(--pizarra); font-size: 1rem; }
.letter__last label { display: block; }
.gap--area { field-sizing: content; display: block; width: 100%; resize: vertical; min-height: 3.2em; margin: .2em 0 0; line-height: 1.5; }
.brief__out { position: sticky; top: calc(var(--nav-h) + 1.5rem); display: grid; gap: 1rem; }
/* la nota que explica los botones de envío va justo debajo de ellos; el aviso de estado, junto a copiar */
.brief__out > .sheet { order: 1; } .brief__send { order: 2; } .brief__note { order: 3; } .brief__more { order: 4; } .brief__status { order: 5; } .brief__out > .contact-line { order: 6; }
.sheet { background: var(--papel); border: 1px solid var(--linea); border-radius: 20px; overflow: hidden; box-shadow: var(--sombra); }
.sheet__body.is-pulse { animation: pulse .6s var(--ease); }
@keyframes pulse { 40% { background: var(--salvia-claro); } }
.sheet__head { display: flex; align-items: center; gap: .6rem; padding: .85rem 1.2rem; border-bottom: 1px solid var(--marfil-2); color: var(--grafito); }
.sheet__head .mono { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.sheet__body { margin: 0; padding: 1.3rem 1.4rem 1.5rem; font-family: var(--serif); font-size: 1.12rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow-y: auto; }
.brief__status { font-size: .9rem; color: var(--ok); min-height: 1.3em; margin-top: -.5rem; }
.brief__note { font-size: .88rem; color: var(--grafito); max-width: 44ch; text-wrap: pretty; }
.brief__send .btn { flex: 1 1 auto; }
.brief__send .btn svg { width: 19px; height: 19px; }
.brief__send .btn:hover svg { transform: none; }
.brief__more { gap: .2rem .4rem; margin-left: -.5rem; }
.brief__status.is-warn { color: var(--vt-fucsia); }
.gapwrap { white-space: nowrap; display: inline-block; max-width: 100%; }
.gapwrap .gap { max-width: none; }
.gap.is-missing { border-bottom-color: var(--v-fucsia); animation: nudge .45s var(--ease); }
@keyframes nudge { 20% { transform: translateX(-4px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } }
.contact-line { font-size: .92rem; color: var(--grafito); }
.contact-line, .foot__contact { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem 1.1rem; }
.contact-line .sep, .foot__contact .sep { display: none; }
.contact-line__lead { flex: 0 0 100%; }
.contact-line a, .foot__contact a { white-space: nowrap; color: var(--pizarra); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - .2rem) / 100% 1px no-repeat; padding-block: .35rem; transition: color .3s, background-size .4s var(--ease); }
.contact-line a:hover, .foot__contact a:hover { color: var(--vt-violeta); background-image: var(--vivo-texto); background-size: 100% 1.5px; }

/* ---------- pie ---------- */
.foot { border-top: 1px solid var(--pizarra); padding-block: 2.5rem; }
.foot__grid { display: grid; grid-template-columns: auto 1fr auto auto; gap: 1rem 3rem; align-items: center; }
.foot__now { color: var(--grafito); font-size: .95rem; display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; }
.foot__now .mono { background: var(--vivo-texto); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.foot__top { justify-self: start; padding-block: .7rem; margin-block: -.7rem; font-size: .85rem; color: var(--grafito); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - .55rem) / 100% 1px no-repeat; transition: background-size .45s var(--ease), color .3s; }
.foot__top:hover { background-size: 0 1px; background-position: 100% calc(100% - .55rem); color: var(--pizarra); }
.foot__made { grid-column: 1 / -1; font-size: .85rem; color: var(--grafito); padding-top: 1.2rem; border-top: 1px solid var(--linea); }
.foot__legal { color: var(--grafito); font-size: .85rem; }
.foot__contact { grid-column: 1 / -1; order: 1; font-size: .95rem; color: var(--grafito); line-height: 2; column-gap: 1.6rem; }
.foot__made { order: 2; }
.foot__links { grid-column: 1 / -1; order: 3; display: flex; flex-wrap: wrap; gap: 0 1.4rem; margin-block: -.7rem -.6rem; }
.foot__links a { font-size: .85rem; color: var(--grafito); text-decoration: none; padding-block: .7rem; background: linear-gradient(currentColor, currentColor) 0 calc(100% - .55rem) / 0 1px no-repeat; transition: background-size .4s var(--ease), color .3s; }
.foot__links a:hover, .foot__links a[aria-current] { color: var(--pizarra); background-size: 100% 1px; }

/* Páginas legales y 404 */
.page { padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)); padding-bottom: clamp(4rem, 9vw, 7rem); }
.page__inner { max-width: 44rem; }
.page__title { font-family: var(--serif); font-weight: 350; font-variation-settings: "opsz" 72; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.04; letter-spacing: -.012em; margin: .8rem 0 1.4rem; }
.page__date { color: var(--grafito); font-size: .9rem; }
.page h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.2; margin: 2.6rem 0 .8rem; }
.page p, .page li { color: var(--grafito); line-height: 1.7; }
.page p + p { margin-top: .9rem; }
.page ul { margin: .6rem 0 0 1.2rem; list-style: disc; }
.page li + li { margin-top: .35rem; }
.page a:not(.btn) { color: var(--vt-violeta); }
.page dl { display: grid; grid-template-columns: minmax(8rem, auto) 1fr; gap: .5rem 1.4rem; margin-top: 1rem; }
.page dt { font-weight: 600; color: var(--pizarra); }
.page dd { margin: 0; color: var(--grafito); }
.page__note { margin-bottom: 1.6rem; padding: .9rem 1.1rem; border-radius: 12px; background: var(--salvia-claro); color: var(--pizarra); font-size: .95rem; }
.pend { background: #ffe9a8; color: #6b4a00; border-radius: 4px; padding: 0 .3em; font-weight: 600; }
.borrador { margin-top: 1.4rem; padding: 1rem 1.2rem; border-radius: 12px; background: #fff4d6; border: 1px solid #f0d58a; color: #6b4a00; font-size: .95rem; }
@media (max-width: 760px) { .nav .nav__links--page { display: flex; } }
@media (max-width: 480px) { .nav .nav__links--page { display: none; } }
.nav__links--page .nav__cta { white-space: nowrap; }
@media (max-width: 420px) { .nav__toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .nav__toggle { padding-left: .6rem; } }
@media (max-width: 560px) { .page dl { grid-template-columns: 1fr; gap: .1rem; } .page dd { margin-bottom: .7rem; } }

/* ==========================================================================
   MOVIMIENTO
   ========================================================================== */
.js [data-reveal="fade"] { opacity: 1; transition: opacity .6s var(--ease) var(--d, 0s); }
.js [data-reveal="rise"] { opacity: 1; transform: translateY(10px); transition: opacity .55s var(--ease) var(--d, 0s), transform .7s var(--ease) var(--d, 0s); }
.js [data-reveal="lines"] .line { display: block; overflow: hidden; padding: .14em .12em .24em 0; margin: -.14em -.12em -.24em 0; }
.js .is-done[data-reveal="lines"] .line { overflow: visible; }
.js [data-reveal="lines"] .line > span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease); }
.js [data-reveal="lines"] .line:nth-child(2) > span { transition-delay: .09s; }
.js [data-reveal="lines"] .line:nth-child(3) > span { transition-delay: .18s; }
.js .is-in[data-reveal="fade"], .js .is-in[data-reveal="rise"] { opacity: 1; transform: none; }
.js .is-in[data-reveal="lines"] .line > span { transform: none; }
.line { display: block; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .how__steps::before { display: none; }
  .how__step::after { content: ""; position: absolute; top: .5rem; left: 1.75rem; right: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--step-c), color-mix(in srgb, var(--step-c) 0%, transparent)); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-io) var(--d); }
  .how__steps.is-in .how__step::after { transform: none; }
  .card__fx { height: 132px; }
  .brief { grid-template-columns: 1fr; }
  .obra { grid-template-columns: 1fr; }
  .obra__facts { border-left: 0; border-top: 1px solid var(--linea); }
  .obra__fact { padding-block: .8rem; }
  .casos { grid-template-columns: 1fr; }
  .casos__tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-right: 0; border-bottom: 1px solid var(--linea); scrollbar-width: none; }
  .casos__tabs::-webkit-scrollbar { display: none; }
  .caso__tab { flex: 1 0 10.5rem; scroll-snap-align: start; }
  .caso__k { display: none; }
  .caso__tab::before { left: 1rem; right: 1rem; top: auto; bottom: 0; width: auto; height: 3px; transform: scaleX(0); }
  .brief__out { position: static; }
  .foot__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .inbox, .doc, .ana { grid-template-columns: 1fr; }
  .inbox { gap: 1.2rem; }
  .doc__paper { max-width: 20rem; }
  .caso { min-height: 0; }
  .casos__say { min-height: 4.2em; }
  .casos__replay { margin-top: 0; }
  .browser__view { height: 320px; }
  .web__name input { width: 100%; }
  .web__name { flex: 1 1 10rem; }
  .cards { grid-template-columns: 1fr; }
  .hero__cue { display: none; }
  .how__steps { grid-template-columns: 1fr; padding-left: 1.8rem; }
  .how__steps::before { display: block; left: .5rem; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--v-naranja), var(--v-fucsia) 33%, var(--v-violeta) 60%, var(--v-azul) 85%, var(--v-turquesa)); transform-origin: top; transform: scaleY(0); }
  .how__steps.is-in::before { transform: scaleY(1); }
  .how__step { padding-top: 0; }
  .how__step::after { display: none; }
  .how__step::before { left: -1.8rem; top: .1rem; }
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .lang { margin-left: auto; }
  .lang button { min-width: 2.25rem; min-height: 40px; padding: 0 .45rem; }
  .nav__toggle { padding-left: .5rem; min-width: 44px; justify-content: flex-end; }
  .web__switch button { min-height: 40px; }
  .web__colors { gap: .35rem; }
  .web__colors button { width: 40px; height: 40px; }
  .hero { align-items: flex-end; padding-top: calc(var(--nav-h) + clamp(170px, 32svh, 320px)); padding-bottom: 2.25rem; }
  .hero__inner { gap: 1.25rem; }
  .sec { padding-block: 4.5rem; }
  .hago .h2, .sec__head { margin-bottom: 2rem; }
  /* tarjetas de servicio: icono a la izquierda y texto a la derecha */
  .cards { gap: .75rem; }
  .card { grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 1rem; row-gap: .2rem; align-items: start; padding: 1rem; }
  .card__fx { grid-row: 1 / 4; height: 92px; margin: 0; }
  .card__fx .row__fx { transform: scale(.78); }
  .card__n { margin-top: .1rem; }
  .card__t { font-size: 1.45rem; }
  .card__d { font-size: .95rem; line-height: 1.45; }
  .how__art { min-height: 0; padding: 1rem; }
  .how__steps { row-gap: 2rem; }
  .statement { padding-block: calc(4rem + clamp(220px, 68vw, 330px)) 5rem; }
  .casos__stage { padding: 1.1rem; }
  .casos__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; padding: .5rem; overflow: visible; }
  .caso__tab { grid-template-columns: auto 1fr; align-content: start; padding: .7rem .75rem .8rem; }
  .caso__tab::before { left: .75rem; right: .75rem; bottom: .2rem; }
  .caso__n { grid-row: auto; padding-top: .2rem; }
  .caso__t { font-size: 1.05rem; }
  .caso__k { display: none; }
  .msg { padding: .55rem .7rem; }
  .close__head { margin-bottom: 2rem; }
  .contact-line, .foot__contact { flex-flow: column nowrap; align-items: flex-start; gap: .15rem; }
  .contact-line__lead { flex: none; }
  .contact-line a, .foot__contact a { padding-block: .55rem .2rem; }
  .foot__grid { gap: .9rem; }
  .foot__contact { order: 0; }
  .foot__top { order: 1; }
  .foot__legal { order: 1; }
}
@media (max-width: 420px) {
  .letter { font-size: 1.3rem; }
  .hero .actions .btn { flex: 1 1 100%; }
  .browser__view { height: 336px; }
  .new { padding-inline: 1rem; }
}
@media (max-width: 360px) {
  /* pantallas muy estrechas: la barra y la web de ejemplo caben sin pisarse */
  .nav__inner { gap: .4rem; }
  .brand { gap: .45rem; }
  .brand__word { font-size: .9rem; }
  .lang { margin-left: auto; }
  .lang button { min-width: 2rem; padding: 0 .3rem; }
  .nav__toggle { min-width: 40px; padding-left: .2rem; }
  .browser__view { height: 372px; }
  .new__nav span:not(.new__pill) { display: none; }
  .new__cards { gap: .35rem; }
  .new__cards span { padding: .45rem; font-size: .62rem; }
  .new__cards b { font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .how__step, .orders li { opacity: 1 !important; transform: none !important; }
  .js [data-reveal="lines"] .line > span { transform: none !important; }
  .how__steps::before, .how__step::after { transform: none !important; }
}
