/* Composición: escena oscura de una sola mirada, con la luz lima como protagonista (referencia: Gcore «Inference at the Edge»),
   sobre los tokens de la dirección B «Serena» (nuria-shell-web/web/src/diseno/tokens.css): lima, grises de iOS, letra del sistema. */
:root {
  color-scheme: dark;
  --lima: #C2F04A;
  --lima-tinta: #12160A;
  --lima-pulsado: #ACD738;
  --lima-tenue: #1F260C;
  --lima-claro: #C4F057;
  --negro: #000000;
  --g1: #0B0B0D;
  --g2: #1C1C1E;
  --g3: #2C2C2E;
  --g4: #3A3A3C;
  --tinta: #F2F2F7;
  --tinta-2: color-mix(in srgb, #F2F2F7 78%, #000);
  --tinta-3: color-mix(in srgb, #F2F2F7 62%, #000);
  --borde: rgba(255, 255, 255, 0.08);
  --borde-2: rgba(255, 255, 255, 0.14);
  --fuente: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --muelle: cubic-bezier(0.22, 1, 0.36, 1);
  --margen: max(20px, env(safe-area-inset-left, 0px));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--negro); color: var(--tinta); font: 400 17px/1.55 var(--fuente); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 650; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 88px); }
[id] { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 96px); }
:focus-visible { outline: 3px solid var(--lima); outline-offset: 3px; border-radius: 8px; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
.envoltura { width: min(1200px, 100% - 2 * var(--margen)); margin-inline: auto; }
.salto { position: absolute; left: -9999px; }
.salto:focus { left: 16px; top: 16px; z-index: 200; background: var(--lima); color: var(--lima-tinta); padding: 10px 16px; border-radius: 12px; }

/* ───────── Botones ───────── */
.boton {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 16px/1 var(--fuente); text-decoration: none; touch-action: manipulation;
  background: var(--lima); color: var(--lima-tinta);
  box-shadow: 0 0 0 1px rgba(194, 240, 74, .4), 0 8px 30px rgba(194, 240, 74, .28);
  transition: transform .25s var(--muelle), box-shadow .25s var(--muelle), background-color .2s;
}
.boton::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); animation: brillo 3.6s 1.5s infinite;
}
@keyframes brillo { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.boton:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(194, 240, 74, .6), 0 14px 40px rgba(194, 240, 74, .42); }
.boton:active { transform: scale(.97); }
.boton svg { transition: transform .25s var(--muelle); }
.boton:hover svg { transform: translateX(3px); }
.boton--vidrio { background: rgba(255,255,255,.06); color: var(--tinta); box-shadow: inset 0 0 0 1px var(--borde-2); }
.boton--vidrio::after { display: none; }
.boton--vidrio:hover { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }

/* ───────── Barra flotante ───────── */
.barra {
  position: fixed; z-index: 100; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translateX(-50%);
  width: min(1040px, calc(100% - 24px)); height: 60px; padding: 0 8px 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(14, 14, 16, .62); border: 1px solid var(--borde); border-radius: 999px;
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
}
.marca { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.marca-icono { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--lima); box-shadow: 0 0 18px rgba(194,240,74,.55); }
.barra nav { display: flex; gap: 4px; }
.barra nav a { font-size: 15px; text-decoration: none; color: var(--tinta-2); padding: 9px 14px; border-radius: 999px; transition: color .2s, background-color .2s; }
.barra nav a:hover { color: var(--tinta); background: rgba(255,255,255,.07); }
.barra .boton { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ───────── Portada ───────── */
.portada { position: relative; padding: calc(clamp(96px, 12svh, 118px) + env(safe-area-inset-top, 0px)) 0 40px; overflow: hidden; isolation: isolate;
  /* --S: ancho de la escena. Cabe entera en la primera pantalla (se achica con el alto) sin pasar de 1200 ni del ancho; no baja de 800 para que los nodos no se pisen. */
  --S: min(1200px, 100vw, max(800px, calc((100svh - 470px) * 2.6087))); }
.portada-luz {
  position: absolute; z-index: -2; left: 50%; top: 520px; width: 1300px; height: 900px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(194,240,74,.30), rgba(194,240,74,.10) 45%, transparent 75%);
  filter: blur(20px); animation: respira 7s ease-in-out infinite;
}
@keyframes entra-nucleo { from { scale: .7; } }
@keyframes entra-nodo { from { scale: .6; opacity: 0; } }
@keyframes respira { 50% { opacity: .7; transform: translate(-50%, -50%) scale(1.08); } }
.portada-puntos {
  position: absolute; z-index: -1; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.4px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 58%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 55% at 50% 58%, #000 20%, transparent 75%);
}
.portada-texto { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.portada h1 { font-size: clamp(42px, min(6.2vw, 10svh), 92px); letter-spacing: -0.05em; line-height: .98; }
.linea { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.linea > span { display: block; }
.portada h1 .verde { background: linear-gradient(180deg, #E4FF9A, var(--lima) 55%, #8DB52A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.portada-sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--tinta-2); max-width: 54ch; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }

/* La escena: canales → núcleo → capacidades */
.escena { position: relative; width: min(var(--S), 100%); margin: 0 auto; aspect-ratio: 1200 / 460; }
.escena > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.traza { fill: none; stroke: rgba(255,255,255,.09); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pulso { fill: none; stroke: var(--lima); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 9 200; stroke-dashoffset: 9; animation: corre 2.8s linear infinite; }
.pulso.sale { animation-direction: reverse; }
@keyframes corre { to { stroke-dashoffset: -100; } }
.trazas-luz { filter: drop-shadow(0 0 6px rgba(194,240,74,.9)); }

.nucleo {
  position: absolute; left: 50%; top: 43.5%; width: clamp(96px, min(11vw, var(--S) * .13), 156px); height: clamp(96px, min(11vw, var(--S) * .13), 156px); transform: translate(-50%, -50%); animation: entra-nucleo .9s cubic-bezier(.16, 1, .3, 1) .1s backwards;
  border-radius: 40px; display: grid; place-items: center; z-index: 2;
  background: radial-gradient(120% 120% at 30% 20%, #232A12, #0B0E05 70%);
  box-shadow: inset 0 0 0 1px rgba(194,240,74,.45), inset 0 1px 0 rgba(255,255,255,.12), 0 0 60px rgba(194,240,74,.35), 0 0 140px rgba(194,240,74,.18);
  transition: transform .4s var(--muelle);
}
.nucleo::before, .nucleo::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1.5px solid rgba(194,240,74,.55);
  animation: onda 3s var(--muelle) infinite; pointer-events: none;
}
.nucleo::after { animation-delay: 1.5s; }
@keyframes onda { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.nucleo-dentro { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nucleo-dentro span { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nucleo svg { animation: late 1.6s ease-in-out infinite; }
@keyframes late { 50% { opacity: .55; transform: scale(.92); } }
@keyframes latido { 0% { stroke-dashoffset: 60; } 45%, 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -60; } }

.nodo { position: absolute; transform: translate(-50%, -50%); animation: entra-nodo .7s cubic-bezier(.34, 1.56, .64, 1) calc(.25s + var(--i, 0) * .05s) backwards; display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2; }
.nodo-caja {
  width: clamp(54px, min(6.4vw, var(--S) * .0767), 92px); height: clamp(54px, min(6.4vw, var(--S) * .0767), 92px); border-radius: clamp(16px, 2vw, 28px); display: grid; place-items: center;
  background: linear-gradient(180deg, #1A1A1D, #0C0C0E); color: var(--tinta);
  box-shadow: inset 0 0 0 1px var(--borde-2), inset 0 1px 0 rgba(255,255,255,.1), 0 10px 30px rgba(0,0,0,.6);
  animation: flota 6s ease-in-out infinite; transition: color .3s, box-shadow .3s;
}
.nodo:nth-of-type(2n) .nodo-caja { animation-delay: -2s; }
.nodo:nth-of-type(3n) .nodo-caja { animation-delay: -4s; }
.nodo-caja svg { width: clamp(24px, min(2.8vw, var(--S) * .0333), 40px); height: clamp(24px, min(2.8vw, var(--S) * .0333), 40px); }
.nucleo-dentro svg { width: 46px; height: 46px; }
.nodo.vivo .nodo-caja { color: var(--lima); box-shadow: inset 0 0 0 1px rgba(194,240,74,.6), 0 0 28px rgba(194,240,74,.35), 0 10px 30px rgba(0,0,0,.6); }
.nodo span { font-size: clamp(13px, min(1.15vw, var(--S) * .01333), 16px); font-weight: 550; color: var(--tinta-2); text-align: center; line-height: 1.2; width: max-content; max-width: 11ch; transition: color .3s; }
.nodo.vivo span { color: var(--lima); }
@keyframes flota { 50% { transform: translateY(-8px); } }

.pulso { opacity: .35; transition: opacity .4s; }
.pulso.vivo { opacity: 1; stroke-width: 3.5; }
.msg {
  position: absolute; z-index: 4; width: max-content; max-width: 250px; padding: 10px 14px; border-radius: 18px;
  font-size: 15px; line-height: 1.35; pointer-events: none; opacity: 0;
  transition: opacity .35s var(--muelle), transform .5s var(--muelle);
}
.msg small { display: block; font-size: 12px; font-weight: 650; opacity: .75; margin-bottom: 2px; }
.msg--c { background: var(--lima); color: var(--lima-tinta); transform: translateY(-50%) scale(.5); box-shadow: 0 0 30px rgba(194,240,74,.35); }
.msg--c.izq { transform-origin: left center; border-bottom-left-radius: 6px; }
.msg--c.der { transform-origin: right center; border-bottom-right-radius: 6px; }
.msg--c.ver { opacity: 1; transform: translateY(-50%) scale(1); }
.msg--c.resp { background: #161618; color: var(--tinta); box-shadow: inset 0 0 0 1.5px rgba(194,240,74,.6), 0 0 30px rgba(194,240,74,.25); }
.msg--c.resp small { color: var(--lima); opacity: 1; }
.msg--n {
  left: 50%; top: 64%; width: 320px; max-width: 320px; transform: translateX(-50%) scale(.5); transform-origin: top center;
  background: rgba(22, 22, 24, .97); color: var(--tinta);
  box-shadow: inset 0 0 0 1px rgba(194,240,74,.4), 0 0 40px rgba(194,240,74,.18), 0 24px 60px rgba(0,0,0,.6);
}
.msg--n small { color: var(--lima); opacity: 1; }
.msg--n.ver { opacity: 1; transform: translateX(-50%) scale(1); }
.msg--n em { display: inline-flex; margin-top: 8px; font-style: normal; font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: var(--lima-tenue); color: var(--lima-claro); box-shadow: inset 0 0 0 1px rgba(194,240,74,.35); }

/* El viaje: la cápsula, el núcleo que lee y la mini ventana del chat de Nuria */
.escena { margin-bottom: 90px; }
.traza.vivo { stroke: rgba(194,240,74,.45); stroke-width: 2; }
.capsula {
  position: absolute; z-index: 6; left: 0; top: 0; transform: translate(-50%, -50%) scale(0);
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px 0 9px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  background: var(--lima); color: var(--lima-tinta); font-size: 12px; font-weight: 700;
  box-shadow: 0 0 22px rgba(194,240,74,.85), 0 0 70px rgba(194,240,74,.4);
  transition: transform .45s var(--muelle);
}
.capsula.ver { transform: translate(-50%, -50%) scale(1); }
.capsula svg { width: 16px; height: 16px; flex: none; }
.capsula .sobre { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--lima-tinta); color: var(--lima); }
.capsula .sobre svg { width: 13px; height: 13px; }
.capsula--vuelta { background: #141416; color: var(--lima); box-shadow: inset 0 0 0 1.5px var(--lima), 0 0 24px rgba(194,240,74,.55); }
.capsula--vuelta .sobre { background: var(--lima); color: var(--lima-tinta); }
.lee-puntos { display: none; gap: 6px; height: 46px; align-items: center; }
.lee-puntos i { width: 9px; height: 9px; border-radius: 50%; background: var(--lima); animation: punto-lee 1s infinite; box-shadow: 0 0 10px var(--lima); }
.lee-puntos i:nth-child(2) { animation-delay: .15s; } .lee-puntos i:nth-child(3) { animation-delay: .3s; }
@keyframes punto-lee { 50% { opacity: .3; transform: translateY(-4px); } }
.nucleo.lee .lee-puntos { display: flex; }
.nucleo.lee .nucleo-dentro > svg { display: none; }
.nucleo.lee { box-shadow: inset 0 0 0 1.5px rgba(194,240,74,.9), inset 0 1px 0 rgba(255,255,255,.12), 0 0 90px rgba(194,240,74,.6), 0 0 180px rgba(194,240,74,.3); }
.nucleo { transition: box-shadow .5s, transform .4s var(--muelle); }
.nodo.recibe .nodo-caja { animation: recibe .7s var(--muelle); }
@keyframes recibe { 40% { transform: scale(1.15); box-shadow: inset 0 0 0 2px var(--lima), 0 0 50px rgba(194,240,74,.7); } }

.msg--n.shell { width: 350px; max-width: 350px; padding: 0; overflow: hidden; background: #050506; }
.mini-cab { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: rgba(28,28,30,.96); font-size: 12px; color: var(--tinta-2); }
.mini-cab .marca-icono { width: 20px; height: 20px; border-radius: 6px; box-shadow: none; }
.mini-cab b { color: var(--tinta); font-weight: 650; }
.mini-cab span:last-child { margin-left: auto; color: var(--lima); }
.mini-cuerpo { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.mini-cuerpo .b { max-width: 92%; font-size: 13px; }
.mini-app { border-radius: 14px; background: #F2F2F7; color: #1C1C1E; padding: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.mini-app header { display: flex; justify-content: space-between; font-size: 11px; font-weight: 650; color: #55555A; }
.mini-horas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.mini-horas span { text-align: center; padding: 6px 0; border-radius: 9px; background: #fff; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.mini-horas span.si { background: #1C1C1E; color: var(--lima); }
.mini-prenda { display: flex; gap: 10px; align-items: center; }
.mini-prenda i { width: 46px; height: 54px; border-radius: 10px; background: linear-gradient(160deg, #6B7A3A, #3E4A1E); flex: none; }
.mini-prenda div { flex: 1; }
.mini-prenda b { display: block; }
.mini-boton { border-radius: 9px; background: var(--lima); color: var(--lima-tinta); text-align: center; padding: 7px; font-weight: 650; }

/* Los sectores se pueden tocar: abren su ficha */
button.nodo { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
button.nodo:hover .nodo-caja, button.nodo:focus-visible .nodo-caja { color: var(--lima); box-shadow: inset 0 0 0 1.5px rgba(194,240,74,.7), 0 0 34px rgba(194,240,74,.4), 0 10px 30px rgba(0,0,0,.6); }
button.nodo:hover span { color: var(--tinta); }
button.nodo:focus-visible { outline: none; }
button.nodo:focus-visible .nodo-caja { outline: 3px solid var(--lima); outline-offset: 4px; }
.nodo-caja { position: relative; }
.nodo-caja::after { content: "i"; position: absolute; right: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: italic 700 13px/1 Georgia, "Times New Roman", serif; background: var(--lima); color: var(--lima-tinta); box-shadow: 0 0 14px rgba(194,240,74,.6); }

dialog.ficha {
  position: fixed; inset: 0 0 0 auto; width: min(540px, 100vw); height: 100dvh; max-height: none; max-width: none; margin: 0; padding: 0; border: 0;
  background: #0B0B0D; color: var(--tinta); overflow-y: auto; overscroll-behavior: contain;
  box-shadow: -1px 0 0 var(--borde-2), -40px 0 120px rgba(0,0,0,.7);
}
dialog.ficha[open] { animation: entra-ficha .5s var(--muelle); }
@keyframes entra-ficha { from { transform: translateX(60px); opacity: 0; } }
dialog.ficha::backdrop { background: rgba(0,0,0,.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ficha-dentro { padding: calc(22px + env(safe-area-inset-top, 0px)) 26px calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 22px; }
.ficha-sector { font-size: 14px; font-weight: 650; color: var(--lima); }
.ficha h2 { font-size: 28px; letter-spacing: -0.03em; line-height: 1.1; }
.ficha-cerrar { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--tinta); transition: background-color .2s; }
.ficha-cerrar:hover { background: rgba(255,255,255,.16); }
.ficha-demo { padding: 18px; display: flex; flex-direction: column; gap: 10px; background: radial-gradient(120% 90% at 50% 0%, #1A200B, #050506 70%); min-height: 220px; justify-content: center; }
.ficha-demo .b { max-width: 86%; font-size: 15px; opacity: 0; transform: translateY(10px); animation: demo-entra .5s var(--muelle) forwards; }
.ficha-demo .b--n { animation-delay: 1.1s; }
.ficha-demo em { align-self: flex-start; font-style: normal; font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--lima-tenue); color: var(--lima-claro); box-shadow: inset 0 0 0 1px rgba(194,240,74,.35); opacity: 0; animation: demo-entra .5s 1.9s var(--muelle) forwards; }
.ficha-demo small { font-size: 12px; color: var(--tinta-3); }
@keyframes demo-entra { to { opacity: 1; transform: none; } }
.ficha h3 { font-size: 18px; letter-spacing: -0.01em; }
@media (max-width: 700px) {
  dialog.ficha { inset: auto 0 0 0; width: 100%; height: auto; max-height: 90dvh; border-radius: 26px 26px 0 0; box-shadow: 0 -1px 0 var(--borde-2), 0 -30px 80px rgba(0,0,0,.7); }
  @keyframes entra-ficha { from { transform: translateY(80px); opacity: 0; } }
  .ficha h2 { font-size: 24px; }
  .nodo-caja::after { width: 18px; height: 18px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .ficha-demo .b, .ficha-demo em { opacity: 1; transform: none; } }

.enlace-boton { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: var(--lima); text-decoration: underline; text-underline-offset: 3px; }
.enlace-boton--pie { color: inherit; text-decoration: none; padding: 6px 0; }
.enlace-boton--pie:hover { color: var(--lima); }
dialog.contacto { width: min(440px, calc(100vw - 32px)); padding: 28px; border: 0; border-radius: 24px; background: #0F0F11; color: var(--tinta); box-shadow: inset 0 0 0 1.5px rgba(194,240,74,.45), 0 40px 120px rgba(0,0,0,.8); }
dialog.contacto::backdrop { background: rgba(0,0,0,.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.contacto-dentro { display: flex; flex-direction: column; gap: 14px; }
.contacto h2 { font-size: 26px; letter-spacing: -0.03em; padding-right: 40px; }
.contacto p { color: var(--tinta-2); font-size: 16px; }
.contacto-correo { font-size: 20px; font-weight: 650; color: var(--lima); user-select: all; -webkit-user-select: all; padding: 14px 16px; border-radius: 14px; background: var(--lima-tenue); text-align: center; }
.contacto small { color: var(--tinta-3); font-size: 13px; }
.contacto .ficha-cerrar { position: absolute; right: 16px; top: 16px; }

/* La tarjeta del sector: lo construido, casos de uso, ventajas y la calculadora */
dialog.ficha { width: min(620px, 100vw); }
.casos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.casos li { padding: 14px 0; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
.casos li + li { box-shadow: inset 0 1px 0 var(--borde); }
.casos strong { display: block; font-size: 16px; }
.casos p { font-size: 15px; color: var(--tinta-2); margin-top: 3px; }
.ventajas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ventajas div { padding: 14px; border-radius: 16px; background: #141416; box-shadow: inset 0 0 0 1px var(--borde); }
.ventajas strong { display: block; font-size: 15px; margin-bottom: 4px; }
.ventajas p { font-size: 13px; color: var(--tinta-2); line-height: 1.45; }
.calc { padding: 18px; border-radius: 20px; background: radial-gradient(120% 120% at 0% 0%, rgba(194,240,74,.12), transparent 60%), #101012; box-shadow: inset 0 0 0 1.5px rgba(194,240,74,.4); display: flex; flex-direction: column; gap: 14px; }
.calc-campo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.calc-campo label { font-size: 14px; color: var(--tinta-2); }
.calc-campo output { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.calc-campo input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--lima); height: 28px; }
.calc-resultado { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-resultado div { padding: 14px; border-radius: 14px; background: var(--lima); color: var(--lima-tinta); }
.calc-resultado div + div { background: #1C1C1E; color: var(--tinta); box-shadow: inset 0 0 0 1px var(--borde-2); }
.calc-resultado b { display: block; font-size: 30px; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.calc-resultado span { font-size: 13px; font-weight: 600; }
.calc small { font-size: 12px; color: var(--tinta-3); line-height: 1.45; }
@media (max-width: 700px) { .ventajas { grid-template-columns: 1fr; } .calc-resultado b { font-size: 24px; } }

/* El cuadro centrado del sector: video a la izquierda, lo esencial a la derecha, sin bajar */
dialog.sm { width: min(1060px, calc(100vw - 48px)); height: min(620px, calc(100dvh - 48px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 28px; overflow: hidden;
  background: #0B0B0D; color: var(--tinta); box-shadow: inset 0 0 0 1px var(--borde-2), 0 50px 140px rgba(0,0,0,.85), 0 0 80px rgba(194,240,74,.12); }
dialog.sm[open] { animation: sm-entra .45s var(--muelle); }
@keyframes sm-entra { from { opacity: 0; transform: scale(.96) translateY(12px); } }
dialog.sm::backdrop { background: rgba(0,0,0,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sm-grid { height: 100%; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.sm-media { position: relative; background: #0B1008; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sm-media video { width: 100%; height: 100%; object-fit: contain; background: #0B1008; }
.sm-media .ficha-demo { width: 100%; height: 100%; padding: 40px; justify-content: center; gap: 14px; }
.sm-media .ficha-demo .b { font-size: 17px; max-width: 80%; }
.sm-info { padding: 30px 30px 24px; display: flex; flex-direction: column; gap: 16px; min-height: 0; overflow-y: auto; }
.sm-arriba { display: flex; align-items: center; gap: 10px; padding-right: 48px; }
.sm-arriba .ficha-sector { flex: 1; display: flex; align-items: center; gap: 8px; }
.sm-arriba .ficha-sector svg { width: 18px; height: 18px; }
.sm-flecha { width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--tinta); transition: background-color .2s; }
.sm-flecha:hover { background: rgba(255,255,255,.14); }
.sm h2 { font-size: 30px; letter-spacing: -0.035em; line-height: 1.08; }
.sm-pitch { font-size: 17px; color: var(--tinta-2); line-height: 1.45; }
.sm-caps { display: flex; flex-wrap: wrap; gap: 6px; }
.sm-caps span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: #161618; font-size: 13px; font-weight: 600; }
.sm-caps svg { width: 14px; height: 14px; color: var(--lima); }
.sm-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: #161618; }
.sm-tabs button { flex: 1; min-height: 38px; border: 0; border-radius: 10px; cursor: pointer; background: transparent; color: var(--tinta-2); font: 600 14px/1 var(--fuente); transition: background-color .2s, color .2s; }
.sm-tabs button[aria-selected="true"] { background: var(--lima); color: var(--lima-tinta); }
.sm-panel { flex: 1 0 auto; }
.sm-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sm-lista li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; animation: demo-entra .4s var(--muelle) both; }
.sm-lista li:nth-child(2) { animation-delay: .06s; } .sm-lista li:nth-child(3) { animation-delay: .12s; }
.sm-lista svg { margin-top: 3px; color: var(--lima); }
.sm-lista strong { display: block; font-size: 16px; }
.sm-lista span { font-size: 14px; color: var(--tinta-2); }
.sm-ahorro { display: flex; flex-direction: column; gap: 10px; }
.sm-ahorro .calc-campo input[type="range"] { height: 24px; }
.sm-ahorro .calc-resultado b { font-size: 26px; }
.sm-ahorro small { font-size: 12px; color: var(--tinta-3); }
.sm-acciones { display: flex; gap: 10px; position: sticky; bottom: 0; padding-top: 8px; background: #0B0B0D; }
.sm-acciones .boton { flex: 1; min-height: 48px; padding: 0 14px; white-space: nowrap; }
dialog.sm .ficha-cerrar { position: absolute; right: 14px; top: 14px; z-index: 3; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
/* Táctil (celular, tablet): flechas y pestañas de 44 px. */
@media (max-width: 820px), (pointer: coarse) { .sm-flecha { width: 44px; height: 44px; } .sm-tabs button { min-height: 44px; } }
@media (max-height: 520px) and (min-width: 821px) {
  dialog.sm { width: 100vw; height: 100dvh; border-radius: 0; }
  .sm-pitch { display: none; }
}
@media (max-width: 820px) {
  dialog.sm { width: 100vw; height: 100dvh; border-radius: 0; }
  .sm-grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .sm-media { aspect-ratio: 16 / 9; }
  .sm-media .ficha-demo { padding: 20px; }
  .sm-media .ficha-demo .b { font-size: 14px; }
  .sm-info { padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0px)); gap: 12px; overflow-y: auto; }
  .sm h2 { font-size: 24px; }
  .sm-pitch { font-size: 15px; }
}

/* ───────── Sección: cabeceras comunes ───────── */
.seccion { position: relative; padding: clamp(110px, 16vh, 180px) 0; }
.cabeza { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; margin-bottom: clamp(48px, 7vh, 80px); }
.cabeza h2 { font-size: clamp(36px, 5vw, 68px); }
.cabeza p { font-size: 19px; color: var(--tinta-2); max-width: 56ch; }
.verde { color: var(--lima); }

/* ───────── Experiencia del Shell (fijada al scroll) ───────── */
.experiencia { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.experiencia > .envoltura { flex: 0 1 1200px; margin-inline: var(--margen); width: auto; }
.experiencia-luz { position: absolute; right: 6%; top: 50%; width: 820px; height: 820px; transform: translateY(-50%); background: radial-gradient(closest-side, rgba(194,240,74,.17), transparent 70%); pointer-events: none; }
.experiencia-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 64px; align-items: center; width: 100%; }
.experiencia h2 { font-size: clamp(36px, 4.6vw, 64px); margin-bottom: 14px; }
.experiencia .bajada { color: var(--tinta-2); font-size: 18px; max-width: 46ch; margin-bottom: 34px; }
.pasos-marco { position: relative; }
.pasos { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: flex; flex-direction: column; gap: 26px; }
.pasos::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: rgba(255,255,255,.1); border-radius: 2px; }
.pasos-barra { position: absolute; left: 0; top: 6px; width: 2px; height: calc(100% - 12px); background: var(--lima); border-radius: 2px; transform-origin: top; box-shadow: 0 0 12px var(--lima); transition: transform .5s var(--muelle); }
.paso { transition: opacity .4s; }
.paso strong { display: flex; align-items: center; gap: 12px; font-size: clamp(21px, 2vw, 27px); letter-spacing: -0.02em; line-height: 1.2; font-weight: 600; }
.paso strong svg { color: var(--lima); flex: none; }
.paso span { display: block; padding-left: 34px; margin-top: 6px; color: var(--tinta-2); font-size: 16px; max-width: 46ch; }
.js-gsap .paso { opacity: .32; }
.js-gsap .paso.activo { opacity: 1; }

.ventana {
  position: relative; height: min(660px, calc(100svh - 170px)); border-radius: 30px; overflow: hidden; display: flex; flex-direction: column;
  background: #050506; box-shadow: inset 0 0 0 1px var(--borde-2), 0 40px 120px rgba(0,0,0,.8), 0 0 90px rgba(194,240,74,.13);
}
.v-cabeza { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; background: rgba(28,28,30,.85); }
.v-cabeza .avatar { background: #E6F9C3; color: #4A5E14; }
.v-cabeza > div:not(.avatar) { flex: 1; min-width: 0; }
.v-cabeza strong { display: block; font-size: 15px; }
.v-cabeza small { font-size: 13px; color: var(--tinta-3); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #E5E5EA; color: #1C1C1E; font-weight: 700; font-size: 14px; flex: none; }
.v-hilo { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px; overflow: hidden; }
.b { max-width: 84%; padding: 9px 13px; border-radius: 18px; font-size: 14px; line-height: 1.4; }
.b--c { align-self: flex-end; background: var(--lima); color: var(--lima-tinta); border-bottom-right-radius: 6px; }
.b--n { align-self: flex-start; background: var(--g3); border-bottom-left-radius: 6px; }
.app { align-self: stretch; border-radius: 20px; overflow: hidden; background: #F2F2F7; color: #1C1C1E; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.app-franja { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #E5E5EA; font-size: 12px; font-weight: 600; color: #3C3C43; }
.app-franja span { flex: 1; }
.app-cuerpo { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.app-cuerpo strong { font-size: 15px; }
.dias, .horas { display: grid; gap: 6px; }
.dias { grid-template-columns: repeat(4, 1fr); }
.horas { grid-template-columns: repeat(4, 1fr); }
.dia, .hora-chip { border-radius: 12px; background: #FFFFFF; text-align: center; padding: 7px 4px; font-size: 13px; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); transition: background-color .35s, color .35s, transform .35s var(--muelle); }
.dia b { display: block; font-size: 16px; }
.dia.elegida, .hora-chip.elegida { background: #1C1C1E; color: var(--lima); transform: scale(1.05); }
.app-boton { border: 0; border-radius: 12px; min-height: 40px; background: var(--lima); color: var(--lima-tinta); font: 650 14px/1 var(--fuente); }
.v-pie { display: flex; align-items: center; gap: 8px; padding: 10px 12px 14px; }
.v-campo { flex: 1; min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 16px; border-radius: 21px; background: var(--g2); font-size: 14px; color: var(--tinta-3); }
.v-enviar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--lima); }

@keyframes habla { 50% { transform: scale(1.07); } }

/* En escritorio, con GSAP: cada pieza aparece a su hora. */
.js-gsap .ventana [data-desde] { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--muelle), transform .5s var(--muelle); }
.js-gsap .ventana [data-desde].ver { opacity: 1; transform: none; }

/* ───────── Capacidades: cómo funciona (cliente → Nuria → capacidad) ───────── */
.capas { padding: clamp(64px, 9vh, 96px) 0 clamp(96px, 12vh, 140px); scroll-margin-top: 28px; }
.capas-cabeza { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; max-width: 760px; margin: 0 auto 32px; }
.capas-cabeza h2 { font-size: clamp(36px, 5vw, 68px); }
.capas-cabeza p { font-size: 19px; color: var(--tinta-2); max-width: 54ch; }
.capas-rotulo { font-size: 14px; font-weight: 650; color: var(--lima); margin-bottom: 14px; }
.capas-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; border-radius: 22px; background: radial-gradient(120% 160% at 0% 0%, rgba(194,240,74,.12), transparent 60%); box-shadow: inset 0 0 0 1.5px rgba(194,240,74,.35); }
.capas-pie p { font-size: 17px; color: var(--tinta-2); max-width: 46ch; }
.capas-pie p strong { color: var(--tinta); }
.capas-pie-acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-icono { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--tinta-2); background: rgba(255,255,255,.06); }
.cat-icono svg { width: 22px; height: 22px; }
.solo-lectores { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.flujo { position: relative; display: grid; grid-template-columns: minmax(240px, 330px) minmax(110px, 1fr) minmax(240px, 330px); align-items: stretch; column-gap: clamp(20px, 5vw, 64px);
  padding: 30px clamp(18px, 3vw, 32px); border-radius: 32px; isolation: isolate;
  background: radial-gradient(60% 80% at 50% 50%, rgba(194,240,74,.12), transparent 70%), #08080A; box-shadow: inset 0 0 0 1px var(--borde); }
.fl-lineas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; pointer-events: none; }
.fl-lineas path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fl-lineas .base { stroke: rgba(255,255,255,.1); stroke-width: 1.5; transition: stroke .4s; }
.fl-lineas .base.on { stroke: rgba(194,240,74,.5); }
.fl-lineas .luz { stroke: var(--lima); stroke-width: 3.5; stroke-dasharray: .16 2; stroke-dashoffset: .16; filter: drop-shadow(0 0 5px rgba(194,240,74,.95)); }
.fl-lineas .luz.fija { stroke-dasharray: none; stroke-dashoffset: 0; opacity: .85; }

.fl-col { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; padding-top: 26px; min-height: 420px; }
.fl-lab { position: absolute; top: 0; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 650; color: var(--lima); }

/* Cliente: sólo la silueta de una persona; el mensaje sale de ella como una burbuja pequeña */
.fl-persona { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.fl-slot { width: 100%; min-height: 98px; display: flex; justify-content: center; }
.fl-slot--c { align-items: flex-end; }
.fl-slot--n { align-items: flex-start; }
.fl-sil { position: relative; width: 116px; height: 116px; border-radius: 50%; flex: none; display: grid; place-items: center; color: rgba(194,240,74,.55);
  background: radial-gradient(closest-side, rgba(194,240,74,.13), transparent 78%); box-shadow: inset 0 0 0 1.5px rgba(194,240,74,.26);
  transition: box-shadow .45s, color .45s; }
.fl-sil svg { width: 60px; height: 60px; }
.fl-sil::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid rgba(194,240,74,.5); opacity: 0; pointer-events: none; }
.fl-sil.habla, .fl-sil.oye { color: var(--lima); box-shadow: inset 0 0 0 1.5px rgba(194,240,74,.7), 0 0 44px rgba(194,240,74,.28); }
.fl-sil.habla::after { animation: onda 1.4s var(--muelle) infinite; }
.fl-b { max-width: min(236px, 100%); padding: 8px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.35; opacity: 0; }
.fl-b--c { background: var(--lima); color: var(--lima-tinta); border-bottom-left-radius: 5px; display: flex; gap: 8px; align-items: center; box-shadow: 0 0 30px rgba(194,240,74,.3); }
.fl-b--n { background: #161618; color: var(--tinta); border-top-left-radius: 5px; box-shadow: inset 0 0 0 1.5px rgba(194,240,74,.55), 0 0 30px rgba(194,240,74,.2); }
.fl-b--n small { display: block; font-size: 11.5px; font-weight: 650; color: var(--lima); margin-bottom: 1px; }
.fl-b--n em { display: block; width: max-content; max-width: 100%; margin-top: 6px; font-style: normal; font-size: 11.5px; font-weight: 650; padding: 2px 9px; border-radius: 999px; background: var(--lima-tenue); color: var(--lima-claro); }

/* Núcleo: el orbe del home, centrado en su columna */
.fl-nucleo { position: relative; left: auto; top: auto; transform: none; width: clamp(104px, 12vw, 140px); height: clamp(104px, 12vw, 140px); }
.fl-nucleo.lee { box-shadow: inset 0 0 0 1.5px rgba(194,240,74,.9), inset 0 1px 0 rgba(255,255,255,.12), 0 0 90px rgba(194,240,74,.6), 0 0 180px rgba(194,240,74,.3); }
.fl-nucleo.lee .lee-puntos { display: flex; }
.fl-nucleo.lee .nucleo-dentro > svg { display: none; }

/* Capacidades como nodos */
.fl-caps { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.nodo-f { display: flex; align-items: center; gap: 12px; padding: 9px 14px 9px 9px; border-radius: 20px; background: linear-gradient(180deg, #151518, #0C0C0E); box-shadow: inset 0 0 0 1px var(--borde-2); transition: box-shadow .35s, transform .4s var(--muelle), background-color .3s; }
.nodo-f .nodo-caja { width: 44px; height: 44px; border-radius: 14px; flex: none; animation: none; box-shadow: inset 0 0 0 1px var(--borde-2); }
.nodo-f .nodo-caja svg { width: 22px; height: 22px; }
.nodo-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.nodo-t b { font-size: 15px; font-weight: 650; }
.nodo-t small { font-size: 12.5px; color: var(--tinta-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nodo-f.vivo { transform: scale(1.04); box-shadow: inset 0 0 0 1.5px rgba(194,240,74,.85), 0 0 36px rgba(194,240,74,.35); }
.nodo-f.vivo .nodo-caja { color: var(--lima); background: var(--lima-tenue); box-shadow: inset 0 0 0 1px rgba(194,240,74,.6); }
.nodo-f.vivo b { color: var(--lima); }

/* Capacidades: tarjetas mínimas */
.fl-rotulo { margin-bottom: 14px; }
.cps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .cps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .cps { grid-template-columns: 1fr; } }
.cp { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 20px; background: #0E0E10; box-shadow: inset 0 0 0 1px var(--borde); transition: box-shadow .3s, transform .35s var(--muelle); }
.cp:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(194,240,74,.45); }
.cp .cat-icono { flex: none; color: var(--lima); background: var(--lima-tenue); }
.cp b { display: block; font-size: 16px; letter-spacing: -0.01em; }
.cp p { font-size: 14px; color: var(--tinta-2); line-height: 1.4; margin-top: 2px; }
.cp-tag { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--lima); color: var(--lima-tinta); }

/* Teléfono: la escena va en vertical (cliente arriba, Nuria al centro, capacidades abajo) */
@media (max-width: 760px) {
  .flujo { grid-template-columns: 1fr; row-gap: 22px; padding: 22px 16px 24px; }
  .fl-col { min-height: 0; padding-top: 38px; }
  .fl-persona { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .fl-sil { width: 88px; height: 88px; }
  .fl-sil svg { width: 46px; height: 46px; }
  .fl-slot { min-height: 0; justify-content: center; }
  .fl-slot--c { min-height: 78px; align-items: flex-end; }
  .fl-slot--n { min-height: 84px; align-items: flex-start; }
  .fl-b { font-size: 14px; }
  .fl-lab { left: 50%; right: auto; transform: translateX(-50%); width: max-content; max-width: 100%; text-align: center; font-size: 14px; padding: 4px 12px; border-radius: 999px; background: #0A0B08; box-shadow: inset 0 0 0 1px rgba(194,240,74,.22); }
  .fl-col--caps { padding-top: 0; gap: 14px; }
  .fl-col--caps .fl-lab { position: static; transform: none; margin: 0 auto; }
  .fl-caps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .fl-caps .nodo-f:last-child { grid-column: 1 / -1; justify-self: center; min-width: calc(50% - 4px); }
  .nodo-f { padding: 8px 10px 8px 8px; gap: 10px; border-radius: 16px; min-height: 56px; }
  .nodo-t b { font-size: 14px; line-height: 1.2; }
  .nodo-t small { display: none; }
  .nodo-f .nodo-caja { width: 38px; height: 38px; border-radius: 12px; }
  .nodo-f.vivo { transform: scale(1.03); }
}

/* Capacidades plegables: «Ver capacidades» las despliega (alto 0fr → 1fr y opacidad; lo plegado sale del teclado) */
.fl-ver { display: flex; justify-content: center; margin: 22px 0 8px; }
.enlace-ver { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--lima); font: 600 15px/1 var(--fuente); cursor: pointer; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(194,240,74,.4); touch-action: manipulation; transition: text-decoration-color .2s; }
.enlace-ver:hover { text-decoration-color: var(--lima); }
.enlace-ver svg { width: 16px; height: 16px; transition: transform .45s var(--muelle); }
.enlace-ver[aria-expanded="true"] svg { transform: rotate(180deg); }
.enlace-ver:focus-visible { outline: 3px solid var(--lima); outline-offset: 3px; }
.plie { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .55s var(--muelle), opacity .35s ease, visibility 0s linear .55s; }
.plie.abierto { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition-delay: 0s, .1s, 0s; }
.plie-in { min-height: 0; overflow: hidden; padding: 4px 4px 0; margin: -4px -4px 0; }
.nodo-f .nodo-caja::after { display: none; }
.flujo .fl-nucleo { width: clamp(104px, 12vw, 140px); height: clamp(104px, 12vw, 140px); border-radius: 40px; }
.flujo .fl-nucleo .nucleo-dentro svg { width: 46px; height: 46px; }
.flujo .fl-nucleo .nucleo-dentro span { font-size: 18px; }
.flujo.fija .fl-b { opacity: 1; }
.flujo:focus-visible { outline: 3px solid var(--lima); outline-offset: 4px; }

/* Sin movimiento: la escena queda fija (lo muestra el script) y nada se anima */
@media (prefers-reduced-motion: reduce) {
  .fl-nucleo::before, .fl-nucleo::after, .fl-nucleo svg, .lee-puntos i, .fl-sil::after { animation: none !important; }
  .nodo-f, .cp, .fl-lineas .base, .plie, .enlace-ver svg { transition: none !important; }
}
@media (max-width: 560px) { .capas-pie-acciones .boton { flex: 1; } }

/* ───────── Negocios: carrusel ───────── */
.negocios { padding: clamp(110px, 16vh, 180px) 0; overflow: hidden; }
.fila-fotos { display: flex; gap: 16px; width: max-content; animation: desliza 60s linear infinite; }
.fila-fotos + .fila-fotos { margin-top: 16px; animation-direction: reverse; animation-duration: 70s; }
.negocios:hover .fila-fotos { animation-play-state: paused; }
@keyframes desliza { to { transform: translateX(-50%); } }
.foto { position: relative; flex: none; width: 440px; height: 300px; margin: 0; border-radius: 26px; overflow: hidden; background: var(--g2); }
.foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--muelle); }
.foto img[src*="barberia"] { object-position: 50% 37%; }
.foto:hover img { transform: scale(1.06); }
.foto figcaption {
  position: absolute; inset: auto 0 0 0; padding: 60px 22px 20px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.6) 45%, rgba(0,0,0,.92));
}
.foto figcaption strong { display: block; font-size: 22px; letter-spacing: -0.02em; }
.foto figcaption span { font-size: 15px; color: rgba(242,242,247,.86); }
.foto--texto { display: flex; flex-direction: column; justify-content: space-between; padding: 28px; background: radial-gradient(120% 120% at 0% 0%, #2A3410, #0B0E05 70%); box-shadow: inset 0 0 0 1px rgba(194,240,74,.3); }
.foto--texto p { font-size: 30px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; }
.foto--texto small { font-size: 15px; color: var(--tinta-2); }
.foto--texto small b { color: var(--lima); font-variant-numeric: tabular-nums; }

/* ───────── Planes (cifras de Planes, pintadas al armar) ───────── */
/* Las tarjetas de pago usan una cuadrícula entre las franjas. */
.planes-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; margin-block: 20px; }
.plan {
  --x: 50%; --y: 0%;
  position: relative; border-radius: 30px; padding: 30px 26px 26px; display: flex; flex-direction: column; gap: 22px; overflow: hidden; min-width: 0;
  background: radial-gradient(500px circle at var(--x) var(--y), rgba(255,255,255,.07), transparent 40%), linear-gradient(180deg, #141416, #0A0A0B);
  box-shadow: inset 0 0 0 1px var(--borde);
  transition: transform .4s var(--muelle);
}
.plan:hover { transform: translateY(-6px); }
.plan--rec {
  background: radial-gradient(500px circle at var(--x) var(--y), rgba(194,240,74,.18), transparent 45%), linear-gradient(180deg, #1A200B, #0B0E05);
  box-shadow: inset 0 0 0 1.5px rgba(194,240,74,.6), 0 0 80px rgba(194,240,74,.18);
}
.plan h3 { font-size: 24px; letter-spacing: -0.02em; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 32px; overflow-wrap: anywhere; }
.plan--rec h3 { flex-wrap: wrap; }
.etiqueta { font-size: 13px; font-weight: 650; letter-spacing: 0; padding: 5px 11px; border-radius: 999px; background: var(--lima); color: var(--lima-tinta); white-space: nowrap; }
.precio { position: relative; display: flex; flex-direction: column; gap: 4px; }
.precio-cifra { display: flex; align-items: baseline; gap: 2px; font-size: clamp(34px, 3vw, 44px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.precio-signo { font-size: .5em; align-self: flex-start; margin-top: .2em; color: var(--tinta-2); font-weight: 600; letter-spacing: 0; }
.precio-desde { position: absolute; left: 0; bottom: 100%; margin-bottom: 2px; font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1.2; color: var(--tinta-2); }
.plan--rec .precio-cifra, .plan--rec .precio-signo { color: var(--lima); }
.precio-pie { font-size: 14px; color: var(--tinta-2); }
.plan ul { list-style: none; margin: 0; padding: 22px 0 0; display: flex; flex-direction: column; gap: 12px; flex: 1; box-shadow: inset 0 1px 0 var(--borde); }
.plan li { display: flex; gap: 10px; font-size: 16px; line-height: 1.4; }
.plan li span { min-width: 0; }
.plan li svg { flex: none; margin-top: 3px; color: var(--lima); }
.plan .boton { width: 100%; }
/* Las franjas: una frase y su botón, a lo ancho. */
.franja { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding: 26px 30px; border-radius: 26px; background: linear-gradient(180deg, #121214, #0A0A0B); box-shadow: inset 0 0 0 1px var(--borde); }
.franja-texto { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 320px; }
.franja h3 { font-size: 22px; letter-spacing: -0.02em; text-wrap: balance; }
.franja p { color: var(--tinta-2); font-size: 16px; text-wrap: pretty; }
.franja .boton { flex: none; min-width: 200px; }
/* Gratis: la puerta de entrada, en lima (más visible que las tarjetas; Pro sigue siendo el único «Recomendado»). */
.franja--arriba {
  padding: 34px 38px;
  background: radial-gradient(70% 160% at 0% 0%, rgba(194,240,74,.26), transparent 62%), linear-gradient(180deg, #1C230B, #0B0E05);
  box-shadow: inset 0 0 0 1.5px rgba(194,240,74,.75), 0 0 70px rgba(194,240,74,.22);
}
.franja--arriba h3 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.03em; }
.franja--arriba p { color: var(--tinta); }
.franja--arriba .boton { min-width: 240px; padding-block: 18px; font-size: 17px; }
.planes-notas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; margin-top: 28px; color: var(--tinta-2); font-size: 14px; }
.planes-notas p { text-wrap: pretty; }
@media (max-width: 1140px) { .planes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ───────── Preguntas ───────── */
.preguntas { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.preguntas h2 { font-size: clamp(36px, 4.6vw, 64px); }
.preguntas > div:first-child { position: sticky; top: 120px; }
.preguntas h2 + p { margin-top: 18px; color: var(--tinta-2); max-width: 36ch; }
.faq { display: flex; flex-direction: column; gap: 10px; }
details { border-radius: 22px; background: linear-gradient(180deg, #141416, #0D0D0F); box-shadow: inset 0 0 0 1px var(--borde); transition: box-shadow .3s; }
details[open] { box-shadow: inset 0 0 0 1px rgba(194,240,74,.45), 0 0 40px rgba(194,240,74,.08); }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; font-size: 18px; font-weight: 550; }
summary::-webkit-details-marker { display: none; }
.mas { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.07); transition: transform .4s var(--muelle), background-color .3s, color .3s; }
details[open] .mas { transform: rotate(45deg); background: var(--lima); color: var(--lima-tinta); }
.respuesta { padding: 0 24px 22px; color: var(--tinta-2); font-size: 16px; max-width: 60ch; }

/* ───────── Cierre ───────── */
.cierre { --radio: clamp(300px, 34vw, 640px); position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(80px, 12vh, 130px) 0 calc(var(--radio) + 70px); }
/* El texto va sobre la cima del arco (.orbe-borde: diámetro = 2 × --radio): padding de abajo = radio + respiro. */
.orbe {
  position: absolute; z-index: -1; left: 50%; top: 100%; width: calc(var(--radio) * 2.86); height: calc(var(--radio) * 2.86); transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(194,240,74,.55), rgba(194,240,74,.18) 40%, transparent 70%);
  animation: respira 8s ease-in-out infinite;
}
.orbe-borde { position: absolute; z-index: -1; left: 50%; top: 100%; width: calc(var(--radio) * 2); height: calc(var(--radio) * 2); transform: translate(-50%, -50%); border-radius: 50%; box-shadow: inset 0 2px 0 rgba(228,255,154,.8), 0 -20px 80px rgba(194,240,74,.35); }
.cierre h2 { font-size: clamp(42px, 7vw, 100px); letter-spacing: -0.05em; }
/* Entrada del domo: el reposo es visible; `.prepara` (puesta por el script) lo oculta y `.en-vista` lo muestra al llegar. */
.cierre.prepara .orbe, .cierre.prepara .orbe-borde, .cierre.prepara .cierre-marca { opacity: 0; translate: 0 30%; visibility: hidden; }
.cierre.prepara.en-vista .orbe, .cierre.prepara.en-vista .orbe-borde, .cierre.prepara.en-vista .cierre-marca { opacity: 1; translate: 0 0; visibility: visible; transition: opacity 1.4s ease, translate 1.6s cubic-bezier(.16, 1, .3, 1); }
/* «Nuria Pulse» vive dentro del domo, iluminado desde abajo como por un amanecer. */
.cierre p.cierre-marca { position: absolute; left: 0; right: 0; bottom: calc(var(--radio) * .1); z-index: 0; margin: 0; font-size: min(calc(var(--radio) * .34), 17vw); font-weight: 750; letter-spacing: -0.06em; line-height: .9; white-space: nowrap; text-align: center; pointer-events: none;
  background: linear-gradient(180deg, #F7FFD6 0%, #DDF98F 45%, rgba(194,240,74,.55) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; filter: drop-shadow(0 0 26px rgba(194,240,74,.35)); }
.cierre p { margin: 22px auto 34px; font-size: 19px; color: var(--tinta-2); max-width: 46ch; }

/* ───────── Pie ───────── */
.pie { padding: 40px 0 40px; }
.pie-fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 0; font-size: 15px; color: var(--tinta-2); }
.pie-fila nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.pie-fila a, .enlace-boton--pie { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0; }
.pie-fila a { text-decoration: none; transition: color .2s; }
.pie-fila a:hover { color: var(--lima); }
.creditos { margin-top: 28px; font-size: 13px; color: var(--tinta-3); line-height: 1.6; }
.creditos a { color: var(--tinta-2); }

/* Entradas (sólo con JS) */
.js-gsap [data-r] { will-change: transform, opacity; }

/* ───────── Teléfono y tablet ───────── */
/* Los enlaces caben en la barra desde 768 px; por debajo no hay sitio y quedan ocultos. */
@media (max-width: 767px) { .barra nav { display: none; } }
/* De 768 a 1099 px los seis enlaces caben si se aprietan un poco; la marca y el botón nunca se parten. */
@media (min-width: 768px) and (max-width: 1099px) {
  .barra nav { gap: 0; }
  .barra nav a { padding: 9px 9px; font-size: 14px; }
  .barra .marca, .barra .boton { white-space: nowrap; flex-shrink: 0; }
  .barra .boton { padding: 0 16px; font-size: 14px; }
}
@media (min-width: 768px) and (max-width: 899px) {
  .barra { padding-left: 14px; gap: 10px; }
  .barra nav a { padding: 9px 5px; font-size: 13.5px; }
}
@media (max-width: 980px) {
  .experiencia { min-height: 0; padding: 72px 0 110px; }
  .experiencia-grid { grid-template-columns: 1fr; gap: 48px; }
  .ventana { width: min(420px, 100%); height: auto; margin: 0; }
  .v-hilo { justify-content: flex-start; }
  .planes-grid { grid-template-columns: 1fr 1fr; }
  .planes-notas { grid-template-columns: 1fr; }
  .preguntas { grid-template-columns: 1fr; }
  .preguntas > div:first-child { position: static; }
}
@media (max-width: 980px) {
  /* Zona segura de arriba y bajo la barra: el contenido no se lee detrás de la hora ni a través de la barra. */
  body::before { content: ""; position: fixed; z-index: 90; left: 0; right: 0; top: 0; height: calc(env(safe-area-inset-top, 0px) + 92px); pointer-events: none;
    background: linear-gradient(180deg, #000 0, #000 calc(env(safe-area-inset-top, 0px) + 30px), rgba(0,0,0,.78) calc(env(safe-area-inset-top, 0px) + 66px), rgba(0,0,0,0) 100%); }
  .barra { background: rgba(14, 14, 16, .9); }
}
@media (max-width: 380px) {
  .barra { padding: 0 6px 0 12px; gap: 8px; }
  .marca { font-size: 15px; gap: 8px; white-space: nowrap; }
  .barra .boton { padding: 0 14px; font-size: 14px; white-space: nowrap; }
}
@media (max-width: 700px) {
  .portada { padding-top: calc(120px + env(safe-area-inset-top, 0px)); }
  .cierre { --radio: max(240px, 72vw); padding-top: 72px; }
  .cierre h2 { padding-inline: 8px; }
  .pie { padding: 32px 0 calc(48px + env(safe-area-inset-bottom, 0px) + 88px); }
  .pie-fila { font-size: 16px; }
  .pie-fila nav { gap: 0 20px; }
  .pie-fila a, .enlace-boton--pie { font-size: 16px; }
  .creditos { font-size: 14px; }
  .contacto small { font-size: 14px; }
  .precio-pie { font-size: 15px; }
  .escena { width: 88%; aspect-ratio: 1200 / 760; margin-top: 20px; }
  .nodo span { display: none; }
  .nucleo { width: 84px; height: 84px; border-radius: 24px; }
  .nucleo-dentro span { font-size: 14px; }
  .nucleo-dentro svg { width: 30px; height: 30px; }
  .nodo-caja { width: 50px; height: 50px; border-radius: 15px; }
  .nodo-caja svg { width: 22px; height: 22px; }
  .panel { width: 100%; min-height: 0; }
  .foto { width: 300px; height: 220px; }
  .foto--texto p { font-size: 24px; }
  .cabeza h2, .experiencia h2, .capas-cabeza h2, .preguntas h2 { font-size: 32px; }
  .planes-grid { grid-template-columns: 1fr; }
  .franja, .franja--arriba { padding: 24px; }
  .franja .boton { width: 100%; }
  .portada-sub { font-size: 17px; }
  summary { font-size: 17px; padding: 18px 20px; }
  .respuesta { padding: 0 20px 18px; }
}

/* Con la escena de menos de ~1150 px (pantallas angostas o bajas) los globos no caben al lado: van debajo de ella. */
@media (max-width: 1150px), (max-height: 880px) {
  .escena { margin-top: 28px; margin-bottom: 250px; }
  .msg--c { left: 50% !important; right: auto !important; top: calc(100% + 18px) !important; width: max-content; max-width: min(320px, 92vw); transform: translateX(-50%) scale(.5) !important; transform-origin: top center !important; }
  .msg--c.ver { transform: translateX(-50%) scale(1) !important; }
  .msg--n { top: calc(100% + 18px); left: 50%; right: auto; width: min(320px, 92vw); max-width: min(320px, 92vw); transform: translateX(-50%) scale(.5); transform-origin: top center; }
  .msg--n.ver { transform: translateX(-50%) scale(1); }
  .msg--n.shell { width: min(320px, 92vw); }
}

/* Sin movimiento en escritorio (no se pone .js-gsap): la ventana crece con su contenido. */
@media (prefers-reduced-motion: reduce) and (min-width: 981px) {
  .ventana { height: auto; }
  .v-hilo { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .fila-fotos { width: auto; flex-wrap: nowrap; overflow-x: auto; padding: 0 var(--margen); }
  .fila-fotos .copia { display: none; }
}

/* ───────── Sitio publicado ───────── */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.app-boton--centro { display: grid; place-items: center; }
.chip-confirmada { font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: #E6F9C3; color: #4A5E14; }
.seccion--pegada { padding-top: 0; }
.contacto-acciones { display: flex; gap: 10px; flex-wrap: wrap; }
.contacto-acciones .boton { flex: 1 1 160px; }
.no-encontrada { min-height: 100dvh; display: grid; place-items: center; }
.no-encontrada h1 { font-size: clamp(40px, 7vw, 88px); line-height: 1.02; letter-spacing: -0.045em; }
