/* ===== Tokens de Avalon Labs ===== */
:root {
  --noche: #0A1530;        /* fondo: azul medianoche */
  --noche-honda: #071026;  /* bandas profundas */
  --banda-clara: #0F1E46;  /* bandas alternas, un tono más claro */
  --superficie: #13244F;   /* tarjetas */
  --superficie-2: #1A2E62;
  --filete: #24386F;       /* bordes */
  --texto: #E9EDF8;
  --texto-suave: #A3B0D4;
  --luna: #C35BFF;         /* acento: morado neón */
  --cielo: #7FA6FF;        /* enlaces, foco, líneas de datos */
  --ok: #7FD6A8;
  --error: #FF9C8F;
  --whatsapp: #25D366;
  --telegram: #2AABEE;

  --f-titulo: 'Bricolage Grotesque', 'Avenir Next', system-ui, sans-serif;
  --f-texto: 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --t-h1: clamp(2.8rem, 1.2rem + 5vw, 5.4rem);
  --t-h2: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  --t-h3: 1.2rem;
  --t-base: 1.0625rem;
  --t-chico: 0.875rem;

  --r-chico: 10px;
  --r-medio: 18px;
  --r-grande: 26px;
  --ancho: 76rem;
  --sombra: 0 30px 80px -30px rgba(2, 6, 20, 0.9);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; background: var(--noche); color: var(--texto); font: 400 var(--t-base)/1.6 var(--f-texto); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--f-titulo); line-height: 1.05; margin: 0; letter-spacing: -0.025em; }
h1 { font-size: var(--t-h1); font-weight: 800; font-variation-settings: 'opsz' 96; letter-spacing: -0.04em; line-height: .98; }
h2 { font-size: var(--t-h2); font-weight: 700; }
h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--cielo); }
:focus-visible { outline: 3px solid var(--cielo); outline-offset: 3px; border-radius: 6px; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--luna); color: var(--noche); padding: .5rem 1rem; z-index: 50; }
.saltar:focus { left: 8px; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: 0 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--f-texto); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .2s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn-luna { background: var(--luna); color: var(--noche); box-shadow: 0 8px 30px -8px rgba(195, 91, 255, .55); }
.btn-luna:hover { background: #D68CFF; box-shadow: 0 12px 40px -6px rgba(195, 91, 255, .7); transform: translateY(-1px); }
.btn-claro { background: var(--texto); color: var(--noche); min-height: 42px; }
.btn-claro:hover { background: #fff; }
.btn-linea { border-color: var(--filete); color: var(--texto); background: rgba(10, 21, 48, .5); backdrop-filter: blur(6px); }
.btn-linea:hover { border-color: var(--texto-suave); }
.btn-ancho { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ===== Cabecera fija ===== */
.cabecera { position: sticky; top: 0; z-index: 40; transition: background-color .25s, border-color .25s, backdrop-filter .25s; border-bottom: 1px solid transparent; }
.cabecera.fija { background: rgba(7, 16, 38, .78); backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--filete); }
.cabecera-in { max-width: var(--ancho); margin: 0 auto; padding: .9rem 1.5rem; display: flex; align-items: center; gap: 2rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--texto); text-decoration: none; font: 700 1.2rem var(--f-titulo); letter-spacing: -0.02em; }
.logo svg { width: 32px; height: 32px; }
.cabecera nav { display: flex; gap: 1.75rem; margin-left: auto; }
.cabecera nav a { color: var(--texto-suave); text-decoration: none; font-size: .95rem; position: relative; }
.cabecera nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--luna); transition: right .2s; }
.cabecera nav a:hover, .cabecera nav a.activo { color: var(--texto); }
.cabecera nav a:hover::after, .cabecera nav a.activo::after { right: 0; }
@media (max-width: 820px) { .cabecera nav { display: none; } .cabecera .btn { margin-left: auto; } }
@media (max-width: 420px) { .cabecera .btn span { display: none; } .cabecera .btn { width: 42px; padding: 0; } }

/* ===== Bandas: cada sección con su fondo y su borde ===== */
.banda { position: relative; background: var(--noche); }
.banda + .banda { border-top: 1px solid rgba(127, 166, 255, .12); }
.banda-clara { background: var(--banda-clara); }
.banda-plano {
  background-color: var(--noche-honda);
  background-image:
    linear-gradient(rgba(127, 166, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 166, 255, .06) 1px, transparent 1px);
  background-size: 44px 44px;
}
.banda-agenda { background: radial-gradient(ellipse 70% 60% at 80% 0%, rgba(127, 166, 255, .16), transparent 70%), var(--noche); }
.banda-franja { background: var(--noche-honda); }

.seccion { max-width: var(--ancho); margin: 0 auto; padding: 6.5rem 1.5rem; }
.cab-seccion { max-width: 46rem; margin-bottom: 3.25rem; }
.cab-seccion p:last-child:not(.kicker) { margin-top: .9rem; color: var(--texto-suave); font-size: 1.1rem; }
.kicker { font: 500 .9rem var(--f-mono); color: var(--luna); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: .55rem; }
.pulso { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(127, 214, 168, .6); animation: latir 2s infinite; }
@keyframes latir { 70% { box-shadow: 0 0 0 10px rgba(127, 214, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 214, 168, 0); } }

/* ===== Hero ===== */
.banda-hero { overflow: hidden; background: radial-gradient(ellipse 60% 70% at 78% 30%, rgba(52, 92, 210, .35), transparent 70%), var(--noche); margin-top: -66px; padding-top: 66px; }
.rejilla {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(127, 166, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 166, 255, .08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
}
.hero {
  position: relative; max-width: var(--ancho); margin: 0 auto; padding: 4.5rem 1.5rem 6rem;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center;
}
.hero h1 { max-width: 10ch; text-wrap: balance; }
.hero-sub { margin-top: 1.5rem; max-width: 40ch; color: var(--texto-suave); font-size: 1.2rem; }
.hero-acciones { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-tec { list-style: none; margin: 2.75rem 0 0; padding: 0; display: flex; gap: 1.25rem; }
.hero-tec svg { width: 24px; height: 24px; color: var(--texto-suave); display: block; transition: color .2s, transform .2s; }
.hero-tec li:hover svg { color: var(--texto); transform: translateY(-2px); }

.escena { position: relative; min-height: 560px; }
.editor {
  position: relative; width: 100%; max-width: 560px; border-radius: 16px; overflow: hidden;
  background: rgba(7, 16, 38, .92); border: 1px solid rgba(127, 166, 255, .22);
  box-shadow: var(--sombra), 0 0 0 1px rgba(255,255,255,.02), 0 0 80px -20px rgba(127, 166, 255, .35);
}
.editor-barra { display: flex; align-items: center; gap: .45rem; padding: .7rem .9rem; border-bottom: 1px solid var(--filete); background: rgba(19, 36, 79, .6); }
.punto { width: 11px; height: 11px; border-radius: 50%; }
.punto.r { background: #FF6B6B; } .punto.a { background: #F3D58B; } .punto.v { background: #7FD6A8; }
.editor-archivo { margin-left: .75rem; font: 400 .8rem var(--f-mono); color: var(--texto-suave); }
.codigo { white-space: normal; margin: 0; padding: 1.1rem 1.2rem 1.4rem; font: 400 .8rem/1.75 var(--f-mono); color: #C9D3F0; overflow: hidden; counter-reset: linea; }
.codigo code { display: block; }
.codigo .l { display: block; white-space: pre; counter-increment: linea; }
.codigo .l::before { content: counter(linea); display: inline-block; width: 1.6rem; margin-right: .9rem; text-align: right; color: #44558A; }
.codigo i { font-style: normal; }
.codigo .kw { color: #C792EA; } .codigo .fn { color: #82AAFF; } .codigo .str { color: #C3E88D; }
.codigo .dec { color: var(--luna); } .codigo .ty { color: #FFCB6B; } .codigo .num { color: #F78C6C; }
.codigo .l.actual { background: rgba(127, 166, 255, .08); }
.codigo .l.actual::after { content: ''; display: inline-block; width: 7px; height: 1.05em; vertical-align: -2px; margin-left: 2px; background: var(--luna); animation: parpadeo 1s steps(1) infinite; }
@keyframes parpadeo { 50% { opacity: 0; } }

.demo { position: absolute; right: 0; bottom: -10px; margin: 0; width: 270px; z-index: 3; }
.demo-tel {
  background: rgba(12, 24, 58, .9); backdrop-filter: blur(14px);
  border: 1px solid rgba(127, 166, 255, .28); border-radius: 30px; padding: 12px;
  box-shadow: var(--sombra);
}
.demo-barra { display: flex; align-items: center; gap: .6rem; padding: .3rem .4rem .75rem; border-bottom: 1px solid var(--filete); }
.demo-barra b { display: block; font-size: .88rem; }
.demo-barra small { color: var(--ok); font-size: .72rem; }
.demo-wa { width: 18px; height: 18px; margin-left: auto; color: var(--whatsapp); }
.demo-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--superficie-2); color: var(--luna); font: 700 .72rem var(--f-titulo); }
.demo-chat { list-style: none; margin: 0; padding: .8rem .15rem .3rem; display: flex; flex-direction: column; gap: .45rem; min-height: 250px; }
.msg { max-width: 88%; padding: .5rem .75rem; border-radius: 14px; font-size: .8rem; line-height: 1.4; }
.msg.cliente { align-self: flex-end; background: #2547A8; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--superficie-2); border-bottom-left-radius: 4px; }
.msg.pago { padding: .4rem; }
.msg.sistema { align-self: center; display: inline-flex; align-items: center; gap: .35rem; background: rgba(127, 214, 168, .14); color: var(--ok); font-size: .74rem; border-radius: 999px; padding: .3rem .75rem; }
.pago-tarjeta { display: flex; align-items: center; gap: .45rem; padding: .45rem .55rem; background: var(--noche-honda); border-radius: 10px; font-size: .74rem; color: var(--texto-suave); }
.pago-tarjeta b { margin-left: auto; color: var(--noche); background: #F3D58B; padding: .25rem .55rem; border-radius: 999px; font-size: .72rem; }
.demo-aviso {
  position: absolute; right: 230px; bottom: 40px; width: 230px; z-index: 4;
  display: flex; gap: .65rem; align-items: center;
  background: rgba(245, 247, 253, .97); color: #13204A; border-radius: 16px; padding: .7rem .85rem; box-shadow: var(--sombra);
}
.aviso-app { flex: none; width: 28px; height: 28px; color: var(--telegram); }
.demo-aviso p { font-size: .78rem; line-height: 1.35; }
.demo-aviso b { display: block; font-size: .84rem; }

/* Animación del hero: las líneas se escriben y el chat responde */
@media (prefers-reduced-motion: no-preference) {
  .js .codigo .l { clip-path: inset(0 100% 0 0); }
  .js .codigo .l.escrita { clip-path: inset(0 0 0 0); transition: clip-path var(--dur, .5s) steps(var(--pasos, 20)); }
  .js .demo-chat .msg, .js .demo-aviso { opacity: 0; transform: translateY(10px) scale(.97); }
  .js .demo-chat .msg.visible, .js .demo-aviso.visible { opacity: 1; transform: none; transition: opacity .35s ease, transform .4s cubic-bezier(.2,.8,.2,1.2); }
  .js .hero-texto > * { opacity: 0; transform: translateY(16px); animation: entrar .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .js .hero-texto > :nth-child(2) { animation-delay: .08s; }
  .js .hero-texto > :nth-child(3) { animation-delay: .16s; }
  .js .hero-texto > :nth-child(4) { animation-delay: .24s; }
  .js .hero-texto > :nth-child(5) { animation-delay: .32s; }
  .js .editor { animation: entrar .8s .15s cubic-bezier(.2,.7,.2,1) both; }
  .js .demo-tel { animation: entrar .8s .35s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes entrar { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .escena { min-height: 0; padding-bottom: 2rem; }
  .demo { right: 8px; bottom: -30px; width: 240px; }
  .demo-aviso { right: auto; left: 8px; bottom: -10px; }
}
@media (max-width: 620px) {
  .codigo { font-size: .68rem; }
  .demo { position: relative; right: auto; bottom: auto; margin: -60px 0 0 auto; }
  .demo-aviso { position: relative; left: auto; bottom: auto; margin: 1rem 0 0; }
}

/* Revelado al hacer scroll */
@media (prefers-reduced-motion: no-preference) {
  .js [data-revelar] { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--retraso, 0s); }
  .js [data-revelar].revelado { opacity: 1; transform: none; }
}

/* ===== Franja de clientes ===== */
.franja { max-width: var(--ancho); margin: 0 auto; padding: 2rem 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 3rem; }
.franja p { color: var(--texto-suave); font: 500 .85rem var(--f-mono); }
.franja ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 3.5rem; flex-wrap: wrap; }
.franja li { opacity: .8; transition: opacity .2s; }
.franja li:hover { opacity: 1; }
.franja img { display: block; width: auto; }
.franja-sidt, .franja-fina, .caso-logo { display: inline-flex; align-items: center; gap: .55rem; font: 700 1.35rem var(--f-titulo); letter-spacing: -0.02em; color: var(--texto); }
.franja-sidt img, .caso-logo img[src*="sidt"] { background: #F5F3FF; border-radius: 9px; padding: 3px 5px; }

/* ===== Servicios (bento) ===== */
.bento { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 1rem; }
.pieza {
  --x: 50%; --y: 0%;
  position: relative; overflow: hidden; border-radius: var(--r-grande); padding: 1.75rem;
  background: radial-gradient(400px circle at var(--x) var(--y), rgba(127, 166, 255, .12), transparent 60%), linear-gradient(160deg, var(--superficie-2), var(--superficie) 60%);
  border: 1px solid rgba(127, 166, 255, .16);
  display: flex; flex-direction: column; gap: .7rem;
  transition: border-color .25s, transform .25s;
}
.pieza:hover { border-color: rgba(195, 91, 255, .45); transform: translateY(-3px); }
.pieza p { color: var(--texto-suave); font-size: .98rem; max-width: 36ch; }
.pieza h3 { font-size: 1.45rem; }
.pieza-ic {
  width: 52px; height: 52px; padding: 13px; border-radius: 16px; margin-bottom: .4rem;
  fill: none; stroke: var(--luna); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  background: rgba(195, 91, 255, .1); box-shadow: inset 0 0 0 1px rgba(195, 91, 255, .25), 0 0 30px -6px rgba(195, 91, 255, .35);
}
.pieza-ia { grid-row: span 2; }
.pieza-sistemas { grid-column: span 2; }
.chips-mini { list-style: none; margin: auto 0 0; padding: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips-mini li { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(10, 21, 48, .6); border: 1px solid var(--filete); }
.chips-mini .ic { color: var(--luna); }
.flujo { margin: 1rem 0 .25rem; display: flex; align-items: center; gap: .75rem; }
.flujo-doc { display: inline-flex; align-items: center; gap: .4rem; font: 400 .74rem var(--f-mono); padding: .55rem .7rem; border-radius: 12px; background: var(--noche-honda); color: var(--texto-suave); white-space: nowrap; }
.flujo-flecha { flex: 1; height: 2px; min-width: 24px; background: linear-gradient(90deg, var(--filete), var(--luna)); position: relative; overflow: hidden; }
.flujo-flecha::before { content: ''; position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: #fff; opacity: .8; animation: viajar 1.8s linear infinite; }
@keyframes viajar { to { left: 100%; } }
.flujo-filas { display: grid; gap: 5px; padding: .6rem; border-radius: 12px; background: var(--noche-honda); width: 110px; }
.flujo-filas i { display: block; height: 7px; border-radius: 4px; background: linear-gradient(90deg, var(--luna) 30%, var(--filete) 30%); }
.flujo-filas i:nth-child(2) { background: linear-gradient(90deg, var(--cielo) 55%, var(--filete) 55%); }
.flujo-filas i:nth-child(3) { background: linear-gradient(90deg, var(--ok) 40%, var(--filete) 40%); }
.ia-charla { display: grid; gap: .5rem; margin: .5rem 0 1rem; }
.pieza .ia-p { justify-self: end; max-width: 80%; background: #2547A8; padding: .55rem .8rem; border-radius: 14px 14px 4px 14px; font-size: .85rem; color: var(--texto); }
.pieza .ia-r { display: flex; gap: .55rem; align-items: flex-start; max-width: 90%; background: rgba(10, 21, 48, .6); border: 1px solid var(--filete); padding: .6rem .8rem; border-radius: 14px 14px 14px 4px; font-size: .85rem; color: var(--texto); }
.ia-r .ic { color: var(--luna); margin-top: .15rem; }
.ia-r b { color: var(--luna); }
.marcas { margin-top: auto; display: flex; gap: .75rem; padding-top: .6rem; }
.marcas svg { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: rgba(10, 21, 48, .6); transition: transform .25s; }
.pieza:hover .marcas svg:first-child { transform: rotate(-8deg) scale(1.08); }
.pieza:hover .marcas svg:last-child { transform: rotate(8deg) scale(1.08); }
.m-wa { color: var(--whatsapp); }
.m-tg { color: var(--telegram); }
.tarjeta-mini { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: .75rem .9rem; border-radius: 14px; background: linear-gradient(135deg, #2547A8, #18306F); font: 500 .85rem var(--f-mono); }
.tarjeta-mini b { display: inline-flex; align-items: center; gap: .3rem; color: var(--ok); font: 600 .85rem var(--f-texto); }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .pieza-ia { grid-row: auto; grid-column: span 2; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .pieza-ia, .pieza-sistemas { grid-column: auto; } }

/* ===== Clientes ===== */
.casos { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: .5rem .25rem 1.5rem; margin: 0 -.25rem; }
.casos::-webkit-scrollbar { display: none; }
.casos > .caso { flex: 0 0 calc((100% - 2rem) / 3); scroll-snap-align: start; }
@media (max-width: 1020px) { .casos > .caso { flex-basis: calc((100% - 1rem) / 2); } }
@media (max-width: 680px) { .casos > .caso { flex-basis: 86%; } }
.caso {
  border-radius: var(--r-grande); padding: 1.75rem; display: flex; flex-direction: column; gap: 1.1rem;
  background: var(--superficie); border: 1px solid rgba(127, 166, 255, .16);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.caso:hover { transform: translateY(-4px); border-color: rgba(127, 166, 255, .4); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8); }
.caso-cab { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 40px; }
.caso-cab img { display: block; width: auto; }
.caso h3 { font-size: 1.4rem; }
.estado-caso { font-size: .75rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; }
.estado-caso::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.en-vivo { color: var(--ok); background: rgba(127, 214, 168, .12); }
.en-vivo::before { animation: latir 2s infinite; }
.en-curso { color: var(--luna); background: rgba(195, 91, 255, .12); }
.caso-hace { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.caso-hace li { display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--texto-suave); }
.caso-hace .ic { color: var(--luna); width: 1.2em; height: 1.2em; }
.caso-stack { list-style: none; margin: auto 0 0; padding: 1rem 0 0; display: flex; gap: .9rem; border-top: 1px solid var(--filete); }
.caso-stack svg { width: 22px; height: 22px; color: var(--texto-suave); display: block; }


/* ===== Arquitectura ===== */
.arq { position: relative; display: grid; grid-template-columns: 210px 1fr 210px; align-items: center; min-height: 420px; }
.arq-lineas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cables path { stroke-dasharray: 6 6; animation: fluir 1.2s linear infinite; }
@keyframes fluir { to { stroke-dashoffset: -12; } }
.pulsos circle { fill: var(--cielo); filter: drop-shadow(0 0 6px var(--cielo)); }
.pulsos circle.sal { fill: var(--luna); filter: drop-shadow(0 0 6px var(--luna)); }
.arq-col { position: relative; display: grid; gap: 1.1rem; z-index: 1; }
.arq-col h3 { font: 500 .8rem var(--f-mono); color: var(--texto-suave); }
.nodo {
  display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border-radius: 14px;
  background: var(--superficie); border: 1px solid var(--filete); font-weight: 500; font-size: .95rem;
  transition: border-color .2s, transform .2s;
}
.nodo:hover { border-color: var(--cielo); transform: scale(1.03); }
.nodo svg { width: 24px; height: 24px; flex: none; color: var(--texto); }
.nodo small { display: block; font: 400 .72rem var(--f-mono); color: var(--texto-suave); }
.n-wa { color: var(--whatsapp) !important; }
.n-tg { color: var(--telegram) !important; }
.arq-centro { position: relative; z-index: 1; display: grid; place-items: center; }
.nucleo {
  width: 240px; padding: 1.6rem 1.25rem; border-radius: 24px; text-align: center; display: grid; gap: .35rem; justify-items: center;
  background: linear-gradient(160deg, #1D3577, #13244F); border: 1px solid rgba(195, 91, 255, .45);
  box-shadow: 0 0 0 8px rgba(195, 91, 255, .05), 0 0 60px -10px rgba(195, 91, 255, .45);
}
.nucleo-logo { width: 44px; height: 44px; color: #E0234E; }
.nucleo b { font: 700 1.35rem var(--f-titulo); }
.nucleo small { font: 400 .72rem var(--f-mono); color: var(--texto-suave); }
.nucleo-sub { display: flex; gap: .4rem; margin-top: .6rem; }
.nucleo-sub span { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; padding: .3rem .55rem; border-radius: 999px; background: rgba(7, 16, 38, .7); border: 1px solid var(--filete); }
.nucleo-sub svg { width: 14px; height: 14px; color: var(--texto); }
@media (prefers-reduced-motion: reduce) { .cables path { animation: none; } .pulsos { display: none; } }
@media (max-width: 860px) {
  .arq { grid-template-columns: 1fr; gap: 1.5rem; min-height: 0; }
  .arq-lineas { display: none; }
  .arq-col { grid-template-columns: 1fr 1fr; }
  .arq-col h3 { grid-column: 1 / -1; }
  .nucleo { width: 100%; }
}

/* Cinta infinita de tecnologías */
.cinta { margin-top: 4rem; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.cinta-pista { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.5rem; width: max-content; animation: desplazar 40s linear infinite; }
.cinta:hover .cinta-pista { animation-play-state: paused; }
.cinta-pista li { display: inline-flex; align-items: center; gap: .6rem; color: var(--texto-suave); font-weight: 500; white-space: nowrap; }
.cinta-pista svg { width: 26px; height: 26px; color: var(--texto); }
@keyframes desplazar { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cinta-pista { animation: none; flex-wrap: wrap; width: auto; } }

/* ===== La reunión: texto fijo a la izquierda, pasos que se marcan al bajar ===== */
.reunion { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.reunion-texto { position: sticky; top: 104px; }
.reunion-lead { margin-top: 1.25rem; color: var(--texto-suave); font-size: 1.12rem; max-width: 46ch; }
.para-ti { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .85rem; }
.para-ti li { display: flex; gap: .75rem; align-items: flex-start; font-size: 1.02rem; }
.para-ti .ic { flex: none; width: 1.6rem; height: 1.6rem; padding: 5px; border-radius: 50%; background: var(--luna); color: var(--noche); stroke-width: 3; }
.para-ti u { text-decoration-color: var(--luna); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.no-venta { margin-top: 2.25rem; padding: 1.5rem 1.75rem; border-radius: 20px; background: var(--noche-honda); border-left: 4px solid var(--luna); }
.no-venta h3 { font-size: 1.3rem; }
.no-venta p { margin-top: .6rem; color: var(--texto-suave); }

.pasos-reunion { --avance: 0; list-style: none; margin: 0; padding: 0 0 0 0; display: grid; gap: 1.25rem; position: relative; }
.pasos-reunion::before, .pasos-reunion::after { content: ''; position: absolute; left: 46px; top: 40px; bottom: 40px; width: 2px; border-radius: 2px; }
.pasos-reunion::before { background: var(--filete); }
.pasos-reunion::after { background: linear-gradient(var(--luna), var(--cielo)); bottom: auto; height: calc((100% - 80px) * var(--avance)); }
.pasos-reunion li {
  position: relative; z-index: 1; display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.6rem 1.5rem;
  border-radius: 22px; background: var(--superficie); border: 1px solid var(--filete);
  opacity: .5; transform: scale(.97); transform-origin: left center;
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1), border-color .45s, box-shadow .45s, background-color .45s;
}
.pasos-reunion li.activo { opacity: 1; transform: none; border-color: rgba(195, 91, 255, .55); box-shadow: 0 20px 50px -26px rgba(195, 91, 255, .5); background: #172B5C; }
.pasos-reunion .num {
  flex: none; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  font: 700 1.1rem var(--f-titulo); color: var(--texto-suave); background: var(--noche-honda); border: 1.5px solid var(--filete);
  transition: background-color .45s, color .45s, border-color .45s;
}
.pasos-reunion li.activo .num { background: var(--luna); color: var(--noche); border-color: var(--luna); }
.pasos-reunion h3 { font-size: 1.3rem; }
.pasos-reunion p { margin-top: .4rem; color: var(--texto-suave); }
@media (prefers-reduced-motion: reduce) { .pasos-reunion li { opacity: 1; transform: none; } }
@media (max-width: 960px) {
  .reunion { grid-template-columns: 1fr; gap: 2.5rem; }
  .reunion-texto { position: static; }
}

/* ===== Agenda: dos tarjetas como un sistema de reservas ===== */
.agenda { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.5rem; align-items: start; }
.llevas { padding: 2.25rem; border-radius: var(--r-grande); background: var(--superficie); border: 1px solid var(--filete); position: sticky; top: 104px; }
.llevas h2 { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.5rem); }
.checks { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1rem; }
.checks li { padding-left: 2.1rem; position: relative; color: var(--texto-suave); }
.checks li b { color: var(--texto); font-weight: 600; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: .1rem; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--luna); color: var(--noche); display: grid; place-items: center; font-size: .78rem; font-weight: 800; }
.proximo { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--filete); }
.proximo > p { font-size: .9rem; color: var(--texto-suave); }
.proximo-tiles { display: flex; gap: .6rem; margin: .8rem 0 1.25rem; }
.proximo-tiles span { flex: 1; display: grid; justify-items: center; gap: .1rem; padding: .8rem .5rem; border-radius: 14px; background: var(--noche-honda); border: 1px solid var(--filete); }
.proximo-tiles b { font: 700 1.7rem/1 var(--f-titulo); color: var(--texto); }
.proximo-tiles small { font-size: .72rem; color: var(--texto-suave); }
.proximo .btn { width: 100%; }

.reserva { border-radius: var(--r-grande); overflow: hidden; border: 1px solid var(--filete); box-shadow: var(--sombra); scroll-margin-top: 90px; background: var(--superficie); }
.reserva-cab { padding: 2rem 2rem 1.75rem; background: var(--noche-honda); border-bottom: 3px solid var(--luna); }
.reserva-cab .kicker { font-family: var(--f-texto); font-weight: 600; color: var(--ok); margin-bottom: .6rem; }
.reserva-cab h2 { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.4rem); }
.reserva-sub { margin-top: .4rem; color: var(--texto-suave); font-size: .95rem; }
.pasos { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.pasos::before { content: ''; position: absolute; left: 16.6%; right: 16.6%; top: 19px; height: 2px; background: var(--filete); }
.pasos li { position: relative; display: grid; justify-items: center; gap: .55rem; font-size: .88rem; font-weight: 500; color: var(--texto-suave); text-align: center; }
.pasos-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--noche-honda); border: 2px solid var(--filete); font: 700 1rem var(--f-titulo); color: var(--texto-suave); position: relative; z-index: 1; transition: all .3s; }
.pasos li.activo, .pasos li.hecho { color: var(--texto); }
.pasos li.activo .pasos-n { background: var(--luna); border-color: var(--luna); color: var(--noche); box-shadow: 0 0 0 6px rgba(195, 91, 255, .18); }
.pasos li.hecho .pasos-n { border-color: var(--luna); color: var(--luna); }
.reserva-aviso { margin-top: 1.5rem; display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px; background: rgba(127, 214, 168, .08); border: 1px solid rgba(127, 214, 168, .3); font-size: .86rem; color: var(--texto-suave); }
.reserva-aviso .ic { color: var(--ok); margin-top: .15rem; }
.reserva-aviso b { color: var(--texto); }
.reserva-cuerpo { padding: 1.5rem 2rem 2rem; }

.modos { display: grid; grid-template-columns: 1fr 1fr; background: var(--noche-honda); border-radius: 999px; padding: 4px; margin-bottom: 1.25rem; }
.modos button { border: 0; background: transparent; color: var(--texto-suave); font: 600 .95rem var(--f-texto); min-height: 42px; border-radius: 999px; cursor: pointer; transition: background-color .2s, color .2s; }
.modos button[aria-selected='true'] { background: var(--texto); color: var(--noche); }

.sesion { list-style: none; margin: 0 0 1.25rem; padding: .9rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; border-radius: 14px; border: 1px solid var(--filete); font-size: .88rem; color: var(--texto-suave); }
.sesion li { display: inline-flex; align-items: center; gap: .45rem; }
.sesion .ic { color: var(--luna); }
#sesion-fecha { color: var(--texto); }

.cal-cabecera { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-bottom: .75rem; }
.cal-cabecera h3 { font-size: 1.1rem; min-width: 11ch; text-align: center; }
.cal-nav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--filete); background: transparent; color: var(--texto); font-size: 1.2rem; cursor: pointer; }
.cal-nav:not(:disabled):hover { background: var(--superficie-2); }
.cal-nav:disabled { opacity: .25; cursor: default; }
.cal-semana, .cal-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; justify-items: center; max-width: 420px; margin: 0 auto; }
.cal-semana span { font-size: .75rem; color: var(--texto-suave); padding: .3rem 0; }
.cal-dias button, .cal-dias span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 500 .95rem var(--f-texto); }
.cal-dias span { color: rgba(163, 176, 212, .3); }
.cal-dias button { border: 0; background: rgba(195, 91, 255, .12); color: var(--texto); font-weight: 600; cursor: pointer; transition: background-color .15s, transform .15s; }
.cal-dias button:hover { background: rgba(195, 91, 255, .28); transform: scale(1.06); }
.cal-dias button[aria-pressed='true'] { background: var(--luna); color: var(--noche); font-weight: 700; }
.zona { margin-top: .9rem; font-size: .8rem; color: var(--texto-suave); text-align: center; }

.volver { background: none; border: 0; color: var(--cielo); font: 500 .9rem var(--f-texto); padding: 0; cursor: pointer; margin-bottom: .75rem; }
.volver::before { content: '‹ '; }
#dia-elegido { font-size: 1.15rem; margin-bottom: 1rem; }
.horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .5rem; max-height: 320px; overflow: auto; }
.horas button { min-height: 46px; border-radius: var(--r-chico); border: 1px solid var(--filete); background: transparent; color: var(--texto); font: 600 .95rem var(--f-texto); cursor: pointer; transition: border-color .15s, color .15s, background-color .15s; }
.horas button:hover, .horas button:focus-visible { border-color: var(--luna); color: var(--luna); background: rgba(195, 91, 255, .06); }
.horas small { display: block; font-weight: 400; font-size: .7rem; color: var(--texto-suave); }
.resumen { background: var(--noche-honda); border-radius: var(--r-chico); padding: .75rem 1rem; margin-bottom: 1.25rem; font-size: .95rem; }
.resumen b { color: var(--luna); }
.paso:not([hidden]) { animation: aparecer-paso .35s ease; }
@keyframes aparecer-paso { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .agenda { grid-template-columns: 1fr; }
  .llevas { position: static; }
}
@media (max-width: 520px) {
  .reserva-cab, .reserva-cuerpo, .llevas { padding-left: 1.25rem; padding-right: 1.25rem; }
  .cal-dias button, .cal-dias span { width: 38px; height: 38px; }
}

/* ===== Barra fija inferior ===== */
.barra-cta {
  position: fixed; left: 50%; bottom: 1.25rem; z-index: 44; translate: -50% 0;
  width: min(640px, calc(100% - 2rem)); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem .6rem .6rem 1.4rem; border-radius: 999px;
  background: rgba(7, 16, 38, .88); backdrop-filter: blur(14px); border: 1px solid rgba(195, 91, 255, .35);
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .8), 0 0 0 6px rgba(195, 91, 255, .06);
  opacity: 0; transform: translateY(140%); pointer-events: none;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}
.barra-cta.visible { opacity: 1; transform: none; pointer-events: auto; }
.barra-cta-texto { display: grid; line-height: 1.3; }
.barra-cta-texto b { font: 700 1rem var(--f-titulo); }
.barra-cta-texto small { color: var(--texto-suave); font-size: .82rem; }
.barra-cta-texto small span { color: var(--luna); font-weight: 600; }
.barra-cta .btn { min-height: 46px; flex: none; }
body.con-barra .flot-pastilla { opacity: 0 !important; pointer-events: none !important; }
@media (max-width: 767px) {
  .barra-cta { bottom: .75rem; padding-left: 1rem; }
  .barra-cta-texto b { font-size: .88rem; }
  .barra-cta .btn { padding: 0 1rem; font-size: .9rem; }
  body.con-barra .flot { bottom: 5.6rem; }
}
@media (max-width: 420px) { .barra-cta-texto small { display: none; } }

/* Barra de progreso de lectura */
.progreso { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--luna), var(--cielo)); pointer-events: none; }

.pie-in { max-width: var(--ancho); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: center; }

.formulario { display: grid; gap: 1rem; }
.campo { display: grid; gap: .35rem; border: 0; padding: 0; margin: 0; }
.campo label, .campo legend { font-size: .9rem; font-weight: 500; }
.opcional { color: var(--texto-suave); font-weight: 400; }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 46px; padding: .65rem .85rem; border-radius: var(--r-chico);
  border: 1px solid var(--filete); background: var(--noche-honda); color: var(--texto); font: 400 1rem var(--f-texto);
}
.campo textarea { resize: vertical; min-height: 84px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--cielo); box-shadow: 0 0 0 3px rgba(127,166,255,.25); }
.campo [aria-invalid='true'] { border-color: var(--error); }
.tel { display: grid; grid-template-columns: 112px 1fr; gap: .5rem; }
.chips legend { margin-bottom: .45rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips legend { width: 100%; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--filete); font-size: .88rem; font-weight: 400; }
.chips input:checked + span { background: rgba(195, 91, 255,.14); border-color: var(--luna); color: var(--luna); }
.chips input:focus-visible + span { outline: 3px solid var(--cielo); outline-offset: 2px; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; }
.error { color: var(--error); font-size: .92rem; }

.listo { text-align: center; padding: 2rem 0 1rem; }
.listo-icono { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--luna); color: var(--noche); font-size: 1.8rem; font-weight: 700; }
.listo p { color: var(--texto-suave); margin: .75rem auto 1.5rem; max-width: 40ch; }

/* ===== Pie ===== */
.pie { background: var(--noche-honda); padding: 3rem 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: center; color: var(--texto-suave); font-size: .92rem; }
.pie .logo { font-size: 1rem; }
.pie .logo svg { width: 26px; height: 26px; }
.cal-vacio { grid-column: 1 / -1; color: var(--texto-suave); padding: 1rem 0; }

.hero > * { min-width: 0; }
.pasos.apagado { opacity: .35; }

/* ===== Brillo neón del acento (solo elementos que ya usan el morado) ===== */
.btn-luna { box-shadow: 0 0 0 1px rgba(195, 91, 255, .7), 0 0 22px rgba(195, 91, 255, .55), 0 10px 34px -8px rgba(195, 91, 255, .8); }
.btn-luna:hover { box-shadow: 0 0 0 1px rgba(214, 140, 255, .9), 0 0 32px rgba(195, 91, 255, .75), 0 12px 40px -6px rgba(195, 91, 255, .9); }
.kicker { text-shadow: 0 0 14px rgba(195, 91, 255, .65); }
.logo svg, .pieza-ic, .caso-hace .ic, .para-ti .ic, .checks li::before { filter: drop-shadow(0 0 6px rgba(195, 91, 255, .65)); }
.pasos-reunion li.activo .num, .pasos li.activo .pasos-n, .cal-dias button[aria-pressed='true'], .proximo .btn { box-shadow: 0 0 0 1px rgba(214, 140, 255, .6), 0 0 22px rgba(195, 91, 255, .6); }
.pasos-reunion li.activo { box-shadow: 0 0 0 1px rgba(195, 91, 255, .35), 0 20px 50px -26px rgba(195, 91, 255, .7); }
.cabecera nav a::after, .progreso { box-shadow: 0 0 10px rgba(195, 91, 255, .8); }

/* Twiins: experiencia previa, sin logo propio */
.en-pasado { color: var(--texto-suave); background: rgba(163, 176, 212, .12); }
.logo-twiins { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 800 .85rem var(--f-titulo); color: var(--noche); background: var(--texto); letter-spacing: -0.04em; }

/* Slider de clientes */
.slider { position: relative; }
.slider-control { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .5rem; }
.slider-puntos { display: flex; gap: .45rem; }
.slider-puntos i { width: 8px; height: 8px; border-radius: 999px; background: var(--filete); transition: width .3s, background-color .3s; }
.slider-puntos i.activo { width: 26px; background: var(--luna); box-shadow: 0 0 10px rgba(195, 91, 255, .7); }
.slider-flechas { display: flex; gap: .5rem; }
.slider-flechas .cal-nav { width: 44px; height: 44px; }
@media (prefers-reduced-motion: reduce) { .casos { scroll-behavior: auto; } }

.turnstile:empty { display: none; }
.turnstile iframe { max-width: 100%; }
.slider-control[hidden] { display: none; }
