/* HUB · versión 2
   Identidad Hipermedia Factory: blanco y gris cálido, tinta Black 7 C, un rojo Pantone 485 C,
   franja partida rojo/gris, titulares que mezclan peso fino y negrita. */

@font-face { font-family: "Hanken Grotesk"; src: url(fonts/hanken-grotesk.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/ibm-plex-mono-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(fonts/hanken-grotesk-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --paper: #FFFFFF;
  --paper-2: #F4F3F1;
  --paper-3: #EAE8E5;
  --line: #DEDBD8;
  --line-2: #C6C2BE;
  --ink: #3D3935;
  --ink-2: #605B56;
  --ink-3: #736E69;
  --red: #DA291C;
  --red-dark: #B9200F;
  --red-soft: #FBE7E4;
  --logo-a: #DA291C;
  --logo-b: #3D3935;
  --graphite: #3D3935;
  --shadow: 61, 57, 53;

  --f: "Hanken Grotesk", Arial, Helvetica, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --sec: clamp(80px, 10vw, 136px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1E1C1A; --paper-2: #262321; --paper-3: #312D2A; --line: #3A3633; --line-2: #57514C;
    --ink: #F2F0ED; --ink-2: #C3BDB7; --ink-3: #A8A19B; --red-soft: #43211C; --logo-a: #FFFFFF; --logo-b: #FFFFFF; --win: #3B3734; --win-bar: #5A544F; --op-label: #F2F0ED; --graphite: #121110; --shadow: 0, 0, 0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1E1C1A; --paper-2: #262321; --paper-3: #312D2A; --line: #3A3633; --line-2: #57514C;
  --ink: #F2F0ED; --ink-2: #C3BDB7; --ink-3: #A8A19B; --red-soft: #43211C; --logo-a: #FFFFFF; --logo-b: #FFFFFF; --win: #3B3734; --win-bar: #5A544F; --op-label: #F2F0ED; --graphite: #121110; --shadow: 0, 0, 0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--f); -webkit-font-smoothing: antialiased; scrollbar-color: var(--line-2) var(--paper); caret-color: var(--red); }
::selection { background: var(--red); color: #fff; }
svg { display: block; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--red); color: #fff; padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.lt { font-weight: 280; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 400; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

/* Franja partida (gráfica auxiliar del manual) */
.band { display: flex; height: 5px; }
.band i { flex: 1; background: var(--red); }
.band i + i { background: #3D3935; }
.band-xl { height: 14px; }

/* Botones: esquinas rectas */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 22px; font-weight: 700; font-size: 0.9375rem; text-decoration: none; border: 1.5px solid transparent; border-radius: 0; white-space: nowrap; transition: background-color 180ms var(--ease-out), color 180ms, border-color 180ms, transform 180ms var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; transition: transform 260ms var(--ease-out); }
.btn:hover .ic { transform: translateX(3px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-line:hover .ic, .btn-ink:hover .ic { transform: translateY(2px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--red); color: #fff; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 1rem; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); transition: box-shadow 200ms; }
.top.is-stuck { box-shadow: 0 1px 0 var(--line); }
.top-in { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: inline-grid; justify-items: end; text-decoration: none; line-height: 1; color: var(--ink); }
.logo-word { font-size: 1.75rem; font-weight: 300; letter-spacing: -0.035em; }
.logo-word { color: var(--logo-b); }
.logo-word b { color: var(--logo-a); font-weight: 800; letter-spacing: -0.04em; }
.logo-tag { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0; margin-top: 1px; color: var(--logo-b); }
.logo-tag em { font-style: normal; color: var(--logo-a); }
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a { font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--ink-2); padding: 6px 0; transition: color 150ms; }
.nav a { box-shadow: inset 0 -2px 0 transparent; }
.nav a:hover { color: var(--ink); box-shadow: inset 0 -2px 0 var(--red); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid var(--line); color: var(--ink); transition: border-color 150ms; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn .ic { width: 18px; height: 18px; }
.ic-sun { display: none; }
:root[data-theme="dark"] .ic-sun { display: block; }
:root[data-theme="dark"] .ic-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ic-sun { display: block; }
  :root:not([data-theme="light"]) .ic-moon { display: none; }
}

/* ───────── Héroe ───────── */
.hero { padding: clamp(28px, 6vh, 72px) 0 clamp(72px, 9vw, 120px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 40px 56px; align-items: center; }
.hub-word { font-size: clamp(7rem, 19.5vw, 18.5rem); font-weight: 850; line-height: 0.8; letter-spacing: -0.04em; margin-left: -0.05em; color: var(--ink); }
.hub-sub { font-size: clamp(1.55rem, 2.7vw, 2.6rem); font-weight: 300; line-height: 1.12; letter-spacing: -0.025em; margin-top: 0.55em; }
.hub-sub i { font-style: italic; }
.hub-sub b { font-weight: 800; }
.hub-line { font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.5; color: var(--ink-2); max-width: 36ch; margin-top: 18px; }
.hub-line b { font-weight: 700; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.orbit-fig { justify-self: end; width: min(100%, 540px); display: grid; gap: 10px; }
.orbit { --rad: 46%; position: relative; aspect-ratio: 1; }
.orbit-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-rings circle { fill: none; stroke: var(--line-2); stroke-width: 0.22; vector-effect: non-scaling-stroke; }
.orbit-rings .dash { stroke-dasharray: 3 4; }
.core-dot {
  position: absolute; left: 50%; top: 50%; width: 31%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--red); color: #fff; display: grid; place-content: center; text-align: center; gap: 2px;
}
.core-dot b { font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 850; letter-spacing: -0.01em; line-height: 1; }
.chip {
  position: absolute; left: calc(50% + var(--x) * var(--rad)); top: calc(50% + var(--y) * var(--rad)); transform: translate(-50%, -50%); padding: 8px 13px; background: var(--paper); border: 1px solid var(--line-2);
  font-size: 0.875rem; font-weight: 500; color: var(--ink); white-space: nowrap; line-height: 1.1; text-decoration: none;
  transition: background-color 220ms var(--ease-out), color 220ms, border-color 220ms, opacity 500ms var(--ease-out), scale 500ms var(--ease-out);
}
.chip { display: inline-flex; align-items: center; gap: 7px; }
.chip .ic { width: 15px; height: 15px; color: var(--red); transition: color 220ms; }
.chip:hover, .chip:focus-visible { background: var(--red); color: #fff; border-color: var(--red); }
.chip:hover .ic, .chip:focus-visible .ic { color: #fff; }
.spoke { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.55; transition: stroke 300ms var(--ease-out), opacity 300ms; }
.spoke.on { stroke: var(--red); stroke-width: 1.6; opacity: 1; }
.spoke-dot { fill: var(--ink); opacity: 0.55; transition: fill 300ms, opacity 300ms; }
.spoke-dot.on { fill: var(--red); opacity: 1; }
.orbit.enter .chip { opacity: 0; scale: 0.85; }
.orbit.enter .core-dot { scale: 0.9; }
.core-dot { transition: scale 700ms var(--ease-out); }
.orbit-cap { text-align: center; font-size: 0.875rem; color: var(--ink-3); }

/* ───────── Secciones ───────── */
.sec { padding: var(--sec) 0; }
.h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.center { text-align: center; }

/* Muchas puertas */
.doors { background: var(--paper-2); }
.doors-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) auto minmax(0, 0.85fr); gap: 28px; align-items: stretch; margin-top: clamp(40px, 5vw, 64px); }
.panel { background: var(--paper); padding: 26px 28px; min-height: 330px; display: grid; grid-template-rows: auto 1fr; }
.panel-k { font-size: 1.125rem; font-weight: 400; color: var(--ink-2); }
.panel-k b { font-weight: 800; color: var(--ink); }
.panel-today { background: var(--paper-3); }
.panel-k.mono { font-size: 0.75rem; color: var(--ink-3); font-weight: 400; }
.win-stage { position: relative; margin-top: 10px; }
.windows { position: relative; min-height: 400px; }
.win {
  --tx: 0px; --ty: 0px; position: absolute; left: calc(var(--l) * 1%); top: calc(var(--t) * 1%); width: 31%; max-width: 220px; background: var(--win, #fff); color: var(--ink);
  box-shadow: 0 14px 26px -14px rgba(var(--shadow), 0.45), 0 1px 2px rgba(var(--shadow), 0.12);
  transform: translate(var(--tx), var(--ty)) rotate(var(--r)); transition: transform 760ms var(--ease-out) var(--d, 0ms), opacity 500ms var(--ease-out) var(--d, 0ms), box-shadow 200ms;
  cursor: grab; user-select: none; touch-action: pan-y;
}
.win-bar { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; background: var(--win-bar, #3D3935); }
.win-bar i { width: 6px; height: 6px; border-radius: 50%; background: #9A948F; }
.win-body { display: flex; align-items: center; gap: 11px; padding: 18px 16px 20px; font-size: 1rem; font-weight: 500; white-space: nowrap; }
.win-body .ic { width: 20px; height: 20px; }
.win.dragging { cursor: grabbing; transition: none; box-shadow: 0 24px 40px -18px rgba(var(--shadow), 0.55), 0 2px 4px rgba(var(--shadow), 0.15); }
.win-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); font-weight: 300; letter-spacing: -0.02em; color: var(--ink-2); opacity: 0; transition: opacity 500ms var(--ease-out) 700ms; pointer-events: none; }
.win-empty b { font-weight: 800; color: var(--ink); }
.panel-today.is-gathered .win-empty { opacity: 1; }
.windows.gathered .win { transform: translate(var(--gx), var(--gy)) rotate(0deg) scale(0.16); opacity: 0; pointer-events: none; }
.doors-go { align-self: center; display: grid; justify-items: center; gap: 10px; background: none; border: 0; padding: 0; color: var(--ink); }
.doors-go-c { width: 60px; height: 60px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; transition: transform 300ms var(--ease-out), background-color 200ms; }
.doors-go-c .ic { width: 26px; height: 26px; transition: transform 400ms var(--ease-out); }
.doors-go:hover .doors-go-c { background: var(--red-dark); transform: scale(1.05); }
.doors-go[aria-pressed="true"] .doors-go-c .ic { transform: rotate(180deg); }
.doors-go-t { font-size: 0.8125rem; font-weight: 700; max-width: 9em; text-align: center; line-height: 1.25; }
.doors-hint { margin-top: 16px; text-align: center; font-size: 0.875rem; color: var(--ink-3); }
.app-tile.absorb { animation: absorb 700ms var(--ease-out); }
@keyframes absorb { 0% { transform: scale(1); } 35% { transform: scale(1.12); } 100% { transform: scale(1); } }
.panel-hub { justify-items: center; align-content: center; gap: 22px; }
.panel-hub .panel-k { justify-self: start; align-self: start; }
.app-tile { width: 128px; height: 128px; border-radius: 28px; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 2.4rem; font-weight: 850; letter-spacing: -0.02em; box-shadow: 0 22px 36px -22px rgba(var(--shadow), 0.55); }
.hub-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hub-tags li { padding: 6px 11px; border: 1px solid var(--line-2); font-size: 0.8125rem; font-weight: 500; }

/* Fórmula */
.formula { text-align: center; font-size: clamp(2.4rem, 1.2rem + 5.6vw, 6rem); font-weight: 850; line-height: 1; letter-spacing: -0.04em; }
.formula .op { color: var(--red); font-weight: 300; }
.formula-figs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; align-items: center; margin-top: clamp(48px, 6vw, 80px); }
.ffig { display: grid; justify-items: center; gap: 22px; }
.ffig figcaption { text-align: center; display: grid; gap: 2px; }
.ffig figcaption b { font-size: 1.0625rem; font-weight: 700; }
.ffig figcaption span { font-size: 0.875rem; color: var(--ink-3); }
.fop { color: var(--red); font-size: 2.6rem; font-weight: 300; line-height: 1; margin-bottom: 64px; }
.rings { position: relative; width: 190px; aspect-ratio: 1; }
.rings i { position: absolute; border-radius: 50%; border: 1px solid var(--line-2); }
.rings i:nth-child(1) { inset: 0; }
.rings i:nth-child(2) { inset: 13%; }
.rings i:nth-child(3) { inset: 26%; }
.rings b { position: absolute; inset: 33%; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 0.875rem; font-weight: 800; letter-spacing: 0.03em; }
.tiles { display: grid; grid-template-columns: repeat(5, 46px); gap: 6px; }
.tile { height: 58px; display: grid; place-items: center; background: var(--paper-3); border: 0; color: var(--ink-2); transition: background-color 220ms var(--ease-out), color 220ms; }
.tile .ic { width: 18px; height: 18px; }
.tile:hover { color: var(--ink); background: var(--line); }
.tile[aria-pressed="true"] { background: var(--red); color: #fff; }
.app-tile-lg { width: 168px; height: 168px; border-radius: 34px; align-content: center; gap: 8px; font-size: 2.6rem; }
.app-tile-lg span { line-height: 1; }
.app-tile-lg small { font-size: 0.6875rem; font-weight: 700; background: #fff; color: #3D3935; padding: 3px 8px; letter-spacing: 0.02em; }
.app-tile-lg em { font-style: normal; font-size: 0.75rem; font-weight: 600; opacity: 0.92; }

/* Personalización */
.custom { background: var(--red); color: #fff; padding: var(--sec) 0; }
.custom ::selection { background: #fff; color: var(--red); }
.custom-word { font-size: clamp(3.2rem, 1rem + 10.6vw, 11rem); font-weight: 850; line-height: 0.92; letter-spacing: -0.045em; }
.custom-word b { font-weight: 850; letter-spacing: -0.04em; }
.custom-sub { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.25rem); font-weight: 300; letter-spacing: -0.02em; margin-top: 18px; }
.custom-sub b { font-weight: 800; }
.custom-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px clamp(40px, 6vw, 88px); align-items: center; margin-top: clamp(48px, 6vw, 72px); }
.layers { display: grid; gap: 8px; }
.layers li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; font-size: 1.0625rem; }
.layers li b { font-weight: 700; }
.layers li span { font-size: 0.8125rem; font-weight: 500; }
.layers li:nth-child(1) { background: #C42518; }
.layers li:nth-child(2) { background: #A52820; margin-inline: 22px; }
.layers li:nth-child(3) { background: #852F27; margin-inline: 44px; }
.layers li:nth-child(4) { background: #63352F; margin-inline: 66px; }
.layers li:nth-child(5) { background: #3D3935; color: #fff; margin-inline: 88px; }
.samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sample { background: #fff; color: #3D3935; padding: 12px 12px 14px; transition: transform 320ms var(--ease-out); }
.sample:hover { transform: translateY(-4px); }
.sample-ui { --rr: 6px; display: grid; gap: 9px; align-content: start; min-height: 150px; }
.sample-ui.alt { --rr: 0px; }
.sample-ui.round { --rr: 14px; }
.sample-top { display: flex; align-items: center; gap: 8px; }
.sample-tile { width: 24px; height: 24px; border-radius: var(--rr); background: var(--s); color: #fff; display: grid; place-items: center; font-size: 0.5rem; font-weight: 800; letter-spacing: 0.02em; }
.sample-ui .dock i { display: grid; place-items: center; color: var(--s); }
.sample-ui .dock .ic { width: 12px; height: 12px; }
.sample-ui .dock i:first-child .ic { color: #fff; }
.sample-ui .bar { display: block; height: 7px; width: 46%; background: var(--s); border-radius: min(var(--rr), 4px); }
.sample-ui .scr { display: block; height: 58px; background: var(--s-soft); border-radius: var(--rr); }
.sample-ui .dock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sample-ui .dock i { height: 22px; background: var(--s-soft); border-radius: var(--rr); }
.sample-ui .dock i:first-child { background: var(--s); }
.sample-ui.round .dock { grid-template-columns: repeat(4, 1fr); }
.sample-ui.round .dock i { border-radius: 999px; }
.sample p { font-size: 0.8125rem; font-weight: 700; margin-top: 10px; display: grid; }
.sample p small { font-weight: 400; color: #736E69; white-space: nowrap; }

/* 10 módulos: cada uno, por dentro, en un móvil */
.mods { background: var(--paper-2); }
.mods-k { margin-top: 14px; }
.showcase {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head phone" "detail phone" "tabs phone"; grid-template-rows: auto 1fr auto;
  gap: 36px clamp(40px, 7vw, 104px);
}
.mods-head { grid-area: head; }
.mod-detail { grid-area: detail; align-self: center; display: grid; justify-items: start; }
.md-name { font-size: clamp(2.6rem, 1.4rem + 3.4vw, 4.75rem); font-weight: 850; line-height: 0.95; letter-spacing: -0.045em; margin-top: 12px; }
.md-claim { font-size: clamp(1.25rem, 1rem + 0.9vw, 1.875rem); font-weight: 300; line-height: 1.2; letter-spacing: -0.02em; margin-top: 12px; max-width: 24ch; }
.md-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.md-feats li { padding: 6px 11px; background: var(--paper); border: 1px solid var(--line-2); font-size: 0.8125rem; font-weight: 500; }
.md-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.md-add { background: transparent; border-color: var(--ink); color: var(--ink); }
.md-add:hover { background: var(--ink); color: var(--paper); }
.md-add[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.md-add[aria-pressed="true"]:hover { background: var(--red-dark); border-color: var(--red-dark); }
.md-add:hover .ic { transform: none; }
.md-count { font-size: 0.875rem; color: var(--ink-3); }
.mod-tabs { grid-area: tabs; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mt {
  display: grid; justify-items: start; gap: 18px; padding: 14px 14px 15px; background: var(--paper); border: 1px solid transparent; text-align: left;
  font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; transition: background-color 200ms var(--ease-out), color 200ms, border-color 200ms;
}
.mt .ic { width: 20px; height: 20px; color: var(--red); transition: color 200ms; }
.mt:hover { border-color: var(--line-2); }
.mt[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.mt[aria-selected="true"] .ic { color: #fff; }

.phone-col { grid-area: phone; align-self: center; display: grid; justify-items: center; gap: 16px; }
.phone { --b: #DA291C; width: 300px; padding: 11px; border-radius: 47px; background: #1E1C1A; box-shadow: 0 0 0 1px var(--line), 0 44px 64px -32px rgba(var(--shadow), 0.6); }
.phone-screen {
  position: relative; height: clamp(520px, 100svh - 190px, 600px); border-radius: 36px; overflow: hidden; background: #fff; color: #3D3935;
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; font-size: 13px; line-height: 1.35; touch-action: pan-y; user-select: none; cursor: grab;
}
.phone-screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 88px; height: 25px; margin-left: -44px; border-radius: 13px; background: #1E1C1A; z-index: 2; }
.phone-screen:focus-visible { outline-offset: 8px; }
.phone-screen .ic { width: 17px; height: 17px; }
.ps-status { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 2px 26px 0 30px; font-size: 12px; font-weight: 700; }
.ps-sys { display: flex; align-items: flex-end; gap: 2px; }
.ps-sys i { width: 3px; height: 5px; border-radius: 1px; background: #3D3935; }
.ps-sys i + i { height: 7px; }
.ps-sys i + i + i { height: 9px; }
.ps-head { display: flex; align-items: center; gap: 10px; padding: 6px 16px 12px; border-bottom: 1px solid #EAE8E5; }
.ps-head b { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.ps-logo { width: 30px; height: 30px; border-radius: 9px; background: var(--b); color: #fff; display: grid; place-items: center; font-size: 9px; font-weight: 850; letter-spacing: 0.02em; transition: background-color 300ms; }
.ps-av { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: #EAE8E5; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.ps-body { display: grid; align-content: start; gap: 12px; padding: 14px 16px; overflow: hidden; }
.ps-body[data-s="smarthub"] { grid-template-rows: minmax(0, 1fr) auto auto; align-content: stretch; }
.ps-dock { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; justify-items: center; height: 64px; padding: 0 12px 8px; border-top: 1px solid #EAE8E5; color: #A8A19B; }
.ps-dock i { display: grid; place-items: center; }
.ps-dock .ic { width: 20px; height: 20px; }
.ps-dock i.on { width: 46px; height: 46px; margin-top: -20px; border-radius: 50%; background: var(--b); color: #fff; box-shadow: 0 10px 18px -10px rgba(0, 0, 0, 0.5); transition: background-color 300ms; }
.phone-screen.swap .ps-body > * { animation: ps-in 520ms var(--ease-out) both; }
.phone-screen.swap .ps-body > :nth-child(2) { animation-delay: 70ms; }
.phone-screen.swap .ps-body > :nth-child(3) { animation-delay: 140ms; }
.phone-screen.swap .ps-body > :nth-child(4) { animation-delay: 210ms; }
.phone-screen.swap .ps-body > :nth-child(5) { animation-delay: 280ms; }
.phone-screen.swap .ps-dock i.on { animation: ps-pop 520ms var(--ease-out); }
@keyframes ps-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes ps-pop { 0% { transform: scale(0.7); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* Piezas de las pantallas */
.ps-h { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.ps-k { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #736E69; }
.ps-card { display: grid; justify-items: start; gap: 6px; padding: 14px; border-radius: 14px; background: #F4F3F1; }
.ps-card b { font-size: 15px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.ps-card small { font-size: 11.5px; color: #736E69; }
.ps-card.brand { background: var(--b); color: #fff; transition: background-color 300ms; }
.ps-card.brand .ps-k, .ps-card.brand small { color: rgba(255, 255, 255, 0.86); }
.ps-prog { justify-self: stretch; height: 6px; border-radius: 3px; background: rgba(0, 0, 0, 0.09); overflow: hidden; }
.ps-prog i { display: block; width: var(--p); height: 100%; border-radius: inherit; background: var(--b); }
.ps-card.brand .ps-prog { background: rgba(255, 255, 255, 0.3); }
.ps-card.brand .ps-prog i { background: #fff; }
.ps-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #EAE8E5; font-weight: 600; }
.ps-list li:last-child { border-bottom: 0; }
.ps-list .ic { color: var(--b); }
.ps-list small { margin-left: auto; font-size: 11px; font-weight: 500; color: #736E69; white-space: nowrap; }
.ps-rows li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #EAE8E5; }
.ps-rows li:last-child { border-bottom: 0; }
.ps-rows li > span { display: grid; gap: 1px; }
.ps-rows b { font-weight: 700; }
.ps-rows small { font-size: 11px; color: #736E69; }
.ps-btn { display: inline-flex; align-items: center; height: 30px; margin-top: 4px; padding: 0 14px; border-radius: 15px; background: #fff; color: var(--b); font-size: 12px; font-weight: 800; }
.ps-btn.solid { justify-content: center; height: 42px; border-radius: 12px; background: var(--b); color: #fff; font-size: 13px; transition: background-color 300ms; }
.ps-note { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #736E69; }
.phone-screen .ps-note .ic { width: 13px; height: 13px; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #EAE8E5; font-size: 11px; font-weight: 800; font-style: normal; }
.ps-mini { padding: 4px 9px; border: 1.5px solid var(--b); border-radius: 12px; color: var(--b); font-size: 11px; font-weight: 800; }
/* SmartHub */
.ps-chat { display: grid; align-content: end; gap: 8px; }
.bub { max-width: 84%; padding: 9px 12px; border-radius: 16px; }
.bub.me { justify-self: end; background: var(--b); color: #fff; border-bottom-right-radius: 4px; transition: background-color 300ms; }
.bub.bot { justify-self: start; background: #F4F3F1; border-bottom-left-radius: 4px; }
.src { display: flex; align-items: center; gap: 5px; margin-top: 8px; padding-top: 7px; border-top: 1px solid #DEDBD8; font-size: 11px; font-weight: 600; color: #605B56; }
.phone-screen .src .ic { width: 12px; height: 12px; color: var(--b); }
.dots { display: flex; gap: 4px; padding: 13px 14px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #A8A19B; animation: dot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: 150ms; }
.dots i:nth-child(3) { animation-delay: 300ms; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.ps-input { display: flex; align-items: center; justify-content: space-between; height: 42px; padding: 0 6px 0 14px; border: 1px solid #DEDBD8; border-radius: 21px; font-size: 12.5px; color: #8A847F; }
.ps-input span { width: 30px; height: 30px; border-radius: 50%; background: var(--b); color: #fff; display: grid; place-items: center; }
.phone-screen .ps-input .ic { width: 14px; height: 14px; }
/* HubNews */
.ps-alert { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--b) 12%, #fff); font-size: 12px; }
.ps-alert .ic { color: var(--b); }
.ps-news { border-radius: 14px; overflow: hidden; background: #F4F3F1; }
.ps-news .img { display: block; height: 108px; background: radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.35) 0 22px, transparent 23px), linear-gradient(135deg, var(--b), color-mix(in srgb, var(--b) 50%, #1E1C1A)); }
.ps-news div { display: grid; gap: 4px; padding: 12px 14px; }
.ps-news b { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
/* Biblioteca */
.ps-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; background: #F4F3F1; font-size: 12.5px; color: #8A847F; }
.doc-ic { width: 34px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--b) 12%, #fff); color: var(--b); }
.ps-end { display: grid; color: var(--b); }
/* Score */
.ps-points { display: grid; justify-items: center; padding: 16px; border-radius: 16px; background: var(--b); color: #fff; transition: background-color 300ms; }
.ps-points small { font-size: 11px; opacity: 0.86; }
.ps-points b { font-size: 40px; font-weight: 850; line-height: 1.05; letter-spacing: -0.03em; }
.ps-points span { margin-top: 4px; padding: 3px 9px; border-radius: 10px; background: rgba(255, 255, 255, 0.2); font-size: 11.5px; font-weight: 700; }
.ps-badges { display: flex; gap: 9px; }
.ps-badges i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #F4F3F1; color: #C6C2BE; }
.ps-badges i.on { background: color-mix(in srgb, var(--b) 14%, #fff); color: var(--b); }
/* Vital */
.ps-video { position: relative; display: grid; align-content: end; gap: 2px; height: 168px; padding: 14px; border-radius: 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--b) 62%, #fff), var(--b)); color: #fff; }
.ps-video .ps-k { color: rgba(255, 255, 255, 0.86); }
.ps-video b { font-size: 15px; font-weight: 800; }
.ps-video .play { position: absolute; left: 50%; top: 38%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: #fff; color: var(--b); display: grid; place-items: center; }
.ps-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ps-grid2 p { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: #F4F3F1; }
.ps-grid2 .ic { margin-bottom: 18px; color: var(--b); }
.ps-grid2 small { font-size: 11px; color: #736E69; }
/* Pulse */
.ps-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ps-scale i { height: 40px; border-radius: 12px; display: grid; place-items: center; background: #F4F3F1; font-size: 14px; font-weight: 800; font-style: normal; }
.ps-scale i.on { background: var(--b); color: #fff; }
.ps-bars { justify-self: stretch; display: flex; align-items: flex-end; gap: 5px; height: 40px; }
.ps-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--b) 25%, #fff); }
.ps-bars i:last-child { background: var(--b); }
/* Agenda */
.ps-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ps-week span { display: grid; justify-items: center; gap: 2px; padding: 8px 0; border-radius: 12px; font-size: 11px; font-weight: 600; color: #736E69; }
.ps-week b { font-size: 16px; font-weight: 800; color: #3D3935; }
.ps-week .on { background: var(--b); color: rgba(255, 255, 255, 0.86); }
.ps-week .on b { color: #fff; }
.ps-events time { width: 40px; font-size: 12px; font-weight: 800; }
.ps-events li.hl { margin-inline: -8px; padding-inline: 8px; border-radius: 10px; border-bottom-color: transparent; background: color-mix(in srgb, var(--b) 10%, #fff); }
.ps-events li.hl b { color: var(--b); }
/* Mi Espacio */
.ps-me { display: flex; align-items: center; gap: 12px; }
.ps-me span { display: grid; }
.ps-me b { font-size: 16px; font-weight: 800; }
.ps-me small { font-size: 11.5px; color: #736E69; }
.av.big { width: 52px; height: 52px; background: var(--b); color: #fff; font-size: 18px; }
.ps-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ps-stats span { display: grid; justify-items: center; padding: 12px 4px; border-radius: 14px; background: #F4F3F1; }
.ps-stats b { font-size: 18px; font-weight: 850; color: var(--b); }
.ps-stats small { font-size: 11px; color: #736E69; }

.phone-ctl { display: flex; align-items: center; gap: 6px; width: 300px; }
.pc-btn { width: 34px; height: 34px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line-2); color: var(--ink); transition: border-color 150ms, background-color 150ms; }
.pc-btn:hover { border-color: var(--ink); }
.pc-btn .ic { width: 18px; height: 18px; }
.pc-n { min-width: 48px; text-align: center; letter-spacing: 0.06em; }
.pc-brand { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.pc-l { font-size: 0.75rem; font-weight: 600; color: var(--ink-3); margin-right: 4px; }
.sw { width: 24px; height: 24px; display: grid; place-items: center; padding: 0; background: none; border: 0; border-radius: 50%; }
.sw::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--c); transition: box-shadow 200ms; }
.sw[aria-pressed="true"]::before { box-shadow: 0 0 0 2px var(--paper-2), 0 0 0 3.5px var(--ink); }

.core-bar { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: clamp(40px, 5vw, 64px); padding: 15px 18px; background: #3D3935; color: #fff; font-size: 0.9375rem; }
.core-bar .tag { background: var(--red); color: #fff; padding: 4px 9px; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.05em; }
/* Tecnología + Contenido + IA Segura: justo encima de la fórmula */
.venn { position: relative; width: min(100%, 470px); justify-self: center; }
.venn-top { width: min(100%, 520px); margin: 0 auto clamp(56px, 7vw, 96px); }
.venn svg { width: 100%; height: auto; overflow: visible; }
.venn circle { stroke-width: 1.3; }
.venn .c1 { fill: var(--paper-3); fill-opacity: 0.7; stroke: var(--ink-2); }
.venn .c2 { fill: var(--red-soft); fill-opacity: 0.75; stroke: var(--red); }
.venn .c3 { fill: var(--paper-2); fill-opacity: 0.5; stroke: var(--ink-3); stroke-dasharray: 4 4; }
.venn text { font: 700 14px var(--f); fill: var(--ink); text-anchor: middle; }
.venn .venn-ic { color: var(--red); }
.venn .vg { transition: transform 1100ms var(--ease-out); }
.venn.apart .g1 { transform: translate(-34px, -14px); }
.venn.apart .g2 { transform: translate(34px, -14px); }
.venn.apart .g3 { transform: translate(0, 30px); }
.venn-hub { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); background: var(--red); color: #fff; font-weight: 800; font-size: 1rem; padding: 7px 13px; letter-spacing: 0.02em; transition: opacity 500ms var(--ease-out) 650ms, scale 600ms var(--ease-out) 650ms; }
.venn.apart .venn-hub { opacity: 0; scale: 0.6; }

/* Servicio */
.svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: clamp(36px, 4vw, 52px); }
.svc li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 20px; padding: clamp(24px, 3vw, 36px); background: var(--paper-2); }
.svc .ic { width: 26px; height: 26px; margin-top: 3px; color: var(--red); }
.svc p { font-size: clamp(1.1875rem, 1rem + 0.7vw, 1.625rem); font-weight: 300; line-height: 1.28; letter-spacing: -0.015em; text-wrap: pretty; }
.svc b { font-weight: 800; }

/* Dossier */
.dossier { background: var(--paper-2); }
.dossier-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px clamp(40px, 6vw, 96px); align-items: center; }
.doc {
  justify-self: center; display: block; width: min(100%, 460px); transform: rotate(-3deg);
  box-shadow: 0 34px 50px -24px rgba(61, 57, 53, 0.45), 0 4px 10px -4px rgba(61, 57, 53, 0.15);
  transition: transform 500ms var(--ease-out);
}
.doc img { display: block; width: 100%; height: auto; }
.dossier-in:hover .doc { transform: rotate(-1.5deg) translateY(-6px); }
.dossier-copy { display: grid; justify-items: start; gap: 28px; }
.meta { font-size: 0.875rem; color: var(--ink-3); margin-top: -16px; }

/* Hablemos */
.talk-in { display: grid; justify-items: center; text-align: center; }
.talk-k { margin-bottom: 18px; }
.talk-k span { color: var(--op-label, var(--red)); }
.talk-h { display: grid; justify-items: center; }
.talk-hub { font-size: clamp(5.5rem, 2rem + 13vw, 13rem); font-weight: 850; line-height: 0.82; letter-spacing: -0.045em; color: var(--red); }
.talk-q { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; margin-top: 0.18em; }
.talk-line { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: var(--ink-2); margin: 22px 0 30px; max-width: 40ch; }
.talk-note { font-size: 0.875rem; color: var(--ink-3); margin-top: 14px; min-height: 1.4em; }

/* Hipermedia Factory y sus clientes */
.clients { background: var(--paper-2); }
.clients-h { text-align: center; max-width: 22ch; margin-inline: auto; }
.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin-top: clamp(40px, 5vw, 64px); background: var(--line); border: 1px solid var(--line); }
.logos li { display: grid; place-items: center; height: clamp(120px, 12vw, 160px); padding: 20px; background: var(--paper); }
.logos img { width: auto; height: var(--h); max-width: 100%; object-fit: contain; opacity: 0.88; transition: opacity 200ms; }
.logos li:hover img { opacity: 1; }
:root[data-theme="dark"] .logos img { filter: invert(0.95); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logos img { filter: invert(0.95); } }

/* Pie */
.foot { padding-bottom: 36px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-top: 26px; font-size: 0.875rem; color: var(--ink-2); }
.foot-in a { text-decoration: none; }
.foot-in a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); }
.logo-sm .logo-word { font-size: 1.125rem; }
.foot-c { margin-left: auto; }

/* Responsive */
@media (max-width: 1100px) {
  .logos li { padding: 14px; }
  .logos img { height: calc(var(--h) * 0.75); }
  .hero-in, .custom-grid, .dossier-in { grid-template-columns: minmax(0, 1fr); }
  .orbit-fig { justify-self: center; width: min(100%, 480px); }
  .doors-grid { grid-template-columns: minmax(0, 1fr); }
  .doors-go { justify-self: center; }
  .doors-go-c .ic { transform: rotate(90deg); }
  .doors-go[aria-pressed="true"] .doors-go-c .ic { transform: rotate(270deg); }
  .formula-figs { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .fop { margin: 0 auto; }
  .mt { gap: 14px; padding: 12px; font-size: 0.8125rem; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .top-actions { margin-left: auto; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos li { height: 112px; padding: 16px; }
  .logos img { height: calc(var(--h) * 0.8); }
  .showcase { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "tabs" "phone" "detail"; grid-template-rows: auto; gap: 28px; }
  .mod-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); }
  .mod-tabs::-webkit-scrollbar { display: none; }
  .mt { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; font-size: 0.875rem; }
  .mt .ic { width: 16px; height: 16px; }
  .mod-detail { align-self: start; justify-items: center; text-align: center; }
  .md-claim { margin-inline: auto; }
  .md-feats, .md-row { justify-content: center; }
}
@media (max-width: 760px) {
  .top-in { height: 64px; gap: 16px; }
  .logo-word { font-size: 1.25rem; }
  .top-actions { gap: 8px; }
  .top-actions .btn { padding: 0 14px; font-size: 0.875rem; }
  .logo-tag { font-size: 0.6875rem; }
  .hub-word { font-size: clamp(6.4rem, 36vw, 10rem); }
  .orbit { --rad: 38%; }
  .custom-word { font-size: 10.2vw; }
  .talk-hub { font-size: 34vw; }
  .chip { font-size: 0.75rem; padding: 6px 9px; }
  .orbit-fig { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
  .panel { padding: 22px 20px; min-height: 290px; }
  .windows { min-height: 360px; }
  .win { width: 46%; max-width: none; left: calc(var(--lm) * 1%); top: calc(var(--tm) * 1%); }
  .win-body { padding: 14px 12px 15px; font-size: 0.875rem; gap: 8px; }
  .win-body .ic { width: 17px; height: 17px; }
  .layers li { padding: 12px 14px; font-size: 1rem; }
  .layers li:nth-child(2) { margin-inline: 10px; }
  .layers li:nth-child(3) { margin-inline: 20px; }
  .layers li:nth-child(4) { margin-inline: 30px; }
  .layers li:nth-child(5) { margin-inline: 40px; }
  .samples { gap: 8px; }
  .sample { padding: 8px 8px 10px; }
  .sample-ui { min-height: 110px; gap: 6px; }
  .sample-ui .scr { height: 40px; }
  .sample-ui .dock i { height: 12px; }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .foot-c { margin-left: 0; }
}
@media (max-width: 374px) {
  .icon-btn { display: none; }
  .phone, .phone-ctl { width: 272px; }
  .pc-l { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
}
