/* Agentic Automate · sistema de diseño del sitio público
   Tokens de marca + componentes. Sin dependencias. */

:root {
  --azul: #1238ff;
  --azul-prof: #0a1f8f;
  --azul-claro: #7cb5ff;
  --lima: #c8ff2e;
  --papel: #f4f6ff;
  --tinta: #0a1440;
  --blanco: #ffffff;
  --alarma: #e8261c;

  --f-display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --f-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --radius: 24px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --vh: 1vh;
  --nav-h: 64px;
}
html.embed { --vh: 8.4px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--tinta);
  color: var(--blanco);
  font: 400 1rem/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--lima); color: var(--tinta); }
:focus-visible { outline: 3px solid var(--lima); outline-offset: 3px; border-radius: 6px; }
.on-light :focus-visible, .on-lima :focus-visible { outline-color: var(--azul); }

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  background: var(--lima); color: var(--tinta); padding: 12px 18px; border-radius: 12px;
  font-weight: 600; text-decoration: none; transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
}
.d-hero { font-size: clamp(2.2rem, 10.4vw, 12.5rem); line-height: .94; }
.d-xl { font-size: clamp(2.6rem, 9vw, 10rem); line-height: .95; }
.d-lg { font-size: clamp(2rem, 5.4vw, 5.5rem); }
.d-md { font-size: clamp(1.5rem, 2.6vw, 2.5rem); }
.d-sm { font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.1; }
.outline { color: transparent; -webkit-text-stroke: 2px currentColor; }
.outline-w { color: transparent; -webkit-text-stroke: clamp(1.5px, .18vw, 3px) var(--blanco); }
.outline-t { color: transparent; -webkit-text-stroke: clamp(1.5px, .18vw, 3px) var(--tinta); }
.c-lima { color: var(--lima); }
.c-azul { color: var(--azul); }
.c-claro { color: var(--azul-claro); }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.55; max-width: 46ch; }
.mono {
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em;
  text-transform: uppercase; line-height: 1.4;
}

.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
}
.label::before {
  content: ""; width: 44px; height: 10px; flex: none;
  background:
    radial-gradient(circle at 5px 5px, currentColor 4.5px, transparent 5px),
    linear-gradient(currentColor, currentColor) 5px 4px / 100% 2px no-repeat;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn-lima { background: var(--lima); color: var(--tinta); }
.btn-lima:hover { background: var(--blanco); }
.btn-tinta { background: var(--tinta); color: var(--blanco); }
.btn-tinta:hover { background: var(--azul); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: var(--blanco); color: var(--azul); border-color: var(--blanco); }
.on-light .btn-ghost:hover { background: var(--tinta); color: var(--blanco); border-color: var(--tinta); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .9rem; }

/* ---------- Navegación ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 120;
  background: var(--lima); transform-origin: 0 50%; transform: scaleX(0);
}
.nav {
  position: fixed; z-index: 100; top: calc(14px + env(safe-area-inset-top, 0px)); left: var(--gutter); right: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--nav-h); padding: 0 10px 0 20px;
  background: var(--papel); color: var(--tinta); border-radius: 20px;
  box-shadow: 0 10px 40px rgba(10, 20, 64, .22);
  transition: transform .45s var(--ease);
}
.nav.hide { transform: translateY(-140%); }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: none; gap: 4px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px;
  font-weight: 600; font-size: .93rem; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav-links a:hover { background: rgba(18, 56, 255, .1); color: var(--azul); }
.nav-links a[aria-current="true"] { background: var(--tinta); color: var(--blanco); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-toggle {
  width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--tinta); cursor: pointer;
  display: grid; place-content: center; gap: 6px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--blanco); transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--azul);
  padding: 110px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .6s var(--ease-in-out), visibility 0s .6s;
}
.menu.open { clip-path: inset(0); visibility: visible; transition: clip-path .6s var(--ease-in-out); }
.menu a.big {
  display: flex; align-items: baseline; gap: 14px; padding: 6px 0; text-decoration: none;
  font-family: var(--f-display); text-transform: uppercase; letter-spacing: -.02em;
  font-size: clamp(2.4rem, 12vw, 5rem); line-height: 1.05;
}
.menu a.big small { font: 500 .8rem var(--f-mono); color: var(--lima); letter-spacing: .08em; }
.menu a.big:hover, .menu a.big:focus-visible { color: var(--lima); }

/* ---------- Secciones base ---------- */
.sec { position: relative; padding: clamp(88px, 12vw, 180px) var(--gutter); }
.wrap { max-width: 1520px; margin: 0 auto; }
.bg-azul { background: var(--azul); color: var(--blanco); }
.bg-tinta { background: var(--tinta); color: var(--blanco); }
.bg-papel { background: var(--papel); color: var(--tinta); }
.bg-lima { background: var(--lima); color: var(--tinta); }
.sec-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 96px); }
.sec-head .lead { opacity: .85; }
@media (min-width: 900px) {
  .sec-head.split { grid-template-columns: 1fr auto; align-items: end; }
}

/* Aparición */
.rv { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in, html.embed .rv { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(var(--vh) * 100); padding: calc(var(--nav-h) + 48px) var(--gutter) clamp(24px, 3vw, 44px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow: hidden;
}
.hero-top { display: grid; gap: 32px; align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-iso { width: min(72vw, 560px); justify-self: center; will-change: transform; }
.hero-iso svg { width: 100%; height: auto; overflow: visible; }
.iso-l { fill: var(--azul-claro); animation: isoL 1.2s var(--ease) both .15s; }
.iso-r { fill: var(--tinta); animation: isoR 1.2s var(--ease) both .15s; }
.iso-link { stroke: var(--lima); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 2 16; animation: dash 1.2s linear infinite; }
.iso-pulse { fill: var(--lima); animation: pulse 2.4s var(--ease-in-out) infinite 1.4s; opacity: 0; }
.iso-ring { fill: none; stroke: var(--lima); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; opacity: 0; }
.iso-ring.b { animation-delay: 1.2s; }
@keyframes isoL { from { transform: translateX(-70px); opacity: 0; } }
@keyframes isoR { from { transform: translateX(70px); opacity: 0; } }
@keyframes dash { to { stroke-dashoffset: -18; } }
@keyframes pulse {
  0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; }
  85% { opacity: 1; } 100% { transform: translateX(224px); opacity: 0; }
}
@keyframes ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .ln > span { display: block; animation: lineUp 1.1s var(--ease) both; animation-delay: calc(.25s + var(--i) * .12s); }
@keyframes lineUp { from { transform: translateY(105%); } }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; border-top: 2px solid rgba(255, 255, 255, .28); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lima); flex: none; }
@media (min-width: 900px) {
  .hero-top { grid-template-columns: 1fr auto; }
  .hero-iso { width: min(38vw, 50vh, 600px); justify-self: end; margin-right: 2vw; }
}

/* ---------- Marquesina ---------- */
.marquee { overflow: hidden; padding: clamp(14px, 1.8vw, 26px) 0; }
.marquee-track { display: flex; width: max-content; animation: mq 32s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; }
.marquee-item {
  display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 48px); padding-right: clamp(20px, 3vw, 48px);
  font-family: var(--f-display); text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap;
  font-size: clamp(1.8rem, 6vw, 6.5rem); line-height: 1;
}
.marquee-item svg { width: 1.5em; height: auto; flex: none; }
.marquee.small .marquee-item { font-size: clamp(1rem, 1.8vw, 1.6rem); font-family: var(--f-mono); font-weight: 500; letter-spacing: .04em; }
@keyframes mq { to { transform: translateX(-50%); } }
html.embed .marquee-track { animation: none; }

/* ---------- Nosotros ---------- */
.manifesto { font-size: clamp(1.7rem, 5vw, 5.4rem); max-width: 20ch; max-width: none; }
.manifesto mark { background: none; color: var(--lima); }
.manifesto .w { opacity: .16; transition: opacity .35s linear, color .35s linear; }
.manifesto .w.on, html.embed .manifesto .w { opacity: 1; }
.manifesto .w.hl.on, html.embed .manifesto .w.hl { color: var(--lima); }
.fichas { display: grid; gap: 20px; margin-top: clamp(56px, 8vw, 120px); }
.ficha {
  border-radius: var(--radius); padding: clamp(24px, 2.6vw, 40px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 300px;
  transition: transform .5s var(--ease);
}
.ficha p { font-size: 1rem; line-height: 1.55; max-width: 38ch; }
.ficha .mono { opacity: .75; }
@media (min-width: 900px) {
  .fichas { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .ficha:nth-child(1) { transform: rotate(-2deg); }
  .ficha:nth-child(2) { transform: translateY(56px) rotate(1.2deg); }
  .ficha:nth-child(3) { transform: translateY(14px) rotate(-1deg); }
  .ficha:hover { transform: translateY(-8px) rotate(0deg); }
}
.sistemas { margin-top: clamp(72px, 10vw, 150px); border-block: 2px solid rgba(255, 255, 255, .16); color: var(--azul-claro); }

/* ---------- Servicios ---------- */
.srv { border-top: 2px solid var(--tinta); }
.srv-row {
  display: grid; gap: 10px 32px; padding: clamp(22px, 2.6vw, 40px) clamp(0px, 1.4vw, 24px);
  border-bottom: 2px solid var(--tinta); position: relative; isolation: isolate;
  transition: color .35s var(--ease), padding .45s var(--ease);
}
.srv-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--azul);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--ease);
}
.srv-row .n { font-family: var(--f-mono); font-size: .85rem; color: var(--azul); transition: color .35s; }
.srv-row h3 { font-size: clamp(1.7rem, 3.7vw, 4rem); overflow-wrap: anywhere; }
.srv-row p { max-width: 52ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase;
  border: 1.5px solid currentColor; border-radius: 999px; padding: 5px 12px;
}
@media (hover: hover) {
  .srv-row:hover { color: var(--blanco); }
  .srv-row:hover::before { transform: scaleY(1); }
  .srv-row:hover .n { color: var(--lima); }
}
@media (min-width: 900px) {
  .srv-row { grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
  .srv-row:hover { padding-left: 36px; }
}

/* 4 formas de conectar */
.conex { display: grid; gap: 28px; }
.tabs { display: grid; gap: 0; border-top: 2px solid rgba(255, 255, 255, .3); }
.tab {
  display: flex; align-items: baseline; gap: 18px; width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; border-bottom: 2px solid rgba(255, 255, 255, .3);
  padding: clamp(14px, 1.6vw, 22px) 4px; min-height: 56px; color: rgba(255, 255, 255, .62);
  font-family: var(--f-display); text-transform: uppercase; letter-spacing: -.02em;
  font-size: clamp(1.5rem, 3.6vw, 3.6rem); line-height: 1;
  transition: color .25s, padding-left .4s var(--ease);
}
.tab small { font: 500 .8rem var(--f-mono); letter-spacing: .08em; }
.tab:hover { color: var(--blanco); }
.tab[aria-selected="true"] { color: var(--lima); padding-left: 18px; }
.panel {
  background: var(--tinta); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 40px);
  display: grid; gap: 22px; align-content: start; min-height: 420px;
}
.panel[hidden] { display: none; }
.panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--azul-claro); }
.panel-bar i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--lima); box-shadow: 0 0 0 0 rgba(200, 255, 46, .6); animation: live 1.8s infinite; }
@keyframes live { to { box-shadow: 0 0 0 12px rgba(200, 255, 46, 0); } }
.code { font-family: var(--f-mono); font-size: clamp(.78rem, 1.05vw, .95rem); line-height: 1.9; overflow-x: auto; }
.code div { opacity: 0; transform: translateY(8px); animation: codeIn .5s var(--ease) forwards; animation-delay: calc(var(--i) * .16s); white-space: pre; }
.code .k { color: var(--azul-claro); } .code .ok { color: var(--lima); } .code .dim { color: rgba(255, 255, 255, .5); }
@keyframes codeIn { to { opacity: 1; transform: none; } }
html.embed .code div { animation: none; opacity: 1; transform: none; }
.panel p { color: rgba(255, 255, 255, .86); max-width: 52ch; }
.panel .when { border-top: 1.5px solid rgba(255, 255, 255, .18); padding-top: 16px; color: var(--azul-claro); }
@media (min-width: 900px) {
  .conex { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
}

/* ---------- Productos (carril horizontal) ---------- */
.rail-sec { padding-inline: 0; padding-bottom: 0; overflow-x: clip; }
.rail-sec .sec-head { padding-inline: var(--gutter); }
.rail-stage { overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) clamp(88px, 12vw, 160px); scrollbar-width: none; }
.rail-stage::-webkit-scrollbar { display: none; }
.rail { display: flex; gap: 20px; width: max-content; will-change: transform; }
.prod {
  scroll-snap-align: center; flex: none; width: min(84vw, 520px); min-height: min(calc(var(--vh) * 66), 620px);
  border-radius: var(--radius); padding: clamp(24px, 2.4vw, 36px); position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; isolation: isolate;
}
.prod-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.prod .big-n { font-family: var(--f-display); font-size: clamp(5rem, 9vw, 9rem); line-height: .8; letter-spacing: -.04em; opacity: .16; }
.prod-art { position: absolute; z-index: -1; right: -18%; top: 5%; width: 80%; opacity: .9; transition: transform .8s var(--ease); }
.prod:hover .prod-art { transform: translateX(-6%) rotate(-4deg); }
.prod h3 { margin-bottom: 12px; font-size: clamp(1.8rem, 3vw, 2.9rem); overflow-wrap: anywhere; }
.prod p { max-width: 36ch; }
.prod .more { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; }
.prod .more svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.prod .more:hover svg { transform: translateX(5px); }
.soon-tag { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 2px dashed currentColor; border-radius: 999px; font: 500 .78rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.soon-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .6; }
.prod.is-soon h3, .prod.is-soon p { opacity: .8; }
.prod.p-azul { background: var(--azul); } .prod.p-papel { background: var(--papel); color: var(--tinta); }
.prod.p-lima { background: var(--lima); color: var(--tinta); } .prod.p-prof { background: var(--azul-prof); }
.prod.p-out { border: 2px dashed rgba(255, 255, 255, .4); justify-content: center; align-items: flex-start; }
.rail-hint { padding: 0 var(--gutter) 20px; color: var(--azul-claro); display: flex; align-items: center; gap: 10px; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  html:not(.embed) .rail-wrap.pinned { height: var(--rail-h, 300vh); }
  html:not(.embed) .rail-wrap.pinned .rail-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); }
  html:not(.embed) .rail-wrap.pinned .rail-stage { overflow: visible; padding-bottom: 0; }
  html:not(.embed) .rail-wrap.pinned .sec-head { margin-bottom: clamp(20px, 3vh, 44px); }
  html:not(.embed) .rail-wrap.pinned .rail-hint { padding-top: 22px; padding-bottom: 0; }
  html:not(.embed) .rail-wrap.pinned .sec-head h2 { font-size: clamp(2.4rem, 6vw, 6.5rem); }
  html:not(.embed) .rail-wrap.pinned .prod { min-height: clamp(340px, calc(100vh - 310px), 600px); gap: 16px; }
}
html.embed .rail-stage { overflow: hidden; }
.rail-hint .h-pin { display: none; }
.rail-wrap.pinned .rail-hint .h-pin { display: inline; }
.rail-wrap.pinned .rail-hint .h-swipe { display: none; }

/* ---------- Artículos ---------- */
.arts { display: grid; gap: 20px; }
.art {
  border-radius: var(--radius); padding: clamp(24px, 2.6vw, 40px); position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  transition: transform .45s var(--ease), background-color .3s, color .3s;
}
.art-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.art h3 a { text-decoration: none; }
.art h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.art p { max-width: 54ch; margin-top: 14px; }
.art-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.art-go svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.art.feat { background: var(--azul); color: var(--blanco); min-height: 460px; overflow: hidden; isolation: isolate; }
.art.feat .prod-art { width: 60%; right: -12%; top: auto; bottom: -22%; opacity: .5; }
.art.feat:hover { transform: translateY(-6px); }
.art.feat:hover .art-go svg { transform: translateX(6px); }
.art.soon { background: var(--blanco); border: 2px solid rgba(10, 20, 64, .12); }
.art.soon .tag { color: var(--azul); }
@media (min-width: 900px) {
  .arts { grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; }
  .art.feat { grid-row: span 2; }
}

/* ---------- Contacto ---------- */
.contact { display: grid; gap: clamp(36px, 5vw, 80px); }
.contact-copy { display: grid; gap: 28px; align-content: start; justify-items: start; }
.wa { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; min-height: 56px; }
.wa .ico { width: 56px; height: 56px; border-radius: 50%; background: var(--lima); color: var(--tinta); display: grid; place-items: center; flex: none; transition: transform .3s var(--ease); }
.wa:hover .ico { transform: scale(1.1) rotate(-8deg); }
.wa .ico svg { width: 26px; height: 26px; }
.wa b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.2rem, 2vw, 1.7rem); letter-spacing: -.01em; }
.form { background: var(--papel); color: var(--tinta); border-radius: var(--radius); padding: clamp(22px, 3vw, 44px); display: grid; gap: 18px; }
.form-grid { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .92rem; }
.field label i { font-style: normal; color: var(--azul); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 2px solid rgba(10, 20, 64, .18); background: var(--blanco); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(10, 20, 64, .45); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(18, 56, 255, .18); }
.field .err { display: none; color: #b3160e; font-size: .86rem; font-weight: 600; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--alarma); }
.field.bad .err { display: block; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form-foot small { color: rgba(10, 20, 64, .7); max-width: 36ch; font-size: .82rem; line-height: 1.45; }
.form-ok { display: none; gap: 16px; justify-items: start; padding: 24px 0; }
.form.sent > :not(.form-ok) { display: none; }
.form.sent .form-ok { display: grid; }
.form-ok .check { width: 64px; height: 64px; border-radius: 50%; background: var(--lima); display: grid; place-items: center; }
.form-ok .check svg { width: 30px; height: 30px; }
@media (min-width: 700px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .contact { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; } }

/* ---------- Pie ---------- */
.foot { padding: clamp(56px, 7vw, 110px) var(--gutter) 28px; background: var(--tinta); overflow: hidden; }
.foot-grid { display: grid; gap: 40px; padding-bottom: clamp(48px, 6vw, 96px); }
.foot h2 { font: 500 .78rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--azul-claro); margin-bottom: 14px; }
.foot li a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; font-weight: 500; }
.foot li a:hover { color: var(--lima); }
.foot-logo { width: 100%; height: auto; filter: brightness(0) invert(1); opacity: .96; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 28px; padding-top: 20px; border-top: 2px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .7); }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 300; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--lima); pointer-events: none; mix-blend-mode: difference;
  opacity: 0; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .3s;
}
.cursor.on { opacity: 1; }
.cursor.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
html.embed .cursor, html.embed .progress { display: none; }

/* ---------- Página de artículo ---------- */
.post-hero { padding: calc(var(--nav-h) + 80px) var(--gutter) clamp(48px, 6vw, 88px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 28px; color: rgba(255, 255, 255, .8); }
.crumbs a { text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { color: var(--lima); }
.post-hero h1 { font-size: clamp(2.2rem, 6.6vw, 6.6rem); max-width: 16ch; }
.post-info { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; padding-top: 20px; border-top: 2px solid rgba(255, 255, 255, .28); }
.post { padding: clamp(48px, 7vw, 110px) var(--gutter); }
.post-grid { display: grid; gap: 40px; max-width: 1240px; margin: 0 auto; }
.toc { align-self: start; border: 2px solid rgba(10, 20, 64, .14); border-radius: var(--radius); padding: 24px; }
.toc h2 { font: 500 .78rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; color: var(--azul); }
.toc a { display: flex; align-items: center; min-height: 40px; text-decoration: none; font-weight: 600; border-bottom: 1.5px solid rgba(10, 20, 64, .1); }
.toc li:last-child a { border-bottom: 0; }
.toc a:hover { color: var(--azul); }
.prose { max-width: 68ch; font-size: 1.12rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(1.6rem, 3vw, 2.6rem); margin-top: 2.2em; scroll-margin-top: 110px; }
.prose h2 .n { color: var(--azul); font: 500 .9rem var(--f-mono); display: block; margin-bottom: 10px; letter-spacing: .08em; }
.prose .intro { font-size: 1.32rem; line-height: 1.55; font-weight: 500; }
.prose blockquote { margin: 2em 0; padding: clamp(24px, 3vw, 40px); background: var(--azul); color: var(--blanco); border-radius: var(--radius); font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.3rem, 2.6vw, 2.2rem); line-height: 1.08; letter-spacing: -.02em; }
.prose .note { border-left: 4px solid var(--azul); padding: 4px 0 4px 18px; color: rgba(10, 20, 64, .82); font-size: 1rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.prose th, .prose td { text-align: left; padding: 12px 10px; border-bottom: 1.5px solid rgba(10, 20, 64, .14); vertical-align: top; }
.prose th { font: 500 .76rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--azul); }
.table-scroll { overflow-x: auto; }
@media (min-width: 1000px) {
  .post-grid { grid-template-columns: 280px minmax(0, 1fr); gap: 72px; }
  .toc { position: sticky; top: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv { opacity: 1; transform: none; }
  .manifesto .w { opacity: 1; }
  .manifesto .w.hl { color: var(--lima); }
  .iso-pulse, .iso-ring { display: none; }
  .cursor { display: none; }
}

/* ---------- Productos: acciones ---------- */
.prod-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 20px; }
.prod-actions .more, .prod-actions .soon-tag { margin-top: 0; }
.prod .more.ghost { border-bottom-style: dashed; opacity: .9; }
.prod .more.ghost:hover { opacity: 1; border-bottom-style: solid; }
.bg-prof { background: var(--azul-prof); color: var(--blanco); }

/* ---------- Artículos dinámicos ---------- */
.art.pub { transition: transform .45s var(--ease), border-color .3s; }
.art.pub:hover { transform: translateY(-6px); border-color: var(--azul); }
.art.pub:hover .art-go svg { transform: translateX(6px); }
.art.pub .art-go { color: var(--azul); }
@media (min-width: 900px) {
  .arts { grid-template-rows: none; grid-auto-rows: minmax(220px, auto); }
  .arts.no-feat { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Redes ---------- */
.redes { border-top: 2px solid rgba(255, 255, 255, .22); }
.red {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 24px;
  padding: clamp(18px, 2.4vw, 34px) clamp(4px, 1.4vw, 24px); border-bottom: 2px solid rgba(255, 255, 255, .22);
  text-decoration: none; transition: color .35s var(--ease), padding .45s var(--ease);
}
.red::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lima); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--ease); }
.red-name { font-family: var(--f-display); text-transform: uppercase; letter-spacing: -.02em; line-height: .95; font-size: clamp(2.6rem, 9vw, 9rem); overflow-wrap: anywhere; }
.red-user { grid-column: 1; color: var(--azul-claro); transition: color .35s; }
.red-go { grid-column: 2; grid-row: 1 / span 2; width: clamp(48px, 6vw, 88px); height: clamp(48px, 6vw, 88px); border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; transition: transform .45s var(--ease), background-color .3s; }
.red-go svg { width: 45%; height: 45%; transform: rotate(-45deg); }
.red:hover, .red:focus-visible { color: var(--tinta); }
.red:hover::before, .red:focus-visible::before { transform: scaleY(1); }
.red:hover .red-user, .red:focus-visible .red-user { color: var(--tinta); }
.red:hover .red-go { transform: rotate(45deg); background: var(--tinta); color: var(--lima); border-color: var(--tinta); }
@media (min-width: 900px) {
  .red { grid-template-columns: minmax(0, 1fr) auto auto; }
  .red-user { grid-column: 2; }
  .red-go { grid-column: 3; grid-row: 1; }
  .red:hover { padding-left: 40px; }
}
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }

/* ---------- Página de producto ---------- */
.pd-hero { padding: calc(var(--nav-h) + 72px) var(--gutter) clamp(56px, 7vw, 110px); overflow: hidden; }
.pd-hero-grid { display: grid; gap: 40px; align-items: center; }
.pd-hero-copy { display: grid; gap: 24px; justify-items: start; min-width: 0; }
.pd-hero .crumbs { margin-bottom: 0; color: inherit; opacity: .85; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-state { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 5px 12px; font: 500 .72rem var(--f-mono); letter-spacing: .05em; text-transform: uppercase; }
.pd-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pd-state.live { background: var(--tinta); color: var(--lima); }
.pd-state.soon { border: 1.5px dashed currentColor; }
.pd-title { font-size: clamp(2.2rem, 6.6vw, 7.5rem); line-height: .94; overflow-wrap: break-word; hyphens: manual; }
.pd-art { width: min(80vw, 520px); justify-self: center; }
@media (min-width: 1000px) { .pd-hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } .pd-art { justify-self: end; } }
.pd-body { padding: clamp(64px, 9vw, 140px) var(--gutter); }
.pd-block { display: grid; gap: 28px; padding-block: clamp(36px, 5vw, 72px); border-top: 2px solid var(--tinta); }
.pd-block:first-child { border-top: 0; padding-top: 0; }
.pd-desc { font-size: clamp(1.25rem, 2.2vw, 2rem); line-height: 1.4; font-weight: 500; max-width: 38ch; }
.pd-ben { display: grid; gap: 14px; }
.pd-ben li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: center; font-size: 1.12rem; font-weight: 500; }
.pd-check { width: 40px; height: 40px; border-radius: 50%; background: var(--azul); color: var(--lima); display: grid; place-items: center; }
.pd-check svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pd-steps { display: grid; gap: 16px; counter-reset: none; }
.pd-steps li { background: var(--blanco); border: 2px solid rgba(10, 20, 64, .1); border-radius: var(--radius); padding: 24px; display: grid; gap: 28px; align-content: space-between; min-height: 180px; }
.pd-steps li .mono { color: var(--azul); }
.pd-steps li p { font-family: var(--f-display); text-transform: uppercase; letter-spacing: -.01em; line-height: 1.08; font-size: clamp(1.1rem, 1.6vw, 1.45rem); }
@media (min-width: 700px) { .pd-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pd-steps { grid-template-columns: repeat(4, 1fr); } .pd-block { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; } .pd-intro { grid-template-columns: 1fr; } }
.pd-sys { margin-top: 0; }
.pd-sys .tag { font-size: .85rem; padding: 8px 16px; }
.pd-note { color: rgba(10, 20, 64, .78); max-width: 60ch; grid-column: 1 / -1; }
.pd-note a { color: var(--azul); font-weight: 600; text-underline-offset: 3px; }
.pd-cta .wrap { display: grid; gap: 24px; justify-items: start; }
.pd-otros { display: grid; gap: 20px; }
.pd-otro { position: relative; border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; align-content: start; transition: transform .45s var(--ease); }
.pd-otro:hover { transform: translateY(-6px); }
.pd-otro .tag { justify-self: start; }
.pd-otro h3 a { text-decoration: none; }
.pd-otro h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pd-otro .art-go { margin-top: 12px; }
.pd-otro.p-lima { background: var(--lima); color: var(--tinta); } .pd-otro.p-azul { background: var(--azul); }
.pd-otro.p-papel { background: var(--papel); color: var(--tinta); } .pd-otro.p-prof { background: var(--azul-prof); }
@media (min-width: 900px) { .pd-otros { grid-template-columns: repeat(3, 1fr); } }
.prose ul { list-style: disc; padding-left: 1.4em; display: grid; gap: .5em; }
.prose ul li::marker { color: var(--azul); }
.prose a:not(.btn) { color: var(--azul); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Producto: fuentes, usos, frase, precio, preguntas ---------- */
.pd-fuentes { display: grid; gap: 14px; }
.pd-fuentes li { background: var(--blanco); border: 2px solid rgba(10, 20, 64, .1); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; }
.pd-fuentes .mono { color: var(--azul); }
.pd-fuentes b { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.08; font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
.pd-fuentes li > span:last-child:not(.mono) { color: rgba(10, 20, 64, .78); }
@media (min-width: 700px) { .pd-fuentes { grid-template-columns: repeat(2, 1fr); } }
.pd-usos { display: grid; gap: 0; border-top: 2px solid rgba(10, 20, 64, .14); }
.pd-usos li { padding: 16px 0; border-bottom: 2px solid rgba(10, 20, 64, .14); font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 600; display: flex; gap: 14px; align-items: baseline; }
.pd-usos li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--azul); flex: none; transform: translateY(-2px); }
.pd-quote { padding: clamp(56px, 8vw, 120px) var(--gutter); }
.pd-quote p { font-size: clamp(1.8rem, 4.6vw, 4.6rem); line-height: 1.02; max-width: 22ch; text-wrap: balance; }
.pd-quote p::first-line { color: var(--lima); }
.pd-body-b { padding-top: clamp(48px, 7vw, 110px); }
.pd-price { display: grid; gap: 16px; }
.pd-price-main { background: var(--lima); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); display: grid; gap: 6px; align-content: start; }
.pd-price-main b { font-family: var(--f-display); font-weight: 400; font-size: clamp(4rem, 9vw, 8rem); line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pd-price-main p { margin-top: 14px; max-width: 42ch; }
.calc { background: var(--tinta); color: var(--blanco); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; align-content: start; }
.calc .mono { color: var(--azul-claro); }
.calc-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 12px; align-items: center; }
.calc-row label { font-weight: 600; }
.calc-row input, .calc-row select { min-height: 48px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: var(--blanco); padding: 0 12px; font: 600 1rem var(--f-mono); width: 100%; }
.calc-row select option { color: var(--tinta); }
.calc-row input:focus, .calc-row select:focus { outline: none; border-color: var(--lima); }
.calc-out { display: grid; gap: 4px; padding-top: 16px; border-top: 2px solid rgba(255, 255, 255, .16); }
.calc-out span { color: rgba(255, 255, 255, .8); font-size: .92rem; }
.calc-out b { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3rem); color: var(--lima); font-variant-numeric: tabular-nums; }
@media (min-width: 800px) { .pd-price { grid-template-columns: 1fr 1fr; } }
.pd-faq { display: grid; border-top: 2px solid rgba(10, 20, 64, .14); }
.pd-faq details { border-bottom: 2px solid rgba(10, 20, 64, .14); }
.pd-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; padding: 14px 0; font-weight: 700; font-size: 1.08rem; }
.pd-faq summary::-webkit-details-marker { display: none; }
.pd-faq summary::after { content: "+"; font: 400 1.6rem/1 var(--f-display); color: var(--azul); transition: transform .3s var(--ease); flex: none; }
.pd-faq details[open] summary::after { transform: rotate(45deg); }
.pd-faq details p { padding: 0 0 20px; max-width: 70ch; color: rgba(10, 20, 64, .85); }
.pd-block > * { min-width: 0; }
.pd-block > h2 { font-size: clamp(1.9rem, 3vw, 3.2rem); overflow-wrap: break-word; }
.pd-price > * { min-width: 0; }
.pd-steps li { min-width: 0; overflow-wrap: break-word; }
@media (min-width: 1100px) { .pd-steps { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Formulario: autorización, trampa y errores ---------- */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check-label { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-weight: 500 !important; font-size: .92rem !important; line-height: 1.45; cursor: pointer; }
.check-label input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--azul); cursor: pointer; }
.check-label a { color: var(--azul); font-weight: 600; text-underline-offset: 3px; }
.form-err { background: #ffe3e0; color: #8f1009; border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 600; font-size: .92rem; }
.form-err[hidden] { display: none; }
.btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.cf-turnstile { min-height: 65px; }
.foot-base a { text-underline-offset: 3px; }
.foot-base a:hover { color: var(--lima); }
.post-grid.no-toc { grid-template-columns: minmax(0, 1fr); max-width: 820px; }

/* Vista previa dentro del panel: el carril de productos se muestra completo, sin deslizar */
html.embed .rail { flex-wrap: wrap; width: auto; }
html.embed .rail-stage { overflow: visible; }
/* ...y sin animaciones de entrada, para que la vista previa siempre muestre el estado final */
html.embed .hero h1 .ln > span, html.embed .iso-l, html.embed .iso-r { animation: none; }
