/* Studio Imagen GDL · Propuesta AIPEX · Dirección "Cubo de luz" */
:root {
  --brand: #0C2436;        /* azul profundo del cubo, oscurecido */
  --ink: #0A1722;
  --night: #06101A;
  --paper: #F6F9FB;
  --surface: #EAF2F8;
  --blue: #2B76A8;         /* cara frontal del logo */
  --blue-deep: #1F5F8B;    /* AA sobre claro */
  --blue-2: #419FD3;       /* cara lateral */
  --sky: #9DCEEC;          /* cara superior */
  --mint: #3CC48E;         /* confirmada / WhatsApp */
  --blush: #F3B7A0;        /* acento emocional */
  --red: #E5483D;
  --text: #102231;
  --muted: #557086;
  --line: rgba(16, 34, 49, .12);
  --line-light: rgba(255, 255, 255, .14);
  --header-h: 64px;
  --r: 18px;
  --f-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); color: var(--text); background: var(--paper); line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums lining-nums; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.sec { padding-block: clamp(80px, 11vw, 140px); position: relative; }

/* Grounds */
.ground-paper { background: var(--paper); }
.ground-surface { background: var(--surface); }
.ground-brand, .ground-ink, .ground-night { color: #EAF4FB; position: relative; isolation: isolate; }
.ground-brand { background: var(--brand); }
.ground-ink { background: var(--ink); }
.ground-night { background: var(--night); }
.ground-brand::before, .ground-ink::before { content: ""; position: absolute; inset: 0; background: var(--grain); pointer-events: none; z-index: -1; }

/* Type */
.display { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: .98; letter-spacing: -.035em; margin: 18px 0 22px; }
.h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.04; letter-spacing: -.03em; margin: 10px 0 0; max-width: 20ch; }
.h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.15; letter-spacing: -.02em; margin: 8px 0 0; }
.h4 { font-family: var(--f-display); font-size: 1.15rem; margin: 0 0 14px; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--blue-deep); }
.light em, .ground-brand em, .ground-ink em { color: var(--sky); }
.light { color: #fff; }
.eyebrow { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-deep); margin: 0; }
.eyebrow.light, .ground-brand .eyebrow, .ground-ink .eyebrow { color: var(--sky); }
.kicker { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 26px 0 0; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted); max-width: 56ch; margin: 0; }
.lede.narrow { margin-top: 20px; }
.lede b { color: var(--text); }
.muted { color: var(--muted); font-size: .95rem; }
.muted-light { color: rgba(234, 244, 251, .72); }
.sec-head { margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head.row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* Header */
.bar { position: fixed; inset: 0 0 auto; height: var(--header-h); z-index: 50; background: rgba(246, 249, 251, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); transition: background .3s, color .3s, border-color .3s; }
.bar.on-dark { background: rgba(10, 23, 34, .78); color: #EAF4FB; border-color: var(--line-light); }
.bar-inner { height: 100%; width: min(1280px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 22px; }
.bar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: .9rem; white-space: nowrap; }
.bar-cube { width: 18px; height: 18px; background: linear-gradient(135deg, var(--sky) 0 30%, var(--blue) 30% 70%, var(--blue-2) 70%); border-radius: 3px; transform: rotate(45deg) scale(.82); }
.bar-nav { display: flex; gap: 4px; margin-left: auto; }
.bar-nav a { text-decoration: none; font-size: .86rem; padding: 7px 11px; border-radius: 999px; opacity: .78; transition: opacity .2s, background .2s; }
.bar-nav a:hover, .bar-nav a[aria-current="true"] { opacity: 1; background: rgba(43, 118, 168, .12); }
.bar.on-dark .bar-nav a[aria-current="true"], .bar.on-dark .bar-nav a:hover { background: rgba(157, 206, 236, .14); }
.bar-pill { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; padding: 6px 12px; border: 1px solid currentColor; border-radius: 999px; opacity: .7; }
.bar-menu { display: none; margin-left: auto; background: none; border: 1px solid currentColor; color: inherit; border-radius: 999px; padding: 6px 14px; font-size: .82rem; }
.bar-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--blue-2), var(--sky)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* Hero */
.hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 60px; position: relative; overflow: hidden;
  background: radial-gradient(60% 70% at 85% 40%, rgba(157, 206, 236, .55), transparent 70%), radial-gradient(40% 50% at 10% 100%, rgba(243, 183, 160, .25), transparent 70%), var(--paper); }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; }
.hero-logo { width: 104px; height: 104px; margin-left: -10px; }
.hero-visual { position: relative; height: min(560px, 62vh); }
.cube-scene { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1100px; }
.cube { --s: clamp(170px, 20vw, 250px); width: var(--s); height: var(--s); position: relative; transform-style: preserve-3d; transform: rotateX(-18deg) rotateY(-32deg); animation: float 7s ease-in-out infinite; }
.face { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; color: #fff; font-size: calc(var(--s) * .52); line-height: 1; backface-visibility: hidden; }
.f-front { background: linear-gradient(160deg, #3384B8, var(--blue)); transform: translateZ(calc(var(--s) / 2)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.f-right { background: linear-gradient(160deg, #55B0E0, var(--blue-2)); transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.f-right span { font-family: var(--f-display); font-weight: 700; }
.f-top { background: linear-gradient(120deg, #B9DDF2, var(--sky)); transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
@keyframes float { 0%,100% { transform: rotateX(-18deg) rotateY(-32deg) translateY(0); } 50% { transform: rotateX(-14deg) rotateY(-38deg) translateY(-14px); } }
.chip-msg { position: absolute; display: flex; align-items: center; gap: 8px; background: #fff; color: var(--text); font-size: .86rem; padding: 10px 14px; border-radius: 16px 16px 16px 4px; box-shadow: 0 14px 34px -12px rgba(12, 36, 54, .28); white-space: nowrap; animation: bob 6s ease-in-out infinite; }
.chip-msg i { width: 8px; height: 8px; border-radius: 50%; background: var(--blush); flex: none; }
.chip-msg.ok { background: var(--brand); color: #fff; border-radius: 16px 16px 4px 16px; }
.chip-msg.ok i { background: var(--mint); }
.m1 { top: 6%; left: 0; animation-delay: -1s; }
.m2 { top: 26%; right: -4%; animation-delay: -3s; }
.m3 { bottom: 18%; left: -6%; animation-delay: -2s; }
.m4 { bottom: 4%; right: 4%; animation-delay: -4s; }
.m5 { top: 52%; right: -2%; animation-delay: -5s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Reto */
.reto-grid { display: grid; grid-template-columns: 4fr 1fr 7fr; }
.reto-head { grid-column: 1; position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.reto-list { grid-column: 3; list-style: none; margin: 0; padding: 0; counter-reset: r; }
.reto-list li { counter-increment: r; display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; padding: 28px 0; border-top: 1px solid var(--line); }
.reto-list li:last-child { border-bottom: 1px solid var(--line); }
.reto-list li::before { content: counter(r, decimal-leading-zero); grid-row: span 2; font-family: var(--f-mono); color: var(--blue-deep); font-size: .9rem; padding-top: 4px; }
.reto-list h3 { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.2; letter-spacing: -.015em; margin: 0 0 6px; }
.reto-list p { margin: 0; color: var(--muted); }
.reto-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 34px; }
.reto-compare div { background: #fff; padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.reto-compare div:last-child { background: var(--brand); color: #fff; }
.reto-compare span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.reto-compare b { font-family: var(--f-display); font-size: 2.3rem; letter-spacing: -.03em; line-height: 1.1; }
.reto-compare small { font-size: .82rem; opacity: .75; line-height: 1.35; }

/* Módulos grid (propuesta) */
.mod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.mod-cell { background: var(--paper); padding: 22px 20px 24px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; transition: background .25s; min-height: 140px; }
.mod-cell:hover { background: #fff; }
.mod-cell .mono { color: var(--blue-deep); font-size: .78rem; }
.mod-cell b { font-family: var(--f-display); font-size: 1.12rem; line-height: 1.2; letter-spacing: -.01em; }
.mod-cell small { color: var(--muted); font-size: .88rem; margin-top: auto; }

/* Simulador */
.sim { margin-top: 56px; background: #fff; border-radius: 24px; box-shadow: 0 30px 70px -40px rgba(12, 36, 54, .45); border: 1px solid var(--line); overflow: hidden; }
.sim-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sim-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.sim-tabs button { border: 1px solid var(--line); background: var(--paper); color: var(--text); padding: 9px 16px; border-radius: 999px; font-size: .9rem; font-weight: 500; transition: all .2s; }
.sim-tabs button[aria-selected="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.sim-note { font-size: .7rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.sim-panel { padding: clamp(16px, 3vw, 32px); }

.chat-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.phone { background: #E9EEF1; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; height: 560px; border: 1px solid var(--line);
  background-image: radial-gradient(rgba(43,118,168,.06) 1px, transparent 1px); background-size: 16px 16px; }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--brand); color: #fff; }
.phone-head img { width: 34px; height: 34px; background: #fff; border-radius: 50%; padding: 2px; }
.phone-head b { display: block; font-size: .95rem; }
.phone-head small { font-size: .75rem; color: var(--mint); }
.phone-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.msg { max-width: 82%; padding: 9px 12px 7px; border-radius: 14px; font-size: .9rem; line-height: 1.4; animation: pop .28s ease-out both; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.msg.in { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.msg.out { align-self: flex-end; background: #D6EDFA; border-top-right-radius: 4px; }
.msg small { display: block; text-align: right; font-size: .66rem; color: var(--muted); margin-top: 2px; }
.msg.sys { align-self: center; background: rgba(60, 196, 142, .16); color: #157552; font-size: .78rem; font-weight: 600; border-radius: 999px; padding: 6px 12px; box-shadow: none; }
.typing { align-self: flex-start; background: #fff; padding: 12px 14px; border-radius: 14px; display: flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.phone-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; background: #fff; border-top: 1px solid var(--line); min-height: 62px; }
.phone-chips button { border: 1px solid var(--blue); color: var(--blue-deep); background: #fff; border-radius: 999px; padding: 7px 13px; font-size: .86rem; font-weight: 500; transition: all .15s; }
.phone-chips button:hover { background: var(--blue); color: #fff; }

.ficha { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.ficha-name { font-family: var(--f-display); font-size: 1.3rem; margin: 6px 0 14px; letter-spacing: -.01em; }
.ficha dl { margin: 0; display: grid; gap: 0; }
.ficha dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.ficha dt { color: var(--muted); }
.ficha dd { margin: 0; font-weight: 600; text-align: right; transition: color .3s; }
.ficha dl div.filled dd { color: var(--blue-deep); animation: pop .35s ease-out; }
.ficha-foot { margin: 14px 0; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px dashed var(--line); font-size: .84rem; color: var(--muted); }
.ficha-foot.done { border-style: solid; border-color: rgba(60,196,142,.5); color: #157552; background: rgba(60,196,142,.08); }
.btn-ghost { background: transparent; border: 1px solid currentColor; color: inherit; border-radius: 999px; padding: 9px 18px; font-size: .88rem; font-weight: 500; }
.ficha .btn-ghost { color: var(--blue-deep); }

/* Agenda */
.ag-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-size: .86rem; color: var(--muted); font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.ag-sync { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.ag-sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(60,196,142,.18); }
.ag-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
.ag-grid { display: grid; grid-template-columns: 56px repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--line); gap: 1px; }
.ag-grid > div { background: #fff; min-height: 58px; padding: 4px; font-size: .74rem; position: relative; }
.ag-grid .ag-h { background: var(--paper); font-family: var(--f-mono); font-size: .7rem; color: var(--muted); display: grid; place-items: center; min-height: 36px; text-transform: uppercase; letter-spacing: .06em; }
.ag-grid .ag-t { background: var(--paper); font-family: var(--f-mono); color: var(--muted); font-size: .7rem; padding-top: 6px; text-align: center; }
.appt { width: 100%; height: 100%; text-align: left; border: 0; border-left: 3px solid var(--blue); background: rgba(43,118,168,.1); border-radius: 6px; padding: 5px 6px; font-size: .72rem; line-height: 1.25; color: var(--text); animation: pop .3s both; }
.appt b { display: block; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt span { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt.newborn { border-color: var(--blush); background: rgba(243,183,160,.22); }
.appt.otro { border-color: var(--mint); background: rgba(60,196,142,.12); }
.appt[aria-pressed="true"] { outline: 2px solid var(--blue); }
.ag-detail { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px; font-size: .9rem; }
.ag-detail h4 { font-family: var(--f-display); font-size: 1.15rem; margin: 6px 0 10px; }
.ag-detail dl { margin: 0; }
.ag-detail dl div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); }
.ag-detail dt { color: var(--muted); }
.ag-detail dd { margin: 0; font-weight: 600; text-align: right; }

/* Tablero */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi small { color: var(--muted); font-size: .8rem; }
.kpi b { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.kpi span { font-size: .78rem; color: var(--muted); }
.kpi .up { color: #157552; font-weight: 600; }
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.dash-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.dash-card h4 { margin: 0 0 14px; font-family: var(--f-display); font-size: 1rem; }
.dash-card h4.mt { margin-top: 22px; }
.funnel { display: grid; gap: 8px; }
.funnel div { position: relative; display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 10px; font-size: .86rem; overflow: hidden; z-index: 0; }
.funnel div::before { content: ""; position: absolute; inset: 0; width: var(--w); background: linear-gradient(90deg, var(--blue), var(--blue-2)); opacity: .2; z-index: -1; border-radius: 10px; transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.sim-panel.live .funnel div::before { transform: scaleX(1); }
.bars { display: grid; gap: 10px; }
.bars div { display: grid; grid-template-columns: 110px 1fr 36px; gap: 10px; align-items: center; font-size: .84rem; }
.bars i { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--blue-2)); transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.sim-panel.live .bars i { transform: scaleX(var(--v)); }
.bars b { text-align: right; }
.stack { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 2px; }
.stack i { width: var(--v); }
.s1 { background: var(--blue); } .s2 { background: var(--blush); } .s3 { background: var(--mint); }
.stack-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: .78rem; color: var(--muted); }
.stack-legend span { background: none; display: inline-flex; align-items: center; gap: 6px; }
.stack-legend span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
.stack-legend .s1::before { background: var(--blue); } .stack-legend .s2::before { background: var(--blush); } .stack-legend .s3::before { background: var(--mint); }

/* Trust */
.trust { margin-top: 56px; display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.trust-grid div { background: var(--paper); padding: 20px; }
.trust-grid b { font-family: var(--f-display); font-size: 1.05rem; display: block; margin-bottom: 6px; }
.trust-grid p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Recorrido */
.stage-sec { position: relative; height: 320vh; padding: 0; overflow: clip; }
.stage-sticky { position: sticky; top: 0; height: 100svh; max-height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; padding-block: calc(var(--header-h) + 24px) 28px;
  background: radial-gradient(50% 60% at 70% 55%, rgba(65, 159, 211, .22), transparent 70%); }
.stage-head .h2 { max-width: 24ch; }
.stage-body { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; align-items: center; min-height: 0; }
.stage-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.stage-steps li { display: flex; gap: 14px; padding: 14px 16px; border-radius: 14px; opacity: .38; transition: opacity .4s, background .4s; }
.stage-steps li.active { opacity: 1; background: rgba(157, 206, 236, .08); }
.stage-steps .mono { color: var(--sky); font-size: .8rem; padding-top: 3px; }
.stage-steps b { font-family: var(--f-display); font-size: 1.1rem; display: block; }
.stage-steps p { margin: 2px 0 0; color: rgba(234,244,251,.7); font-size: .9rem; }
.stage-canvas { display: flex; flex-direction: column; gap: 14px; min-height: 0; height: 100%; max-height: 520px; }
.stage-cube { position: relative; flex: 1; min-height: 280px; border-radius: 22px; border: 1px solid var(--line-light); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); overflow: hidden; }
.stage-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); pointer-events: none; opacity: 0; transition: opacity .5s; }
.stage-cube.cols-on .stage-cols { opacity: 1; }
.stage-cols span { border-left: 1px dashed var(--line-light); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); padding: 12px 10px; }
.stage-cols span:first-child { border-left: 0; }
.bub { position: absolute; left: 0; top: 0; width: var(--bw, 150px); padding: 7px 10px; font-size: .74rem; line-height: 1.25; border-radius: 12px 12px 12px 3px; background: #fff; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; will-change: transform; box-shadow: 0 6px 18px -8px rgba(0,0,0,.5); transition: background .4s, color .4s; }
.bub.c1 { background: #fff; }
.bub.c2 { background: var(--sky); }
.bub.c3 { background: var(--blue-2); color: #fff; }
.bub.c4 { background: var(--mint); color: #06281b; }
.stage-cube.compact .bub.placed { font-size: 0; padding: 0; height: 12px; }
.stage-counter { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stage-counter div { border: 1px solid var(--line-light); border-radius: 14px; padding: 10px 16px; display: flex; justify-content: space-between; align-items: baseline; }
.stage-counter small { color: rgba(234,244,251,.7); font-size: .82rem; }
.stage-counter b { font-size: 1.8rem; color: #fff; }
.stage-mobile-ctrl { display: none; gap: 8px; justify-content: center; }
.stage-mobile-ctrl button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-light); background: transparent; color: #fff; font-family: var(--f-mono); }
.stage-mobile-ctrl button[aria-pressed="true"] { background: var(--sky); color: var(--brand); border-color: var(--sky); }

/* Acordeones */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: grid; grid-template-columns: 56px 1fr auto 24px; align-items: center; gap: 12px; padding: 22px 4px; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.3rem; color: var(--blue-deep); text-align: center; transition: transform .25s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc summary .mono { color: var(--blue-deep); font-size: .85rem; }
.acc summary b { font-family: var(--f-display); font-size: clamp(1.1rem, 2vw, 1.45rem); letter-spacing: -.015em; font-weight: 600; }
.acc .cnt { font-family: var(--f-mono); font-style: normal; font-size: .76rem; color: var(--muted); background: var(--surface); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.acc-body { padding: 0 4px 28px 72px; }
.caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.caps li { position: relative; padding-left: 26px; font-size: .96rem; }
.caps li::before { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 4px; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.note { margin: 18px 0 0; font-size: .86rem; color: var(--muted); padding-left: 14px; border-left: 2px solid var(--blush); }
.base-band { margin-top: 48px; padding: 24px 28px; border-radius: var(--r); background: var(--brand); color: #fff; display: flex; gap: 20px 32px; align-items: center; flex-wrap: wrap; }
.base-band ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.base-band li { font-size: .86rem; padding: 6px 12px; border: 1px solid var(--line-light); border-radius: 999px; }

/* Impacto */
.tbl-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
table.impact { width: 100%; border-collapse: collapse; }
.impact th { text-align: left; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 16px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.impact th:last-child { color: var(--blue-deep); }
.impact td { padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: .96rem; vertical-align: top; }
.impact tr:last-child td { border-bottom: 0; }
.impact td:first-child { font-weight: 600; width: 30%; }
.impact td:nth-child(2) { color: var(--muted); }
.impact td:last-child { color: var(--blue-deep); font-weight: 600; background: rgba(157, 206, 236, .12); }
.stats { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 6px; }
.stat b { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -.04em; color: var(--blue-deep); font-weight: 700; }
.stat span { color: var(--muted); font-size: .94rem; }
.stat i { margin-top: 12px; height: 4px; border-radius: 99px; background: var(--surface); position: relative; overflow: hidden; }
.stat i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), var(--sky)); transform-origin: left; transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.stat.in i::after { transform: scaleX(var(--v)); }

/* Precio */
.price-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: stretch; }
.price-card { border: 1px solid var(--line-light); border-radius: 26px; padding: clamp(28px, 4vw, 48px); background: radial-gradient(80% 90% at 0% 0%, rgba(65,159,211,.22), transparent 60%), rgba(255,255,255,.02); }
.price-label { margin: 0 0 22px; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }
.price-old { position: relative; display: inline-block; font-size: clamp(1.6rem, 3vw, 2.4rem); color: rgba(234,244,251,.85); transition: opacity .6s, transform .6s; transform-origin: left; }
.price-old .mono { font-weight: 500; }
.price-x { position: absolute; inset: -4px -8px; width: calc(100% + 16px); height: calc(100% + 8px); overflow: visible; }
.price-x line { stroke: var(--red); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 130; stroke-dashoffset: 130; }
.price-new { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; opacity: 0; transform: translateY(18px); transition: opacity .6s .1s, transform .7s .1s cubic-bezier(.2,.8,.2,1); }
.price-new .cur { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3rem); color: var(--sky); }
.price-new .num { font-family: var(--f-display); font-weight: 800; font-size: clamp(4rem, 10vw, 7.4rem); line-height: .9; letter-spacing: -.05em; color: #fff; font-variant-numeric: tabular-nums; }
.price-new .mxn { font-family: var(--f-mono); font-size: .9rem; color: var(--sky); margin-left: 6px; }
.price-iva { margin: 6px 0 0; font-family: var(--f-mono); font-size: .8rem; color: rgba(234,244,251,.6); opacity: 0; transition: opacity .5s; }
.price-badge { display: inline-block; margin: 16px 0 0; font-weight: 700; color: var(--red); background: rgba(229,72,61,.12); border: 1px solid rgba(229,72,61,.45); padding: 8px 14px; border-radius: 999px; font-size: .92rem; opacity: 0; transform: scale(.85); transition: opacity .4s, transform .5s cubic-bezier(.3,1.6,.5,1); }
.price-card.play .price-x line { animation: drawx .45s cubic-bezier(.6,0,.3,1) forwards; }
.price-card.play .price-x line:nth-child(2) { animation-delay: .35s; }
.price-card.play .price-old { opacity: .55; transform: scale(.82); transition-delay: .9s; }
.price-card.play .price-new { opacity: 1; transform: none; transition-delay: 1s; }
.price-card.play .price-iva { opacity: 1; transition-delay: 1.6s; }
.price-card.play .price-badge { opacity: 1; transform: none; transition-delay: 1.9s; }
@keyframes drawx { to { stroke-dashoffset: 0; } }
.price-facts { list-style: none; margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line-light); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.price-facts li { display: flex; flex-direction: column; }
.price-facts b { font-size: 1.6rem; color: #fff; }
.price-facts span { font-size: .82rem; color: rgba(234,244,251,.65); }
.price-side { display: flex; flex-direction: column; gap: 14px; }
.side-block { border: 1px solid var(--line-light); border-radius: 20px; padding: 24px; }
.annual { margin: 10px 0 14px; }
.annual .mono { font-size: 1.9rem; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.annual small { font-family: var(--f-mono); font-size: .76rem; color: rgba(234,244,251,.6); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 22px; font-size: .92rem; color: rgba(234,244,251,.82); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--sky); transform: rotate(45deg); }
.ticks.dark li { color: var(--text); }
.ticks.dark li::before { background: var(--blue); }
.ticks.x li::before { background: none; transform: none; content: "×"; top: -1px; left: 1px; width: auto; height: auto; color: var(--red); font-weight: 700; font-size: 1.05rem; }
.side-block .muted-light { margin: 8px 0 0; font-size: .94rem; }
.ext { margin: 4px 4px 0; font-size: .8rem; color: rgba(234,244,251,.55); }

/* Plazos: tira de contactos */
.film-wrap { overflow-x: auto; padding-bottom: 6px; }
.film { min-width: 760px; }
.film-phases { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 10px; }
.ph { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px; border-radius: 8px; border-top: 3px solid; }
.ph.p1, .frame.p1 { --c: var(--sky); } .ph.p2, .frame.p2 { --c: var(--blue-2); } .ph.p3, .frame.p3 { --c: var(--blush); } .ph.p4, .frame.p4 { --c: var(--mint); }
.ph { border-color: var(--c); color: var(--c); background: rgba(255,255,255,.03); }
.film-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; background: #050C12; padding: 26px 10px; border-radius: 10px; position: relative;
  background-image: radial-gradient(circle, transparent 0 0), repeating-linear-gradient(90deg, rgba(255,255,255,.75) 0 10px, transparent 10px 22px), repeating-linear-gradient(90deg, rgba(255,255,255,.75) 0 10px, transparent 10px 22px);
  background-size: auto, 100% 8px, 100% 8px; background-position: 0 0, 6px 8px, 6px calc(100% - 8px); background-repeat: no-repeat; }
.film-strip::before { content: ""; position: absolute; inset: 0; border-radius: 10px; background: repeating-linear-gradient(90deg, transparent 0 4px, #050C12 4px 6px); opacity: 0; }
.frame { aspect-ratio: 4 / 3.4; border-radius: 4px; padding: 12px; display: flex; flex-direction: column; gap: 4px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 30%, #0b1a26), #0b1a26 80%); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); opacity: .35; transform: translateY(8px); transition: opacity .6s, transform .6s; }
.frame.in { opacity: 1; transform: none; }
.frame .mono { font-size: .72rem; color: var(--c); }
.frame b { font-family: var(--f-display); font-size: 1rem; line-height: 1.15; color: #fff; }
.frame small { font-size: .78rem; color: rgba(234,244,251,.7); line-height: 1.3; margin-top: auto; }
.film-pins { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; height: 22px; padding-inline: 10px; }
.film-pins i { justify-self: start; width: 2px; height: 22px; background: var(--sky); position: relative; }
.film-pins i::after { content: ""; position: absolute; bottom: -6px; left: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--sky); }
.pays { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.pay { border: 1px solid var(--line-light); border-radius: 18px; padding: 20px 22px; display: grid; gap: 4px; background: rgba(255,255,255,.03); }
.pay .when { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }
.pay b { font-size: 2.6rem; color: #fff; line-height: 1.05; letter-spacing: -.03em; }
.pay .amt { font-size: 1.05rem; color: rgba(234,244,251,.8); }
.pays-iva { margin: 12px 0 0; font-family: var(--f-mono); font-size: .74rem; color: rgba(234,244,251,.5); }

/* Responsabilidades */
.resp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.resp-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.resp-logo { height: 52px; display: flex; align-items: center; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); box-sizing: content-box; }
.resp-logo img { width: auto; }
.resp-logo img[src*="aipex"] { height: 30px; }
.resp-logo img[src*="studio"] { height: 52px; }

/* Comenzamos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: var(--r); overflow: hidden; }
.steps li { background: var(--ink); padding: 26px 22px; }
.steps .mono { display: block; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--sky); line-height: 1; margin-bottom: 18px; }
.steps b { font-family: var(--f-display); font-size: 1.2rem; display: block; color: #fff; }
.steps p { margin: 6px 0 0; color: rgba(234,244,251,.7); font-size: .92rem; }
.cta-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; margin-top: 64px; align-items: center; }
.cta-copy .h3 { max-width: 26ch; }
.cta-copy .muted-light { max-width: 52ch; margin-top: 16px; }
.cta-box { border-radius: 24px; padding: 28px; background: linear-gradient(160deg, var(--blue), #1A4E73); box-shadow: 0 30px 60px -30px rgba(65,159,211,.6); }
.cta-price { margin: 10px 0 20px; color: #fff; }
.cta-price .mono { font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; }
.cta-price small { font-family: var(--f-mono); font-size: .76rem; opacity: .7; }
.btn-wa { display: flex; justify-content: center; align-items: center; gap: 10px; background: #fff; color: var(--brand); text-decoration: none; font-weight: 700; padding: 15px 20px; border-radius: 999px; transition: transform .2s, box-shadow .2s; }
.btn-wa::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(60,196,142,.25); }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(0,0,0,.4); }
.cta-contact { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; font-size: .86rem; }
.cta-contact a { color: rgba(255,255,255,.85); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }

/* Logros */
.logros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.logros article { border-top: 1px solid var(--line-light); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.logros b { font-family: var(--f-display); font-size: 1.15rem; color: #fff; line-height: 1.2; }
.logros span { color: rgba(234,244,251,.62); font-size: .92rem; }

/* Footer */
.site-footer { padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: .86rem; color: rgba(234,244,251,.7); }
.footer-inner img { height: 22px; width: auto; }

/* Reveal */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .bar-nav a { padding: 7px 8px; font-size: .8rem; }
  .bar-pill { display: none; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 340px; }
  .reto-grid { grid-template-columns: 1fr; }
  .reto-head { position: static; grid-column: 1; margin-bottom: 30px; }
  .reto-list { grid-column: 1; }
  .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat-layout, .ag-wrap, .dash-row, .trust, .price-grid, .cta-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .bar-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; padding: 12px 16px 18px; background: var(--paper); border-bottom: 1px solid var(--line); color: var(--text); }
  .bar-nav.open { display: flex; }
  .bar-nav a { font-size: 1rem; padding: 12px; }
  .bar-menu { display: block; }
  .bar-brand span:last-child { font-size: .84rem; }
  .stage-sec { height: auto; }
  .stage-sticky { position: relative; height: auto; max-height: none; padding-block: 80px 48px; }
  .stage-body { grid-template-columns: 1fr; gap: 20px; }
  .stage-steps li { display: none; }
  .stage-steps li.active { display: flex; }
  .stage-canvas { max-height: none; }
  .stage-cube { height: 300px; flex: none; }
  .stage-mobile-ctrl { display: flex; margin-top: 12px; }
}
@media (max-width: 768px) {
  .resp-grid { grid-template-columns: 1fr; }
  .caps { grid-template-columns: 1fr; }
  .acc-body { padding-left: 4px; }
  .acc summary { grid-template-columns: 40px 1fr 20px; }
  .acc .cnt { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 4px; }
  .acc summary::after { grid-column: 3; grid-row: 1; }
  .pays { grid-template-columns: 1fr; }
  .tbl-wrap { border: 0; background: transparent; }
  table.impact, .impact tbody, .impact tr, .impact td { display: block; width: 100% !important; }
  .impact thead { display: none; }
  .impact tr { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
  .impact td { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 11px 14px; }
  .impact td::before { content: attr(data-label); font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding-top: 3px; }
  .price-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .mod-grid, .stats, .steps, .logros, .kpis { grid-template-columns: 1fr; }
  .mod-cell { min-height: 0; }
  .chip-msg { font-size: .74rem; padding: 8px 10px; }
  .m2, .m5 { right: 0; } .m3 { left: 0; }
  .phone { height: 500px; }
  .ag-grid { grid-template-columns: 40px repeat(5, minmax(0, 1fr)); }
  .appt span { display: none; }
  .bars div { grid-template-columns: 92px 1fr 30px; }
  .footer-inner { font-size: .78rem; }
  .bar-brand span:last-child b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}

@media print {
  .bar, .stage-mobile-ctrl, .skip-link { display: none !important; }
  .stage-sec { height: auto; } .stage-sticky { position: relative; height: auto; max-height: none; }
  .rv, .frame, .price-new, .price-badge, .price-iva { opacity: 1 !important; transform: none !important; }
  .sec { padding-block: 40px; break-inside: avoid-page; }
}

/* Formal additions */
.hero-meta { display: flex; flex-wrap: wrap; gap: 0; margin: 32px 0 0; border-top: 1px solid var(--line); max-width: 620px; }
.hero-meta div { flex: 1 1 160px; padding: 14px 18px 0 0; }
.hero-meta dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero-meta dd { margin: 4px 0 0; font-weight: 600; font-size: .98rem; }
.summary { margin: 14px 0 0; }
.summary div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-light); }
.summary div:last-child { border-bottom: 1px solid var(--line-light); }
.summary dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); padding-top: 3px; }
.summary dd { margin: 0; color: #fff; }
@media (max-width: 560px) { .summary div { grid-template-columns: 1fr; gap: 2px; } }
