/* Plus Jakarta Sans (licencia SIL OFL) alojada en la propia web: sin enviar datos a Google */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* Tipografía */
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(40px, 7.4vw, 84px); }
h2 { font-size: clamp(32px, 5vw, 56px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -0.015em; }
p { margin: 0; }
.lead { font-size: clamp(18px, 2.1vw, 22px); color: var(--muted); max-width: 40ch; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5546d6; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; margin-inline: auto; }
.muted { color: var(--muted); }

/* Cabecera */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }
.lite .nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -0.02em; }
.brand img { width: 24px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav__links a { text-decoration: none; }
.nav__menu { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav__menu span { display: block; width: 22px; height: 2px; margin: 5px 0; border-radius: 2px; }
@media (max-width: 860px) {
  .nav__menu { display: block; }
  .nav__links { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); padding: 8px max(20px, env(safe-area-inset-left, 0px)) 18px; }
  .nav__links a { padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav--open .nav__links { display: flex; }
  .nav .btn--small { display: none; }
}

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: 999px; font: 700 16px var(--sans); text-decoration: none; border: 0; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(17,24,39,.45); }
.btn--grad { background: var(--grad); color: #0b1530; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link { color: var(--purple); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Secciones */
section { padding-block: clamp(72px, 11vw, 140px); }
.sec-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head.center { justify-items: center; text-align: center; }
.band { background: var(--surface); }
.band--soft { background: var(--soft); }

/* Servicios */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tile { position: relative; background: var(--surface); border-radius: var(--r); padding: clamp(26px, 3.4vw, 40px); display: grid; gap: 12px; align-content: start; border: 1px solid var(--line); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; min-width: 0; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(17,24,39,.35); }
.tile__ico { width: 46px; height: 46px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; }
.tile__ico svg { width: 24px; height: 24px; stroke: var(--purple); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile p { color: var(--muted); }
.tile .price { font-weight: 800; font-size: 15px; color: var(--ink); }
.tile--new { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 2px solid transparent; }
.badge { position: absolute; top: 20px; right: 20px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--grad); color: #0b1530; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }

/* Deslizador antes/después */
.ba { position: relative; aspect-ratio: 800 / 455; border-radius: var(--r); overflow: hidden; --pos: 50%; box-shadow: 0 30px 60px -36px rgba(17,24,39,.45); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 2px solid var(--line); }
.steps li::before { content: "0" counter(s); font-weight: 800; font-size: 14px; color: var(--purple); }
.steps p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Asistente "¿Qué necesita tu negocio?" */
.quiz__result { border-radius: 20px; background: var(--soft); padding: 22px; display: grid; gap: 10px; }
.quiz__result .plan-name { font-size: 24px; font-weight: 800; }
.quiz__result .plan-price { font-weight: 800; color: var(--purple); }

/* Precios */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border-radius: var(--r); padding: 30px 26px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.plan--hot { border: 2px solid transparent; }
.plan .badge { top: -13px; right: 22px; }
.plan h3 { font-size: 21px; }
.plan__for { color: var(--muted); font-size: 15px; min-height: 2.8em; }
.plan__price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan__price small { font-size: 17px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.plan__sub { font-size: 14px; color: var(--muted); }
.plan__year { font-size: 14px; font-weight: 700; color: var(--mint-ink); min-height: 1.4em; }
.plan ul { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 9px; font-size: 15px; flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: #e3f8f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230f7d66' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan .btn { width: 100%; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.toggle { justify-self: start; display: inline-flex; background: var(--soft); border-radius: 999px; padding: 4px; gap: 4px; }
.toggle button { border: 0; background: transparent; font: 700 14px var(--sans); padding: 9px 18px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(17,24,39,.12); }
.guarantees { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 36px; font-weight: 700; font-size: 15px; }
.guarantees span { color: var(--mint-ink); }

/* Tabla comparativa */
.table-box { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
td.y { color: var(--mint-ink); font-weight: 800; }
td.n { color: #b8bcc8; }
tr:last-child td { border-bottom: 0; }

/* Listas de contenido */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 760px) { .cols-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 34px); display: grid; gap: 12px; align-content: start; min-width: 0; }
.card p, .card li { color: var(--muted); }
.card ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prose { max-width: 68ch; display: grid; gap: 18px; }
.prose p, .prose li { color: #3b4252; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.prose h2 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 18px; }
.note { font-size: 14px; color: var(--muted); }

/* Preguntas frecuentes */
.faq { max-width: 820px; margin-inline: auto; display: grid; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* Formulario demo */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.form input, .form select, .form textarea { font: 16px var(--sans); padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(122,108,240,.15); }
.form .hint { font-size: 13px; color: var(--muted); font-weight: 500; }

.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px clamp(24px, 4vw, 56px); align-items: start; }
.demo-grid > form { grid-column: 2; grid-row: 1 / span 2; }
.demo-grid__steps { grid-column: 1; }
@media (max-width: 760px) { .demo-grid { grid-template-columns: 1fr; } .demo-grid > form { grid-column: auto; grid-row: auto; } }

/* Llamada final */
.cta { text-align: center; }
.cta__box { border-radius: 36px; background: #0f1424; color: #fff; padding: clamp(48px, 8vw, 96px) clamp(22px, 5vw, 64px); display: grid; gap: 22px; justify-items: center; position: relative; overflow: hidden; }
.cta__box::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(closest-side, rgba(133,119,245,.55), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(73,214,184,.45), transparent 70%); pointer-events: none; }
.cta__box > * { position: relative; }
.cta__box .lead { color: #c4cad8; }
.cta__box .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }

/* Subpáginas */
.page-hero { padding-block: clamp(56px, 9vw, 110px) clamp(40px, 6vw, 70px); }
.page-hero .wrap { display: grid; gap: 22px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Pie */
.foot { padding-block: 56px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot .foot__h { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__grid > :first-child { grid-column: 1 / -1; } }

/* WhatsApp flotante */
.wa-float { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37,211,102,.7); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Cinta en movimiento */
.marquee { overflow: hidden; padding-block: 26px; border-bottom: 1px solid var(--line); background: var(--surface); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track ul { display: flex; gap: 44px; padding-right: 44px; margin: 0; list-style: none; font-size: clamp(18px, 2.2vw, 24px); font-weight: 800; letter-spacing: -0.02em; color: #6b7280; white-space: nowrap; }
.marquee__track li:nth-child(3n+1) { color: var(--ink); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Foco de luz que sigue al ratón (solo ratón) */
@media (hover: hover) and (pointer: fine) {
  .tile { background-image: radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), rgba(122,108,240,.10), transparent 60%); }
  .tile--new { background: radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), rgba(73,214,184,.14), transparent 60%) padding-box, linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
}

/* Borde con brillo girando en el plan recomendado */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.plan--hot { background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--spin), #8577f5, #49d6b8, #c9c2ff, #8577f5) border-box; animation: spin 6s linear infinite; }
@keyframes spin { to { --spin: 360deg; } }

/* Aparición suave: solo si hay JS, el aparato no es lento y el usuario no pide menos movimiento.
   El contenido es visible por defecto. */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.lite) .reveal { opacity: 0; transform: translateY(24px); filter: blur(8px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1), filter .8s ease; }
  .js:not(.lite) .reveal.in { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
.lite * { transition: none !important; animation: none !important; }

/* =====================================================================
   v2.1 — "wow": ritmo claro/oscuro tipo Apple, constructor en vivo.
   Todo CSS; las animaciones ligadas al scroll solo donde el navegador
   las soporta (si no, se ven quietas y completas).
   ===================================================================== */
:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --soft: #f2f3f7;
  --ink: #111827;
  --muted: #5f6675;
  --line: #e4e6ee;
  --purple: #7a6cf0;
  --mint: #2fc4a3;
  --mint-ink: #0f7d66;
  --grad: linear-gradient(120deg, #8577f5 0%, #49d6b8 100%);
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --r: 22px;
  --wrap: 1120px;
  color-scheme: light; --night: #07080d; --night-2: #0f111a; --night-line: rgba(255,255,255,.09); --night-ink: #f5f5f7; --night-muted: #a1a1aa; }

/* Secciones oscuras */
.dark { background: var(--night); color: var(--night-ink); }
.dark .muted, .dark .lead { color: var(--night-muted); }
.dark .eyebrow { color: #9d93ff; }
.dark .btn--primary { background: #fff; color: var(--night); }
.dark .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); }
.dark .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.glow { position: relative; isolation: isolate; overflow: hidden; }
.glow::before { content: ""; position: absolute; z-index: -1; inset: -20% -10% auto; height: 110%; background: radial-gradient(40% 50% at 25% 30%, rgba(133,119,245,.35), transparent 70%), radial-gradient(35% 45% at 80% 40%, rgba(73,214,184,.25), transparent 70%); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .js:not(.lite) .glow::before { animation: drift 18s ease-in-out infinite alternate; } }
@keyframes drift { to { transform: translate3d(4%, 6%, 0) scale(1.08); } }

/* ---------- Portada: constructor en vivo ---------- */
.builder { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 9vw, 120px); }
.builder .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.builder__copy { display: grid; gap: 26px; min-width: 0; }
.builder h1 { font-size: clamp(42px, 6.6vw, 80px); }
.builder__form { display: grid; gap: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--night-line); border-radius: 24px; padding: 18px; }
.builder__form label { font-size: 13px; font-weight: 700; color: var(--night-muted); letter-spacing: .04em; text-transform: uppercase; }
.builder__input { width: 100%; font: 800 clamp(22px, 3vw, 30px) var(--sans); letter-spacing: -0.02em; color: #fff; background: transparent; border: 0; border-bottom: 2px solid rgba(255,255,255,.18); padding: 6px 0 10px; border-radius: 0; }
.builder__input::placeholder { color: rgba(255,255,255,.35); }
.builder__input:focus { outline: none; border-color: #9d93ff; }
.sectors { display: flex; flex-wrap: wrap; gap: 8px; }
.sectors button { font: 600 14px var(--sans); color: var(--night-muted); background: rgba(255,255,255,.06); border: 1px solid var(--night-line); padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.sectors button[aria-pressed="true"] { background: #fff; color: var(--night); border-color: #fff; }
.builder__hint { font-size: 14px; color: var(--night-muted); }
.builder__hint b { color: #fff; }
@media (max-width: 900px) {
  .builder .wrap { grid-template-columns: 1fr; gap: 22px; }
  /* En móvil la vista previa va justo debajo del campo, para ver el resultado mientras escribes */
  .builder__copy { display: contents; }
  .builder__copy > .eyebrow { order: 1; } .builder h1 { order: 2; } .builder__copy > .lead { order: 3; }
  .builder__form { order: 4; } .builder .device { order: 5; width: min(270px, 72vw); margin-block: 8px 12px; }
  .builder__copy > .actions { order: 6; } .builder__hint { order: 7; }
}

/* Móvil con la web construyéndose */
.device { --site-a: #8577f5; --site-b: #49d6b8; position: relative; width: min(340px, 84vw); margin-inline: auto; aspect-ratio: 9 / 18.6; border-radius: 50px; padding: 12px; background: linear-gradient(145deg, #2a2d3a, #0b0c12); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 50px 100px -30px rgba(0,0,0,.8), 0 0 120px -20px var(--site-a); transition: box-shadow .6s ease; }
.device__screen { position: relative; height: 100%; border-radius: 39px; overflow: hidden; background: #fff; color: #111; font-size: 12px; display: flex; flex-direction: column; }
.device__notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 3; }
.site__top { display: flex; align-items: center; gap: 8px; padding: 44px 16px 10px; }
.site__logo { width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, var(--site-a), var(--site-b)); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.site__name { font-weight: 800; font-size: 14px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site__burger { margin-left: auto; width: 16px; height: 10px; border-block: 2px solid #111; flex: none; }
.site__hero { margin: 0 12px; border-radius: 22px; padding: 22px 18px; min-height: 42%; display: grid; align-content: end; gap: 8px; color: #fff; background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.35), transparent 50%), linear-gradient(150deg, var(--site-a), var(--site-b)); position: relative; overflow: hidden; }
.site__hero::after { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%; border: 18px solid rgba(255,255,255,.18); }
.site__kicker { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.site__title { font-size: 24px; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.site__tag { font-size: 12px; opacity: .92; }
.site__cta { justify-self: start; margin-top: 6px; background: #fff; color: #111; font-weight: 800; font-size: 12px; padding: 9px 14px; border-radius: 999px; }
.site__chips { display: flex; gap: 6px; padding: 12px 12px 0; }
.site__chips span { flex: 1; text-align: center; padding: 9px 4px; border-radius: 12px; background: #f2f3f7; font-weight: 700; font-size: 11px; }
.site__review { margin: 10px 12px 0; padding: 10px 12px; border-radius: 14px; border: 1px solid #eceef3; display: flex; align-items: center; gap: 10px; }
.site__review b { font-size: 18px; }
.site__review .stars { color: #f5a623; letter-spacing: 1px; }
.site__review small { color: #6b7280; display: block; }
.site__map { margin: 10px 12px 12px; flex: 1; border-radius: 14px; background: repeating-linear-gradient(35deg, #eef1f6 0 14px, #e6eaf1 14px 15px), #eef1f6; position: relative; min-height: 50px; }
.site__map::after { content: ""; position: absolute; left: 50%; top: 45%; width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: translate(-50%, -50%) rotate(-45deg); background: var(--site-a); box-shadow: 0 0 0 5px rgba(255,255,255,.8); }
.site__wa { position: absolute; right: 16px; bottom: 18px; width: 40px; height: 40px; border-radius: 50%; background: #25d366; box-shadow: 0 8px 18px -6px rgba(37,211,102,.8); display: grid; place-items: center; }
.site__wa::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid #fff; border-bottom-left-radius: 2px; }
.device__badge { position: absolute; left: -26px; bottom: 22%; background: #fff; color: #111; padding: 10px 14px; border-radius: 16px; font-size: 13px; font-weight: 800; box-shadow: 0 20px 40px -16px rgba(0,0,0,.6); display: flex; gap: 8px; align-items: center; }
.device__badge i { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); }
.device__time { position: absolute; right: -22px; top: 18%; background: rgba(20,22,32,.85); border: 1px solid var(--night-line); color: #fff; padding: 10px 14px; border-radius: 16px; font-size: 13px; font-weight: 700; }
.device__time b { display: block; font-size: 20px; }
@media (max-width: 480px) { .device__badge { left: -6px; } .device__time { right: -6px; } }
/* Cada vez que cambia el negocio, los bloques de la web "se construyen" otra vez */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.lite) .building .site__top, .js:not(.lite) .building .site__hero, .js:not(.lite) .building .site__chips, .js:not(.lite) .building .site__review, .js:not(.lite) .building .site__map { animation: build .7s cubic-bezier(.2,.8,.2,1) both; }
  .js:not(.lite) .building .site__hero { animation-delay: .08s; }
  .js:not(.lite) .building .site__chips { animation-delay: .16s; }
  .js:not(.lite) .building .site__review { animation-delay: .24s; }
  .js:not(.lite) .building .site__map { animation-delay: .32s; }
  .js:not(.lite) .typing .site__name::after { content: "|"; margin-left: 1px; animation: caret 1s steps(1) infinite; font-weight: 400; }
}
@keyframes build { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- Frase gigante que se ilumina al hacer scroll ---------- */
.statement { padding-block: clamp(90px, 14vw, 180px); }
.statement p { font-size: clamp(32px, 5.4vw, 68px); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; max-width: 20ch; text-wrap: balance; }
.statement .w.on { color: var(--ink); }
.statement .w.g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Cifras ---------- */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.figure { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 6px; }
.figure b { font-size: clamp(44px, 6vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.figure span { color: var(--muted); }
@media (max-width: 640px) { .figures { grid-template-columns: 1fr; } }

/* ---------- Google: tu negocio sube al primer puesto ---------- */
.rank { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.rank__list { position: relative; height: 336px; max-width: 460px; width: 100%; }
.rank__search { margin: 0; height: 52px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--night-line); display: flex; align-items: center; gap: 10px; padding: 0 18px; color: var(--night-muted); font-size: 15px; }
.rank__search svg { width: 18px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.rank__item { position: absolute; left: 0; right: 0; height: 58px; border-radius: 16px; border: 1px solid var(--night-line); display: flex; align-items: center; gap: 12px; padding: 0 16px; transition: transform 1.1s cubic-bezier(.2,.8,.2,1) .2s; }
.rank__item b { font-size: 15px; }
.rank__item small { color: var(--night-muted); margin-left: auto; font-size: 13px; white-space: nowrap; }
.rank__pos { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: rgba(255,255,255,.08); color: var(--night-muted); flex: none; }
.rank__item:nth-of-type(1) { top: 66px; } .rank__item:nth-of-type(2) { top: 134px; } .rank__item:nth-of-type(3) { top: 202px; } .rank__item:nth-of-type(4) { top: 270px; }
.rank__item--you { border-color: rgba(73,214,184,.6); transform: translateY(-204px); }
.rank__item--you .rank__pos { background: var(--mint); color: #05302a; }
/* Sin JS o en aparatos lentos se ve directamente el resultado final */
.rank__item:not(.rank__item--you) { transform: translateY(68px); }
.js:not(.lite) .rank__list:not(.in) .rank__item { transform: none; }
.rank__pos::after { content: attr(data-b); }
.js:not(.lite) .rank__list:not(.in) .rank__pos::after { content: attr(data-a); }
.rank__points { display: grid; gap: 22px; list-style: none; margin: 0; padding: 0; }
.rank__points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.rank__points i { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.07); display: grid; place-items: center; font-style: normal; font-weight: 800; color: #9d93ff; }
.rank__points b { display: block; color: #fff; margin-bottom: 2px; }
.rank__points p { color: var(--night-muted); }
@media (max-width: 900px) { .rank { grid-template-columns: 1fr; } }

/* ---------- Servicios en mosaico ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento > * { grid-column: span 3; }
.bento .b-wide { grid-column: span 4; } .bento .b-narrow { grid-column: span 2; }
.cell { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(24px, 3vw, 36px); display: grid; align-content: start; gap: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .3s ease, box-shadow .3s ease; min-width: 0; }
.cell:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(17,24,39,.45); }
.cell p { color: var(--muted); max-width: 36ch; }
.cell .price { font-weight: 800; font-size: 15px; }
.cell--dark { background: var(--night-2); border-color: var(--night-2); color: #fff; }
.cell--dark p { color: var(--night-muted); }
.cell .badge { top: 22px; right: 22px; }
.cell__art { position: absolute; left: clamp(24px, 3vw, 36px); right: clamp(24px, 3vw, 36px); bottom: 0; pointer-events: none; }
@media (max-width: 900px) { .bento > *, .bento .b-wide, .bento .b-narrow { grid-column: 1 / -1; } }
@keyframes ripple { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

/* ---------- Escaparate de trabajos ---------- */
@supports (animation-timeline: view()) {
}
@keyframes rise { from { transform: perspective(1200px) rotateX(20deg) scale(.86); opacity: .3; } }

/* Subpáginas: cabecera oscura con el mismo brillo que la portada */
.page-hero { position: relative; isolation: isolate; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; z-index: -1; inset: -30% -10% auto; height: 130%; background: radial-gradient(40% 50% at 20% 30%, rgba(133,119,245,.32), transparent 70%), radial-gradient(35% 45% at 85% 50%, rgba(73,214,184,.22), transparent 70%); pointer-events: none; }
.page-hero .card { color: var(--ink); }

/* ---------- Portada v3: el logo K se forma ---------- */
.kh { position: relative; isolation: isolate; overflow: hidden; min-height: min(92vh, 860px); display: grid; align-items: center; padding-block: clamp(56px, 9vw, 110px); }
.kh::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 42%; width: min(1100px, 160vw); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(133,119,245,.30), rgba(73,214,184,.12) 45%, transparent 70%); pointer-events: none; }
.kh::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask: radial-gradient(60% 55% at 50% 45%, #000, transparent); mask: radial-gradient(60% 55% at 50% 45%, #000, transparent); pointer-events: none; }
.kh__inner { display: grid; justify-items: center; text-align: center; gap: 22px; }
.kh__logo { width: clamp(110px, 15vw, 170px); overflow: visible; margin-bottom: 8px; filter: drop-shadow(0 18px 40px rgba(133,119,245,.35)); }
.kh h1 { font-size: clamp(44px, 8vw, 104px); max-width: 13ch; }
.kh__rot { font-size: clamp(19px, 2.4vw, 26px); min-height: 1.6em; }
.rot { color: #fff; font-weight: 800; }
.rot__word { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.js:not(.lite) .rot::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -0.15em; background: #49d6b8; animation: caret 1s steps(1) infinite; }
.kh .actions { justify-content: center; margin-top: 6px; }
.kh__scroll { position: absolute; left: 50%; bottom: 26px; width: 24px; height: 38px; margin-left: -12px; border-radius: 14px; border: 2px solid rgba(255,255,255,.25); }
.kh__scroll::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; }

/* Estado final por defecto (sin JS, aparatos lentos, visitas repetidas) */
.kh__logo .d { stroke-dasharray: 1; stroke-dashoffset: 0; }
.kh__pulse path { stroke-dasharray: .1 .9; stroke-dashoffset: 1; opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  /* Primera visita: se dibuja el hexágono, luego la K, luego aparecen los nodos y el texto */
  html:not(.intro-done):not(.lite) .kh__logo .d { stroke-dashoffset: 1; animation: draw 1s cubic-bezier(.6,0,.2,1) forwards; }
  html:not(.intro-done):not(.lite) .kh__logo .d1 { animation-duration: 1.3s; }
  html:not(.intro-done):not(.lite) .kh__logo .d2 { animation-delay: .9s; animation-duration: .45s; }
  html:not(.intro-done):not(.lite) .kh__logo .d3 { animation-delay: 1.2s; animation-duration: .45s; }
  html:not(.intro-done):not(.lite) .kh__logo .d4 { animation-delay: 1.35s; animation-duration: .45s; }
  html:not(.intro-done):not(.lite) .kh__logo .n { transform-box: fill-box; transform-origin: center; animation: node .5s cubic-bezier(.3,1.6,.5,1) both; }
  html:not(.intro-done):not(.lite) .kh__in { animation: rise-in .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: 1.6s; }
  html:not(.intro-done):not(.lite) h1.kh__in { animation-delay: 1.75s; }
  html:not(.intro-done):not(.lite) .kh__rot.kh__in { animation-delay: 1.9s; }
  html:not(.intro-done):not(.lite) .actions.kh__in { animation-delay: 2.05s; }
  /* Pulso de luz que recorre el logo, una vez formado */
  html:not(.lite) .kh__pulse path { opacity: 1; animation: pulse 3.2s linear infinite; }
  html:not(.lite) .kh__pulse path:nth-child(2) { animation-delay: .5s; }
  html:not(.lite) .kh__pulse path:nth-child(3) { animation-delay: .9s; }
  html:not(.lite) .kh__pulse path:nth-child(4) { animation-delay: 1.1s; }
  html:not(.intro-done):not(.lite) .kh__pulse { animation: fade-in .6s ease 2s both; }
  html:not(.lite) .kh__scroll::after { animation: wheel 1.8s ease-in-out infinite; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes node { from { transform: scale(0); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes pulse { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes wheel { 50% { transform: translateY(10px); opacity: .3; } }

/* ---------- Comparativa ---------- */
.vs { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; max-width: 980px; margin-inline: auto; align-items: start; }
.vs__col { border-radius: 28px; padding: clamp(24px, 3.4vw, 40px); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 18px; }
.vs__col--k { background: var(--night); border-color: var(--night); color: #fff; box-shadow: 0 40px 80px -40px rgba(122,108,240,.6); }
.vs__name { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.vs ul { list-style: none; margin: 0; padding: 0; display: grid; }
.vs li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.vs__col--k li { border-color: var(--night-line); }
.vs li:last-child { border-bottom: 0; }
.vs li span { font-size: 13px; color: var(--muted); }
.vs__col--k li span { color: var(--night-muted); }
.vs li b { font-size: 17px; }
.vs__col--k li b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vs__col:not(.vs__col--k) li b { color: #6b7280; font-weight: 600; }
.vs__col--k .btn--primary { background: #fff; color: var(--night); }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } }

@media (max-width: 600px) { .kh__rot { min-height: 3.2em; } }
[id] { scroll-margin-top: 76px; }

/* ---------- Portada v4: blanco con aurora ---------- */
.kh { background: #fbfbfd; color: var(--ink); }
.kh::before, .kh::after { display: none; }
.kh__aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.kh__aurora i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; }
.kh__aurora i:nth-child(1) { left: -18vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(133,119,245,.55), rgba(133,119,245,0)); }
.kh__aurora i:nth-child(2) { left: 50%; top: -22vmax; margin-left: -35vmax; background: radial-gradient(closest-side, rgba(90,168,255,.42), rgba(90,168,255,0)); }
.kh__aurora i:nth-child(3) { right: -20vmax; top: -12vmax; background: radial-gradient(closest-side, rgba(73,214,184,.50), rgba(73,214,184,0)); }
.kh__aurora::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, #fbfbfd); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.lite) .kh__aurora i:nth-child(1) { animation: aur1 16s ease-in-out infinite alternate; }
  html:not(.lite) .kh__aurora i:nth-child(2) { animation: aur2 20s ease-in-out infinite alternate; }
  html:not(.lite) .kh__aurora i:nth-child(3) { animation: aur3 18s ease-in-out infinite alternate; }
}
@keyframes aur1 { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.1); } }
@keyframes aur2 { to { transform: translate3d(-10vmax, 14vmax, 0) scale(.9); } }
@keyframes aur3 { to { transform: translate3d(-16vmax, 8vmax, 0) scale(1.15); } }
.kh__rot { color: var(--muted); }
.kh .rot { color: var(--ink); }
.kh__scroll { border-color: rgba(17,24,39,.22); }
.kh__scroll::after { background: var(--ink); }

/* Cabecera clara y translúcida (encima de la portada blanca) */
.nav { background: rgba(251,251,253,.78); border-bottom: 1px solid rgba(17,24,39,.06); color: var(--ink); }
.lite .nav { background: var(--bg); }
.nav .brand { color: var(--ink); }
.nav__links a { color: var(--muted); }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); }
.nav .btn--primary { background: var(--ink); color: #fff; }
.nav__menu span { background: var(--ink); }
@media (max-width: 860px) { .nav__links { background: var(--bg); border-color: var(--line); } .nav__links a { color: var(--ink); border-color: var(--line); } }

/* Subpáginas: mismo blanco con aurora que la portada (quieta) */
.page-hero { background: radial-gradient(45vmax 35vmax at 8% -10%, rgba(133,119,245,.38), transparent 70%), radial-gradient(40vmax 32vmax at 50% -20%, rgba(90,168,255,.26), transparent 70%), radial-gradient(42vmax 34vmax at 96% 0%, rgba(73,214,184,.34), transparent 70%), #fbfbfd; color: var(--ink); }
.page-hero::before { display: none; }
.page-hero .lead, .page-hero .crumbs, .page-hero .crumbs a, .page-hero .steps p { color: var(--muted); }
.page-hero .btn--primary { background: var(--ink); color: #fff; }
.page-hero .btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.page-hero .toggle { background: rgba(255,255,255,.7); }
.page-hero .toggle button { color: var(--muted); }
.page-hero .toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.page-hero .steps li { border-color: var(--line); }
.page-hero .steps li::before { color: var(--purple); }
.page-hero .prose p, .page-hero .prose li { color: #3b4252; }
.page-hero .prose a { color: var(--purple); }

/* ---------- Mosaico v2: cada servicio con su propia escena animada ----------
   El estado "quieto" de cada escena es el final (completo), así en aparatos lentos
   o con "reducir movimiento" se ve todo. Las animaciones solo añaden el recorrido. */
.cell { min-height: 460px; }
.cell__text { display: grid; gap: 10px; position: relative; z-index: 1; }
.cell__art { height: 60%; }
.cell--dark .price { color: #fff; }

/* Web: navegador con una web real que se desplaza */
.aw { position: absolute; inset: 0; border-radius: 16px 16px 0 0; background: #fff; border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 -10px 40px -20px rgba(17,24,39,.25); overflow: hidden; display: flex; flex-direction: column; }
.aw__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #f4f5f8; border-bottom: 1px solid var(--line); }
.aw__bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; } .aw__bar i:nth-child(2) { background: #febc2e; } .aw__bar i:nth-child(3) { background: #28c840; }
.aw__bar span { margin-left: 10px; flex: 1; max-width: 220px; font-size: 11px; color: var(--muted); background: #fff; border-radius: 999px; padding: 3px 12px; }
.aw__view { position: relative; flex: 1; overflow: hidden; }
.aw__page { padding: 12px 16px; display: grid; gap: 12px; font-size: 11px; }
.aw__nav { display: flex; align-items: center; gap: 10px; }
.aw__nav b { font-size: 13px; margin-right: auto; }
.aw__nav span { width: 34px; height: 6px; border-radius: 3px; background: #e3e6ee; }
.aw__nav em, .aw__hero em { font-style: normal; font-weight: 800; background: #111827; color: #fff; padding: 5px 10px; border-radius: 999px; font-size: 10px; }
.aw__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; align-items: center; background: linear-gradient(120deg, #fff4ee, #fff); border-radius: 14px; padding: 14px; }
.aw__hero > div:first-child { display: grid; gap: 6px; justify-items: start; }
.aw__hero small { color: #ff6a3d; font-weight: 800; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.aw__hero strong { font-size: 17px; line-height: 1.1; letter-spacing: -0.02em; }
.aw__hero em { background: linear-gradient(120deg, #ff6a3d, #ffb347); }
.aw__img { aspect-ratio: 4 / 3; border-radius: 12px; background: radial-gradient(circle at 30% 35%, #ffd2a8 0 18%, transparent 19%), radial-gradient(circle at 68% 60%, #ff9f6e 0 22%, transparent 23%), linear-gradient(135deg, #ffb347, #ff6a3d); }
.aw__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.aw__cards div { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; gap: 6px; }
.aw__cards i { height: 34px; border-radius: 7px; background: #f2f3f7; }
.aw__cards div:nth-child(2) i { background: #ffe6d6; }
.aw__reviews { display: flex; justify-content: space-between; align-items: center; background: #111827; color: #fff; border-radius: 10px; padding: 10px 12px; }
.aw__reviews b { color: #ffcf5c; }
.aw__cursor { position: absolute; left: 30%; top: 62%; width: 16px; height: 16px; border-radius: 50%; background: rgba(122,108,240,.9); box-shadow: 0 0 0 6px rgba(122,108,240,.25); opacity: 0; }

/* Google e IA */
.art-ai { display: grid; gap: 10px; align-content: end; padding-bottom: 22px; }
.ai__search { display: flex; align-items: center; gap: 8px; background: #fff; color: #111827; border-radius: 999px; padding: 10px 14px; font-size: 13px; font-weight: 600; }
.ai__search svg { width: 15px; flex: none; stroke: #6b7280; fill: none; stroke-width: 2.6; }
.ai__typed { display: inline-block; white-space: nowrap; overflow: hidden; width: 18ch; }
.ai__result { display: flex; align-items: center; gap: 10px; background: rgba(73,214,184,.14); border: 1px solid rgba(73,214,184,.55); border-radius: 14px; padding: 10px 12px; }
.ai__result b { display: block; font-size: 14px; }
.ai__result small { color: #ffcf5c; font-size: 11px; }
.ai__pos { width: 24px; height: 24px; border-radius: 7px; background: var(--mint); color: #05302a; font-weight: 800; font-size: 12px; display: grid; place-items: center; flex: none; }
.ai__chat { display: flex; gap: 8px; align-items: flex-start; background: rgba(255,255,255,.07); border: 1px solid var(--night-line); border-radius: 14px 14px 14px 4px; padding: 10px 12px; }
.ai__chat p { font-size: 12px; line-height: 1.4; color: #d7d9e0; max-width: none; }
.ai__chat b { color: #fff; }
.ai__spark { width: 18px; height: 18px; flex: none; border-radius: 6px; background: var(--grad); }

/* Tienda: pago estilo Shopify */
.art-shop { display: grid; align-content: end; padding-bottom: 20px; }
.sh { position: relative; background: #fff; color: #111827; border-radius: 18px; padding: 14px; display: grid; gap: 9px; font-size: 12px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.sh__item { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding-bottom: 9px; border-bottom: 1px solid #eef0f4; }
.sh__item small { display: block; color: #6b7280; font-size: 10px; }
.sh__thumb { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #2a2d3a, #0b0c12); position: relative; }
.sh__thumb::after { content: ""; position: absolute; inset: 11px 9px; border-radius: 4px; background: var(--grad); }
.sh__row { display: flex; justify-content: space-between; color: #6b7280; }
.sh__total { color: #111827; font-size: 13px; }
.sh__pay { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6px; }
.sh__pay span { text-align: center; padding: 9px 4px; border-radius: 9px; font-weight: 800; font-size: 11px; }
.sh__now { background: #5a31f4; color: #fff; }
.sh__card { background: #f2f3f7; }
.sh__ok { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 11px; background: #0f7d66; color: #fff; font-weight: 800; }
.sh__ok i { width: 16px; height: 16px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230f7d66' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat; }

/* Redes: Instagram, TikTok, Facebook */
.art-social { display: flex; align-items: flex-end; padding-bottom: 0; }
.so__icons { display: grid; gap: 12px; align-self: center; }
.so__icons > span { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; box-shadow: 0 12px 24px -12px rgba(17,24,39,.5); }
.so__icons svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.so__ig { background: radial-gradient(circle at 30% 110%, #fdf497 0 10%, #fd5949 45%, #d6249f 65%, #285aeb 95%); }
.so__tt { background: #111; }
.so__tt svg { filter: drop-shadow(-1.5px -1px 0 #25f4ee) drop-shadow(1.5px 1px 0 #fe2c55); }
.so__fb { background: #1877f2; }
.so__fb svg { fill: #fff; stroke: none; }
.so__post { width: min(220px, 52%); background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 0 0; border-bottom: 0; box-shadow: 0 -10px 40px -20px rgba(17,24,39,.25); overflow: hidden; font-size: 11px; }
.so__head { display: flex; align-items: center; gap: 7px; padding: 9px 10px; }
.so__head small { color: var(--muted); margin-left: auto; }
.so__avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #d6249f; }
.so__img { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.5) 0 14%, transparent 15%), linear-gradient(135deg, #8577f5, #49d6b8); display: grid; place-items: center; }
.so__heart { color: #fff; font-size: 56px; line-height: 1; opacity: 0; text-shadow: 0 6px 20px rgba(0,0,0,.25); }
.so__foot { display: flex; justify-content: space-between; padding: 9px 10px 12px; color: var(--muted); }
.so__likes b { color: #fe2c55; }
.so__notif { position: absolute; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 6px; font-size: 12px; font-weight: 700; box-shadow: 0 12px 24px -14px rgba(17,24,39,.4); white-space: nowrap; }
.so__notif .mini { width: 22px; height: 22px; border-radius: 7px; display: inline-block; }
.so__n1 { top: 18%; }
@media (max-width: 480px) { .so__notif { display: none; } .so__icons > span { width: 40px; height: 40px; } }

/* Recorridos (solo con movimiento permitido y aparato normal) */
@media (prefers-reduced-motion: no-preference) {
  html:not(.lite) .cell.in .aw__page { animation: aw-scroll 10s cubic-bezier(.6,0,.4,1) infinite; }
  html:not(.lite) .cell.in .aw__cursor { animation: aw-click 10s ease infinite; }
  html:not(.lite) .cell.in .aw__hero, html:not(.lite) .cell.in .aw__cards, html:not(.lite) .cell.in .aw__reviews { animation: build .7s cubic-bezier(.2,.8,.2,1) both; }
  html:not(.lite) .cell.in .aw__cards { animation-delay: .25s; } html:not(.lite) .cell.in .aw__reviews { animation-delay: .4s; }
  html:not(.lite) .cell.in .ai__typed { animation: ai-type 8s steps(18) infinite; }
  html:not(.lite) .cell.in .ai__result { animation: ai-in 8s ease infinite; }
  html:not(.lite) .cell.in .ai__chat { animation: ai-chat 8s ease infinite; }
  html:not(.lite) .cell.in .sh__now { animation: sh-press 7s ease infinite; }
  html:not(.lite) .cell.in .sh__ok { animation: sh-ok 7s ease infinite; }
  html:not(.lite) .cell.in .so__icons > span { animation: bob 3.6s ease-in-out infinite; }
  html:not(.lite) .cell.in .so__icons > span:nth-child(2) { animation-delay: .5s; } html:not(.lite) .cell.in .so__icons > span:nth-child(3) { animation-delay: 1s; }
  html:not(.lite) .cell.in .so__heart { animation: heart 4s ease infinite; }
  html:not(.lite) .cell.in .so__n1 { animation: notif 6s ease infinite; }
  html:not(.lite) .cell.in .so__n2 { animation: notif 6s ease 3s infinite; }
}
@keyframes aw-scroll { 0%, 18% { transform: none; } 45%, 70% { transform: translateY(-38%); } 92%, 100% { transform: none; } }
@keyframes aw-click { 0%, 4% { opacity: 0; transform: translate(60px, 40px); } 10% { opacity: 1; transform: none; } 13% { transform: scale(.7); } 16% { transform: none; opacity: 1; } 22%, 100% { opacity: 0; } }
@keyframes ai-type { 0% { width: 0; } 22%, 92% { width: 18ch; } 100% { width: 0; } }
@keyframes ai-in { 0%, 26% { opacity: 0; transform: translateY(10px); } 34%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ai-chat { 0%, 44% { opacity: 0; transform: translateY(10px) scale(.97); } 52%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes sh-press { 0%, 34% { transform: none; filter: none; } 38% { transform: scale(.94); filter: brightness(.85); } 42%, 100% { transform: none; filter: none; } }
@keyframes sh-ok { 0%, 42% { opacity: 0; transform: translateY(12px); } 48%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(12px); } }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes heart { 0%, 20% { opacity: 0; transform: scale(.3); } 28% { opacity: 1; transform: scale(1.2); } 36% { transform: scale(1); } 60% { opacity: 1; } 75%, 100% { opacity: 0; transform: scale(1); } }
@keyframes notif { 0%, 8% { opacity: 0; transform: translateX(-16px); } 16%, 44% { opacity: 1; transform: none; } 54%, 100% { opacity: 0; transform: translateX(-16px); } }

/* Frase gigante: las palabras aún no iluminadas ya se leen bien sobre blanco */
.js:not(.lite) .statement .w { transition: color .4s ease; color: #8a90a0; }
.js:not(.lite) .statement .w.on { color: var(--ink); }
.js:not(.lite) .statement .w.g:not(.on) { color: #8a90a0; -webkit-text-fill-color: #8a90a0; }
.statement .w.g.on { -webkit-text-fill-color: transparent; }

/* WhatsApp: cada cierto tiempo llama la atención con un pulso y un globo */
.wa-float { overflow: visible; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; opacity: 0; z-index: -1; }
.wa-bubble { position: fixed; right: calc(max(18px, env(safe-area-inset-right, 0px)) + 70px); bottom: calc(max(18px, env(safe-area-inset-bottom, 0px)) + 8px); z-index: 60; max-width: min(250px, calc(100vw - 110px)); background: #fff; color: var(--ink); border-radius: 18px 18px 4px 18px; padding: 11px 32px 11px 14px; font-size: 14px; font-weight: 600; line-height: 1.35; box-shadow: 0 18px 40px -16px rgba(17,24,39,.45); border: 1px solid var(--line); text-decoration: none; opacity: 0; transform: translateY(10px) scale(.96); transform-origin: bottom right; pointer-events: none; transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1); }
.wa-bubble b { color: #0f7d66; }
.wa-bubble.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-bubble button { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--soft); color: var(--muted); font-size: 13px; line-height: 1; cursor: pointer; }
.wa-float.nudge { animation: wa-shake .9s ease; }
.wa-float.nudge::before { animation: wa-ring 1.6s ease-out 2; }
@keyframes wa-shake { 0%, 100% { transform: none; } 15% { transform: rotate(-14deg) scale(1.08); } 30% { transform: rotate(12deg) scale(1.08); } 45% { transform: rotate(-8deg); } 60% { transform: rotate(5deg); } }
@keyframes wa-ring { from { opacity: .55; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
.art-social { justify-content: center; gap: 28px; }
.so__notif { left: auto; right: calc(50% + 205px); }
.so__n2 { top: 44%; right: calc(50% + 185px); }
@media (max-width: 900px) { .so__notif { right: auto; left: 0; } }

/* ---------- Ranking v2: mapa, chinchetas y destello ---------- */
.rank__stage { position: relative; padding: clamp(28px, 4vw, 48px); border-radius: 32px; background: #0d1020; border: 1px solid var(--night-line); overflow: hidden; isolation: isolate; }
.rank__map { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(115deg, transparent 47%, rgba(90,168,255,.16) 47% 53%, transparent 53%),
  repeating-linear-gradient(0deg, transparent 0 46px, rgba(255,255,255,.05) 46px 48px),
  repeating-linear-gradient(90deg, transparent 0 62px, rgba(255,255,255,.05) 62px 64px),
  repeating-linear-gradient(35deg, transparent 0 120px, rgba(255,255,255,.07) 120px 124px);
  -webkit-mask: radial-gradient(85% 85% at 60% 45%, #000 40%, transparent); mask: radial-gradient(85% 85% at 60% 45%, #000 40%, transparent); }
.pin { position: absolute; width: 14px; height: 14px; margin: -14px 0 0 -7px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #3b4258; }
.pin--you { width: 26px; height: 26px; margin: -26px 0 0 -13px; background: var(--grad); box-shadow: 0 0 30px rgba(73,214,184,.8); }
.pin--you::before, .pin--you::after { content: ""; position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; border: 2px solid rgba(73,214,184,.6); transform: rotate(45deg) scale(.3); opacity: 0; }
.rank__list { margin-inline: auto; }
.rank__item { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(16,20,36,.82); }
.lite .rank__item { backdrop-filter: none; -webkit-backdrop-filter: none; }
.rank__item--you { background: rgba(14,48,46,.92); overflow: hidden; }
.rank__item--you::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
.rank__list.in .rank__item--you { box-shadow: 0 0 0 1px rgba(73,214,184,.6), 0 18px 50px -12px rgba(73,214,184,.55); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.lite) .pin--you::before, html:not(.lite) .pin--you::after { animation: pin-ring 2.4s ease-out infinite; }
  html:not(.lite) .pin--you::after { animation-delay: 1.2s; }
  html:not(.lite) .rank__list.in .rank__item--you::after { animation: shine 1.1s ease 1.3s both; }
}
@keyframes pin-ring { from { transform: rotate(45deg) scale(.3); opacity: 1; } to { transform: rotate(45deg) scale(1.6); opacity: 0; } }
@keyframes shine { to { transform: translateX(120%); } }

/* ---------- Cómo funciona: línea de tiempo que se llena al hacer scroll ---------- */
.timeline { --p: 1; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 22px; right: calc(25% - 22px); top: 21px; height: 3px; border-radius: 3px; background: var(--line); }
.timeline::after { background: var(--grad); transform-origin: left; transform: scaleX(var(--p)); }
.timeline li { position: relative; display: grid; gap: 10px; align-content: start; }
.tl__dot { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--surface); border: 2px solid var(--line); color: var(--muted); transition: background .4s, color .4s, border-color .4s, box-shadow .4s; }
.timeline li p { color: var(--muted); }
.timeline li.on .tl__dot { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 6px rgba(122,108,240,.15); }
.timeline li.on:last-child .tl__dot { background: var(--grad); border-color: transparent; color: #0b1530; }
.js:not(.lite) .timeline li h3, .js:not(.lite) .timeline li p { transition: opacity .4s; }
.js:not(.lite) .timeline li:not(.on) h3 { opacity: .55; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 28px; padding-left: 64px; }
  .timeline::before, .timeline::after { left: 21px; right: auto; top: 22px; bottom: 22px; width: 3px; height: auto; transform-origin: top; transform: scaleY(var(--p)); }
  .timeline::before { transform: none; }
  .tl__dot { position: absolute; left: -64px; top: 0; }
  .timeline li { min-height: 46px; }
}

/* ---------- Asistente paso a paso ---------- */
.wiz { position: relative; max-width: 860px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: clamp(24px, 4vw, 48px); display: grid; gap: 28px; box-shadow: 0 40px 80px -50px rgba(17,24,39,.35); }
.wiz__top { display: grid; gap: 10px; }
.wiz__count { font-size: 14px; color: var(--muted); font-weight: 600; }
.wiz__bar { height: 6px; border-radius: 6px; background: var(--soft); overflow: hidden; }
.wiz__bar i { display: block; height: 100%; width: 33.3%; border-radius: 6px; background: var(--grad); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.wiz__step { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; }
.wiz__step legend { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -0.02em; padding: 0; margin-bottom: 18px; }
.js .wiz__step:not(.is-active) { display: none; }
.wiz__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.wiz__opts label { position: relative; }
.wiz__opts input { position: absolute; opacity: 0; inset: 0; }
.wiz__card { display: grid; gap: 6px; height: 100%; padding: 22px; border-radius: 20px; border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s, background .2s; }
.wiz__card svg { width: 30px; height: 30px; margin-bottom: 6px; fill: none; stroke: var(--purple); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wiz__card b { font-size: 17px; }
.wiz__card small { color: var(--muted); font-size: 14px; }
.wiz__card:hover { border-color: #c9c2ff; transform: translateY(-2px); box-shadow: 0 16px 30px -20px rgba(122,108,240,.6); }
.wiz__opts input:checked + .wiz__card { border-color: var(--purple); background: #f6f4ff; box-shadow: 0 0 0 3px rgba(122,108,240,.18); }
.wiz__opts input:focus-visible + .wiz__card { outline: 3px solid var(--purple); outline-offset: 2px; }
.wiz .quiz__result { background: linear-gradient(135deg, #f4f2ff, #eafaf5); border-radius: 22px; padding: clamp(22px, 3vw, 34px); }
.wiz .quiz__result .plan-name { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; }
.wiz__back { justify-self: start; background: none; border: 0; font: 700 15px var(--sans); color: var(--muted); cursor: pointer; padding: 4px 0; }
.wiz__back:hover { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { html:not(.lite) .wiz__step.is-active { animation: build .5s cubic-bezier(.2,.8,.2,1); } }

/* ---------- Cierre oscuro con el logo ---------- */
.cta__logo { width: clamp(80px, 10vw, 120px); overflow: visible; filter: drop-shadow(0 0 40px rgba(133,119,245,.7)); }
.cta__box h2 { font-size: clamp(36px, 6vw, 72px); max-width: 14ch; }

/* ---------- Pack Completo: azul oscuro, borde que gira en morado, menta y oro ---------- */
.plan.plan--pack { color: #fff; border: 2px solid transparent;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(122,106,240,.45), transparent 60%) padding-box,
    radial-gradient(90% 60% at 0% 100%, rgba(73,214,184,.22), transparent 60%) padding-box,
    linear-gradient(160deg, #0a1330, #17285a) padding-box,
    conic-gradient(from var(--spin), #8577f5, #49d6b8, #f3cf7a, #8577f5) border-box;
  box-shadow: 0 40px 80px -30px rgba(10,19,48,.8), 0 0 50px -10px rgba(133,119,245,.55);
  animation: spin 6s linear infinite; }
.plan--pack .plan__for, .plan--pack li { color: rgba(255,255,255,.8); }
.plan--pack .plan__sub { color: #8fe3cf; }
.plan--pack .plan__price { background: linear-gradient(100deg, #fff 30%, #f3cf7a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan--pack .plan__price small { -webkit-text-fill-color: rgba(255,255,255,.8); }
.plan--pack li::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230a1330' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat, linear-gradient(135deg, #f3cf7a, #d9a441); }
.badge--gold { background: linear-gradient(100deg, #f3cf7a, #d9a441); color: #0a1330; padding: 7px 18px; font-size: 13px; box-shadow: 0 8px 24px -6px rgba(217,164,65,.7); }
.plan .badge--gold { top: -16px; }
.btn--gold { background: linear-gradient(100deg, #f3cf7a, #d9a441); color: #0a1330; font-weight: 800; box-shadow: 0 12px 30px -12px rgba(217,164,65,.8); }
.btn--gold:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: no-preference) { html:not(.lite) .badge--gold { animation: flota 2.6s ease-in-out infinite; } }
@keyframes flota { 50% { transform: translateY(-5px); } }

/* Tarjetas de planes: borde fino oscuro y sombra suave para que se despeguen del fondo blanco */
.plan:not(.plan--hot):not(.plan--pack) { border: 1.5px solid rgba(17,24,39,.22); box-shadow: 0 2px 0 rgba(17,24,39,.04), 0 18px 40px -24px rgba(17,24,39,.35); }
.plan:not(.plan--hot):not(.plan--pack):hover { border-color: rgba(17,24,39,.45); }
.plan--hot { box-shadow: 0 0 0 1px rgba(17,24,39,.08), 0 30px 60px -30px rgba(122,108,240,.6); }
.plan:not(.plan--pack) li::before { box-shadow: inset 0 0 0 1.5px rgba(15,125,102,.45); }

/* ---------- Subpáginas con escena: texto + ilustración animada ---------- */
.ph-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ph-copy { display: grid; gap: 22px; min-width: 0; }
@media (max-width: 900px) { .ph-split { grid-template-columns: 1fr; } }
.scene { min-height: 440px; box-shadow: 0 40px 80px -40px rgba(17,24,39,.45); }
.scene .cell__art { top: 34px; height: auto; }
.scene.art-full .cell__art { top: 0; left: 0; right: 0; }

/* Sobre nosotros: el núcleo conectado (las etiquetas no se mueven; se iluminan al recibir la energía) */
.core { position: relative; width: min(460px, 100%); aspect-ratio: 1; margin-inline: auto; }
.core > svg { width: 100%; height: 100%; overflow: visible; }
.core__orbit { transform-origin: 200px 200px; }
.core__flow path { stroke-dasharray: .14 .86; stroke-dashoffset: 1; opacity: 0; }
.core__node { position: absolute; transform: translate(-50%, -26px); display: grid; justify-items: center; gap: 8px; font-weight: 800; font-size: 14px; letter-spacing: -0.01em; }
.core__node i { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); border: 1.5px solid rgba(17,24,39,.12); box-shadow: 0 14px 30px -16px rgba(17,24,39,.45); transition: box-shadow .3s, border-color .3s; }
.core__node svg { width: 24px; height: 24px; fill: none; stroke: var(--purple); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.lite) .core__orbit { animation: orbit 40s linear infinite; }
  html:not(.lite) .core__flow path { opacity: 1; animation: flow 3s cubic-bezier(.5,0,.5,1) infinite; }
  html:not(.lite) .core__node i { animation: node-light 3s ease infinite; }
  html:not(.lite) .core__flow path:nth-child(2), html:not(.lite) .core__node:nth-of-type(2) i { animation-delay: .6s; }
  html:not(.lite) .core__flow path:nth-child(3), html:not(.lite) .core__node:nth-of-type(3) i { animation-delay: 1.2s; }
  html:not(.lite) .core__flow path:nth-child(4), html:not(.lite) .core__node:nth-of-type(4) i { animation-delay: 1.8s; }
  html:not(.lite) .core__flow path:nth-child(5), html:not(.lite) .core__node:nth-of-type(5) i { animation-delay: 2.4s; }
}
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes flow { 0% { stroke-dashoffset: 1; } 70%, 100% { stroke-dashoffset: -.14; } }
@keyframes node-light { 0%, 100% { border-color: rgba(17,24,39,.12); box-shadow: 0 14px 30px -16px rgba(17,24,39,.45); } 8% { border-color: #49d6b8; box-shadow: 0 0 0 5px rgba(73,214,184,.18), 0 14px 30px -12px rgba(73,214,184,.7); } 30% { border-color: rgba(17,24,39,.12); box-shadow: 0 14px 30px -16px rgba(17,24,39,.45); } }
@media (max-width: 480px) { .core { width: 92%; } .core__node i { width: 42px; height: 42px; border-radius: 13px; } .core__node svg { width: 20px; height: 20px; } .core__node { font-size: 12px; transform: translate(-50%, -21px); } }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { background: var(--surface); border-radius: 24px; padding: 28px; display: grid; gap: 10px; align-content: start; --c: var(--grad); --cs: rgba(122,108,240,.55); --ct: #5546d6; }
.value b { font-size: 14px; }
.value p { color: var(--muted); }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .values { grid-template-columns: 1fr; } }

/* Preguntas frecuentes en dos columnas: título fijo a la izquierda, preguntas a la derecha */
.faq-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-split__head { display: grid; gap: 18px; position: sticky; top: 100px; }
.faq-split__head .lead { max-width: 32ch; }
.faq-split .faq { margin: 0; max-width: none; border-top: 1px solid var(--line); }
.faq-split .faq details { padding-inline: 4px; transition: background .2s; }
.faq-split .faq summary::after { content: ""; width: 34px; height: 34px; right: 0; border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23111827' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.faq-split .faq details[open] summary::after { background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.faq-split .faq summary { font-size: 19px; padding-block: 26px; padding-right: 56px; }
.faq-split .faq details p { font-size: 16px; }
@media (max-width: 860px) { .faq-split { grid-template-columns: 1fr; } .faq-split__head { position: static; } }
.founder { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: 20px; width: max-content; max-width: 100%; box-shadow: 0 14px 30px -20px rgba(17,24,39,.4); }
.founder__avatar { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #0b1530; font-weight: 800; font-size: 17px; flex: none; }
.founder b { display: block; font-size: 17px; color: var(--ink); }
.founder small { color: var(--muted); font-size: 14px; }
/* Barra de progreso de lectura */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; background: var(--grad); transform-origin: left; transform: scaleX(0); pointer-events: none; }
/* Volver arriba */
.to-top { position: fixed; right: max(24px, env(safe-area-inset-right, 0px)); bottom: calc(max(18px, env(safe-area-inset-bottom, 0px)) + 72px); z-index: 59; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(17,24,39,.14); background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 26px -14px rgba(17,24,39,.5); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s, transform .3s; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
/* Transición suave entre páginas (navegadores que la soportan; el resto cambia de página normal) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .25s ease both; }
  ::view-transition-new(root) { animation: vt-in .35s ease both; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* Demo gratis: el móvil enseña más partes de la web y se desplaza solo */
.site__top { position: relative; z-index: 2; background: #fff; }
.site__body { display: grid; gap: 0; padding-bottom: 70px; }
.site__body .site__hero { min-height: 190px; }
.site__body .site__map { flex: none; height: 86px; }
.site__h { font-size: 12px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.01em; }
.site__list, .site__book, .site__hours { margin: 12px 12px 0; padding: 12px; border-radius: 14px; border: 1px solid #eceef3; }
.site__list > div > div, .site__hours > div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #e6e8ee; font-size: 11px; }
.site__list > div > div:last-child, .site__hours > div:last-child { border-bottom: 0; }
.site__list b { color: var(--site-a); }
.site__fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.site__fields span { text-align: center; padding: 7px 2px; border-radius: 9px; background: #f2f3f7; font-weight: 700; font-size: 10px; }
.site__cta--dark { display: block; text-align: center; background: linear-gradient(120deg, var(--site-a), var(--site-b)); color: #fff; margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.lite) .site__body { animation: site-scroll 14s cubic-bezier(.6,0,.4,1) infinite 2s; }
}
@keyframes site-scroll { 0%, 14% { transform: none; } 40%, 62% { transform: translateY(-42%); } 88%, 100% { transform: none; } }

/* Botón de idioma ES / CA */
.lang { font-weight: 800; font-size: 13px; letter-spacing: .04em; text-decoration: none; color: var(--ink); border: 1.5px solid rgba(17,24,39,.18); border-radius: 999px; padding: 6px 11px; line-height: 1; }
.lang:hover { border-color: var(--ink); }
@media (max-width: 860px) { .nav .lang { order: 2; margin-left: auto; } .nav__menu { order: 3; margin-left: 4px; } }

/* Página 404 */
.nf { min-height: min(80vh, 760px); display: grid; align-items: center; }
.nf__inner { justify-items: center; text-align: center; }
.nf__code { font-size: clamp(110px, 22vw, 240px); font-weight: 800; line-height: .9; letter-spacing: -0.06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 20px 40px rgba(133,119,245,.3)); }
.nf h1 { font-size: clamp(32px, 5vw, 56px); max-width: 18ch; }
.nf .lead { max-width: 46ch; }
.nf .actions { justify-content: center; }
.nf__links { font-size: 15px; color: var(--muted); }
.nf__links a { color: var(--ink); font-weight: 700; }

/* ---------- Blog ---------- */
.art-head { max-width: 760px; }
.art-head h1 { font-size: clamp(34px, 5.4vw, 60px); }
.article { padding-top: clamp(40px, 6vw, 72px); }
.article .prose { max-width: 720px; margin-inline: auto; gap: 20px; }
.article .prose p, .article .prose li { font-size: 18px; line-height: 1.7; }
.article .prose h2 { font-size: clamp(26px, 3.2vw, 34px); margin-top: 26px; }
.article .prose h3 { font-size: 21px; margin-top: 8px; }
.article .prose b { color: var(--ink); }
.art-cta { margin-top: 24px; padding: clamp(22px, 3vw, 32px); border-radius: 24px; background: linear-gradient(135deg, #f4f2ff, #eafaf5); border: 1.5px solid rgba(17,24,39,.08); display: grid; gap: 16px; }
.art-cta p { margin: 0; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: 24px; background: var(--surface); border: 1.5px solid rgba(17,24,39,.14); text-decoration: none; box-shadow: 0 18px 40px -28px rgba(17,24,39,.35); transition: transform .25s ease, border-color .25s; min-width: 0; }
.post:hover { transform: translateY(-3px); border-color: rgba(17,24,39,.4); }
.post h2 { font-size: 22px; letter-spacing: -0.02em; }
.post p { color: var(--muted); }
.post__tag { justify-self: start; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--grad); color: #0b1530; }
.post__more { font-weight: 800; color: var(--purple); margin-top: 4px; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }

/* Enlaces de texto con contraste suficiente sobre blanco */
.link, .post__more, .art-cta + .note a { color: #5546d6; }
.dark .link { color: #b3a9ff; }

/* Redes en el pie */
.foot__social { display: flex; gap: 10px; margin-top: 16px; }
.foot__social a { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; border: 1.5px solid rgba(17,24,39,.14); color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.foot__social a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.foot__social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.foot__social .dot { fill: currentColor; stroke: none; }

.foot__review { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; color: var(--ink) !important; }
.foot__review span { color: #f5a623; }

/* Banderas pequeñas en el botón de idioma (la del idioma al que lleva) */
.lang { display: inline-flex; align-items: center; gap: 6px; }
.lang::before { content: ""; width: 15px; height: 10px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(17,24,39,.12); opacity: .9; }
.lang[hreflang="ca"]::before { background: repeating-linear-gradient(to bottom, #fcdd09 0 11.11%, #da121a 11.11% 22.22%); }
.lang[hreflang="es"]::before { background: linear-gradient(to bottom, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%); }
/* Onda al pulsar */
.btn, .plan__btn, .sectors button, .wiz__card, .toggle button { position: relative; overflow: hidden; isolation: isolate; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .22; transform: scale(0); pointer-events: none; z-index: -1; animation: ripple .6s ease-out forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
/* Tarjetas que se inclinan: la inclinación se suma al levantamiento que ya tenían */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease, box-shadow .25s ease, border-color .25s, opacity .6s ease; will-change: transform; }
.tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
/* Cuando la tarjeta también aparece al hacer scroll, primero aparece y luego se inclina */
.js:not(.lite) .reveal.tilt:not(.in) { transform: translateY(18px); }
/* Subrayado animado en enlaces: una línea de degradado que crece */
.link, .nav__links a, .foot a:not(.brand):not(.foot__social a), .prose a, .nf__links a, .crumbs a {
  text-decoration: none; background-image: var(--grad); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 2px; transition: background-size .3s ease, color .2s; padding-bottom: 2px; }
.link:hover, .nav__links a:hover, .foot a:not(.brand):not(.foot__social a):hover, .prose a:hover, .nf__links a:hover, .crumbs a:hover, .nav__links a[aria-current] { background-size: 100% 2px; text-decoration: none; }
@media (max-width: 860px) { .nav__links a { background-image: none; } }

/* ---------- Sobre nosotros con color ---------- */
.story { background: linear-gradient(180deg, #fbfbfd 0%, #f3f0ff 100%); }
.story__card { position: sticky; top: 100px; display: grid; gap: 16px; padding: clamp(28px, 4vw, 44px); border-radius: 32px; color: #fff; background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.25), transparent 55%), linear-gradient(140deg, #7a6cf0 0%, #5aa8ff 55%, #2fc4a3 100%); box-shadow: 0 40px 80px -40px rgba(122,108,240,.7); overflow: hidden; }
.story__card .eyebrow { color: rgba(255,255,255,.85); }
.story__card h2 { color: #fff; }
.story__card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(255,255,255,.15); }
.story__note { font-weight: 700; color: rgba(255,255,255,.85); }
@media (max-width: 760px) { .story__card { position: static; } }
.founder { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 2px solid transparent; }
.values-band { background: linear-gradient(135deg, #f1edff 0%, #eaf4ff 50%, #e3faf3 100%); }
.value { position: relative; overflow: hidden; border: 0; box-shadow: 0 20px 40px -30px rgba(17,24,39,.4); }
.value::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); }
.value__ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--c); box-shadow: 0 12px 24px -12px var(--cs); }
.value__ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.value b { color: var(--ct); }

/* Respuesta al pulsar (también en móvil y en aparatos lentos) */
.btn:active, .plan__btn:active, .sectors button:active, .toggle button:active, .lang:active { transform: scale(.97); }
.wiz__card:active, .post:active, .cell:active { transform: scale(.985); }
.rank__note { font-size: 13px; color: var(--night-muted); }

/* Botones: se elevan, crece la sombra de color y les cruza un reflejo */
.btn, .plan__btn { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background-color .2s; }
.btn::after, .plan__btn::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%); transform: translateX(-120%); }
.btn--ghost::after { background: linear-gradient(105deg, transparent 35%, rgba(122,108,240,.18) 50%, transparent 65%); }
@media (hover: hover) {
  .btn:hover, .plan__btn:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -14px rgba(122,108,240,.65); }
  .btn--gold:hover { box-shadow: 0 18px 36px -12px rgba(217,164,65,.9); }
  .btn:hover::after, .plan__btn:hover::after { transform: translateX(120%); transition: transform .7s ease; }
}
.btn:active, .plan__btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.lite .btn::after, .lite .plan__btn::after { display: none; }
@media (prefers-reduced-motion: reduce) { .btn::after, .plan__btn::after { display: none; } .btn:hover, .plan__btn:hover { transform: none; } }

/* Reseña real */
.review { margin: 28px 0 0; padding: 22px 24px; border-radius: 22px; background: var(--surface); box-shadow: 0 20px 40px -30px rgba(17,24,39,.45); border: 1px solid var(--line); display: grid; gap: 10px; max-width: 460px; }
.review__stars { color: #f5b301; letter-spacing: 2px; font-size: 18px; margin: 0; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.5; }
.review figcaption { font-size: 14px; color: var(--muted); }

/* ---------- Premium: el hexágono K como hilo conductor ---------- */
.intro { display: none; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.intro-done):not(.lite) .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 1000; background: #fbfbfd; pointer-events: none; animation: intro-out .6s cubic-bezier(.7,0,.2,1) 1s forwards; }
}
.intro svg { width: 84px; overflow: visible; fill: none; stroke: #7a6cf0; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.intro path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .5s cubic-bezier(.6,0,.2,1) forwards; }
.intro path:first-child { animation-duration: .7s; }
.intro path:nth-child(2) { animation-delay: .5s; } .intro path:nth-child(3) { animation-delay: .62s; } .intro path:nth-child(4) { animation-delay: .7s; }
@keyframes intro-out { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
/* Hexágono pequeño que se dibuja delante de cada etiqueta de sección */
.hexi { display: inline-block; width: .95em; height: 1.1em; vertical-align: -.2em; margin-right: 8px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.hexi path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.6,0,.2,1) .25s; }
.in .hexi path, .hexi.on path, .lite .hexi path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .hexi path { stroke-dashoffset: 0; } }
.kh__logo { transition: transform .1s linear; }
/* Bordes con luz que gira */
.cell--glow { border: 1.5px solid transparent; background: linear-gradient(var(--night-2), var(--night-2)) padding-box, conic-gradient(from var(--spin), rgba(133,119,245,.15), #8577f5, #49d6b8, rgba(73,214,184,.15) 40%, rgba(133,119,245,.15)) border-box; animation: spin 6s linear infinite; }
.review { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--spin), var(--line), #8577f5, #49d6b8, var(--line) 40%, var(--line)) border-box; animation: spin 7s linear infinite; }
.lite .cell--glow, .lite .review { animation: none; }
/* Foco de luz que sigue el ratón en las secciones oscuras */
.dark { background: radial-gradient(600px circle at var(--mx, -999px) var(--my, -999px), rgba(133,119,245,.14), transparent 60%), var(--night); }
.cta__box { background: radial-gradient(520px circle at var(--mx, -999px) var(--my, -999px), rgba(255,255,255,.08), transparent 60%), #0f1424; }
/* KERNEL gigante al final */
.foot__giant { margin: 48px 0 0; font-weight: 800; font-size: min(21vw, 270px); line-height: .78; letter-spacing: -.055em; text-align: center; background: linear-gradient(120deg, #8577f5, #49d6b8 60%, #8577f5) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
@media (prefers-reduced-motion: no-preference) { html:not(.lite) .foot__giant.in { animation: shimmer 8s ease-in-out infinite alternate; } }
@keyframes shimmer { to { background-position: 100% 0; } }
