/* ==========================================================================
   Helix Corp SAS — Estilos (rediseño editorial)
   1. Variables  2. Base  3. Utilidades y botones  4. Navegación  5. Portada
   6. Secciones  7. Soluciones  8. Proceso  9. Conceptos  10. Propuesta
   11. Contacto  12. Pie  13. Maquetas de interfaz  14. Movimiento
   ========================================================================== */

/* ---------- 1. Variables (colores y tipografías editables) ---------- */
:root {
  --g-950: #08090b;
  --g-900: #101114;
  --g-850: #15171b;
  --g-800: #1c1f25;
  --g-700: #2a2e37;
  --line: rgba(255, 255, 255, .11);
  --text: #f1f2f4;
  --muted: #a4a9b6;

  --blue: #2156e8;        /* fondos y botones (texto blanco encima) */
  --blue-hi: #6d9bff;     /* acentos sobre fondo oscuro */
  --blue-ink: #1c49cf;    /* acentos sobre fondo claro */
  --violet: #8b5cff;

  --paper: #f2f1ec;
  --ink: #111216;
  --ink-muted: #555966;
  --ink-line: rgba(17, 18, 22, .14);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, .05, .25, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--g-900); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.02; letter-spacing: -.035em; }
p { text-wrap: pretty; }
a { color: inherit; }
svg, canvas { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 6px; }
.section--paper :focus-visible { outline-color: var(--blue-ink); }
.section--blue :focus-visible { outline-color: #fff; }
::selection { background: var(--blue); color: #fff; }

/* ---------- 3. Utilidades y botones ---------- */
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 200; padding: .7rem 1rem; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.kicker { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--font-mono); font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent, var(--blue-hi)); }
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--muted); }

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 56px; padding: .9rem 1.6rem; border: 1px solid transparent; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.15; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .2s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; transform: translateY(102%); transition: transform .45s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary::before { background: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { color: var(--ink); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { border-color: rgba(255, 255, 255, .32); color: var(--text); }
.btn-ghost::before { background: rgba(255, 255, 255, .12); }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { min-height: 44px; padding: .55rem 1.15rem; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-arrow { width: 19px; height: 19px; flex: none; transition: transform .35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(5px); }
.btn:hover .btn-arrow--down { transform: translateY(4px); }

/* ---------- 4. Navegación ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); transition: height .35s var(--ease); }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(13, 14, 17, .9); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  opacity: 0; transition: opacity .35s;
}
.site-header.is-scrolled { height: 60px; }
.site-header.is-scrolled::before, .site-header.nav-open::before { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); }
.brand-mark { width: 32px; height: 32px; flex: none; transition: transform .6s var(--ease), width .35s var(--ease), height .35s var(--ease); }
.brand-gap { stroke: var(--g-900); }
.brand:hover .brand-mark { transform: rotate(180deg); }
.is-scrolled .brand-mark { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .26em; margin-right: -.26em; }
.brand-sub { margin-top: .3rem; font-family: var(--font-mono); font-size: .56rem; letter-spacing: .4em; color: var(--muted); transition: opacity .25s, margin .35s var(--ease), font-size .35s; }
.is-scrolled .brand-sub { opacity: 0; margin-top: -.56rem; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.8rem; }
.nav-link { position: relative; display: inline-block; padding: .5rem 0; font-size: .94rem; font-weight: 500; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 1.5px; background: var(--blue-hi); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-link:hover, .nav-link[aria-current="true"] { color: var(--text); }
.nav-link:hover::after, .nav-link[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; width: 46px; height: 46px; padding: 0; flex: none; align-items: center; justify-content: center; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.nav-toggle-bars { position: relative; width: 18px; height: 10px; }
.nav-toggle-bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 8px; }
.nav-open .nav-toggle-bars span:nth-child(1) { top: 4px; transform: rotate(45deg); }
.nav-open .nav-toggle-bars span:nth-child(2) { top: 4px; transform: rotate(-45deg); }

@media (max-width: 959px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: fixed; inset: 60px 0 0 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2rem;
    padding: 1.5rem var(--gutter) 2.5rem; overflow-y: auto; background: rgba(13, 14, 17, .98);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .js .site-header { height: 60px; }
  .js .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav li { border-bottom: 1px solid var(--line); }
  .js .nav-link { display: block; padding: 1rem 0; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; letter-spacing: -.03em; color: var(--text); }
  .js .nav-link::after { display: none; }
  .js .site-nav .btn { min-height: 56px; font-size: 1.02rem; }
  .no-js .site-header { position: static; height: auto; padding: .75rem 0; background: var(--g-950); }
  .no-js .header-inner, .no-js .site-nav, .no-js .site-nav ul { flex-wrap: wrap; gap: .5rem 1.2rem; }
}

/* ---------- 5. Portada ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  min-height: min(100svh, 1040px);
  padding: calc(var(--header-h) + clamp(1rem, 4vh, 3rem)) 0 0;
  background: var(--g-900);
}
.hero-light {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(46% 58% at 74% 46%, rgba(47, 107, 255, .34), transparent 70%),
    radial-gradient(26% 32% at 92% 12%, rgba(139, 92, 255, .16), transparent 70%),
    radial-gradient(40% 50% at 8% 0%, rgba(255, 255, 255, .06), transparent 70%),
    linear-gradient(180deg, var(--g-950), var(--g-900) 40%, var(--g-850));
}
.hero-grid { display: grid; gap: 1.5rem; align-items: center; flex: 1; }
.hero-copy { position: relative; z-index: 2; }
.hero-title { margin-top: 1.4rem; font-size: clamp(2.5rem, 12.2vw, 6rem); font-weight: 700; line-height: .98; letter-spacing: -.04em; }
.hero-title .line { display: block; overflow: hidden; white-space: nowrap; padding: .04em .12em .14em 0; margin-bottom: -.14em; }
.hero-title .line > span { display: inline-block; animation: line-in .8s var(--ease) both; animation-delay: calc(var(--i) * .12s + .05s); }
.hero-title .serif { font-size: 1.1em; letter-spacing: -.03em; color: var(--blue-hi); padding-right: .08em; }
.hero-kicker { animation: fade-up .6s var(--ease) both; }
.hero-lead { margin-top: 1.8rem; max-width: 30rem; animation: fade-up .65s var(--ease) both .5s; }
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .8rem; animation: fade-up .65s var(--ease) both .62s; }

.hero-index { display: flex; flex-wrap: wrap; gap: .4rem 2.2rem; padding-block: 1.1rem 1.3rem; margin-top: 1.5rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); animation: fade-up .7s var(--ease) both .9s; }
.hero-index li { display: flex; align-items: center; gap: .6rem; }
.hero-index li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-hi); }

/* Escena 3D */
.scene { position: relative; height: 430px; perspective: 1500px; animation: scene-in 1.1s var(--ease) both .25s; }
.scene-tilt { position: absolute; inset: 0 0 58px 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s ease-out; }
.scene-canvas, .scene-fallback { position: absolute; left: -10%; top: -10%; width: 120%; height: 120%; max-width: none; transform: translateZ(-140px); pointer-events: none; transition: opacity .9s; }
.scene-canvas { opacity: 0; }
.has-webgl .scene-canvas { opacity: 1; }
.has-webgl .scene-fallback { opacity: 0; }
.scene-fallback { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); }

.shot { position: absolute; width: 82%; transform-style: preserve-3d; transition: transform 1.2s var(--ease-io), left 1.2s var(--ease-io), top 1.2s var(--ease-io); will-change: transform; }
.shot--phone { width: 30%; }
.shot[data-pos="front"] { left: 46%; top: 62%; transform: translate(-50%, -50%) translateZ(90px) rotateY(-16deg) rotateX(6deg) rotateZ(1deg); }
.shot[data-pos="right"] { left: 78%; top: 19%; transform: translate(-50%, -50%) translateZ(-120px) rotateY(-28deg) rotateX(5deg) scale(.42); }
.shot[data-pos="left"] { left: 15%; top: 18%; transform: translate(-50%, -50%) translateZ(-180px) rotateY(26deg) rotateX(5deg) scale(.4); }
.shot--phone[data-pos="front"] { top: 55%; transform: translate(-50%, -50%) translateZ(90px) rotateY(-18deg) rotateX(5deg) rotateZ(2deg); }
.shot--phone[data-pos="right"], .shot--phone[data-pos="left"] { top: 24%; }
.shot--phone[data-pos="right"] { transform: translate(-50%, -50%) translateZ(-120px) rotateY(-28deg) rotateX(5deg) scale(.6); }
.shot--phone[data-pos="left"] { transform: translate(-50%, -50%) translateZ(-180px) rotateY(26deg) rotateX(5deg) scale(.58); }
.shot-float { animation: float var(--dur, 8s) ease-in-out var(--delay, 0s) infinite; }
.shot .frame { box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .85), 0 20px 40px -20px rgba(8, 20, 70, .8); }
.shot .frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #0b0d14; opacity: 0; transition: opacity 1.2s; pointer-events: none; }
.shot:not([data-pos="front"]) .frame::after { opacity: .42; }

.scene-ui { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.scene-tabs { display: flex; gap: .3rem; }
.scene-tab, .motion-toggle { min-height: 40px; padding: .4rem .8rem; border: 0; border-radius: 999px; background: none; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); cursor: pointer; transition: color .25s, background-color .25s; }
.scene-tab { position: relative; }
.scene-tab::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem; height: 2px; border-radius: 2px; background: var(--blue-hi); transform: scaleX(0); transform-origin: left; }
.scene-tab[aria-pressed="true"] { color: var(--text); }
.scene-tab[aria-pressed="true"]::after { animation: tab-progress 5s linear both; }
.motion-off .scene-tab[aria-pressed="true"]::after { animation: none; transform: scaleX(1); }
.scene-tab:hover, .motion-toggle:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.motion-toggle { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); }
.motion-toggle svg { width: 14px; height: 14px; }
.motion-toggle .ico-play, .motion-off .motion-toggle .ico-pause { display: none; }
.motion-off .motion-toggle .ico-play { display: block; }

@media (min-width: 620px) {
  .scene { height: 560px; }
  .shot { width: 74%; }
  .shot--phone { width: 25%; }
}
@media (min-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 1rem; }
  .hero-title { font-size: clamp(3.4rem, 6.3vw, 6.5rem); }
  .scene { height: clamp(540px, 74vh, 720px); margin-right: calc(var(--gutter) * -.6); }
  .scene-ui { padding-right: calc(var(--gutter) * .6); }
  .shot { width: 64%; }
  .shot--phone { width: 22%; }
  .shot[data-pos="front"] { left: 37%; top: 67%; }
  .shot[data-pos="right"] { left: 80%; top: 21%; transform: translate(-50%, -50%) translateZ(-120px) rotateY(-28deg) rotateX(5deg) scale(.48); }
  .shot[data-pos="left"] { left: 13%; top: 19%; transform: translate(-50%, -50%) translateZ(-180px) rotateY(26deg) rotateX(5deg) scale(.44); }
  .shot--phone[data-pos="front"] { left: 34%; top: 58%; }
  .shot--phone[data-pos="right"], .shot--phone[data-pos="left"] { top: 26%; }
  .shot--phone[data-pos="right"] { transform: translate(-50%, -50%) translateZ(-120px) rotateY(-28deg) rotateX(5deg) scale(.66); }
  .shot--phone[data-pos="left"] { transform: translate(-50%, -50%) translateZ(-180px) rotateY(26deg) rotateX(5deg) scale(.62); }
}

/* ---------- 6. Secciones ---------- */
.section { position: relative; padding: clamp(5rem, 11vw, 9.5rem) 0; --fg: var(--text); --fg-muted: var(--muted); --rule: var(--line); --accent: var(--blue-hi); color: var(--fg); }
.section--graphite { background: var(--g-850); }
.section--black { background: var(--g-950); }
.section--paper { background: var(--paper); --fg: var(--ink); --fg-muted: var(--ink-muted); --rule: var(--ink-line); --accent: var(--blue-ink); }
.section--blue { background: var(--blue); --fg: #fff; --fg-muted: #dfe8ff; --rule: rgba(255, 255, 255, .3); --accent: #fff; }
.sec-head { display: grid; gap: 1.4rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section h2 { font-size: clamp(2.5rem, 7vw, 5.6rem); font-weight: 600; }
.section h2 .serif { font-size: 1.08em; color: var(--accent); }
.sec-intro { max-width: 30rem; font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--fg-muted); }
.section h3 { letter-spacing: -.025em; line-height: 1.1; }
@media (min-width: 960px) {
  .sec-head { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; column-gap: 3rem; }
  .sec-head .kicker { grid-column: 1 / -1; }
  .sec-intro { padding-bottom: .7rem; }
}

/* Marco de ventana para las maquetas */
.frame { position: relative; border-radius: 14px; overflow: hidden; background: #0d0f14; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.frame-bar { display: flex; align-items: center; gap: 5px; padding: 8px 12px; background: #16181e; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: #343844; }
.frame-bar span { margin-left: 8px; font-family: var(--font-mono); font-size: .62rem; color: #8e94a3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame--phone { border-radius: 13% / 6.2%; padding: 3.2%; background: linear-gradient(145deg, #3b3f4a, #0c0d10 30%, #0c0d10 70%, #2a2d36); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.frame--phone .mock { border-radius: 10.500% / 4.900%; overflow: hidden; }
.shot .frame-bar { padding: 6px 10px; }
.shot .frame-bar span { font-size: .55rem; }

/* ---------- 7. Soluciones (lista interactiva / acordeón) ---------- */
.svc { border-top: 1px solid var(--rule); }
.svc:last-child { border-bottom: 1px solid var(--rule); }
.svc-btn { width: 100%; display: flex; align-items: center; gap: 1.1rem; padding: 1.35rem 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--fg); }
.svc-n { font-family: var(--font-mono); font-size: .78rem; color: var(--fg-muted); transition: color .3s; }
.svc-t { flex: 1; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.45rem, 2.7vw, 2.3rem); letter-spacing: -.035em; line-height: 1.05; transition: transform .45s var(--ease), color .3s; }
.svc-ico { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule); transition: background-color .3s, border-color .3s, transform .45s var(--ease); }
.svc-ico::before, .svc-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease), background-color .3s; }
.svc-ico::after { transform: rotate(90deg); }
.svc.is-open .svc-ico { background: var(--blue); border-color: var(--blue); color: #fff; }
.svc.is-open .svc-ico::after { transform: rotate(0deg); }
.svc.is-open .svc-n { color: var(--blue-ink); }
.svc-panel-in { padding-bottom: 2rem; display: grid; gap: 1.4rem; }
.svc-copy p { font-size: 1.1rem; color: var(--fg); max-width: 34rem; }
.tags { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--rule); font-size: .88rem; font-weight: 500; color: var(--fg-muted); }
.svc-visual { position: relative; overflow: hidden; border-radius: 22px; padding: 7% 7% 0; background: radial-gradient(80% 90% at 80% 0%, #2f6bff, transparent 70%), linear-gradient(160deg, #1b2d6b, var(--g-900) 70%); }
.svc-visual .frame { border-radius: 12px 12px 0 0; box-shadow: 0 -10px 60px -10px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .12); }
.svc-visual--duo { padding-right: 20%; }
.svc-visual--duo .frame--phone { position: absolute; right: 5%; bottom: -8%; width: 24%; border-radius: 13% / 6.2%; box-shadow: 0 30px 60px -10px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .16); }

/* Con JavaScript: acordeón en móvil, lista + panel en escritorio */
.svc-list.is-enhanced .svc-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .55s var(--ease), visibility 0s .55s; }
.svc-list.is-enhanced .svc-panel-in { overflow: hidden; min-height: 0; }
.svc-list.is-enhanced .svc.is-open .svc-panel { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
@media (min-width: 960px) {
  .svc-list.is-enhanced { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2.5rem, 5vw, 5rem); align-content: start; border-bottom: 1px solid var(--rule); }
  .is-enhanced .svc { display: contents; }
  .is-enhanced .svc-h { grid-column: 1; border-top: 1px solid var(--rule); }
  .is-enhanced .svc:nth-child(1) .svc-h { grid-row: 1; } .is-enhanced .svc:nth-child(2) .svc-h { grid-row: 2; }
  .is-enhanced .svc:nth-child(3) .svc-h { grid-row: 3; } .is-enhanced .svc:nth-child(4) .svc-h { grid-row: 4; }
  .is-enhanced .svc:nth-child(5) .svc-h { grid-row: 5; }
  .is-enhanced .svc-btn { padding: 1.7rem 0; color: var(--fg-muted); }
  .is-enhanced .svc.is-open .svc-btn, .is-enhanced .svc-btn:hover { color: var(--fg); }
  .is-enhanced .svc.is-open .svc-t { transform: translateX(.6rem); }
  .is-enhanced .svc-ico::before { width: 12px; margin-left: -6px; }
  .is-enhanced .svc-ico::after { width: 8px; height: 8px; margin: -5px 0 0 -3px; border-radius: 0; background: none; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
  .is-enhanced .svc.is-open .svc-ico::after { transform: rotate(45deg); }
  .svc-list.is-enhanced .svc-panel { grid-column: 2; grid-row: 1 / span 5; grid-template-rows: 1fr; align-self: start; padding-block: 0 2.5rem; opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .5s; }
  .svc-list.is-enhanced .svc.is-open .svc-panel { opacity: 1; transform: none; transition-delay: 0s; }
  .svc-list.is-enhanced .svc-panel-in { overflow: visible; padding-bottom: 0; }
  .svc-copy { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start; }
  .tags { margin-top: 0; }
}

/* ---------- 8. Proceso ---------- */
.proc-steps { position: relative; display: grid; gap: 2.75rem; padding-left: 2.2rem; }
.proc-steps::before, .proc-steps::after { content: ""; position: absolute; left: 4px; top: .4rem; bottom: .4rem; width: 2px; border-radius: 2px; background: var(--line); }
.proc-steps::after { background: linear-gradient(var(--blue-hi), var(--violet)); transform-origin: top; transform: scaleY(var(--p, 1)); }
.proc-step { position: relative; transition: opacity .5s var(--ease); }
.proc-step::before { content: ""; position: absolute; left: -2.2rem; top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--g-850); border: 2px solid var(--blue-hi); transition: background-color .4s, box-shadow .4s, border-color .4s; z-index: 1; }
.proc-n { display: block; margin-bottom: .9rem; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em; color: var(--blue-hi); }
.proc-step h3 { font-size: clamp(1.7rem, 3.4vw, 2.9rem); font-weight: 600; letter-spacing: -.04em; }
.proc-step p { margin-top: .9rem; max-width: 30rem; color: var(--muted); }
.proc-step .proc-you { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--line); font-size: .96rem; color: var(--text); }
.proc-you strong { font-family: var(--font-mono); font-weight: 500; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-hi); margin-right: .4rem; }
.proc-step.is-current::before { background: var(--blue-hi); box-shadow: 0 0 0 6px rgba(109, 155, 255, .2); }
.anim-ready .proc-step:not(.is-lit) { opacity: .34; }
.anim-ready .proc-step:not(.is-lit)::before { border-color: var(--g-700); }
.proc-stage { display: none; }

@media (min-width: 1000px) {
  .proc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); }
  .proc-steps { gap: 0; }
  .proc-step { min-height: min(62vh, 600px); display: flex; flex-direction: column; justify-content: center; }
  .proc-step::before { top: 50%; margin-top: -5.500rem; }
  .proc-stage { display: block; }
  .proc-sticky { position: sticky; top: max(84px, calc(50vh - 280px)); height: min(560px, calc(100vh - 120px)); }
  .proc-scene { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(26px) scale(.97); transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s .6s; }
  .proc-scene.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .proc-scene .frame { box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 80px -30px rgba(47, 107, 255, .6), 0 0 0 1px rgba(255, 255, 255, .1); }
}
.proc-label { margin-bottom: 1.1rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.proc-chip { position: absolute; padding: .6rem 1rem .6rem 2.1rem; border-radius: 999px; background: #fff; color: var(--ink); font-size: .86rem; font-weight: 600; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .7); animation: float 7s ease-in-out infinite; }
.proc-chip::before { content: ""; position: absolute; left: .85rem; top: 50%; width: 9px; height: 9px; margin-top: -4.500px; border-radius: 50%; background: #1faa6b; }
.proc-chip--a { right: -1rem; bottom: 16%; }
.proc-chip--b { left: -1rem; bottom: 14%; }
.proc-chip--c { right: -.5rem; bottom: 6%; animation-delay: -3s; }
.proc-chip--c::before { background: var(--violet); }
.notes { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; }
.note { padding: 1.4rem 1.5rem; border-radius: 16px; background: var(--g-800); border: 1px solid var(--line); }
.note em { display: block; margin-bottom: .7rem; font-family: var(--font-mono); font-style: normal; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-hi); }
.note strong { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.55rem; line-height: 1.15; }
.note li { padding: .3rem 0; border-bottom: 1px dashed var(--line); }
.note p b { color: var(--blue-hi); font-weight: 400; }
.note--quote { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; background: var(--paper); color: var(--ink); transform: rotate(-1.500deg); }
.note--quote em { color: var(--blue-ink); }
.note--quote strong { font-size: 2rem; }
.note--goal { grid-column: 1 / -1; background: var(--blue); border-color: transparent; }
.note--goal em { color: #dfe8ff; }
.split { position: relative; }
.split-top { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.split::after { content: ""; position: absolute; top: -3%; bottom: -3%; left: 50%; width: 2px; background: var(--blue-hi); box-shadow: 0 0 20px 2px var(--blue-hi); }
.proc-scene.is-on .split-top { animation: wipe 6s var(--ease-io) infinite alternate; }
.proc-scene.is-on .split::after { animation: wipe-line 6s var(--ease-io) infinite alternate; }

/* ---------- 9. Conceptos demostrativos ---------- */
.works { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.work { border-radius: 26px; }
.work-media { position: relative; overflow: hidden; border-radius: 24px; aspect-ratio: 4 / 3.5; }
.work-media--blue { background: radial-gradient(70% 90% at 15% 0%, #5d8dff, transparent 70%), linear-gradient(150deg, #2156e8, #12266e); }
.work-media--graphite { background: radial-gradient(70% 80% at 90% 0%, rgba(139, 92, 255, .5), transparent 70%), linear-gradient(160deg, #23262e, #121317); }
.work-media--paper { background: linear-gradient(160deg, #e8e6de, #cfd6ea); }
.work-zoom { position: absolute; left: 8%; top: 10%; width: 135%; transform-origin: 15% 15%; transition: transform 1s var(--ease); }
.work-zoom .frame { box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .12); }
.work-desc { position: absolute; left: 0; right: 0; bottom: 0; padding: 3.5rem 1.4rem 1.3rem; background: linear-gradient(transparent, rgba(8, 9, 11, .93) 48%); color: #fff; font-size: 1rem; line-height: 1.45; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.work-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: 1.2rem .25rem 0; }
.work-cap h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 600; }
.badge { display: inline-block; padding: .38rem .75rem; border-radius: 999px; border: 1px solid rgba(109, 155, 255, .55); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-hi); white-space: nowrap; }
/* Sin cursor (pantallas táctiles): la descripción queda siempre visible bajo la maqueta */
@media (hover: none) {
  .work-media { aspect-ratio: auto !important; }
  .work-desc { position: relative; margin-top: 86%; padding: 1.1rem 1.3rem 1.3rem; background: rgba(8, 9, 11, .92); }
}
@media (hover: hover) {
  .work-desc { opacity: 0; transform: translateY(30%); }
  .work:hover .work-desc, .work:focus .work-desc { opacity: 1; transform: none; }
  .work:hover .work-zoom, .work:focus .work-zoom { transform: scale(1.06); }
}
@media (min-width: 760px) {
  .work-zoom { width: 100%; }
  .work-desc { padding: 4rem 2rem 1.7rem; font-size: 1.1rem; max-width: none; }
  .work--lg .work-media { aspect-ratio: 16 / 8.2; }
  .work--lg .work-zoom { left: 12%; top: 11%; width: 76%; }
}
@media (min-width: 1000px) {
  .works { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .work--lg { grid-column: 1 / -1; }
  .work:nth-child(2) { grid-column: span 7; }
  .work:nth-child(3) { grid-column: span 5; margin-top: 5rem; }
  .work:nth-child(2) .work-media { aspect-ratio: 4 / 3; }
  .work:nth-child(3) .work-media { aspect-ratio: 4 / 4.2; }
  .work:nth-child(3) .work-zoom { width: 150%; }
}

/* ---------- 10. Propuesta ---------- */
.prop-title { margin-top: 1.6rem; }
.section .prop-title { font-size: clamp(2.2rem, 6.1vw, 5.4rem); }
.prop-title span { display: block; }
.prop-title .serif { margin-top: .08em; }
.prop-grid { margin-top: clamp(3rem, 6vw, 5rem); display: grid; gap: 2.5rem; }
.prop-lead { font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.4; letter-spacing: -.01em; max-width: 32rem; }
.prop-points li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.6rem 0; border-top: 1px solid var(--rule); transition: padding-left .45s var(--ease); }
.prop-points li:last-child { border-bottom: 1px solid var(--rule); }
.prop-n { font-family: var(--font-serif); font-style: italic; font-size: 2rem; line-height: 1; color: var(--blue-ink); }
.prop-points h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; }
.prop-points p { margin-top: .45rem; color: var(--fg-muted); }
@media (hover: hover) { .prop-points li:hover { padding-left: .8rem; } }
@media (min-width: 960px) { .prop-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; } }

/* ---------- 11. Contacto ---------- */
.section--blue { overflow: hidden; }
.section--blue::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 0% 100%, rgba(139, 92, 255, .55), transparent 70%), radial-gradient(50% 60% at 100% 0%, rgba(109, 155, 255, .6), transparent 70%); pointer-events: none; }
.contact-grid { position: relative; display: grid; gap: 3rem; align-items: start; }
.section .contact-title { margin-top: 1.5rem; font-size: clamp(2.8rem, 8vw, 6.4rem); font-weight: 700; letter-spacing: -.035em; line-height: .98; }
.section--blue .lead { margin-top: 1.8rem; max-width: 28rem; color: var(--fg-muted); }
.contact-channels { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.contact-channels .btn { background: #fff; color: var(--ink); }
.contact-channels .btn::before { background: var(--ink); }
.contact-channels .btn:hover { color: #fff; }
.contact-channels svg { width: 20px; height: 20px; }
.form { padding: clamp(1.5rem, 3.5vw, 2.6rem); border-radius: 26px; background: var(--g-900); color: var(--text); box-shadow: 0 50px 100px -40px rgba(4, 12, 50, .9); display: grid; gap: 1.2rem; }
.form-hint { font-size: .86rem; color: var(--muted); }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 600; font-size: .94rem; }
.req { color: var(--blue-hi); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 54px; padding: .85rem 1rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .45); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-hi); box-shadow: 0 0 0 3px rgba(109, 155, 255, .3); background: rgba(255, 255, 255, .07); }
.field [aria-invalid="true"] { border-color: #ff8fa3; }
.field-error { font-size: .9rem; color: #ffa3b3; }
.field-error::before { content: "⚠ "; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { padding: .8rem 1rem; border-radius: 12px; border: 1px dashed rgba(255, 184, 107, .55); background: rgba(255, 184, 107, .07); color: #ffd3a3; font-size: .9rem; }
.form-status:empty { display: none; }
.form-status { padding: .9rem 1rem; border-radius: 12px; font-size: .95rem; font-weight: 600; }
.form-status.is-ok { background: rgba(95, 227, 161, .12); border: 1px solid rgba(95, 227, 161, .5); color: #9af0c4; }
.form-status.is-error { background: rgba(255, 143, 163, .1); border: 1px solid rgba(255, 143, 163, .5); color: #ffb9c5; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 5vw, 5rem); } }

/* ---------- 12. Pie de página ---------- */
.site-footer { background: var(--g-950); padding: clamp(3rem, 6vw, 5rem) 0 2rem; color: var(--muted); font-size: .95rem; }
.footer-grid { display: grid; gap: 2.25rem; }
.footer-tagline { margin-top: 1.4rem; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.05; letter-spacing: -.035em; color: var(--text); }
.footer-tagline .serif { display: block; font-size: 1.08em; color: var(--blue-hi); }
.footer-nav ul, .footer-social, .footer-legal { display: flex; flex-wrap: wrap; gap: .3rem 1.75rem; }
.site-footer a:not(.brand) { display: inline-block; padding: .45rem 0; text-decoration: none; transition: color .2s; }
.site-footer a:not(.brand):hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer .brand-gap { stroke: var(--g-950); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; font-size: .86rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr auto; align-items: end; } .footer-social { grid-column: 2; justify-content: flex-end; } }

/* ---------- 13. Maquetas de interfaz (todo en em: escalan con su contenedor) ---------- */
.mock { container-type: inline-size; min-width: 0; }
.ui {
  --u-bg: #eef0f6; --u-card: #fff; --u-line: #e0e4ee; --u-fg: #0c1330; --u-muted: #646d88; --u-pri: #2156e8;
  display: flex; font-size: min(1.32cqw, 13px); line-height: 1.35; text-align: left;
  background: var(--u-bg); color: var(--u-fg); font-family: var(--font-body);
}
.ui--dark { --u-bg: #0c0e14; --u-card: #151820; --u-line: rgba(200, 210, 240, .14); --u-fg: #eef0f6; --u-muted: #9aa1b4; --u-pri: #5d8dff; }
.ui p { text-wrap: initial; max-width: none; margin: 0; color: inherit; }
.ui em, .ui small { font-style: normal; }
.ui strong { font-weight: 700; }
.ui-side { flex: none; width: 13em; padding: 1.4em 1em; display: flex; flex-direction: column; gap: .3em; background: #0d0f16; color: #b4bbcf; }
.ui-logo { width: 2.4em; height: 2.4em; margin: 0 0 1.4em .6em; border-radius: .7em; background: linear-gradient(135deg, #5d8dff, #2156e8); }
.ui-nav { padding: .65em .9em; border-radius: .6em; font-weight: 600; }
.ui-nav.is-on { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset .22em 0 0 #5d8dff; }
.ui-main { flex: 1; min-width: 0; padding: 1.5em 1.7em 1.8em; }
.ui-top { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-bottom: 1.4em; }
.ui-search { flex: 1; max-width: 26em; padding: .7em 1.1em; border-radius: 2em; background: var(--u-card); border: 1px solid var(--u-line); color: var(--u-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-avatar, .kav { display: grid; place-items: center; flex: none; width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--u-pri); color: #fff; font-weight: 700; font-size: .85em; }
.ui .ui-h { font-family: var(--font-display); font-weight: 700; font-size: 1.7em; letter-spacing: -.03em; line-height: 1.15; }
.ui .ui-sub { margin: .2em 0 1.3em; color: var(--u-muted); }
.ui-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.1em; }
.ui-stack { display: grid; gap: 1.1em; align-content: start; min-width: 0; }
.ui-card { min-width: 0; padding: 1.2em 1.3em; border-radius: 1.1em; background: var(--u-card); border: 1px solid var(--u-line); }
.ui .ui-card-t { display: flex; justify-content: space-between; align-items: center; gap: 1em; margin-bottom: .9em; font-weight: 700; font-size: 1.05em; }
.ui .ui-card-t--gap { margin-top: 1.3em; }
.tone-a { background: #2156e8; } .tone-b { background: #00a3c7; } .tone-c { background: #f08a24; } .tone-d { background: #8b93aa; }
.tone-a-soft { background: #e3ebff; color: #163ba6; } .tone-b-soft { background: #dcf5fb; color: #005f78; } .tone-c-soft { background: #fdeeda; color: #8a4a05; }
.ui-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7em; }
.ui-tiles span { display: grid; justify-items: center; gap: .6em; padding: .9em .3em; border-radius: .8em; background: var(--u-bg); font-weight: 600; font-size: .9em; text-align: center; }
.ui-tiles b { width: 2.4em; height: 2.4em; border-radius: .7em; }
.ui-news, .ui-event { display: flex; align-items: center; gap: .9em; padding: .6em 0; }
.ui-news + .ui-news, .ui-event + .ui-event, .ui-row + .ui-row { border-top: 1px solid var(--u-line); }
.ui-news > b { flex: none; width: .7em; height: .7em; border-radius: 50%; }
.ui-news span, .ui-event span { display: grid; min-width: 0; }
.ui-news em, .ui-event em { color: var(--u-muted); font-size: .9em; }
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: .8em; padding: .7em 0; font-weight: 600; }
.ui-row > span { display: flex; align-items: center; gap: .6em; min-width: 0; }
.chk { flex: none; width: 1.2em; height: 1.2em; border-radius: .35em; border: .12em solid #b7bfd3; }
.chk.is-on { background: var(--u-pri); border-color: var(--u-pri); }
.pill { flex: none; padding: .3em .8em; border-radius: 2em; font-size: .85em; font-weight: 700; }
.pill--ok { background: #dff6e9; color: #0d6b3a; } .pill--rev { background: #e3ebff; color: #163ba6; } .pill--wait { background: #fdeeda; color: #8a4a05; }
.ui--dark .pill--ok { background: rgba(95, 227, 161, .16); color: #8eecbd; } .ui--dark .pill--rev { background: rgba(93, 141, 255, .2); color: #a9c3ff; } .ui--dark .pill--wait { background: rgba(255, 184, 107, .16); color: #ffcf9a; }
.ui-event b { flex: none; display: grid; justify-items: center; width: 3.4em; padding: .4em 0; border-radius: .7em; background: var(--u-bg); font-size: 1.1em; line-height: 1.1; }
.ui-event small { font-size: .6em; letter-spacing: .1em; color: var(--u-muted); }
.ui-chips { display: flex; align-items: center; gap: .5em; flex: none; }
.ui-chip, .ui-btn { padding: .5em 1em; border-radius: 2em; border: 1px solid var(--u-line); color: var(--u-muted); font-weight: 600; white-space: nowrap; }
.ui-chip.is-on { background: var(--u-card); color: var(--u-fg); border-color: var(--u-pri); }
.ui-btn { background: var(--u-pri); border-color: transparent; color: #fff; }

.ui--dash .ui-h { font-size: 1.5em; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em; margin-bottom: 1.1em; }
.kpi { min-width: 0; padding: 1.1em 1.2em; border-radius: 1.1em; background: var(--u-card); border: 1px solid var(--u-line); display: grid; gap: .25em; }
.kpi em { color: var(--u-muted); font-size: .92em; }
.kpi strong { font-family: var(--font-display); font-size: 2.2em; letter-spacing: -.04em; line-height: 1.15; }
.delta { font-size: .85em; color: var(--u-muted); }
.delta--up { color: #5fe3a1; } .delta--warn { color: #ffb86b; }
.ui-cols--dash { grid-template-columns: 1.6fr 1fr; }
.legend { display: flex; align-items: center; gap: .5em; font-weight: 500; font-size: .85em; color: var(--u-muted); }
.legend i { width: 1.2em; height: .25em; border-radius: 1em; }
.lg-a { background: #5d8dff; } .lg-b { background: #8b93a8; margin-left: .5em; }
.chart { width: 100%; height: 17em; }
.donut-wrap { display: flex; align-items: center; gap: 1.3em; }
.donut { width: 7.5em; height: 7.5em; flex: none; }
.donut-legend { display: grid; gap: .45em; color: var(--u-muted); }
.donut-legend li { display: flex; align-items: center; gap: .55em; }
.donut-legend i { width: .7em; height: .7em; border-radius: .2em; }
.hbar { display: grid; grid-template-columns: 6em 1fr; align-items: center; gap: .8em; padding: .3em 0; color: var(--u-muted); }
.hbar b { height: .7em; width: var(--w); border-radius: 1em; background: linear-gradient(90deg, #2156e8, #6d9bff); }

.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9em; align-items: start; }
.kcol { min-width: 0; padding: .8em; border-radius: 1.1em; background: #e2e6f0; display: grid; gap: .7em; }
.ui .kcol-t { display: flex; align-items: center; gap: .5em; padding: .2em .3em; font-weight: 700; }
.kcol-t i { width: .7em; height: .7em; border-radius: 50%; }
.kcol-t em { margin-left: auto; color: var(--u-muted); font-weight: 600; }
.kcard { padding: .9em; border-radius: .8em; background: #fff; border: 1px solid var(--u-line); display: grid; gap: .65em; box-shadow: 0 .3em .8em -.5em rgba(12, 19, 48, .35); }
.kcard.is-done strong { color: var(--u-muted); text-decoration: line-through; }
.ktag { justify-self: start; padding: .2em .7em; border-radius: 2em; font-size: .82em; font-weight: 700; }
.kprog { height: .45em; border-radius: 1em; background: #e2e6f0; overflow: hidden; }
.kprog b { display: block; height: 100%; width: var(--w); border-radius: 1em; background: linear-gradient(90deg, #2156e8, #00a3c7); }
.kmeta { display: flex; align-items: center; justify-content: space-between; color: var(--u-muted); font-size: .88em; }
.kav { width: 2.2em; height: 2.2em; font-size: .8em; }
.kav--b { background: #00839f; } .kav--c { background: #b85d0a; }

.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5em; margin-bottom: 1.2em; }
.stepper span { padding: .7em 1em; border-radius: .7em; background: var(--u-card); border: 1px solid var(--u-line); color: var(--u-muted); font-weight: 600; box-shadow: inset 0 -.22em 0 #cfd5e4; }
.stepper .is-done { color: var(--u-fg); box-shadow: inset 0 -.22em 0 #1faa6b; }
.stepper .is-on { color: #163ba6; background: #e3ebff; border-color: #b9ccff; box-shadow: inset 0 -.22em 0 #2156e8; }
.ffields { display: grid; grid-template-columns: 1fr 1fr; gap: .9em; }
.ffield { display: grid; gap: .3em; min-width: 0; }
.ffield--wide { grid-column: 1 / -1; }
.ffield em { color: var(--u-muted); font-size: .88em; }
.ffield span { padding: .7em .9em; border-radius: .6em; background: var(--u-bg); border: 1px solid var(--u-line); font-weight: 600; }

.flow { display: grid; justify-items: center; align-content: start; gap: 0; padding: .4em 0; }
.fnode { width: min(100%, 22em); padding: .9em 1.1em; border-radius: .9em; background: var(--u-card); border: 1px solid var(--u-line); display: grid; gap: .15em; }
.fnode em { font-size: .8em; letter-spacing: .1em; text-transform: uppercase; color: var(--u-muted); }
.fnode--trig { border-color: #5d8dff; box-shadow: 0 0 2em -.6em #2f6bff; }
.fnode--cond { border-color: #8b5cff; }
.fnode--end { border-color: #1faa6b; }
.fline { width: .14em; height: 1.6em; background: #3a4052; }
.fsplit { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 1em; padding-top: 1.6em; position: relative; }
.fsplit::before { content: ""; position: absolute; left: 25%; right: 25%; top: .8em; height: .8em; border: .14em solid #3a4052; border-bottom: 0; border-radius: .6em .6em 0 0; }
.fbranch { display: grid; justify-items: center; gap: .4em; }
.fbranch .fnode { width: 100%; }
.flabel { padding: .15em .7em; border-radius: 1em; background: #23283a; font-size: .8em; font-weight: 700; color: #c9d0e3; }

.intg { width: 100%; height: auto; }
.intg-nodes rect { fill: #fff; stroke: #dde2ee; stroke-width: 1.500; }
.intg-nodes text { font-size: 16px; font-weight: 600; fill: #0c1330; }
.intg-lines path { stroke-dasharray: 5 9; animation: dash 1.4s linear infinite; }

.ui--phone { display: block; aspect-ratio: 9 / 18.6; padding: 1.2em 1.3em 0; font-size: 5.3cqw; position: relative; background: #f3f4f8; overflow: hidden; }
.ph-status { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6em; font-weight: 700; font-size: .85em; }
.ph-status i { width: 2.2em; height: .9em; border-radius: .3em; border: .1em solid #0c1330; background: linear-gradient(90deg, #0c1330 70%, transparent 70%); }
.ui .ph-hi { color: var(--u-muted); }
.ui--phone .ui-h { font-size: 1.9em; }
.ph-seg { display: flex; gap: .4em; margin: 1.1em 0; }
.ph-seg span { padding: .45em 1em; border-radius: 2em; background: #fff; border: 1px solid var(--u-line); font-weight: 600; font-size: .9em; color: var(--u-muted); }
.ph-seg .is-on { background: #0c1330; border-color: #0c1330; color: #fff; }
.ph-hero { display: grid; gap: .4em; padding: 1.2em; border-radius: 1.2em; background: linear-gradient(140deg, #2f6bff, #1a3fb8); color: #fff; margin-bottom: 1em; }
.ph-hero em { opacity: .85; font-size: .9em; }
.ph-hero strong { font-family: var(--font-display); font-size: 1.7em; letter-spacing: -.03em; }
.ph-hero .kprog { background: rgba(255, 255, 255, .3); margin-top: .4em; }
.ph-hero .kprog b { background: #fff; }
.ph-item { display: flex; align-items: center; gap: .9em; padding: .9em 1em; margin-bottom: .6em; border-radius: 1em; background: #fff; border: 1px solid var(--u-line); }
.ph-item > b { flex: none; width: 2.4em; height: 2.4em; border-radius: .7em; }
.ph-item span { display: grid; min-width: 0; }
.ph-item em { color: var(--u-muted); font-size: .88em; }
.ph-tabbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 1em 0 1.3em; background: #fff; border-top: 1px solid var(--u-line); }
.ph-tabbar i { width: 1.5em; height: 1.5em; border-radius: .45em; background: #c9cfdd; }
.ph-tabbar .is-on { background: #2156e8; }

/* Modo boceto (etapa de diseño) */
.ui--wire { background-color: #0d1020 !important; background-image: linear-gradient(rgba(109, 155, 255, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(109, 155, 255, .1) 1px, transparent 1px) !important; background-size: 2em 2em !important; }
.ui--wire * { background: transparent !important; color: transparent !important; border-color: rgba(109, 155, 255, .6) !important; box-shadow: none !important; }
.ui--wire .ui-side { border-right: 1px dashed; }
.ui--wire .ui-nav, .ui--wire .ui-h, .ui--wire .ui-logo, .ui--wire .ui-chip, .ui--wire .ui-btn, .ui--wire .pill, .ui--wire .chk, .ui--wire .kav, .ui--wire .ui-card-t, .ui--wire .ffield em { outline: 1px dashed rgba(109, 155, 255, .6); outline-offset: -1px; border-radius: .4em; }

/* Maquetas adaptables: en contenedores angostos se simplifican para seguir legibles */
@container (max-width: 600px) {
  .mock--adaptive .ui { font-size: 2.55cqw; }
  .mock--adaptive .ui-side { display: none; }
  .mock--adaptive .ui-main { padding: 1.3em 1.3em 1.5em; }
  .mock--adaptive .ui-cols, .mock--adaptive .ui-cols--dash { grid-template-columns: 1fr; }
  .mock--adaptive .kpis, .mock--adaptive .kanban, .mock--adaptive .stepper { grid-template-columns: repeat(2, 1fr); }
  .mock--adaptive .kcol:nth-child(n+3) { display: none; }
  .mock--adaptive .ui-chips .ui-chip:not(.is-on) { display: none; }
  .mock--adaptive .chart { height: 13em; }
}

/* ---------- 14. Movimiento ---------- */
@keyframes line-in { from { transform: translateY(108%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-up { from { transform: translateY(22px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes scene-in { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(-7px); } 50% { transform: translateY(9px); } }
@keyframes tab-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dash { to { stroke-dashoffset: -14; } }
@keyframes wipe { from { clip-path: inset(0 0 0 88%); } to { clip-path: inset(0 0 0 12%); } }
@keyframes wipe-line { from { left: 88%; } to { left: 12%; } }

.anim-ready [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.anim-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* Pausa del movimiento continuo (botón de la portada) */
.motion-off .shot-float, .motion-off .proc-chip, .motion-off .intg-lines path, .motion-off .split-top, .motion-off .split::after { animation-play-state: paused !important; }

/* Movimiento reducido: se respeta salvo que la persona pulse "Reanudar movimiento" */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html:not(.motion-forced) *, html:not(.motion-forced) *::before, html:not(.motion-forced) *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html:not(.motion-forced) .shot-float, html:not(.motion-forced) .proc-chip, html:not(.motion-forced) .intg-lines path, html:not(.motion-forced) .split-top, html:not(.motion-forced) .split::after { animation: none !important; }
  .anim-ready [data-reveal] { opacity: 1; transform: none; }
}
