/* Hallmark · shape: kept order, recomposed (Workbench) · genre: modern-minimal · theme: brand · redesign: full
 * paper: oklch(14.5% 0.012 291) dark / oklch(97.5% 0.007 295) light · accent: oklch(52.2% 0.265 286.3) · display: Geist 700 · body: Geist 400/600 · hero: Stage (head full width, the real app in a laptop with the technician's phone in front) · nav: kept · footer: one line, wordmark left · signature: the real Pultec inicio and the technician's phone, captured from the running app
 * axes: dark/grotesk-sans/chromatic-violet · posture: Restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R (rhythm), the sections alternate paper, product and type so no two neighbours share a composition */
/* Hallmark · waive 47b · the brief names realistic laptop and phone mock-ups · frames built from tokens, no drawn browser bar */
/* Hallmark · waive 38iii · the purple second line is the brand signature, once, in the hero · kept from the original page */
/* Hallmark · waive 26b · no control on the page is ever disabled · the billing toggle and the theme button always act */
/* Hallmark · waive 80 · div.flow draws the page's own five scattered sources and three outcomes · composition from the owner's facts, kept from the original page */
/* Hallmark · waive 44c · the product stage is the next block and fills the rest of the first screen at every fold · the hero text and the app read as one screen */
/* Hallmark · waive 59 · the 64px seam is hero text to product stage, one composition split for the fold · every other seam is 120px or more */
/* Hallmark · waive 29 · the brief says the header stays · the sticky nav keeps its translucent blur */
/* Hallmark · copy: owner's words kept; eyebrows dropped (El problema, Cómo funciona, Los detalles, Para el técnico, Planes, Preguntas), the hero pill moved into the product caption, "Llamada perdida · Taller" to "Llamada perdida del taller" */
@import url("./tokens.css");
@import url("./base.css");

/* ── Base ── */
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { font-size: 1.0625rem; text-rendering: optimizeLegibility; }
a { text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--space-xs); top: var(--space-xs); transform: translateY(-200%); z-index: var(--z-toast); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-inner); background: var(--color-btn); color: var(--color-btn-ink); }
.skip:focus-visible { transform: none; }
:focus-visible { border-radius: 6px; }

/* Imagen según el tema (las capturas de la app existen en claro y en oscuro) */
.only-dark { display: none !important; }
:root[data-theme="dark"] .only-dark { display: block !important; }
:root[data-theme="dark"] .only-light { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block !important; }
  :root:not([data-theme="light"]) .only-light { display: none !important; }
}

/* ── Botones y enlaces ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  height: 48px; padding: 0 var(--space-lg); border-radius: 14px;
  background: var(--color-btn); color: var(--color-btn-ink); font-weight: 600; font-size: 1rem; white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:hover { background: color-mix(in oklab, var(--color-btn) 86%, var(--color-accent)); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline-offset: 3px; border-radius: 14px; }
.btn--small { height: 40px; padding: 0 var(--space-md); font-size: var(--text-sm); border-radius: 11px; }
.btn--big { height: 52px; padding: 0 28px; font-size: 1.0625rem; }
.btn--ghost { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-rule-2); }
.btn--ghost:hover { background: var(--color-paper-3); }
.btn--block { width: 100%; }
.link { font-weight: 600; font-size: 1rem; color: var(--color-ink); padding: var(--space-xs) var(--space-2xs); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.3em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.link:hover { text-decoration-color: currentColor; }
.link--quiet { color: var(--color-muted); }

/* ── Barra (se queda como estaba) ── */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 78%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color var(--dur-long) var(--ease-out); }
.nav.is-scrolled { border-bottom-color: var(--color-rule); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: var(--space-lg); }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; }
.nav__links { display: flex; gap: var(--space-2xs); }
.nav__links a { padding: var(--space-xs) var(--space-sm); border-radius: 10px; font-size: 0.9375rem; color: var(--color-muted); transition: color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.nav__links a:hover { color: var(--color-ink); background: var(--color-paper-3); }
.nav__cta { display: flex; align-items: center; gap: var(--space-xs); }
.theme { width: 40px; height: 40px; border-radius: 11px; border: 0; background: transparent; color: var(--color-muted); cursor: pointer; display: grid; place-items: center; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.theme:hover { background: var(--color-paper-3); color: var(--color-ink); }
.theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme .moon { display: block; } .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: none; } :root[data-theme="dark"] .theme .sun { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .moon { display: none; } :root:not([data-theme="light"]) .theme .sun { display: block; } }

/* ── Dispositivos (portátil y móvil), hechos con los tokens de :root ── */
.laptop { position: relative; width: 100%; }
.laptop__lid {
  position: relative; padding: 1.25% 1.25% 1.7%; border-radius: 1.8% / 2.9%;
  background: var(--device-shell);
  box-shadow: inset 0 0 0 1px var(--device-edge), inset 0 0 0 3px var(--device-glass);
}
.laptop__lid::before { content: ""; position: absolute; top: 0.55%; left: 50%; width: 0.45%; aspect-ratio: 1; border-radius: 50%; background: var(--device-edge); transform: translateX(-50%); }
.laptop__screen { position: relative; aspect-ratio: 16 / 10; border-radius: 0.5% / 0.8%; overflow: hidden; background: var(--color-app); }
.laptop__screen > img { object-position: top left; }
.laptop__base {
  position: relative; width: 112%; margin-left: -6%; height: clamp(10px, 1.5vw, 21px);
  border-radius: 2px 2px 48% 48% / 2px 2px 100% 100%;
  background: linear-gradient(to bottom, var(--alu-1), var(--alu-2) 38%, var(--alu-3) 80%, var(--alu-4));
}
.laptop__base::before { content: ""; position: absolute; top: 0; left: 50%; width: 13%; height: 42%; transform: translateX(-50%); border-radius: 0 0 12px 12px; background: linear-gradient(to bottom, var(--alu-3), var(--alu-2)); }
.laptop__base::after { content: ""; position: absolute; left: 4%; right: 4%; top: 70%; height: 46px; background: radial-gradient(closest-side, var(--device-shade), transparent); z-index: -1; }

.phone {
  position: relative; container-type: inline-size; padding: 2.6%; border-radius: 14% / 6.5%;
  background: var(--device-shell);
  box-shadow: inset 0 0 0 1.5px var(--device-edge), inset 0 0 0 4px var(--device-glass), 0 40px 70px -36px var(--device-shade);
}
.phone::before, .phone::after { content: ""; position: absolute; width: 1.2%; border-radius: 2px; background: var(--device-edge); }
.phone::before { right: -1%; top: 25%; height: 12%; }
.phone::after { left: -1%; top: 20%; height: 7%; box-shadow: 0 4cqi 0 var(--device-edge), 0 -1px 0 transparent; }
.phone__screen { position: relative; aspect-ratio: 390 / 844; border-radius: 12% / 5.6%; overflow: hidden; background: var(--color-app); }
.phone__screen::after { content: ""; position: absolute; z-index: 3; top: 1.5%; left: 50%; width: 31%; height: 3.6%; transform: translateX(-50%); border-radius: var(--radius-pill); background: var(--device-glass); }
.phone__screen > img { inset: 5.8% 0 auto 0; height: auto; }
.phone__status { position: absolute; z-index: 2; inset: 0 0 auto 0; height: 5.8%; display: flex !important; align-items: center; justify-content: space-between; padding: 0 9% 0 12%; font-size: 4.2cqi; font-weight: 600; color: var(--color-ink); background: var(--color-app); }
.phone__status svg { width: 19%; fill: currentColor; stroke: currentColor; }

/* ── Portada ── */
.hero { position: relative; z-index: var(--z-base); padding: var(--space-2xl) 0 0; }
.showcase { position: relative; z-index: var(--z-raised); padding-bottom: var(--space-3xl); }
.hero__grid, .final__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--color-grid) 1px, transparent 1px), linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 18%, var(--color-ink) 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 18%, var(--color-ink) 30%, transparent 78%);
}
.hero__grid { bottom: -640px; }
.hero__text { position: relative; }
.hero h1 { max-width: none; font-size: clamp(1.9rem, 6.6vw + 0.4rem, 6.5rem); line-height: 0.94; letter-spacing: -0.052em; }
.hero__line2 { color: var(--color-accent-ink); }
.hero__side { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg) var(--space-xl); margin-top: var(--space-xl); }
.hero .lead { max-width: 40ch; color: var(--color-muted); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); }
.hero__stage { position: relative; margin: var(--space-2xl) auto 0; }
.hero__stage .laptop { width: 88%; margin-inline: auto 9%; }
.phone--hero { position: absolute; right: var(--gutter); bottom: -2%; width: 21%; max-width: 260px; }
.hero__caption { margin-top: var(--space-2xl); max-width: 60ch; font-size: var(--text-sm); color: var(--color-muted); }

/* Una sola aparición: la portada se asienta al cargar */
.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Sectores ── */
.sectors { border-block: 1px solid var(--color-rule); }
.sectors__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: var(--space-xl) var(--space-3xl); align-items: center; padding-block: var(--space-xl); }
.sectors__title { font-size: var(--text-lg); line-height: 1.3; letter-spacing: -0.02em; max-width: 22ch; }
.sectors__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-left: 1px solid var(--color-rule); }
.sectors__list li { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-md) var(--space-md); border-right: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }
.sectors__list li:nth-child(n+7) { border-bottom: 0; }
.sectors__list i { width: 28px; height: 28px; background: var(--color-ink); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }

/* ── Secciones ── */
.section { position: relative; padding: var(--section-gap) 0; }
.head { margin-bottom: var(--space-2xl); }
.head h2, .faq h2 { font-size: clamp(2rem, 3.6vw + 0.6rem, 4rem); line-height: 1; letter-spacing: -0.045em; max-width: 22ch; }
.head__after { margin-top: var(--space-xs); font-size: clamp(1.5rem, 2.2vw + 0.6rem, 2.75rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; color: var(--color-muted); max-width: 30ch; text-wrap: balance; overflow-wrap: break-word; }
.head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-lg); }

/* ── El problema ── */
.flow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr); align-items: center; gap: 0 var(--space-3xl); }
.flow__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.flow__lines path { fill: none; stroke: var(--color-rule-2); stroke-width: 1.5; stroke-dasharray: 4 6; }
.flow__lines path.out { stroke: var(--color-accent-ink); stroke-dasharray: none; }
.flow__in, .flow__out { display: grid; gap: var(--space-sm); position: relative; z-index: 1; }
.mess { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-sm) var(--space-md); border: 1px dashed var(--color-rule-2); border-radius: var(--radius-inner); background: var(--color-paper); color: var(--color-muted); }
.mess b { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--color-ink-2); }
.mess small { display: block; font-size: var(--text-xs); color: var(--color-muted); }
.mess__i { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 0.75rem; --c: var(--color-muted); background: color-mix(in oklab, var(--c) 16%, var(--color-paper)); color: color-mix(in oklab, var(--c) 72%, var(--color-ink)); }
.mess__i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.mess__i--xls, .mess__i--wa { --c: var(--color-ok); }
.mess__i--doc { --c: var(--color-bad); }
.mess__i--tel { --c: var(--color-accent-ink); }
.mess__i--note { --c: var(--color-warn); font-size: 1rem; }
.flow__core { position: relative; z-index: 1; width: 180px; aspect-ratio: 1; border-radius: 44px; background: var(--color-paper-2); border: 1px solid var(--color-rule-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-xs); }
.flow__core b { font-size: var(--text-lg); letter-spacing: -0.03em; }
.flow__out li { padding: var(--space-md) var(--space-lg); background: var(--color-paper-2); border: 1px solid color-mix(in oklab, var(--color-accent) 45%, var(--color-rule)); border-radius: var(--radius-inner); }
.flow__out b { display: block; font-size: 1.0625rem; font-weight: 600; }
.flow__out small { display: block; font-size: var(--text-sm); color: var(--color-muted); }

/* ── Cómo funciona ── */
.section--steps { background: var(--color-paper-2); color: var(--color-ink); border-block: 1px solid var(--color-rule); }
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.step { position: relative; padding: var(--space-xl) 0 var(--space-xl) var(--space-lg); border-left: 1px solid var(--color-rule); min-height: 46vh; display: flex; flex-direction: column; justify-content: center; }
.step::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--color-accent); transform: scaleY(0); transform-origin: top; transition: transform var(--dur-long) var(--ease-out); }
.step.is-active::before { transform: scaleY(1); }
.step__n { font-size: var(--text-sm); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-muted); }
.step h3 { margin-top: var(--space-xs); font-size: clamp(1.375rem, 1vw + 1rem, 1.875rem); letter-spacing: -0.03em; color: var(--color-muted); transition: color var(--dur-short) var(--ease-out); }
.step p { margin-top: var(--space-sm); max-width: 44ch; color: var(--color-muted); }
.step.is-active .step__n { color: var(--color-accent-ink); }
.step.is-active h3 { color: var(--color-ink); }
.step__video { display: none; }
.story__stage { position: sticky; top: calc(50vh - min(19vw, 290px)); }
.stage__screen { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-card); overflow: hidden; background: var(--color-paper); box-shadow: 0 0 0 1px var(--color-rule-2); }
.stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--dur-long) var(--ease-in-out); }
.stage__video.is-on { opacity: 1; }
.stage__progress { margin-top: var(--space-md); height: 2px; background: var(--color-rule); overflow: hidden; }
.stage__progress i { display: block; height: 100%; background: var(--color-accent); transform: scaleX(0.143); transform-origin: left; transition: transform var(--dur-long) var(--ease-out); }

/* ── Funciones: recortes de la app real ── */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: row dense; gap: var(--space-md); }
.tile { display: flex; flex-direction: column; border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); overflow: hidden; }
.tile__shot { flex: 1; min-height: 220px; border-bottom: 1px solid var(--color-rule); background: var(--color-app); }
.tile__shot > img { object-position: top left; }
.tile__text { padding: var(--space-lg); }
.tile h3 { font-size: var(--text-xl); letter-spacing: -0.03em; }
.tile p { margin-top: var(--space-xs); color: var(--color-muted); }
.tile--cal { grid-column: span 4; grid-row: span 2; }
.tile--cal .tile__shot { min-height: 420px; }
.tile--load, .tile--roles { grid-column: span 2; }
.tile--load .tile__shot, .tile--roles .tile__shot { flex: none; min-height: 0; aspect-ratio: 640 / 468; }
.tile--roles .tile__shot { aspect-ratio: 760 / 522; }
.tile--crit, .tile--tree { grid-column: span 3; }
.tile--crit .tile__shot > img { object-position: top center; }

/* ── Técnicos (siempre oscuro) ── */
.section--ink {
  background: var(--color-paper); color: var(--color-ink); overflow: clip;
}
.tech { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3xl); align-items: center; }
.tech h2 { font-size: clamp(2rem, 3.4vw + 0.6rem, 3.75rem); line-height: 1; letter-spacing: -0.045em; max-width: 16ch; }
.tech .lead { margin-top: var(--space-lg); color: var(--color-muted); }
.checks { display: grid; gap: var(--space-md); margin-top: var(--space-xl); padding-top: var(--space-xl); border-top: 1px solid var(--color-rule); }
.checks li { color: var(--color-muted); padding-left: var(--space-lg); position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 6px; border-left: 2px solid var(--color-accent-ink); border-bottom: 2px solid var(--color-accent-ink); transform: rotate(-45deg); }
.checks b { color: var(--color-ink); font-weight: 600; }
.tech__media { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 0; padding-block: var(--space-lg) var(--space-2xl); }
.tech__media .phone { width: min(46%, 290px); }
.phone--back { margin-top: var(--space-3xl); margin-right: -6%; }
.phone--front { z-index: 1; }

/* ── Foto ── */
.photo { position: relative; min-height: min(72vh, 680px); display: flex; align-items: flex-end; overflow: clip; }
.photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--photo-scrim) 0%, var(--photo-scrim) 25%, transparent 85%); }
.photo__text { position: relative; z-index: 1; padding-block: var(--space-3xl); color: var(--photo-ink); }
.photo__text h2 { font-size: clamp(2rem, 4vw + 0.6rem, 4.5rem); line-height: 1; letter-spacing: -0.045em; max-width: 18ch; color: var(--photo-ink); }
.photo__text p { margin-top: var(--space-md); font-size: var(--text-lead); color: var(--photo-ink); }

/* ── Planes ── */
.billing-grupo { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.billing { display: inline-flex; padding: var(--space-2xs); border-radius: var(--radius-pill); background: var(--color-paper-3); }
.billing button { height: 44px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-muted); font-weight: 600; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.billing button:hover { color: var(--color-ink); }
.billing button.is-on { background: var(--color-paper-2); color: var(--color-ink); box-shadow: 0 0 0 1px var(--color-rule-2); }
.billing em { font-style: normal; color: var(--color-ok); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); overflow: hidden; }
/* Cada plan ocupa 7 filas de la rejilla común (subgrid): título, precio, botón y listas quedan alineados entre columnas. */
.plan { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; padding: var(--space-xl) var(--space-lg); }
.plan + .plan { border-left: 1px solid var(--color-rule); }
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.plan h3 { font-size: var(--text-xl); letter-spacing: -0.03em; }
.plan__badge { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0; padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-accent) 16%, var(--color-paper-2)); color: var(--color-accent-ink); }
.plan__desc { margin-top: var(--space-sm); color: var(--color-muted); font-size: 0.9375rem; }
.plan__precio { display: flex; flex-direction: column; justify-content: end; margin: var(--space-lg) 0; }
.plan__desde { min-height: 1.4em; color: var(--color-muted); font-size: var(--text-sm); }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs); }
.plan__price b { font-size: clamp(2rem, 1.6vw + 1.2rem, 2.5rem); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.plan__price span { color: var(--color-muted); font-size: var(--text-sm); }
.plan__nota { margin-top: var(--space-md); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-inner); background: var(--color-paper-3); color: var(--color-ink-2); font-size: var(--text-sm); }
.plan__incluye { margin-top: var(--space-xl); color: var(--color-muted); font-size: var(--text-sm); }
.plan__list { display: grid; gap: var(--space-sm); margin-top: var(--space-md); align-content: start; font-size: 0.9375rem; color: var(--color-ink-2); }
.plan__list li { position: relative; padding-left: 18px; }
.plan__list li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }
.plan__list small { display: block; color: var(--color-muted); font-size: var(--text-sm); }
.plans__note { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }

/* ── Preguntas ── */
.section--faq { border-top: 1px solid var(--color-rule); }
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-2xl) var(--space-3xl); align-items: start; }
.faq h2 { max-width: 12ch; }
.faq__list details { border-bottom: 1px solid var(--color-rule); }
.faq__list details:first-child { border-top: 1px solid var(--color-rule); }
.faq__list summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding: var(--space-lg) 0; font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.015em; cursor: pointer; list-style: none; border-radius: 4px; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; flex-shrink: 0; width: 12px; height: 12px; border-right: 2px solid var(--color-muted); border-bottom: 2px solid var(--color-muted); transform: translateY(-3px) rotate(45deg); transition: transform var(--dur-short) var(--ease-in-out); }
.faq__list details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq__list summary:hover { color: var(--color-accent-ink); }
.faq__list details p { padding: 0 var(--space-2xl) var(--space-lg) 0; color: var(--color-muted); max-width: 60ch; }

/* ── Cierre ── */
.final { position: relative; padding: var(--section-gap-l) 0; border-top: 1px solid var(--color-rule); }
.final__grid { -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 50%, var(--color-ink) 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 30% 50%, var(--color-ink) 20%, transparent 75%); }
.final__inner { position: relative; }
.final h2 { font-size: clamp(2.1rem, 5.4vw + 0.4rem, 5.75rem); line-height: 0.96; letter-spacing: -0.05em; max-width: 16ch; }
.final__side { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg) var(--space-xl); margin-top: var(--space-xl); }
.final .lead { color: var(--color-muted); }

/* ── Pie ── */
.foot { border-top: 1px solid var(--color-rule); padding: var(--space-xl) 0; }
.foot__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md) var(--space-lg); flex-wrap: wrap; }
.brand--foot { font-size: 1.125rem; }
.foot__links { display: flex; gap: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.foot__links a { transition: color var(--dur-short) var(--ease-out); }
.foot__links a:hover { color: var(--color-ink); }
.foot small { color: var(--color-muted); font-size: var(--text-sm); }

/* ── Adaptación ── */
@media (max-width: 1100px) {
  .sectors__inner { grid-template-columns: minmax(0, 1fr); }
  .sectors__list { border-top: 1px solid var(--color-rule); }
}
@media (max-width: 1020px) {
  .nav__links { display: none; }
  .story { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story__stage { display: none; }
  .step { min-height: 0; padding: var(--space-lg) 0 var(--space-lg) var(--space-lg); }
  .step::before { transform: scaleY(1); opacity: 0.35; }
  .step .step__n { color: var(--color-accent-ink); } .step h3 { color: var(--color-ink); }
  .step__video { display: block; width: 100%; margin-top: var(--space-md); border-radius: var(--radius-inner); box-shadow: 0 0 0 1px var(--color-rule-2); background: var(--color-paper); aspect-ratio: 16 / 10; object-fit: cover; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--cal, .tile--crit, .tile--tree { grid-column: span 2; grid-row: auto; }
  .tile--load, .tile--roles { grid-column: span 1; }
  .tile--cal .tile__shot { min-height: 300px; }
  .tech { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan:nth-child(odd) { border-left: 0; }
  .plan:nth-child(n+3) { border-top: 1px solid var(--color-rule); }
  .faq { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .flow { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); justify-items: center; }
  .flow__lines { display: none; }
  .flow__in, .flow__out { width: min(100%, 460px); }
  .flow__core { width: 140px; border-radius: 36px; }
}
@media (max-width: 720px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--color-rule); }
  .sectors__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sectors__list li:nth-child(n+7) { border-bottom: 1px solid var(--color-rule); }
  .sectors__list li:nth-child(n+10) { border-bottom: 0; }
  .hero__stage .laptop { width: 100%; margin: 0; }
  .laptop__base { width: 104%; margin-left: -2%; }
  .hero__stage { padding-bottom: 14%; }
  .phone--hero { right: 0; bottom: 0; width: 30%; }
  .hero__caption { margin-top: var(--space-lg); max-width: 64%; }
}
@media (max-width: 480px) {
  .sectors__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sectors__list li:nth-child(n+10) { border-bottom: 1px solid var(--color-rule); }
  .sectors__list li:nth-child(n+11) { border-bottom: 0; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .nav__cta .link { display: none; }
  .hero { padding: var(--space-xl) 0 0; }
  .hero h1 br { display: none; }
  .hero__side .btn { width: 100%; }
  .head { margin-bottom: var(--space-xl); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile--cal, .tile--crit, .tile--tree, .tile--load, .tile--roles { grid-column: auto; }
  .plan { padding: var(--space-lg); }
  .faq__list details p { padding-right: 0; }
  .final__side .btn { width: 100%; }
  .tech__media .phone { width: 50%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─────────── Entrar / crear cuenta (ventana sobre la landing) ─────────── */
:where(.acceso button:not(.btn)) { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.acceso { margin: auto; padding: 0; border: 0; background: transparent; color: var(--color-ink); width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: visible; }
.acceso::backdrop { background: rgba(13, 12, 19, .42); backdrop-filter: blur(4px); }
.acceso[open] .acceso__caja { animation: acceso-entra .35s var(--ease-out); }
@keyframes acceso-entra { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.acceso__caja { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--color-paper-2); border: 1px solid var(--color-rule); border-radius: 24px; padding: 32px; max-height: calc(100dvh - 32px); overflow-y: auto; }
.acceso__cerrar { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--color-muted); }
.acceso__cerrar:hover { background: var(--color-paper-3); color: var(--color-ink); }
.acceso__cerrar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.acceso__marca { font-size: 17px; }
.acceso__plan { align-self: flex-start; height: 26px; padding: 0 12px; border-radius: 13px; background: color-mix(in oklab, var(--color-accent) 12%, transparent); color: var(--color-accent-ink); font-size: 13px; font-weight: 650; line-height: 26px; }
.acceso h2 { font-size: 28px; letter-spacing: -0.035em; line-height: 1.1; margin-top: 4px; }
.acceso__sub { color: var(--color-muted); font-size: 15px; margin-top: -6px; }
.acceso__o { display: flex; align-items: center; gap: 12px; color: var(--color-muted); font-size: 13.5px; }
.acceso__o::before, .acceso__o::after { content: ""; flex: 1; height: 1px; background: var(--color-rule); }
.campo { display: grid; gap: 6px; }
.campo > span:first-child { font-size: 14px; font-weight: 600; color: var(--color-ink-2); }
.campo input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--color-rule); border-radius: 12px; background: var(--color-paper-2); color: var(--color-ink); font: inherit; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.campo input::placeholder { color: var(--color-muted); }
.campo input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-accent) 22%, transparent); }
.campo__clave { position: relative; display: block; }
.campo__clave input { padding-right: 64px; }
.campo__ver { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 10px; border-radius: 9px; color: var(--color-muted); font-size: 13.5px; font-weight: 600; }
.campo__ver:hover { color: var(--color-ink); background: var(--color-paper-3); }
.acceso__olvido { align-self: flex-start; margin-top: -4px; color: var(--color-muted); font-size: 14px; font-weight: 600; }
.acceso__olvido:hover, .acceso__cambio button:hover { color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; }
.acceso__aviso { padding: 12px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.45; background: color-mix(in oklab, var(--color-bad) 14%, transparent); color: var(--color-error); }
.acceso__aviso.es-bueno { background: color-mix(in oklab, var(--color-ok) 16%, transparent); color: var(--color-success); }
.acceso__aviso button { display: inline; margin-left: 4px; color: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.acceso .btn[disabled] { opacity: .6; pointer-events: none; }
.acceso__cambio { text-align: center; color: var(--color-muted); font-size: 14.5px; }
.acceso__cambio button { color: var(--color-accent-ink); font-weight: 650; }
@media (max-width: 640px) { .acceso__caja { padding: 26px 20px; } .acceso h2 { font-size: 24px; } }

/* ─────────── Entrada del pulpo (solo con html.intro; main.js la anima y la quita) ─────────── */
.intro-pulpo { display: none; }
html.intro .intro-pulpo { display: grid; place-items: center; position: fixed; inset: 0; z-index: 1000; background: var(--color-paper); cursor: pointer; }
html.intro .nav .brand img { visibility: hidden; }
.intro-pulpo svg { width: min(260px, 52vw); height: auto; overflow: visible; will-change: transform; }
.intro-pulpo svg * { transform-box: fill-box; }
.intro-pulpo__cabeza { transform-origin: 50% 100%; opacity: 0; }
.intro-pulpo__ojos circle { transform-origin: center; }
.intro-t { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
