/* App de Real iarte — tema «noche de aurora»: índigo profundo, vidrio esmerilado, degradado azul→violeta→magenta y movimiento corto.
   Tokens semánticos; escala de espacio de 4/8; movimiento 150–300 ms con ease-out; contraste ≥ 4,5:1 en texto. */

:root {
  /* superficies (translúcidas: dejan pasar el fondo de aurora) y texto */
  --fondo: oklch(13.5% 0.035 275);
  --superficie: oklch(19% 0.045 278 / .74);
  --superficie-2: oklch(24% 0.05 280 / .82);
  --superficie-3: oklch(31% 0.055 282 / .85);
  --campo: oklch(11.5% 0.035 275 / .75);
  --linea: oklch(98% 0.01 280 / .09);
  --linea-fuerte: oklch(98% 0.01 280 / .2);
  --texto: oklch(97% 0.008 280);
  --texto-2: oklch(86% 0.02 280);
  --texto-3: oklch(73% 0.03 280);
  /* acento: azul → violeta → magenta */
  --acento: oklch(76% 0.15 288);               /* texto/íconos de acento sobre fondo oscuro */
  --acento-suave: oklch(72% 0.16 288 / .16);
  --acento-borde: oklch(72% 0.16 288 / .45);
  --grad: linear-gradient(135deg, oklch(55% .21 258), oklch(53% .23 292) 55%, oklch(57% .23 345));
  --grad-suave: linear-gradient(135deg, oklch(55% .21 258 / .22), oklch(53% .23 292 / .22) 55%, oklch(57% .23 345 / .22));
  --brillo: 0 8px 28px oklch(55% .22 290 / .38);
  --sobre-acento: oklch(99% 0 0);
  --tinta: oklch(15% 0.03 280);                /* texto oscuro sobre colores claros (avatares) */
  --ok: oklch(80% 0.15 155);  --ok-suave: oklch(80% 0.15 155 / .15);
  --aviso: oklch(84% 0.14 85); --aviso-suave: oklch(84% 0.14 85 / .15);
  --error: oklch(76% 0.17 25); --error-suave: oklch(76% 0.17 25 / .15);
  /* forma, sombra y movimiento */
  --r-s: .7rem; --r-m: 1rem; --r-l: 1.4rem;
  --sombra-1: 0 1px 0 oklch(100% 0 0 / .05) inset, 0 6px 20px oklch(0% 0 0 / .28);
  --sombra-2: 0 14px 40px oklch(0% 0 0 / .4);
  --sombra-3: 0 28px 80px oklch(0% 0 0 / .55);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t-1: 150ms; --t-2: 220ms; --t-3: 320ms;
  --f-titulo: "Fraunces", Georgia, serif;
  --f-texto: "Jost", "Segoe UI", system-ui, sans-serif;
  --lat-ancho: 17rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 400 1rem/1.5 var(--f-texto); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* aurora: luces suaves que se mueven despacio detrás de todo */
body::before { content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(38rem 30rem at 82% 8%, oklch(52% .2 295 / .34), transparent 70%), radial-gradient(34rem 28rem at 8% 92%, oklch(52% .18 250 / .30), transparent 70%), radial-gradient(28rem 22rem at 55% 55%, oklch(55% .2 345 / .14), transparent 70%);
  animation: aurora 26s ease-in-out infinite alternate; }
@keyframes aurora { to { transform: translate3d(-3%, 2%, 0) scale(1.06); } }
h1, h2, h3 { font-family: var(--f-texto); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: 1.02rem; color: var(--texto-2); letter-spacing: .01em; }
h3 { font-size: 1.05rem; }
p { margin: 0; } a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .5; cursor: not-allowed; }
a, label, summary { -webkit-tap-highlight-color: transparent; }
small { font-size: .8rem; color: var(--texto-3); }
code { font: .85em ui-monospace, Consolas, monospace; padding: .1rem .4rem; background: var(--superficie-3); border-radius: .4rem; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; border-radius: var(--r-s); }
::selection { background: oklch(60% .2 290); color: #fff; }
svg { width: 1.25rem; height: 1.25rem; flex: none; }
.logo { font-family: var(--f-titulo); } .logo i { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.saltar { position: absolute; left: -999px; top: .5rem; z-index: 200; padding: .6rem 1rem; background: var(--grad); color: var(--sobre-acento); border-radius: var(--r-s); }
.saltar:focus { left: .5rem; }

/* ───────────── Estructura: panel lateral + contenido ───────────── */
.app { display: flex; min-height: 100dvh; }
.lateral { position: sticky; top: 0; height: 100dvh; width: var(--lat-ancho); flex: none; display: flex; flex-direction: column; background: oklch(15% .04 277 / .72); backdrop-filter: blur(22px) saturate(1.3); border-right: 1px solid var(--linea); transition: width var(--t-2) var(--ease); z-index: 60; overflow: hidden; }
.lat-cab { display: flex; align-items: center; gap: .5rem; padding: calc(env(safe-area-inset-top) + .9rem) .9rem .6rem 1.1rem; min-height: 4.2rem; }
.lat-marca { flex: 1; min-width: 0; font-size: 1.35rem; white-space: nowrap; text-decoration: none; display: flex; align-items: center; gap: .65rem; }
.lat-marca .sello { flex: none; width: 2.4rem; height: 2.4rem; display: none; object-fit: contain; }   /* la R sola: solo con el panel reducido */
.lat-marca .txt { height: 2rem; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }   /* el logo completo (la R ya va adentro) */
.lat-boton { flex: none; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 0; border-radius: var(--r-s); background: transparent; color: var(--texto-3); transition: background var(--t-1), color var(--t-1); }
.lat-boton:hover { background: var(--superficie-3); color: var(--texto); }
.lat-boton svg { transition: transform var(--t-2) var(--ease); }
.lat-nav { flex: 1; overflow-y: auto; padding: .4rem .75rem; display: grid; gap: 1.1rem; align-content: start; scrollbar-width: thin; }
.grupo-t { padding: 0 .75rem; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-3); margin-bottom: .3rem; white-space: nowrap; }
.nav-lista { display: grid; gap: .22rem; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; display: flex; align-items: center; gap: .85rem; min-height: 2.9rem; padding: 0 .85rem; border-radius: var(--r-m); text-decoration: none; color: var(--texto-2); white-space: nowrap; transition: background var(--t-1), color var(--t-1), transform var(--t-1) var(--ease); }
.nav-item:hover { background: oklch(98% 0.01 280 / .07); color: var(--texto); }
.nav-item:active { transform: scale(.98); }
.nav-item[aria-current="page"] { background: var(--grad-suave); color: var(--texto); font-weight: 500; box-shadow: 0 0 0 1px var(--acento-borde) inset; }
.nav-item[aria-current="page"] svg { color: var(--acento); }
.nav-item[aria-current="page"]::before { content: ""; position: absolute; left: -.75rem; top: .6rem; bottom: .6rem; width: 4px; border-radius: 0 4px 4px 0; background: var(--grad); }
.nav-item .txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-item .pt { flex: none; width: 1.65rem; height: 1.65rem; border-radius: .55rem; display: grid; place-items: center; font-family: var(--f-titulo); font-size: .9rem; color: var(--tinta); font-weight: 600; }
.insignia { flex: none; min-width: 1.4rem; height: 1.4rem; padding: 0 .45rem; border-radius: 99px; display: grid; place-items: center; font-size: .72rem; font-weight: 600; background: var(--grad); color: var(--sobre-acento); }
.insignia.alerta { background: oklch(60% .22 25); }
.insignia[hidden] { display: none; }
.lat-pie { padding: .75rem; border-top: 1px solid var(--linea); display: grid; gap: .55rem; padding-bottom: calc(env(safe-area-inset-bottom) + .75rem); }
.lat-usuario { display: flex; align-items: center; gap: .7rem; padding: .35rem .5rem; min-width: 0; }
.avatar-usuario { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--sobre-acento); font-weight: 600; }
.lat-usuario .quien { min-width: 0; line-height: 1.25; }
.lat-usuario .quien b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lat-acciones { display: flex; gap: .4rem; }
.lat-acciones > * { flex: 1; }
.btn-lat { min-height: 2.65rem; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 0 .7rem; border-radius: var(--r-m); border: 1px solid var(--linea); background: oklch(98% 0.01 280 / .04); color: var(--texto-2); text-decoration: none; font-size: .9rem; transition: background var(--t-1), color var(--t-1), border-color var(--t-1); }
.btn-lat:hover { background: oklch(98% 0.01 280 / .09); color: var(--texto); }
.btn-lat.salir:hover { color: var(--error); border-color: var(--error); }

/* panel reducido (solo escritorio) */
@media (min-width: 900px) {
  .app[data-colapsado="1"] { --lat-ancho: 4.85rem; }
  .app[data-colapsado="1"] .lat-marca .txt, .app[data-colapsado="1"] .grupo-t, .app[data-colapsado="1"] .nav-item .txt,
  .app[data-colapsado="1"] .lat-usuario .quien, .app[data-colapsado="1"] .btn-lat .txt { display: none; }
  .app[data-colapsado="1"] .lat-cab { flex-direction: column; padding-inline: .6rem; padding-bottom: .4rem; gap: .3rem; }
  .app[data-colapsado="1"] .lat-marca { flex: none; }
  .app[data-colapsado="1"] .lat-marca .sello { display: block; }
  .app[data-colapsado="1"] .lat-boton svg { transform: rotate(180deg); }
  .app[data-colapsado="1"] .nav-item { justify-content: center; padding: 0; }
  .app[data-colapsado="1"] .nav-item .insignia { position: absolute; top: .2rem; right: .35rem; min-width: .9rem; height: .9rem; padding: 0; font-size: 0; }
  .app[data-colapsado="1"] .lat-usuario { justify-content: center; padding: .2rem 0; }
  .app[data-colapsado="1"] .lat-acciones { flex-direction: column; }
  .app[data-colapsado="1"] .nav-item:hover::after, .app[data-colapsado="1"] .nav-item:focus-visible::after, .app[data-colapsado="1"] .btn-lat:hover::after {
    content: attr(data-tip); position: fixed; left: 5.2rem; padding: .4rem .75rem; border-radius: var(--r-s); background: var(--superficie-3); backdrop-filter: blur(14px); border: 1px solid var(--linea-fuerte);
    box-shadow: var(--sombra-2); font-size: .85rem; color: var(--texto); white-space: nowrap; pointer-events: none; z-index: 100; }
  .menu-boton { display: none !important; }
  .scrim { display: none !important; }
}
/* en el teléfono el panel es un cajón que se abre con el botón de menú */
@media (max-width: 899px) {
  .lateral { position: fixed; left: 0; top: 0; width: min(86vw, 19rem); transform: translateX(-104%); transition: transform var(--t-3) var(--ease); box-shadow: var(--sombra-3); background: oklch(15% .04 277 / .94); }
  .app[data-menu="1"] .lateral { transform: none; }
  .lat-boton.reducir { display: none; }
  .scrim { position: fixed; inset: 0; z-index: 50; background: oklch(0% 0 0 / .6); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity var(--t-2) var(--ease); }
  .app[data-menu="1"] .scrim { opacity: 1; pointer-events: auto; }
}

.contenido { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.barra { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .55rem; min-height: 4.2rem; padding: calc(env(safe-area-inset-top) + .5rem) 1rem .5rem; background: oklch(14% .035 276 / .6); backdrop-filter: blur(20px) saturate(1.3); border-bottom: 1px solid var(--linea); }
@media (min-width: 900px) { .barra { padding-inline: 2rem; } }
.barra h1 { font-size: 1.4rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barra h1 small { display: block; font-weight: 400; margin-top: .1rem; overflow: hidden; text-overflow: ellipsis; }
.icono-btn { flex: none; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--texto-2); text-decoration: none; transition: background var(--t-1), color var(--t-1), transform var(--t-1) var(--ease); }
.icono-btn:hover { background: oklch(98% 0.01 280 / .09); color: var(--texto); }
.icono-btn:active { transform: scale(.94); }
.vista { flex: 1; width: 100%; max-width: 76rem; margin: 0 auto; padding: 1.25rem 1rem calc(2.5rem + env(safe-area-inset-bottom)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-content: start; outline: none; }
@media (min-width: 900px) { .vista { padding: 1.9rem 2rem 3rem; } }
.vista.entra > * { animation: entra var(--t-3) var(--ease) both; }
.vista.entra > *:nth-child(2) { animation-delay: 40ms; } .vista.entra > *:nth-child(3) { animation-delay: 80ms; }
.vista.entra > *:nth-child(4) { animation-delay: 110ms; } .vista.entra > *:nth-child(n+5) { animation-delay: 140ms; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ───────────── Piezas ───────────── */
.tarjeta { position: relative; background: linear-gradient(180deg, oklch(24% .05 280 / .6), oklch(19% .045 278 / .66)); backdrop-filter: blur(14px); border: 1px solid var(--linea); border-radius: var(--r-l); padding: 1.15rem 1.25rem; display: grid; gap: .6rem; box-shadow: var(--sombra-1); min-width: 0; }
a.tarjeta, button.tarjeta { text-align: left; color: inherit; text-decoration: none; width: 100%; transition: transform var(--t-2) var(--ease), border-color var(--t-1), box-shadow var(--t-2); }
a.tarjeta:hover, button.tarjeta:hover { border-color: var(--acento-borde); transform: translateY(-3px); box-shadow: var(--sombra-2), 0 0 0 1px var(--acento-suave); }
a.tarjeta:active, button.tarjeta:active { transform: scale(.985); }
.rejilla { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.rejilla > *, .vista > *, .tarjeta > * { min-width: 0; }
.fila { display: flex; align-items: center; gap: .8rem; }
a.fila { text-decoration: none; }
.crece { flex: 1; min-width: 0; }
.nombre { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nombre.libre { white-space: normal; }
.sub { font-size: .86rem; color: var(--texto-3); overflow-wrap: anywhere; }
.sub b { color: var(--texto-2); font-weight: 500; }
.num { font-variant-numeric: tabular-nums; }
.punto { flex: none; width: .75rem; height: .75rem; border-radius: 50%; background: var(--texto-3); }
.punto.e-ok { background: var(--ok); box-shadow: 0 0 0 .25rem var(--ok-suave), 0 0 14px var(--ok); }
.punto.e-aviso { background: var(--aviso); box-shadow: 0 0 0 .25rem var(--aviso-suave), 0 0 14px var(--aviso); }
.punto.e-caida { background: var(--error); box-shadow: 0 0 0 .25rem var(--error-suave), 0 0 14px var(--error); }
.punto.e-sin_senal { opacity: .5; }
.etiqueta { flex: none; display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 99px; border: 1px solid var(--linea-fuerte); color: var(--texto-2); white-space: nowrap; background: oklch(98% 0.01 280 / .04); }
.etiqueta svg { width: .9rem; height: .9rem; }
.etiqueta.acento { border-color: var(--acento-borde); color: var(--acento); background: var(--acento-suave); }
.etiqueta.e-ok { border-color: var(--ok); color: var(--ok); background: var(--ok-suave); }
.etiqueta.e-aviso { border-color: var(--aviso); color: var(--aviso); background: var(--aviso-suave); }
.etiqueta.e-caida { border-color: var(--error); color: var(--error); background: var(--error-suave); }
.etiqueta.demo { border-style: dashed; color: var(--texto-3); }
.avatar { flex: none; width: 3rem; height: 3rem; border-radius: var(--r-m); display: grid; place-items: center; font-family: var(--f-titulo); font-size: 1.3rem; color: var(--tinta); font-weight: 600; box-shadow: 0 6px 18px oklch(0% 0 0 / .35), 0 1px 0 oklch(100% 0 0 / .35) inset; }
.avatar.chico { width: 2.4rem; height: 2.4rem; font-size: 1.05rem; border-radius: .75rem; }
.btn { min-height: 2.9rem; padding: .6rem 1.2rem; border-radius: var(--r-m); border: 1px solid var(--linea-fuerte); background: oklch(98% 0.01 280 / .05); font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; text-decoration: none; transition: background var(--t-1), border-color var(--t-1), transform var(--t-1) var(--ease), box-shadow var(--t-2); }
.btn:hover { background: oklch(98% 0.01 280 / .1); border-color: var(--acento-borde); }
.btn:active { transform: scale(.97); }
.btn.pri { background: var(--grad); border-color: transparent; color: var(--sobre-acento); box-shadow: var(--brillo); }
.btn.pri:hover { box-shadow: 0 10px 34px oklch(55% .24 290 / .55); filter: brightness(1.08); }
.btn.peligro { border-color: var(--error); color: var(--error); } .btn.peligro:hover { background: var(--error-suave); }
.btn.ancho { width: 100%; }
.btn.chico { min-height: 2.55rem; padding: .35rem .95rem; font-size: .9rem; }
.btn svg { width: 1.15rem; height: 1.15rem; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .75; }
.btn[aria-busy="true"]::after { content: ""; width: .95rem; height: .95rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: gira .7s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.campo { display: grid; gap: .35rem; font-size: .86rem; color: var(--texto-2); }
.campo input, .campo textarea, .campo select, .buscar input { width: 100%; min-height: 2.95rem; padding: .6rem .9rem; border-radius: var(--r-m); border: 1px solid var(--linea-fuerte); background: var(--campo); font-size: 1rem; transition: border-color var(--t-1), box-shadow var(--t-1); }
.campo input:focus, .campo select:focus, .buscar input:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 4px var(--acento-suave); }
.campo-clave { position: relative; }
.campo-clave input { padding-right: 3rem; }
.ver-clave { position: absolute; right: .25rem; bottom: .22rem; width: 2.5rem; height: 2.5rem; border: 0; background: transparent; color: var(--texto-3); border-radius: var(--r-s); display: grid; place-items: center; }
.ver-clave:hover { color: var(--texto); }
.buscar { position: relative; }
.buscar svg { position: absolute; left: 1rem; top: .9rem; color: var(--texto-3); pointer-events: none; }
.buscar input { padding-left: 2.9rem; border-radius: 99px; }
.formulario { display: grid; gap: .95rem; }
.aviso { padding: .8rem 1rem; border-radius: var(--r-m); border: 1px solid var(--linea-fuerte); font-size: .92rem; background: oklch(98% 0.01 280 / .05); display: flex; gap: .6rem; align-items: flex-start; }
.aviso svg { margin-top: .1rem; }
.aviso.error { border-color: var(--error); color: var(--error); background: var(--error-suave); }
.aviso.ok { border-color: var(--ok); background: var(--ok-suave); }
.aviso.acento { border-color: var(--acento-borde); background: var(--acento-suave); }
.vacio { text-align: center; padding: 2.5rem 1rem; color: var(--texto-3); display: grid; gap: .8rem; justify-items: center; }
.vacio svg { width: 2.4rem; height: 2.4rem; opacity: .6; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { position: relative; overflow: hidden; background: linear-gradient(160deg, oklch(26% .06 285 / .7), oklch(19% .045 278 / .66)); backdrop-filter: blur(14px); border: 1px solid var(--linea); border-radius: var(--r-l); padding: 1.1rem 1.2rem; display: grid; gap: .25rem; box-shadow: var(--sombra-1); }
.kpi::after { content: ""; position: absolute; right: -2rem; top: -2rem; width: 7rem; height: 7rem; border-radius: 50%; background: var(--grad); opacity: .18; filter: blur(18px); }
.kpi .ic { width: 2.6rem; height: 2.6rem; border-radius: .9rem; display: grid; place-items: center; background: var(--grad); color: var(--sobre-acento); margin-bottom: .45rem; box-shadow: var(--brillo); }
.kpi b { font-family: var(--f-titulo); font-weight: 500; font-size: 2.1rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi span { font-size: .82rem; color: var(--texto-3); }
.barras { display: flex; align-items: flex-end; gap: .3rem; height: 7.5rem; }
.barras .par { flex: 1; display: flex; align-items: flex-end; gap: 2px; height: 100%; }
.barras i { flex: 1; min-height: 3px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, oklch(70% .2 300), oklch(55% .21 258)); transform-origin: bottom; animation: crece var(--t-3) var(--ease) both; }
.barras i.resp { background: linear-gradient(180deg, oklch(86% .02 280 / .7), oklch(60% .03 280 / .5)); }
.barras i.cero { background: var(--linea-fuerte); }
@keyframes crece { from { transform: scaleY(.1); opacity: .4; } }
.leyenda { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--texto-3); }
.leyenda i { display: inline-block; width: .7rem; height: .7rem; border-radius: 4px; margin-right: .35rem; background: var(--grad); vertical-align: -1px; }
.leyenda i.resp { background: oklch(75% .03 280 / .7); }
.medida { height: .65rem; border-radius: 99px; background: oklch(98% 0.01 280 / .08); overflow: hidden; display: flex; }
.medida i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width var(--t-3) var(--ease); }
.pila i:nth-child(1) { background: var(--ok); } .pila i:nth-child(2) { background: var(--aviso); } .pila i:nth-child(3) { background: var(--error); }
.conmut { display: flex; align-items: center; gap: .85rem; cursor: pointer; }
.conmut input { appearance: none; flex: none; width: 3.2rem; height: 1.85rem; border-radius: 99px; background: oklch(98% 0.01 280 / .1); border: 1px solid var(--linea-fuerte); position: relative; transition: background var(--t-2), border-color var(--t-2), box-shadow var(--t-2); cursor: pointer; }
.conmut input::after { content: ""; position: absolute; top: .2rem; left: .22rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--texto-2); transition: transform var(--t-2) var(--ease), background var(--t-2); }
.conmut input:checked { background: var(--grad); border-color: transparent; box-shadow: var(--brillo); }
.conmut input:checked::after { transform: translateX(1.32rem); background: #fff; }
.conmut input:disabled { opacity: .5; }
.lista-ul { margin: 0; padding-left: 1.15rem; display: grid; gap: .3rem; }
.clave-visible { margin: 0; padding: .85rem; border-radius: var(--r-s); background: var(--campo); border: 1px solid var(--linea-fuerte); font: .85rem ui-monospace, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.previa { margin: 0; padding: .95rem; border-radius: var(--r-m); background: var(--campo); border: 1px solid var(--linea); font: .86rem/1.55 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 26rem; overflow: auto; }
.segmentos { display: inline-flex; padding: .25rem; gap: .2rem; border-radius: 99px; background: var(--campo); border: 1px solid var(--linea); }
.segmentos a, .segmentos button { min-height: 2.4rem; padding: 0 1rem; border: 0; border-radius: 99px; background: transparent; color: var(--texto-2); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; transition: background var(--t-1), color var(--t-1); }
.segmentos [aria-current="true"] { background: var(--grad); color: var(--sobre-acento); font-weight: 500; box-shadow: var(--brillo); }

/* Vista cliente: la app del cliente dentro de una ventana de computador */
.preparar { display: flex; gap: .8rem; flex-wrap: wrap; align-items: flex-end; }
.preparar .campo { min-width: min(100%, 16rem); }
.ventana { border-radius: var(--r-l); border: 1px solid var(--linea-fuerte); background: oklch(14% .035 276 / .85); backdrop-filter: blur(16px); box-shadow: var(--sombra-3); overflow: hidden; display: flex; flex-direction: column; }
.ven-barra { display: flex; align-items: center; gap: .45rem; padding: .65rem .95rem; background: oklch(22% .05 280 / .8); border-bottom: 1px solid var(--linea); }
.ven-pt { width: .72rem; height: .72rem; border-radius: 50%; background: oklch(70% .15 25); }
.ven-pt:nth-child(2) { background: oklch(82% .14 85); } .ven-pt:nth-child(3) { background: oklch(76% .16 150); }
.ven-url { margin-left: .6rem; flex: 1; min-width: 0; padding: .28rem .85rem; border-radius: 99px; background: var(--campo); border: 1px solid var(--linea); font-size: .8rem; color: var(--texto-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ven-cuerpo { display: grid; grid-template-columns: 15rem minmax(0, 1fr); min-height: 34rem; }
.mini-lat { display: grid; gap: .25rem; align-content: start; padding: 1rem .7rem; background: oklch(16% .04 277 / .7); border-right: 1px solid var(--linea); }
.mini-item { display: flex; align-items: center; gap: .7rem; min-height: 2.75rem; padding: 0 .7rem; border-radius: var(--r-m); text-decoration: none; color: var(--texto-2); transition: background var(--t-1), color var(--t-1); }
.mini-item:hover { background: oklch(98% 0.01 280 / .07); color: var(--texto); }
.mini-item[aria-current="page"] { background: var(--grad-suave); color: var(--texto); font-weight: 500; box-shadow: 0 0 0 1px var(--acento-borde) inset; }
.mini-item .pt { flex: none; width: 1.65rem; height: 1.65rem; border-radius: .55rem; display: grid; place-items: center; font-family: var(--f-titulo); font-size: .9rem; color: var(--tinta); font-weight: 600; }
.mini-item .pt svg { width: 1rem; height: 1rem; }
.mini-main { min-width: 0; display: flex; flex-direction: column; }
.mini-cab { display: flex; align-items: center; gap: .5rem; min-height: 4.2rem; padding: .6rem 1.4rem; border-bottom: 1px solid var(--linea); }
.mini-cab h1 { font-size: 1.3rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-cab h1 small { display: block; font-weight: 400; color: var(--texto-3); }
.mini-vista { padding: 1.4rem; display: grid; gap: 1.1rem; align-content: start; grid-template-columns: minmax(0, 1fr); }
.mini-vista.entra > * { animation: entra var(--t-3) var(--ease) both; }
@media (max-width: 899px) {
  .ven-cuerpo { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .mini-lat { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--linea); padding: .6rem; scrollbar-width: none; }
  .mini-lat .grupo-t { display: none; }
  .mini-item { flex: none; padding: 0 .9rem 0 .5rem; border: 1px solid var(--linea-fuerte); border-radius: 99px; min-height: 2.5rem; }
  .mini-cab { padding-inline: 1rem; } .mini-vista { padding: 1rem; }
}

/* ───────────── Entrada y registro ───────────── */
.portada { min-height: 100dvh; display: grid; place-items: center; padding: 1.5rem; }
.portada-tarjeta { width: 100%; max-width: 26rem; display: grid; gap: 1.1rem; background: linear-gradient(180deg, oklch(25% .055 282 / .72), oklch(18% .045 278 / .78)); backdrop-filter: blur(22px) saturate(1.3); border: 1px solid var(--linea-fuerte); border-radius: 1.8rem; padding: 2.2rem 1.7rem; box-shadow: var(--sombra-3), 0 0 0 1px var(--acento-suave); animation: entra var(--t-3) var(--ease) both; }
.portada-tarjeta .logo-img { width: min(15rem, 78%); height: auto; justify-self: start; margin-bottom: .2rem; }
.portada-tarjeta .lema { color: var(--texto-3); font-size: .93rem; }
.portada-tarjeta a { color: var(--acento); }

/* ───────────── Avisos, cajón de confirmación, esqueletos ───────────── */
.avisos { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 1rem); transform: translateX(-50%); z-index: 300; display: grid; gap: .5rem; width: min(92vw, 26rem); pointer-events: none; }
.aviso-flota { pointer-events: auto; padding: .85rem 1.05rem; border-radius: var(--r-m); background: oklch(26% .05 282 / .92); backdrop-filter: blur(16px); border: 1px solid var(--linea-fuerte); box-shadow: var(--sombra-2); display: flex; gap: .6rem; align-items: center; animation: entra var(--t-2) var(--ease) both; }
.aviso-flota.ok { border-color: var(--ok); } .aviso-flota.error { border-color: var(--error); }
dialog { border: 1px solid var(--linea-fuerte); border-radius: var(--r-l); background: oklch(21% .05 280); color: var(--texto); padding: 1.5rem; width: min(92vw, 24rem); box-shadow: var(--sombra-3); }
dialog::backdrop { background: oklch(0% 0 0 / .62); backdrop-filter: blur(4px); }
dialog h3 { margin-bottom: .5rem; } dialog .fila { margin-top: 1.1rem; justify-content: flex-end; }
.esq { border-radius: var(--r-m); background: linear-gradient(90deg, oklch(98% 0.01 280 / .04) 25%, oklch(98% 0.01 280 / .1) 50%, oklch(98% 0.01 280 / .04) 75%); background-size: 200% 100%; animation: brilla 1.3s linear infinite; }
@keyframes brilla { to { background-position: -200% 0; } }

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

/* Videos pendientes */
.video-prev { display: block; width: 100%; max-height: 32rem; aspect-ratio: 9 / 16; object-fit: contain; border-radius: var(--r-m); background: oklch(10% 0.02 280); border: 1px solid var(--linea); }
.segmentos { max-width: 100%; flex-wrap: wrap; border-radius: var(--r-l, 1.2rem); }

/* Informe completo en HTML (marco aislado) */
.reporte { display: block; width: 100%; height: 80vh; min-height: 34rem; border: 1px solid var(--linea); border-radius: var(--r-m); background: #fff; }

/* ── Evaluador: galería de portadas ── */
.vp-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1rem; }
.vp { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 1.1rem; overflow: hidden; background: var(--campo); border: 1px solid var(--linea); color: #fff; text-decoration: none; isolation: isolate;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease-out, border-color .28s; }
.vp img, .vp-vacia { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.vp-vacia { display: grid; place-items: center; background: var(--grad); }
.vp-vacia svg { width: 2.4rem; height: 2.4rem; }
.vp-velo { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, oklch(0% 0 0 / .6) 0%, transparent 30%, transparent 46%, oklch(0% 0 0 / .88) 100%); }
.vp-arriba { position: absolute; top: .6rem; left: .6rem; right: .6rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.vp-arriba .etiqueta { background: oklch(10% 0.02 280 / .72); backdrop-filter: blur(6px); }
.vp-abajo { position: absolute; left: .8rem; right: .8rem; bottom: .8rem; display: grid; gap: .2rem; }
.vp-abajo b { font-size: .92rem; line-height: 1.25; text-shadow: 0 1px 8px oklch(0% 0 0 / .7); overflow-wrap: anywhere; }
.vp-abajo small { color: oklch(100% 0 0 / .72); }
.vp-punt { font-size: .85rem; color: oklch(100% 0 0 / .8); } .vp-punt i { font-style: normal; font-size: 1.7rem; font-weight: 700; color: #fff; margin-right: .1rem; }
.vp-ver { position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: .3rem; padding: .55rem 1rem; border-radius: 99px; background: var(--grad); color: #fff; font-size: .85rem; font-weight: 500; white-space: nowrap;
  box-shadow: var(--brillo); opacity: 0; transform: translate(-50%, -35%); transition: opacity .25s ease-out, transform .25s cubic-bezier(.2, .8, .2, 1); }
.vp-ver svg { width: 1rem; height: 1rem; }
.vp:hover, .vp:focus-visible { transform: translateY(-5px); border-color: var(--acento-borde); box-shadow: 0 22px 44px oklch(0% 0 0 / .5), 0 0 0 1px var(--acento-borde); }
.vp:hover img, .vp:focus-visible img { transform: scale(1.07); }
.vp:hover .vp-ver, .vp:focus-visible .vp-ver { opacity: 1; transform: translate(-50%, -50%); }
@media (hover: none) { .vp-ver { opacity: 1; transform: translate(-50%, 0); top: auto; bottom: 4.8rem; } }

/* ── Desarrollo: cuentas y subcuentas por red ── */
.red-sec { display: grid; gap: .9rem; }
.red-cab { display: flex; align-items: center; gap: .9rem; }
.red-cab h3 { margin: 0; font-size: 1.25rem; }
.logo-red { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .8rem; color: #fff; box-shadow: 0 6px 16px oklch(0% 0 0 / .4); }
.logo-red svg { width: 58%; height: 58%; }
.logo-red.grande { width: 3.4rem; height: 3.4rem; border-radius: 1rem; }
.lr-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.lr-tt { background: #010101; box-shadow: -2px -2px 0 #25f4ee, 2px 2px 0 #fe2c55, 0 6px 16px oklch(0% 0 0 / .4); }
.lr-otra { background: var(--grad); }
.cuentas-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.cuenta { position: relative; display: grid; align-content: start; gap: .85rem; padding: 1.15rem; border-radius: 1.2rem; color: inherit; text-decoration: none; overflow: hidden; isolation: isolate;
  border: 1px solid var(--linea); background: linear-gradient(160deg, oklch(98% 0.01 280 / .07), transparent 62%), oklch(20% 0.03 280 / .55);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease-out, border-color .28s; }
.cuenta::before { content: ""; position: absolute; top: -35%; right: -25%; width: 15rem; height: 15rem; border-radius: 50%; filter: blur(46px); opacity: .3; z-index: -1; background: var(--brillo-red, var(--acento)); }
.c-ig { --brillo-red: #d6249f; } .c-tt { --brillo-red: #25f4ee; }
.cuenta:hover, .cuenta:focus-visible { transform: translateY(-4px); border-color: var(--acento-borde); box-shadow: 0 18px 40px oklch(0% 0 0 / .45); }
.cuenta.principal { grid-column: span 2; border-color: var(--acento-borde); box-shadow: 0 0 0 1px var(--acento-borde), 0 20px 46px oklch(0% 0 0 / .45); }
.cuenta.principal::before { opacity: .5; width: 20rem; height: 20rem; }
@media (max-width: 640px) { .cuenta.principal { grid-column: auto; } }
.cuenta-cinta { justify-self: start; display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: .22rem .65rem; border-radius: 99px; border: 1px solid var(--linea-fuerte); color: var(--texto-2); }
.cuenta-cinta svg { width: .85rem; height: .85rem; fill: currentColor; }
.cuenta.principal .cuenta-cinta { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--brillo); }
.cuenta-cab { display: flex; align-items: center; gap: .8rem; }
.cuenta-user { display: block; font-size: 1.05rem; overflow-wrap: anywhere; }
.cuenta.principal .cuenta-user { font-size: 1.3rem; }
.cuenta-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .9rem; align-items: end; }
.cuenta-num { display: grid; gap: .25rem; } .cuenta-num b { font-size: 1.9rem; line-height: 1; } .cuenta-num > span:not(.medida) { font-size: .8rem; color: var(--texto-2); }
.cuenta-prox { display: flex; gap: .55rem; align-items: center; } .cuenta-prox svg { flex: none; width: 1.3rem; height: 1.3rem; color: var(--acento); }
.cuenta-prox small { display: block; color: var(--texto-2); font-size: .72rem; } .cuenta-prox b { font-size: .9rem; }
.cuenta-formato { margin: 0; font-size: .85rem; color: var(--texto-2); padding-top: .65rem; border-top: 1px dashed var(--linea); }
.cuenta-de { color: var(--texto-2); }
@media (prefers-reduced-motion: reduce) { .vp, .vp img, .vp-ver, .cuenta { transition: none; } .vp:hover, .cuenta:hover { transform: none; } }

/* ── Desarrollo: totales y métricas por cuenta ── */
.totales { display: grid; gap: .9rem; padding: 1.2rem; border-radius: 1.3rem; border: 1px solid var(--acento-borde); position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(150deg, oklch(30% .09 290 / .75), oklch(19% .05 278 / .7)); box-shadow: 0 18px 44px oklch(0% 0 0 / .4), 0 0 0 1px var(--acento-suave); }
.totales::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 22rem; height: 22rem; border-radius: 50%; filter: blur(60px); opacity: .35; z-index: -1; background: var(--grad); }
.totales h3 { margin: 0; }
.totales-rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .8rem; }
.total { display: grid; gap: .1rem; padding: .85rem .9rem; border-radius: 1rem; background: oklch(12% .03 280 / .45); border: 1px solid var(--linea); }
.total .ic { width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: .6rem; background: var(--grad); color: #fff; margin-bottom: .3rem; }
.total .ic svg { width: 1.05rem; height: 1.05rem; }
.total b { font-family: var(--f-titulo); font-weight: 500; font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.total .nom { font-size: .85rem; } .total small { color: var(--texto-2); font-size: .72rem; line-height: 1.35; }
.cuenta-mets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem .5rem; padding: .7rem 0; border-top: 1px dashed var(--linea); border-bottom: 1px dashed var(--linea); }
.cuenta.principal .cuenta-mets { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 640px) { .cuenta.principal .cuenta-mets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cuenta-mets div { display: grid; gap: .05rem; min-width: 0; }
.cuenta-mets b { font-size: 1.05rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; } .cuenta-mets .gran b { font-size: 1.3rem; }
.cuenta-mets small { color: var(--texto-2); font-size: .7rem; }
.cuenta-medido { color: var(--texto-3, var(--texto-2)); }

/* ═════════ Neuromarketing: biblioteca con dos entradas ═════════ */
@property --nm-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }
.nm-hero { display: grid; gap: 1.4rem; }
.nm-cab { display: grid; gap: .5rem; max-width: 46rem; }
.nm-kicker { display: inline-flex; align-items: center; gap: .45rem; justify-self: start; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--acento); padding: .3rem .8rem; border-radius: 99px; border: 1px solid var(--acento-borde); background: var(--acento-suave); }
.nm-kicker svg { width: .95rem; height: .95rem; }
.nm-titulo { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.12; }
.nm-titulo em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nm-sub { margin: 0; color: var(--texto-2); }

/* las dos puertas */
.nm-puertas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 820px) { .nm-puertas { grid-template-columns: 1fr; } }
.nm-puerta { position: relative; display: grid; align-content: start; gap: .9rem; padding: 1.6rem 1.5rem 1.4rem; border-radius: 1.7rem; color: inherit; text-decoration: none; overflow: hidden; isolation: isolate;
  border: 1px solid transparent; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease-out; box-shadow: 0 18px 44px oklch(0% 0 0 / .4); }
.nm-p1 { background: radial-gradient(120% 90% at 0% 0%, oklch(46% .2 295 / .65), transparent 60%), radial-gradient(100% 80% at 100% 100%, oklch(48% .22 350 / .5), transparent 62%), oklch(17% .05 280) padding-box, conic-gradient(from var(--nm-ang), #7c5cff, #e0457b, #f59f00, #7c5cff) border-box; }
.nm-p2 { background: radial-gradient(120% 90% at 100% 0%, oklch(52% .14 200 / .55), transparent 60%), radial-gradient(100% 80% at 0% 100%, oklch(46% .17 265 / .55), transparent 62%), oklch(17% .05 270) padding-box, conic-gradient(from var(--nm-ang), #22d3ee, #6366f1, #34d399, #22d3ee) border-box; }
.nm-puerta:hover, .nm-puerta:focus-visible { transform: translateY(-6px); box-shadow: 0 28px 60px oklch(0% 0 0 / .5); }
@media (prefers-reduced-motion: no-preference) { .nm-puerta:hover, .nm-puerta:focus-visible { animation: nm-gira 4s linear infinite; } }
@keyframes nm-gira { to { --nm-ang: 360deg; } }
.nm-marca { position: absolute; right: -.3rem; top: -1.6rem; z-index: -1; font-family: var(--f-titulo); font-size: 11rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px oklch(100% 0 0 / .16); pointer-events: none; }
.nm-etq { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.nm-etq b { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: oklch(100% 0 0 / .85); }
.nm-pill { display: inline-flex; align-items: center; gap: .35rem; font-style: normal; font-size: .72rem; letter-spacing: .04em; padding: .28rem .7rem; border-radius: 99px; background: oklch(10% .03 280 / .6); border: 1px solid oklch(100% 0 0 / .2); backdrop-filter: blur(6px); }
.nm-pill svg { width: .9rem; height: .9rem; }
.nm-pill-w { color: #fcd34d; border-color: #fcd34d66; } .nm-pill-s { color: #6ee7b7; border-color: #6ee7b766; }
.nm-puerta h3 { margin: 0; font-size: 1.45rem; line-height: 1.2; max-width: 22rem; }
.nm-puerta > p { margin: 0; color: oklch(100% 0 0 / .78); font-size: .95rem; max-width: 34rem; }
.nm-flujo { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.nm-flujo li { position: relative; display: grid; justify-items: center; gap: .15rem; text-align: center; font-size: .85rem; font-weight: 500; }
.nm-flujo li small { color: oklch(100% 0 0 / .62); font-weight: 400; font-size: .7rem; line-height: 1.25; }
.nm-flujo li span { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: oklch(100% 0 0 / .1); border: 1px solid oklch(100% 0 0 / .25); backdrop-filter: blur(6px); z-index: 1; }
.nm-flujo li span svg { width: 1.2rem; height: 1.2rem; }
.nm-flujo li + li::before { content: ""; position: absolute; top: 1.35rem; right: 50%; width: 100%; height: 2px; z-index: 0; background: repeating-linear-gradient(90deg, oklch(100% 0 0 / .55) 0 6px, transparent 6px 12px); background-size: 12px 2px; }
@media (prefers-reduced-motion: no-preference) { .nm-flujo li + li::before { animation: nm-fluye 1s linear infinite; } }
@keyframes nm-fluye { to { background-position: 12px 0; } }
.nm-ir { display: inline-flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .3rem; padding: .7rem 1rem; border-radius: 1rem; background: oklch(100% 0 0 / .1); border: 1px solid oklch(100% 0 0 / .18); font-weight: 500; font-size: .92rem; }
.nm-ir svg { width: 1.1rem; height: 1.1rem; transition: transform .25s; } .nm-puerta:hover .nm-ir svg { transform: translateX(4px); }
.nm-regla { display: flex; gap: .9rem; align-items: center; padding: 1rem 1.2rem; border-radius: 1.1rem; border: 1px dashed var(--acento-borde); background: linear-gradient(90deg, oklch(40% .15 295 / .25), oklch(40% .12 200 / .2)); }
.nm-regla svg { flex: none; width: 1.6rem; height: 1.6rem; color: var(--acento); } .nm-regla p { margin: 0; font-size: .92rem; }

/* temas */
.nm-temas { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .8rem; }
.nm-tema { position: relative; display: grid; gap: .15rem; padding: 1rem; border-radius: 1.1rem; text-decoration: none; color: inherit; overflow: hidden; border: 1px solid var(--linea); background: oklch(20% .03 280 / .6);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s; }
.nm-tema::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 8rem; height: 8rem; border-radius: 50%; background: var(--c); filter: blur(30px); opacity: .28; }
.nm-tema:hover, .nm-tema:focus-visible { transform: translateY(-3px); border-color: var(--c); }
.nm-tema-ic { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .8rem; background: color-mix(in oklab, var(--c) 28%, transparent); color: var(--c); margin-bottom: .4rem; }
.nm-tema-ic svg { width: 1.3rem; height: 1.3rem; } .nm-tema small { color: var(--texto-2); }

/* entrada 1: cómo funciona + boletos */
.nm-como { display: grid; gap: .8rem; padding: 1.2rem; border-radius: 1.3rem; border: 1px solid var(--linea); background: linear-gradient(150deg, oklch(26% .07 290 / .55), oklch(19% .04 278 / .5)); }
.nm-como h2 { margin: 0; }
.nm-como-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .9rem; counter-reset: paso; }
.nm-como-lista li { display: flex; gap: .7rem; align-items: flex-start; counter-increment: paso; }
.nm-como-n { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .8rem; background: var(--grad); color: #fff; box-shadow: var(--brillo); }
.nm-como-n svg { width: 1.2rem; height: 1.2rem; } .nm-como-lista small { display: block; color: var(--texto-2); font-size: .8rem; line-height: 1.35; }
.nm-tickets { display: grid; gap: .9rem; }
.nm-ticket { position: relative; display: grid; grid-template-columns: 6.4rem minmax(0, 1fr) auto; align-items: stretch; color: inherit; text-decoration: none;
  background: linear-gradient(120deg, oklch(30% .09 290 / .7), oklch(20% .05 278 / .7)); border-radius: 1.2rem; transition: transform .25s cubic-bezier(.2, .8, .2, 1), filter .25s;
  -webkit-mask: radial-gradient(circle .62rem at 6.4rem 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle .62rem at 6.4rem 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle .62rem at 6.4rem 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle .62rem at 6.4rem 100%, #0000 97%, #000) bottom / 100% 51% no-repeat; }
.nm-ticket:hover, .nm-ticket:focus-visible { transform: translateY(-3px); filter: brightness(1.12); }
.nm-ticket-lado { display: grid; place-items: center; align-content: center; gap: .25rem; padding: 1rem .5rem; border-right: 2px dashed oklch(100% 0 0 / .25); text-align: center; }
.nm-ticket-lado svg { width: 1.6rem; height: 1.6rem; opacity: .85; } .nm-ticket-lado small { color: var(--texto-2); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.nm-origen { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 99px; background: oklch(100% 0 0 / .12); }
.nm-ticket-cuerpo { display: grid; gap: .5rem; align-content: center; padding: 1rem 1.1rem; min-width: 0; } .nm-ticket-cuerpo b { overflow-wrap: anywhere; }
.nm-ticket-res { color: var(--texto-2); }
.nm-mini { display: flex; flex-wrap: wrap; gap: .4rem; }
.nm-punto { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; padding: .22rem .6rem; border-radius: 99px; background: oklch(10% .03 280 / .45); border: 1px solid oklch(100% 0 0 / .14); }
.nm-punto i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--c, oklch(100% 0 0 / .4)); box-shadow: 0 0 8px var(--c, transparent); }
.nm-c-ok { --c: var(--ok); } .nm-c-aviso { --c: var(--aviso); } .nm-c-caida { --c: var(--error); } .nm-c-sin { --c: oklch(100% 0 0 / .35); }
.nm-ticket-estado { display: grid; align-content: center; justify-items: end; gap: .2rem; padding: 1rem 1.2rem; text-align: right; font-size: .82rem; max-width: 11rem; }
.nm-ticket-estado svg { width: 1.2rem; height: 1.2rem; } .nm-ticket-estado small { color: var(--texto-2); }
.nm-w0 { color: var(--texto-2); } .nm-w1 { color: #fcd34d; } .nm-w2 { color: #7dd3fc; } .nm-w3 { color: #6ee7b7; }
@media (max-width: 640px) { .nm-ticket { grid-template-columns: 1fr; -webkit-mask: none; mask: none; } .nm-ticket-lado { grid-auto-flow: column; border-right: 0; border-bottom: 2px dashed oklch(100% 0 0 / .25); justify-content: start; padding: .7rem 1rem; } .nm-ticket-estado { justify-items: start; text-align: left; max-width: none; } }

/* detalle de un guion: recorrido */
.nm-tit h2 { margin: 0; }
.nm-pipe { list-style: none; margin: 0; padding: 1.2rem 1rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; border-radius: 1.4rem; border: 1px solid var(--linea); background: linear-gradient(160deg, oklch(24% .06 285 / .6), oklch(17% .04 278 / .55)); }
.nm-pipe li { position: relative; display: grid; justify-items: center; gap: .25rem; text-align: center; font-size: .85rem; }
.nm-pipe li small { color: var(--texto-2); font-size: .72rem; line-height: 1.3; max-width: 11rem; }
.nm-nodo { position: relative; z-index: 1; display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%; background: oklch(100% 0 0 / .07); border: 1px solid oklch(100% 0 0 / .22); color: var(--texto-2); }
.nm-nodo svg { width: 1.3rem; height: 1.3rem; }
.nm-pipe li + li::before { content: ""; position: absolute; top: 1.55rem; right: 50%; width: 100%; height: 3px; border-radius: 2px; background: oklch(100% 0 0 / .14); }
.nm-pipe li.hecho + li::before, .nm-pipe li.hecho + li.activo::before { background: var(--grad); box-shadow: 0 0 10px var(--acento-suave); }
.nm-pipe li.hecho .nm-nodo { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--brillo); }
.nm-pipe li.activo .nm-nodo { color: #fff; border-color: var(--acento); background: var(--acento-suave); }
@media (prefers-reduced-motion: no-preference) { .nm-pipe li.activo .nm-nodo::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--acento); animation: nm-pulso 1.6s ease-out infinite; } }
@keyframes nm-pulso { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
@media (max-width: 640px) { .nm-pipe { grid-template-columns: 1fr; justify-items: start; } .nm-pipe li { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: .8rem; align-items: center; } .nm-pipe li small { grid-column: 2; } .nm-pipe li b { grid-column: 2; } .nm-nodo { grid-row: 1 / span 2; }
  .nm-pipe li + li::before { top: -1.2rem; right: auto; left: 1.5rem; width: 3px; height: 1.4rem; } }

/* los tres diagnósticos */
.nm-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.nm-check { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .6rem 1rem; align-items: center; padding: 1.1rem; border-radius: 1.3rem; border: 1px solid var(--linea); overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, oklch(98% .01 280 / .06), transparent 60%), oklch(19% .04 280 / .7); }
.nm-check::before { content: ""; position: absolute; top: -40%; right: -20%; width: 10rem; height: 10rem; border-radius: 50%; background: var(--c); filter: blur(44px); opacity: .22; z-index: -1; }
.nm-check p { grid-column: 1 / -1; margin: 0; color: var(--texto-2); font-size: .9rem; }
.nm-anillo { position: relative; display: grid; place-items: center; width: 5.2rem; height: 5.2rem; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), oklch(100% 0 0 / .1) 0); }
.nm-anillo::before { content: ""; position: absolute; inset: .42rem; border-radius: 50%; background: oklch(18% .04 280); }
.nm-anillo b { position: relative; font-family: var(--f-titulo); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) { .nm-anillo { animation: nm-llena 1s cubic-bezier(.2, .8, .2, 1) both; } }
@keyframes nm-llena { from { --p: 0; } }
.nm-check-t { display: grid; gap: .3rem; justify-items: start; } .nm-check-t h4 { margin: 0; font-size: .98rem; line-height: 1.25; }
.nm-check-ic { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: .6rem; background: color-mix(in oklab, var(--c) 25%, transparent); color: var(--c); } .nm-check-ic svg { width: 1.05rem; height: 1.05rem; }

/* guion original → corregido */
.nm-guion { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .8rem; align-items: start; }
@media (max-width: 820px) { .nm-guion { grid-template-columns: 1fr; } .nm-flecha { transform: rotate(90deg); justify-self: center; } }
.nm-col { padding: 1.1rem; border-radius: 1.3rem; border: 1px solid var(--linea); }
.nm-col h3 { margin: 0 0 .7rem; font-size: 1.05rem; } .nm-col h3 small { color: var(--texto-2); font-weight: 400; margin-left: .3rem; font-size: .75rem; }
.nm-col ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; counter-reset: linea; }
.nm-col li { position: relative; padding: .65rem .8rem .65rem 2.4rem; border-radius: .8rem; counter-increment: linea; font-size: .92rem; background: oklch(100% 0 0 / .04); overflow-wrap: anywhere; }
.nm-col li::before { content: counter(linea); position: absolute; left: .7rem; top: .65rem; width: 1.3rem; height: 1.3rem; display: grid; place-items: center; border-radius: 50%; font-size: .7rem; background: oklch(100% 0 0 / .1); color: var(--texto-2); }
.nm-col-orig { background: oklch(18% .03 280 / .55); } .nm-col-orig li { color: var(--texto-2); }
.nm-col-corr { background: linear-gradient(160deg, oklch(34% .1 160 / .28), oklch(19% .04 280 / .6)); border-color: oklch(70% .14 160 / .35); }
.nm-col-corr li.cambio { background: oklch(60% .15 160 / .14); box-shadow: inset 3px 0 0 var(--ok); }
.nm-col-corr mark { background: linear-gradient(transparent 62%, oklch(70% .17 160 / .45) 0); color: inherit; padding: 0 .1rem; }
.nm-flecha { display: grid; place-items: center; align-self: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: var(--brillo); } .nm-flecha svg { width: 1.2rem; height: 1.2rem; }
.nm-motivo { display: inline-block; margin-left: .5rem; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: .12rem .55rem; border-radius: 99px; background: oklch(100% 0 0 / .12); vertical-align: middle; }
.m-gancho { color: #fcd34d; } .m-foco { color: #f9a8d4; } .m-mensaje { color: #93c5fd; }
.nm-cambios { display: grid; gap: .7rem; }
.nm-cambio { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .8rem 1rem; border-radius: 1rem; border: 1px solid var(--linea); background: oklch(19% .04 280 / .6); font-size: .9rem; }
@media (max-width: 760px) { .nm-cambio { grid-template-columns: 1fr; } .nm-sig { transform: rotate(90deg); justify-self: start; } }
.nm-antes { padding: .5rem .7rem; border-radius: .7rem; background: oklch(55% .2 25 / .15); color: oklch(85% .08 25); text-decoration: line-through; text-decoration-color: oklch(70% .18 25 / .7); }
.nm-despues { padding: .5rem .7rem; border-radius: .7rem; background: oklch(60% .15 160 / .16); color: oklch(92% .08 160); }
.nm-sig { color: var(--acento); } .nm-sig svg { width: 1.2rem; height: 1.2rem; }

/* prompt para el worker */
.nm-prompt-sec { display: grid; gap: .6rem; } .nm-prompt-sec h3 { margin: 0; }
.nm-term { border-radius: 1.1rem; overflow: hidden; border: 1px solid oklch(100% 0 0 / .14); background: oklch(11% .02 270); box-shadow: 0 16px 40px oklch(0% 0 0 / .4); }
.nm-term-barra { display: flex; align-items: center; gap: .4rem; padding: .55rem .8rem; background: oklch(16% .03 275); border-bottom: 1px solid oklch(100% 0 0 / .08); }
.nm-term-barra span { width: .7rem; height: .7rem; border-radius: 50%; background: #ff5f57; } .nm-term-barra span:nth-child(2) { background: #febc2e; } .nm-term-barra span:nth-child(3) { background: #28c840; }
.nm-term-barra b { flex: 1; margin-left: .5rem; font: 500 .8rem ui-monospace, Consolas, monospace; color: var(--texto-2); }
.nm-term pre { margin: 0; padding: 1rem 1.1rem; font: .85rem/1.65 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: oklch(90% .05 160); max-height: 22rem; overflow: auto; }

/* Rea: el chat */
.nm-chat { display: grid; gap: 1rem; }
.nm-rea-cab { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; padding: .9rem 1.1rem; border-radius: 1.3rem; border: 1px solid var(--linea); background: linear-gradient(120deg, oklch(34% .1 200 / .5), oklch(24% .08 285 / .55)); backdrop-filter: blur(12px); }
.nm-rea-cab small { display: block; color: var(--texto-2); }
.nm-av { position: relative; flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; font-family: var(--f-titulo); font-size: 1.15rem; color: #fff; background: linear-gradient(135deg, #22d3ee, #6366f1 60%, #d946ef); box-shadow: 0 6px 18px oklch(0% 0 0 / .4); }
.nm-av.grande { width: 3.1rem; height: 3.1rem; font-size: 1.4rem; }
.nm-av i { position: absolute; right: -1px; bottom: -1px; width: .7rem; height: .7rem; border-radius: 50%; background: var(--ok); border: 2px solid oklch(18% .04 280); }
.nm-hilo { display: grid; gap: .9rem; }
.nm-msg { display: flex; gap: .7rem; align-items: flex-end; } .nm-yo { justify-content: flex-end; }
.nm-burbuja { max-width: min(38rem, 86%); padding: .8rem 1.05rem; border-radius: 1.2rem; font-size: .95rem; }
.nm-rea .nm-burbuja { background: oklch(24% .05 280 / .85); border: 1px solid var(--linea); border-bottom-left-radius: .3rem; }
.nm-yo .nm-burbuja { background: var(--grad); color: #fff; border-bottom-right-radius: .3rem; box-shadow: var(--brillo); }
@media (prefers-reduced-motion: no-preference) { .nm-msg, .nm-opcion, .nm-duda, .nm-tema, .nm-como-lista li { animation: nm-entra .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms); } }
@keyframes nm-entra { from { opacity: 0; transform: translateY(10px); } }
.nm-opciones { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .8rem; margin-left: 3.1rem; }
@media (max-width: 640px) { .nm-opciones { margin-left: 0; } }
.nm-opcion { position: relative; display: grid; gap: .25rem; padding: 1.05rem; border-radius: 1.2rem; color: inherit; text-decoration: none; overflow: hidden; border: 1px solid var(--linea); background: oklch(20% .03 280 / .65);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .25s; }
.nm-opcion::after { content: ""; position: absolute; inset: auto -25% -55% auto; width: 8rem; height: 8rem; border-radius: 50%; background: var(--c); filter: blur(32px); opacity: .3; }
.nm-opcion:hover, .nm-opcion:focus-visible { transform: translateY(-4px); border-color: var(--c); box-shadow: 0 14px 34px oklch(0% 0 0 / .4); }
.nm-opcion-ic { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .9rem; background: color-mix(in oklab, var(--c) 28%, transparent); color: var(--c); margin-bottom: .35rem; } .nm-opcion-ic svg { width: 1.35rem; height: 1.35rem; }
.nm-opcion small { color: var(--texto-2); line-height: 1.35; } .nm-opcion em { font-style: normal; font-size: .72rem; color: var(--c); letter-spacing: .06em; text-transform: uppercase; margin-top: .2rem; }
.nm-dudas { display: grid; gap: .55rem; margin-left: 3.1rem; } @media (max-width: 640px) { .nm-dudas { margin-left: 0; } }
.nm-duda { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-radius: 1rem; color: inherit; text-decoration: none; border: 1px solid var(--linea); background: oklch(20% .03 280 / .6);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), border-color .2s, background .2s; } .nm-duda > span:nth-child(2) { flex: 1; }
.nm-duda:hover, .nm-duda:focus-visible { transform: translateX(5px); border-color: var(--c); background: color-mix(in oklab, var(--c) 14%, oklch(20% .03 280)); }
.nm-n { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; font-size: .85rem; font-weight: 600; background: color-mix(in oklab, var(--c) 30%, transparent); color: var(--c); } .nm-n svg { width: 1.05rem; height: 1.05rem; }
.nm-duda > svg { width: 1.1rem; height: 1.1rem; color: var(--texto-2); }
.nm-volver { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: 99px; color: var(--texto-2); text-decoration: none; border: 1px solid var(--linea); font-size: .88rem; margin-left: 3.1rem; align-self: start; justify-self: start; }
.fila > .nm-volver { margin-left: 0; } .nm-volver:hover, .nm-volver:focus-visible { color: #fff; border-color: var(--acento-borde); background: var(--acento-suave); } .nm-volver svg { width: 1rem; height: 1rem; }
@media (max-width: 640px) { .nm-volver { margin-left: 0; } }

/* la ficha */
.nm-ficha { position: relative; display: grid; gap: .9rem; margin-left: 3.1rem; padding: 1.4rem; border-radius: 1.5rem; border: 1px solid var(--linea); overflow: hidden; isolation: isolate;
  background: linear-gradient(170deg, oklch(98% .01 280 / .06), transparent 40%), oklch(19% .04 280 / .8); box-shadow: 0 20px 50px oklch(0% 0 0 / .4); }
.nm-ficha::before { content: ""; position: absolute; inset: 0 0 auto 0; height: .35rem; background: linear-gradient(90deg, var(--c), color-mix(in oklab, var(--c) 30%, #d946ef)); }
.nm-ficha::after { content: ""; position: absolute; top: -4rem; right: -4rem; width: 14rem; height: 14rem; border-radius: 50%; background: var(--c); filter: blur(60px); opacity: .18; z-index: -1; }
@media (max-width: 640px) { .nm-ficha { margin-left: 0; padding: 1.1rem; } }
.nm-ficha-cab { display: flex; gap: .9rem; align-items: center; } .nm-ficha-cab small { color: var(--c); letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; } .nm-ficha-cab h3 { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.nm-ficha-ic { flex: none; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 1rem; background: color-mix(in oklab, var(--c) 28%, transparent); color: var(--c); } .nm-ficha-ic svg { width: 1.6rem; height: 1.6rem; }
.nm-ficha-res { margin: 0; color: var(--texto-2); }
.nm-ficha h4 { margin: .3rem 0 0; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--texto-2); }
.nm-regla-oro { position: relative; margin: 0; padding: 1.1rem 1.2rem 1.1rem 3.2rem; border-radius: 1.1rem; font-size: 1.12rem; line-height: 1.4; font-weight: 500; background: linear-gradient(120deg, color-mix(in oklab, var(--c) 24%, transparent), transparent 80%); border: 1px solid color-mix(in oklab, var(--c) 45%, transparent); }
.nm-regla-oro::before { content: "\201C"; position: absolute; left: .8rem; top: -.1rem; font-family: var(--f-titulo); font-size: 3.6rem; line-height: 1; color: var(--c); }
.nm-regla-oro span { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin-bottom: .25rem; }
.nm-pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; counter-reset: paso; }
.nm-pasos li { position: relative; counter-increment: paso; padding: .35rem 0 .9rem 3rem; }
.nm-pasos li::before { content: counter(paso); position: absolute; left: 0; top: .1rem; z-index: 1; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; font-weight: 600; color: #fff; background: var(--c); box-shadow: 0 0 14px color-mix(in oklab, var(--c) 60%, transparent); }
.nm-pasos li:not(:last-child)::after { content: ""; position: absolute; left: 1.02rem; top: 2.2rem; bottom: 0; width: 2px; background: linear-gradient(var(--c), transparent); opacity: .5; }
.nm-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; } @media (max-width: 640px) { .nm-vs { grid-template-columns: 1fr; } }
.nm-mal, .nm-bien { padding: .9rem 1rem; border-radius: 1.1rem; } .nm-mal p, .nm-bien p { margin: .3rem 0 0; font-size: .92rem; }
.nm-mal { background: oklch(55% .2 25 / .13); border: 1px solid oklch(65% .2 25 / .4); } .nm-bien { background: oklch(60% .15 160 / .14); border: 1px solid oklch(70% .15 160 / .4); }
.nm-mal > span, .nm-bien > span { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; } .nm-mal > span { color: oklch(80% .13 25); } .nm-bien > span { color: oklch(85% .13 160); }
.nm-mal svg, .nm-bien svg { width: 1rem; height: 1rem; }
.nm-error { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 1rem; background: var(--aviso-suave); border: 1px solid color-mix(in oklab, var(--aviso) 45%, transparent); } .nm-error svg { flex: none; width: 1.3rem; height: 1.3rem; color: var(--aviso); } .nm-error p { margin: 0; font-size: .9rem; }
.nm-lista { display: grid; gap: .45rem; }
.nm-chk { display: flex; align-items: flex-start; gap: .7rem; padding: .55rem .7rem; border-radius: .8rem; cursor: pointer; min-height: 2.75rem; transition: background .2s; } .nm-chk:hover { background: oklch(100% 0 0 / .05); }
.nm-chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nm-caja { flex: none; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-top: .05rem; border-radius: .5rem; border: 2px solid var(--linea-fuerte); transition: background .2s, border-color .2s, transform .2s; } .nm-caja svg { width: 1rem; height: 1rem; color: #fff; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .2s; }
.nm-chk input:checked + .nm-caja { background: var(--c); border-color: var(--c); } .nm-chk input:checked + .nm-caja svg { opacity: 1; transform: scale(1); } .nm-chk input:checked ~ span:last-child { color: var(--texto-2); text-decoration: line-through; }
.nm-chk input:focus-visible + .nm-caja { outline: 2px solid var(--acento); outline-offset: 2px; }
.nm-fin { display: flex; gap: .7rem; align-items: center; margin-left: 3.1rem; padding: .8rem 1rem; border-radius: 1rem; border: 1px dashed var(--linea-fuerte); color: var(--texto-2); } .nm-fin svg { flex: none; width: 1.2rem; height: 1.2rem; } .nm-fin p { margin: 0; font-size: .88rem; } @media (max-width: 640px) { .nm-fin { margin-left: 0; } }

/* ═════════ Neuromarketing, versión gráfica: poco texto, mucho dibujo ═════════ */
.nm-pregunta { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.nm-puerta { gap: .6rem; padding: 1.1rem 1.1rem 1.2rem; }
.nm-num { position: absolute; left: 1.1rem; top: 1.1rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; font-family: var(--f-titulo); font-size: 1.1rem; background: oklch(100% 0 0 / .14); border: 1px solid oklch(100% 0 0 / .3); backdrop-filter: blur(6px); }
.nm-puerta > .nm-pill { position: absolute; right: 1.1rem; top: 1.1rem; z-index: 2; }
.nm-escena { position: relative; display: grid; place-items: center; height: 15rem; margin-top: .6rem; }
.nm-escena svg { width: min(100%, 22rem); height: 100%; overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  .nm-flota { animation: nm-flota 5s ease-in-out infinite; } .nm-flota2 { animation-duration: 6.5s; animation-delay: -2s; } .nm-cohete { animation: nm-despega 3.2s ease-in-out infinite; transform-box: fill-box; }
  .nm-puerta:hover .nm-flota { animation-duration: 2.4s; }
}
@keyframes nm-flota { 50% { transform: translateY(-7px); } }
@keyframes nm-despega { 50% { transform: translate(5px, -6px); } }
.nm-pie { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border-radius: 1.2rem; background: oklch(10% .03 280 / .55); border: 1px solid oklch(100% 0 0 / .16); backdrop-filter: blur(8px); }
.nm-pie > div:first-child { flex: 1; min-width: 0; } .nm-pie h3 { margin: 0; font-size: 1.55rem; line-height: 1.1; } .nm-pie small { color: oklch(100% 0 0 / .72); font-size: .85rem; }
.nm-cuenta { display: grid; justify-items: center; line-height: 1.1; padding: .35rem .8rem; border-radius: .9rem; background: oklch(100% 0 0 / .1); } .nm-cuenta b { font-size: 1.5rem; font-family: var(--f-titulo); font-weight: 500; } .nm-cuenta small { font-size: .68rem; }
.nm-flecha-ir { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: var(--brillo); transition: transform .25s; } .nm-flecha-ir svg { width: 1.2rem; height: 1.2rem; }
.nm-puerta:hover .nm-flecha-ir, .nm-puerta:focus-visible .nm-flecha-ir { transform: translateX(5px); }
.nm-plus { position: absolute; left: 3.6rem; top: 1.3rem; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .75rem; border-radius: 99px; color: #231400; background: linear-gradient(90deg, #fde68a, #fbbf24); box-shadow: 0 4px 16px #fbbf2466; }
.nm-plus svg { width: .85rem; height: .85rem; fill: currentColor; }
.nm-escena-rea { height: 15rem; }
.nm-rea-cara { position: relative; z-index: 1; width: 9rem; height: 9rem; filter: drop-shadow(0 14px 26px oklch(0% 0 0 / .45)); } .nm-rea-cara svg { width: 100%; height: 100%; overflow: visible; }
.nm-orbita { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.nm-orbita span { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; margin: -1.5rem; border-radius: 50%; background: oklch(100% 0 0 / .13); border: 1px solid oklch(100% 0 0 / .32); backdrop-filter: blur(6px); color: #fff;
  transform: rotate(calc(var(--a) * 90deg + 45deg)) translateY(-6.4rem) rotate(calc(var(--a) * -90deg - 45deg)); }
.nm-orbita span svg { width: 1.45rem; height: 1.45rem; }
.nm-orbita span:nth-child(1) { color: #fcd34d; } .nm-orbita span:nth-child(2) { color: #7dd3fc; } .nm-orbita span:nth-child(3) { color: #c4b5fd; } .nm-orbita span:nth-child(4) { color: #6ee7b7; }
@media (prefers-reduced-motion: no-preference) { .nm-orbita span { animation: nm-orb 4.5s ease-in-out infinite; animation-delay: calc(var(--a) * -1.1s); } }
@keyframes nm-orb { 50% { margin-top: -1.9rem; } }
.nm-globo { position: absolute; right: 18%; top: 10%; z-index: 2; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50% 50% 50% 8%; font-family: var(--f-titulo); font-size: 1.4rem; color: #fff; background: var(--grad); box-shadow: var(--brillo); }
.nm-regla { justify-content: center; padding: .7rem 1rem; } .nm-regla p { font-size: .95rem; }
.nm-temas { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); } .nm-tema { justify-items: center; text-align: center; padding: 1rem .6rem; } .nm-tema-ic { width: 3rem; height: 3rem; margin-bottom: .2rem; } .nm-tema-ic svg { width: 1.6rem; height: 1.6rem; }
.nm-tira { list-style: none; margin: 0; padding: 1.1rem 1rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 1.4rem; border: 1px solid var(--linea); background: linear-gradient(160deg, oklch(26% .07 290 / .55), oklch(18% .04 278 / .5)); }
.nm-tira li { position: relative; display: grid; justify-items: center; gap: .35rem; font-size: .9rem; }
.nm-tira-nodo { position: relative; z-index: 1; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: var(--brillo); } .nm-tira-nodo svg { width: 1.4rem; height: 1.4rem; }
.nm-tira li + li::before { content: ""; position: absolute; top: 1.6rem; right: 50%; width: 100%; height: 3px; background: repeating-linear-gradient(90deg, var(--acento) 0 7px, transparent 7px 14px); opacity: .7; }
@media (prefers-reduced-motion: no-preference) { .nm-tira li { animation: nm-entra .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 90ms); } }
.nm-opcion { justify-items: center; text-align: center; padding: 1.3rem 1rem; } .nm-opcion-ic { width: 3.6rem; height: 3.6rem; border-radius: 1.2rem; margin-bottom: .5rem; } .nm-opcion-ic svg { width: 1.9rem; height: 1.9rem; } .nm-opcion b { font-size: 1.05rem; }

/* ═════════ Neuromarketing, versión de lujo: fotos reales, oro champán y serif ═════════ */
.nm-pregunta { font-family: var(--f-titulo); font-weight: 500; letter-spacing: -.01em; position: relative; padding-bottom: .7rem; }
.nm-pregunta::after, .nm-h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 3.2rem; height: 2px; background: linear-gradient(90deg, #f1dfa8, #b8893a); border-radius: 2px; }
.nm-h2 { position: relative; padding-bottom: .55rem; font-family: var(--f-titulo); font-weight: 500; }
.nm-puerta.nm-lux { padding: 0; gap: 0; border: 1px solid transparent; border-radius: 1.8rem; overflow: hidden;
  background: linear-gradient(oklch(14% .04 280), oklch(14% .04 280)) padding-box, linear-gradient(135deg, #f6e7b8, #b8893a 32%, #5f4118 58%, #e9cf8b) border-box;
  box-shadow: 0 26px 60px oklch(0% 0 0 / .55), 0 0 0 1px oklch(85% .09 85 / .06), inset 0 1px 0 oklch(100% 0 0 / .06); }
.nm-puerta.nm-lux:hover, .nm-puerta.nm-lux:focus-visible { transform: translateY(-6px); box-shadow: 0 34px 74px oklch(0% 0 0 / .6), 0 0 0 1px oklch(85% .1 85 / .25), 0 0 40px oklch(80% .12 85 / .12); animation: none; }
.nm-foto { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: oklch(12% .03 280); }
.nm-foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s cubic-bezier(.2, .8, .2, 1); }
.nm-puerta:hover .nm-foto img, .nm-puerta:focus-visible .nm-foto img { transform: scale(1.06); }
.nm-velo { position: absolute; inset: 0; background: linear-gradient(180deg, oklch(0% 0 0 / .4) 0%, transparent 28%, transparent 52%, oklch(14% .04 280) 100%); pointer-events: none; }
.nm-puerta.nm-lux .nm-num { left: 1.1rem; top: 1.1rem; width: 2.5rem; height: 2.5rem; font-family: var(--f-titulo); font-style: italic; font-size: 1.05rem; color: #f6e7b8; background: oklch(10% .03 280 / .55); border: 1px solid #d9b873; box-shadow: 0 0 18px oklch(80% .12 85 / .25); }
.nm-puerta.nm-lux > .nm-pill, .nm-puerta .nm-foto > .nm-pill { position: absolute; right: 1.1rem; top: 1.1rem; z-index: 2; }
.nm-puerta .nm-foto > .nm-plus { position: absolute; left: 1.1rem; bottom: 1rem; top: auto; }
.nm-plus { color: #2a1a02; background: linear-gradient(135deg, #f8ebc0, #d9b265 55%, #b8893a); box-shadow: 0 6px 22px #d9b26566, inset 0 1px 0 #fff8; letter-spacing: .09em; }
.nm-puerta.nm-lux .nm-pie { background: transparent; border: 0; border-radius: 0; backdrop-filter: none; padding: .3rem 1.4rem 1.4rem; margin-top: -.6rem; position: relative; z-index: 1; }
.nm-puerta.nm-lux .nm-pie h3 { font-family: var(--f-titulo); font-weight: 500; font-size: 2.1rem; letter-spacing: -.01em; }
.nm-puerta.nm-lux .nm-pie small { color: #d9c28b; letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; }
.nm-puerta.nm-lux .nm-cuenta { background: transparent; border: 1px solid oklch(85% .09 85 / .35); } .nm-puerta.nm-lux .nm-cuenta b { color: #f6e7b8; }
.nm-puerta.nm-lux .nm-flecha-ir { background: linear-gradient(135deg, #f8ebc0, #d9b265 55%, #b8893a); color: #2a1a02; box-shadow: 0 6px 20px #d9b26555; width: 2.9rem; height: 2.9rem; }
.nm-regla { border: 1px solid oklch(85% .09 85 / .3); background: linear-gradient(90deg, oklch(30% .06 85 / .18), transparent); } .nm-regla svg { color: #e9cf8b; }
.nm-tema { border-radius: 1.2rem; border: 1px solid oklch(85% .09 85 / .22); background: linear-gradient(160deg, oklch(24% .04 280 / .8), oklch(15% .03 280 / .8)); }
.nm-tema::after { opacity: .16; }
.nm-tema:hover, .nm-tema:focus-visible { border-color: #e9cf8b; box-shadow: 0 12px 30px oklch(0% 0 0 / .4), 0 0 24px oklch(80% .12 85 / .1); }
.nm-tema-ic { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: transparent; border: 1px solid #d9b873; color: #f1dfa8; box-shadow: inset 0 0 14px oklch(80% .12 85 / .12); }
.nm-tema-ic svg { width: 1.45rem; height: 1.45rem; stroke-width: 1.25; }
.nm-tema b { font-family: var(--f-titulo); font-weight: 500; font-size: 1.02rem; }
.nm-opcion { border-color: oklch(85% .09 85 / .22); } .nm-opcion-ic { background: transparent; border: 1px solid #d9b873; border-radius: 50%; color: #f1dfa8; } .nm-opcion-ic svg { stroke-width: 1.25; } .nm-opcion b { font-family: var(--f-titulo); font-weight: 500; }
/* Rea con su cara real */
.nm-av { color: transparent; font-size: 0; background: url('/img/neuro-rea.webp') 50% 24% / 340% no-repeat, #1a1236; border: 1.5px solid #d9b873; box-shadow: 0 0 0 3px oklch(80% .12 85 / .1), 0 6px 18px oklch(0% 0 0 / .4); }
.nm-av.grande { border-width: 2px; }
.nm-av i { font-size: 0; }
.nm-rea-cab { border-color: oklch(85% .09 85 / .3); } .nm-rea-cab b { font-family: var(--f-titulo); font-weight: 500; font-size: 1.25rem; }

/* ═════════ Aprendedor y Matriz de Viralidad: fotos, oro champán, ciclo y tarjetas gráficas ═════════ */
.ag-puertas { display: grid; gap: 1.2rem; }
.ag-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); }
.ag-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .ag-4 { grid-template-columns: 1fr; } }
.ag-3 .nm-puerta.nm-lux .nm-pie h3, .ag-4 .nm-puerta.nm-lux .nm-pie h3 { font-size: 1.55rem; }
.ag-3 .nm-puerta.nm-lux .nm-pie, .ag-4 .nm-puerta.nm-lux .nm-pie { flex-wrap: wrap; }
.ap-oro { background: linear-gradient(135deg, #f8ebc0, #d9b265 55%, #b8893a) !important; color: #2a1a02 !important; border: 0 !important; box-shadow: 0 6px 20px #d9b26555; }

/* el ciclo: publicamos → medimos → aprendimos → nuevo guion */
.ap-ciclo { list-style: none; margin: 0; padding: 1.3rem 1rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; border-radius: 1.5rem; border: 1px solid oklch(85% .09 85 / .25);
  background: linear-gradient(160deg, oklch(24% .04 280 / .8), oklch(15% .03 280 / .8)); }
.ap-ciclo li { position: relative; display: grid; justify-items: center; align-content: start; gap: .25rem; text-align: center; opacity: .5; }
.ap-ciclo li.hecho { opacity: .9; } .ap-ciclo li.activo { opacity: 1; }
.ap-ciclo li + li::before { content: ""; position: absolute; top: 1.55rem; right: 50%; width: 100%; height: 2px; background: oklch(85% .09 85 / .25); z-index: 0; }
.ap-ciclo li.hecho + li::before, .ap-ciclo li.activo::before { background: linear-gradient(90deg, #b8893a, #f1dfa8); }
.ap-ciclo li.activo + li::before { background: oklch(85% .09 85 / .25); }
.ap-nodo { position: relative; z-index: 1; display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%; border: 1px solid #d9b873; color: #f1dfa8; background: oklch(14% .04 280); }
.ap-nodo svg { width: 1.3rem; height: 1.3rem; }
.ap-ciclo li.activo .ap-nodo { background: linear-gradient(135deg, #f8ebc0, #d9b265 55%, #b8893a); color: #2a1a02; box-shadow: 0 0 0 6px oklch(80% .12 85 / .15), 0 0 30px oklch(80% .12 85 / .35); }
@media (prefers-reduced-motion: no-preference) { .ap-ciclo li.activo .ap-nodo { animation: ap-late 2.4s ease-in-out infinite; } }
@keyframes ap-late { 50% { box-shadow: 0 0 0 10px oklch(80% .12 85 / .08), 0 0 42px oklch(80% .12 85 / .5); } }
.ap-ciclo b { font-family: var(--f-titulo); font-weight: 500; font-size: 1.02rem; }
.ap-ciclo small { color: var(--texto-2); font-size: .72rem; }
@media (max-width: 560px) { .ap-ciclo small { display: none; } .ap-ciclo b { font-size: .86rem; } .ap-nodo { width: 2.6rem; height: 2.6rem; } .ap-ciclo li + li::before { top: 1.3rem; } }

/* anillos de veredicto */
.ap-anillo { --c: #64748b; position: relative; flex: none; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; color: var(--c); background: conic-gradient(var(--c) calc(var(--p) * 1%), oklch(100% 0 0 / .1) 0); }
.ap-anillo::before { content: ""; position: absolute; inset: .3rem; border-radius: 50%; background: oklch(16% .04 280); }
.ap-anillo > span { position: relative; display: grid; place-items: center; }
.ap-anillo svg { width: 1.3rem; height: 1.3rem; } .ap-anillo .num { color: #fff; font-size: .82rem; font-weight: 600; }
.ap-anillo.grande { width: 6.2rem; height: 6.2rem; } .ap-anillo.grande::before { inset: .45rem; } .ap-anillo.grande svg { width: 2rem; height: 2rem; }
.ap-ok { --c: #6ee7b7; } .ap-aviso { --c: #fcd34d; } .ap-caida { --c: #fb7185; } .ap-sin { --c: #64748b; }
@media (prefers-reduced-motion: no-preference) { .ap-anillo { animation: nm-llena 1s cubic-bezier(.2, .8, .2, 1) both; } }

/* la semana, de lunes a domingo */
.ap-semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .55rem; }
.ap-dia { display: grid; align-content: start; gap: .45rem; min-height: 7.4rem; padding: .65rem .55rem; border-radius: 1rem; border: 1px dashed oklch(100% 0 0 / .14); background: oklch(18% .03 280 / .5); }
.ap-dia.con { border: 1px solid oklch(85% .09 85 / .38); background: linear-gradient(160deg, oklch(26% .05 280 / .85), oklch(16% .03 280 / .85)); }
.ap-dia-n { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #d9c28b; }
.ap-pieza { display: grid; gap: .15rem; justify-items: start; }
.ap-pieza svg { width: 1.3rem; height: 1.3rem; color: #f1dfa8; }
.ap-pieza b { font-size: .78rem; line-height: 1.2; font-weight: 500; overflow-wrap: anywhere; }
.ap-pieza small { font-size: .62rem; color: var(--texto-2); text-transform: uppercase; letter-spacing: .07em; }
.ap-libre { font-size: .72rem; color: var(--texto-2); opacity: .6; }
@media (max-width: 720px) { .ap-semana { grid-template-columns: 1fr; } .ap-dia { grid-template-columns: 3.4rem 1fr; align-items: center; min-height: 0; } .ap-pieza { grid-template-columns: auto 1fr; align-items: center; column-gap: .6rem; } .ap-pieza small { display: none; } }

/* lecciones: lo aprendido pegado a lo aplicado */
.ap-lecciones { display: grid; gap: 1.2rem; }
.ap-leccion { display: grid; gap: .95rem; padding: 1.3rem; border-radius: 1.5rem; border: 1px solid oklch(85% .09 85 / .25); background: linear-gradient(160deg, oklch(24% .05 285 / .75), oklch(15% .03 278 / .8)); }
.ap-leccion h3 { margin: 0; font-family: var(--f-titulo); font-weight: 500; }
.ap-frase { margin: 0; font-family: var(--f-titulo); font-style: italic; font-size: 1.15rem; line-height: 1.45; color: #f6e7b8; max-width: 44rem; }
.ap-pares { display: grid; gap: .8rem; }
.ap-par { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: .7rem; align-items: stretch; }
.ap-par-n { align-self: center; font-family: var(--f-titulo); font-size: 2.3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px #d9b873; }
.ap-par-a, .ap-par-b { display: grid; align-content: start; gap: .25rem; padding: .85rem; border-radius: 1rem; }
.ap-par-a { background: oklch(100% 0 0 / .05); border: 1px solid oklch(100% 0 0 / .1); }
.ap-par-b { background: linear-gradient(135deg, oklch(80% .12 85 / .18), oklch(60% .1 75 / .08)); border: 1px solid oklch(85% .09 85 / .4); }
.ap-par svg { width: 1.2rem; height: 1.2rem; color: #f1dfa8; }
.ap-par small { text-transform: uppercase; letter-spacing: .08em; font-size: .66rem; color: #d9c28b; }
.ap-par p { margin: 0; font-size: .92rem; }
.ap-par-fl { align-self: center; color: #e9cf8b; } .ap-par-fl svg { width: 1.4rem; height: 1.4rem; }
@media (max-width: 720px) { .ap-par { grid-template-columns: auto 1fr; } .ap-par-n { grid-row: span 3; } .ap-par-fl { grid-column: 2; justify-self: center; transform: rotate(90deg); } }

/* cómo les fue */
.ap-semaforo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.ap-sem { display: grid; justify-items: center; gap: .35rem; padding: 1rem .6rem; border-radius: 1.2rem; text-align: center; border: 1px solid oklch(100% 0 0 / .1); background: oklch(18% .03 280 / .6); }
.ap-sem b { font-family: var(--f-titulo); font-weight: 500; font-size: 2rem; line-height: 1; } .ap-sem small { color: var(--texto-2); }
.ap-videos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.ap-video { display: grid; align-content: start; gap: .8rem; padding: 1.1rem; border-radius: 1.4rem; border: 1px solid oklch(85% .09 85 / .25); background: linear-gradient(160deg, oklch(24% .05 285 / .75), oklch(15% .03 278 / .8)); }
.ap-video h3 { margin: 0; font-family: var(--f-titulo); font-weight: 500; }
.ap-slots { display: grid; gap: .6rem; }
.ap-slot { display: flex; align-items: center; gap: .8rem; padding: .7rem; border-radius: 1rem; border: 1px solid oklch(100% 0 0 / .1); background: oklch(100% 0 0 / .04); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
a.ap-slot:hover, a.ap-slot:focus-visible { border-color: var(--c); transform: translateY(-2px); }
.ap-slot div { display: grid; gap: .1rem; } .ap-slot small { color: var(--texto-2); }
.ap-slot.pend { border-style: dashed; opacity: .7; }

/* detalle de un resultado */
.ap-det { display: grid; gap: 1.1rem; }
.ap-det-cab { display: flex; gap: 1.1rem; align-items: center; padding: 1.2rem; border-radius: 1.5rem; border: 1px solid var(--c, #64748b); background: linear-gradient(135deg, color-mix(in oklab, var(--c, #64748b) 18%, transparent), oklch(16% .03 280 / .8)); }
.ap-det-cab h2 { margin: .1rem 0 .5rem; font-family: var(--f-titulo); font-weight: 500; font-size: 2rem; }
.ap-mets { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .7rem; }
.ap-met { display: grid; gap: .2rem; justify-items: start; padding: .9rem; border-radius: 1.1rem; border: 1px solid oklch(85% .09 85 / .2); background: oklch(18% .03 280 / .6); }
.ap-met svg { width: 1.2rem; height: 1.2rem; color: #f1dfa8; } .ap-met b { font-family: var(--f-titulo); font-weight: 500; font-size: 1.5rem; line-height: 1.1; } .ap-met small { color: var(--texto-2); font-size: .74rem; }
.ap-ret { justify-items: center; align-content: center; text-align: center; }
.ap-bloque { padding: 1rem 1.1rem; border-radius: 1.2rem; border: 1px solid oklch(100% 0 0 / .12); background: oklch(18% .03 280 / .55); }
.ap-bloque h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; font-family: var(--f-titulo); font-weight: 500; } .ap-bloque h3 svg { width: 1.2rem; height: 1.2rem; color: #6ee7b7; }
.ap-bloque ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .4rem; }
.ap-mejor { border-color: #fcd34d55; } .ap-mejor h3 svg { color: #fcd34d; }
.ap-cita { margin: 0; display: grid; gap: .3rem; padding: 1.2rem 1.3rem; border-radius: 1.4rem; border: 1px solid #d9b873; background: linear-gradient(135deg, oklch(80% .12 85 / .16), oklch(25% .05 280 / .8)); }
.ap-cita svg { width: 1.3rem; height: 1.3rem; color: #f1dfa8; } .ap-cita small { text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; color: #d9c28b; }
.ap-cita p { margin: 0; font-family: var(--f-titulo); font-style: italic; font-size: 1.2rem; line-height: 1.4; color: #f6e7b8; }

/* Matriz de Viralidad: probabilidad y proyección */
.mz-hero { position: relative; overflow: hidden; border-radius: 1.8rem; border: 1px solid transparent; min-height: 14rem; display: grid; align-items: end;
  background: linear-gradient(oklch(14% .04 280), oklch(14% .04 280)) padding-box, linear-gradient(135deg, #f6e7b8, #b8893a 32%, #5f4118 58%, #e9cf8b) border-box; box-shadow: 0 26px 60px oklch(0% 0 0 / .5); }
.mz-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mz-hero .nm-velo { background: linear-gradient(90deg, oklch(10% .04 280 / .92) 0%, oklch(10% .04 280 / .55) 55%, transparent 100%); }
.mz-hero-t { position: relative; padding: 1.6rem 1.5rem; display: grid; gap: .4rem; max-width: 30rem; }
.mz-hero-t .nm-pregunta { margin: 0; } .mz-hero-t p { margin: 0; color: #e7d6a5; }
.mz-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.mz-kpis > div { display: grid; gap: .1rem; justify-items: center; text-align: center; padding: .9rem .5rem; border-radius: 1.2rem; border: 1px solid oklch(85% .09 85 / .22); background: oklch(18% .03 280 / .6); }
.mz-kpis b { font-family: var(--f-titulo); font-weight: 500; font-size: 1.9rem; line-height: 1; color: #f6e7b8; } .mz-kpis small { color: var(--texto-2); font-size: .74rem; }

/* medidor de media luna */
.mz-medidor { --c: #64748b; position: relative; flex: none; display: grid; justify-items: center; width: 7.4rem; }
.mz-medidor svg { width: 100%; height: auto; overflow: visible; }
.mz-med-fondo, .mz-med-arco { fill: none; stroke-width: 11; stroke-linecap: round; } .mz-med-fondo { stroke: oklch(100% 0 0 / .1); } .mz-med-arco { stroke: var(--c); filter: drop-shadow(0 0 6px color-mix(in oklab, var(--c) 55%, transparent)); }
.mz-medidor b { position: absolute; bottom: 1.1rem; font-family: var(--f-titulo); font-weight: 500; font-size: 1.7rem; line-height: 1; }
.mz-medidor small { position: absolute; bottom: -.1rem; color: var(--texto-2); font-size: .66rem; white-space: nowrap; }
.mz-medidor { padding-bottom: 1.2rem; }
.mz-medidor.grande { width: 11rem; } .mz-medidor.grande b { font-size: 2.7rem; bottom: 1.7rem; } .mz-medidor.grande small { font-size: .8rem; }
@media (prefers-reduced-motion: no-preference) { .mz-med-arco { animation: mz-llena 1.1s cubic-bezier(.2, .8, .2, 1) both; } }
@keyframes mz-llena { from { stroke-dasharray: 0 100; } }

/* tarjeta de cada video */

/* detalle de una proyección */
.mz-det { display: grid; gap: 1.2rem; }
.mz-det-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; padding: 1.3rem; border-radius: 1.6rem; border: 1px solid var(--c); background: linear-gradient(135deg, color-mix(in oklab, var(--c) 16%, transparent), oklch(16% .03 280 / .85)); }
.mz-det-cab h2 { margin: .1rem 0 .4rem; font-family: var(--f-titulo); font-weight: 500; font-size: 1.8rem; overflow-wrap: anywhere; } .mz-kicker { text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; color: #d9c28b; }
.mz-veredicto { margin: 0 0 .6rem; font-size: 1.02rem; } .mz-veredicto b { color: var(--c); }
.ap-bloque-t { display: grid; gap: .1rem; } .ap-bloque-t h3 { margin: 0; font-family: var(--f-titulo); font-weight: 500; font-size: 1.25rem; }
.mz-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .8rem; }
.mz-tile { display: grid; gap: .25rem; padding: 1rem; border-radius: 1.2rem; border: 1px solid oklch(85% .09 85 / .22); background: oklch(18% .03 280 / .6); }
.mz-tile svg { width: 1.25rem; height: 1.25rem; color: #f1dfa8; } .mz-tile small { color: var(--texto-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.mz-tile b { font-family: var(--f-titulo); font-weight: 500; font-size: 1.7rem; line-height: 1.1; color: #f6e7b8; } .mz-tile > span { color: var(--texto-2); font-size: .78rem; }
.mz-tile-g { grid-column: 1 / -1; background: linear-gradient(135deg, oklch(80% .12 85 / .14), oklch(20% .04 280 / .8)); border-color: #d9b873; } .mz-tile-g b { font-size: 2.6rem; }
.mz-rango { position: relative; height: .55rem; margin-top: .3rem; border-radius: 99px; background: oklch(100% 0 0 / .08); }
.mz-rango span { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #b8893a66, #f1dfa8aa); }
.mz-rango i { position: absolute; top: -.25rem; bottom: -.25rem; width: 3px; margin-left: -1.5px; border-radius: 3px; background: #fff; box-shadow: 0 0 8px #fff8; }

/* gráfico */
.mz-grafico { display: grid; gap: .7rem; padding: 1rem; border-radius: 1.4rem; border: 1px solid oklch(85% .09 85 / .22); background: oklch(16% .03 280 / .6); }
.mz-curva { width: 100%; height: auto; display: block; }
.mz-eje-h { stroke: oklch(100% 0 0 / .08); stroke-width: 1; } .mz-et { fill: oklch(100% 0 0 / .55); font-size: 11px; } .mz-et-v { fill: #fcd34d; }
.mz-umbral { stroke: #fcd34d; stroke-width: 1.2; stroke-dasharray: 5 4; opacity: .8; }
.mz-banda { fill: #e9cf8b; opacity: .16; } .mz-lin-real { fill: none; stroke: #6ee7b7; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mz-lin-proy { fill: none; stroke: #e9cf8b; stroke-width: 2.6; stroke-dasharray: 7 5; stroke-linecap: round; } .mz-punto { fill: #6ee7b7; stroke: #0b0816; stroke-width: 2; }
.mz-leyenda { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .8rem; color: var(--texto-2); } .mz-leyenda li { display: inline-flex; align-items: center; gap: .45rem; }
.mz-leyenda i { display: inline-block; width: 1.4rem; height: 0; border-top: 3px solid; } .l-real { border-color: #6ee7b7; } .l-proy { border-color: #e9cf8b; border-top-style: dashed !important; } .l-umbral { border-color: #fcd34d; border-top: 2px dashed #fcd34d !important; }
.mz-leyenda .l-banda { height: .7rem; border: 0; background: #e9cf8b30; border-radius: 3px; }
.mz-senales { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .8rem; }
.mz-senales ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; align-content: start; } .mz-senales li { display: flex; align-items: flex-start; gap: .5rem; font-size: .92rem; }
.mz-senales svg { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .1rem; } .mz-senales .mas svg { color: #6ee7b7; } .mz-senales .menos svg { color: #fcd34d; }
.mz-modelo { display: flex; gap: .8rem; padding: 1rem 1.1rem; border-radius: 1.2rem; border: 1px dashed oklch(85% .09 85 / .35); } .mz-modelo > svg { flex: none; width: 1.4rem; height: 1.4rem; color: #f1dfa8; }
.mz-modelo p { margin: .2rem 0; font-size: .9rem; } .mz-modelo small { color: var(--texto-2); }
.mz-dentro { display: flex; flex-wrap: wrap; gap: .6rem; }
.mz-dentro span { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 99px; border: 1px solid oklch(85% .09 85 / .25); font-size: .85rem; color: var(--texto-2); } .mz-dentro svg { width: 1.1rem; height: 1.1rem; color: #f1dfa8; }

/* calendario del mes (Desarrollo) */
.mz-meses { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.mz-sem { display: grid; align-content: start; gap: 1rem; padding: 1.2rem; border-radius: 1.5rem; border: 1px solid oklch(85% .09 85 / .25); background: linear-gradient(160deg, oklch(24% .05 285 / .75), oklch(15% .03 278 / .8)); }
.mz-tira { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; }
.mz-tira span { display: grid; place-items: center; height: 1.9rem; border-radius: .6rem; font-size: .7rem; color: var(--texto-2); border: 1px dashed oklch(100% 0 0 / .15); }
.mz-tira span.on { border: 0; font-weight: 700; color: #2a1a02; background: linear-gradient(135deg, #f8ebc0, #d9b265 55%, #b8893a); }
.mz-sem ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; } .mz-sem li { display: flex; align-items: flex-start; gap: .6rem; } .mz-sem li div { display: grid; gap: .1rem; } .mz-sem li small { color: var(--texto-2); }
.mz-dia-tag { flex: none; padding: .2rem .55rem; border-radius: 99px; border: 1px solid #d9b87388; color: #f1dfa8; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.ag-3 .nm-pie > div:first-child, .ag-4 .nm-pie > div:first-child { flex: 1 1 8.5rem; } .ag-3 .nm-pie h3, .ag-4 .nm-pie h3 { overflow-wrap: anywhere; }

/* La Matriz en un celular: la portada del video, el porcentaje encima y lo proyectado a un lado */
.mz-vids { display: grid; gap: 1.6rem 1.2rem; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); align-items: start; }
.mz-item { display: grid; gap: .9rem; justify-items: center; }
.mz-cel { width: min(100%, 13.5rem); }
.mz-cel.grande { width: min(100%, 17rem); }
.mz-cel-marco { padding: .5rem; border-radius: 2.5rem; background: linear-gradient(145deg, #3a3350, #0d0a18 40%, #2a2340); border: 1px solid oklch(85% .09 85 / .35);
  box-shadow: 0 24px 50px oklch(0% 0 0 / .55), 0 0 0 1px oklch(0% 0 0 / .6) inset, 0 0 40px color-mix(in oklab, var(--c, #64748b) 18%, transparent); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
a:hover > .mz-cel-pantalla, a:focus-visible > .mz-cel-pantalla { outline: 2px solid var(--c, #e9cf8b); outline-offset: 2px; }
.mz-cel-marco a { display: block; color: inherit; text-decoration: none; border-radius: 2rem; }
.mz-item:hover .mz-cel-marco { transform: translateY(-5px); }
.mz-cel-pantalla { position: relative; overflow: hidden; border-radius: 2rem; aspect-ratio: 9 / 18; background: #0b0816; isolation: isolate; }
.mz-cel-pantalla::before { content: ""; position: absolute; top: .55rem; left: 50%; z-index: 4; width: 28%; height: .9rem; margin-left: -14%; border-radius: 99px; background: #05030c; box-shadow: 0 0 0 1px oklch(100% 0 0 / .08); }
.mz-cel-pantalla img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mz-cel-vacia { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .6rem; padding: 1rem; text-align: center; color: #e7d6a5; background: radial-gradient(120% 80% at 50% 30%, #3b2a66, #0b0816); }
.mz-cel-vacia svg { width: 2.4rem; height: 2.4rem; }
.mz-cel-velo { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, oklch(0% 0 0 / .45) 0%, transparent 22%, transparent 48%, oklch(6% .03 280 / .92) 100%); }
.mz-cel-red { position: absolute; top: 1.7rem; left: .7rem; z-index: 3; display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem; border-radius: 99px; font-size: .7rem; color: #fff; background: oklch(8% .03 280 / .6); border: 1px solid oklch(100% 0 0 / .22); backdrop-filter: blur(6px); }
.mz-cel-red svg { width: .85rem; height: .85rem; }
.mz-cel-play { position: absolute; top: 40%; left: 50%; z-index: 3; display: grid; place-items: center; width: 3.1rem; height: 3.1rem; margin: -1.55rem 0 0 -1.55rem; border-radius: 50%; color: #fff; background: oklch(8% .03 280 / .45); border: 1px solid oklch(100% 0 0 / .45); backdrop-filter: blur(6px); transition: transform .25s, background .25s; }
.mz-cel-play svg { width: 1.3rem; height: 1.3rem; margin-left: .12rem; }
a:hover .mz-cel-play, a:focus-visible .mz-cel-play { transform: scale(1.12); background: linear-gradient(135deg, #f8ebc0, #d9b265 55%, #b8893a); color: #2a1a02; }
.mz-cel-lado { position: absolute; right: .55rem; bottom: 5.4rem; z-index: 3; display: grid; justify-items: center; gap: .65rem; color: #fff; }
.mz-cel-lado span { display: grid; justify-items: center; gap: .1rem; } .mz-cel-lado svg { width: 1.4rem; height: 1.4rem; filter: drop-shadow(0 1px 3px #000a); } .mz-cel-lado b { font-size: .68rem; font-weight: 600; text-shadow: 0 1px 3px #000c; }
.mz-cel-lado i { font-style: normal; font-size: .52rem; letter-spacing: .06em; text-transform: uppercase; color: #e9cf8b; }
.mz-cel-abajo { position: absolute; left: .8rem; right: 3rem; bottom: .9rem; z-index: 3; display: grid; gap: .45rem; }
.mz-cel-prob { justify-self: start; display: inline-flex; align-items: baseline; gap: .35rem; padding: .25rem .7rem; border-radius: 99px; background: oklch(8% .03 280 / .72); border: 1.5px solid var(--c); backdrop-filter: blur(6px); box-shadow: 0 0 18px color-mix(in oklab, var(--c) 40%, transparent); }
.mz-cel-prob b { font-family: var(--f-titulo); font-weight: 500; font-size: 1.35rem; line-height: 1; color: var(--c); } .mz-cel-prob small { font-size: .62rem; color: #fff; opacity: .85; }
.mz-cel-titulo { font-size: .8rem; font-weight: 600; line-height: 1.25; color: #fff; text-shadow: 0 1px 4px #000c; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mz-cel.grande .mz-cel-play { width: 3.8rem; height: 3.8rem; margin: -1.9rem 0 0 -1.9rem; } .mz-cel.grande .mz-cel-titulo { font-size: .92rem; } .mz-cel.grande .mz-cel-prob b { font-size: 1.6rem; }

.mz-item-pie { display: grid; gap: .55rem; justify-items: center; text-align: center; width: min(100%, 13.5rem); }
.mz-item-v { display: grid; gap: .05rem; } .mz-item-v small { color: var(--texto-2); font-size: .72rem; } .mz-item-v b { font-family: var(--f-titulo); font-weight: 500; font-size: 1.6rem; line-height: 1.1; color: #f6e7b8; }
.mz-nivel { padding: .15rem .65rem; border-radius: 99px; font-size: .74rem; border: 1px solid var(--c); color: var(--c); }
.mz-ver { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; } .mz-ver svg { width: 1.05rem; height: 1.05rem; }
.mz-sin-enlace { opacity: .7; }
.mz-mas { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; color: #e9cf8b; text-decoration: none; } .mz-mas svg { width: .95rem; height: .95rem; transition: transform .2s; } .mz-mas:hover svg { transform: translateX(3px); }

/* detalle: el celular a la izquierda, el análisis a la derecha */
.mz-det-grid { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.mz-det-cel { position: sticky; top: 1rem; display: grid; gap: .9rem; justify-items: center; }
.mz-det-cel .btn { width: 100%; justify-content: center; }
.mz-det-der { display: grid; gap: 1.2rem; min-width: 0; }
@media (max-width: 820px) { .mz-det-grid { grid-template-columns: 1fr; } .mz-det-cel { position: static; } }

/* Desarrollo, más corto: el calendario y los totales lado a lado, y cada red en su columna */
.des-hero { display: grid; gap: 1rem; align-items: stretch; }
.des-hero.dos { grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr); }
.ag-1 { grid-template-columns: minmax(0, 1fr); height: 100%; } .ag-1 .nm-puerta.nm-lux { height: 100%; grid-template-rows: auto 1fr; }
.ag-1 .nm-foto { aspect-ratio: 16 / 9; } .ag-1 .nm-puerta.nm-lux .nm-pie h3 { font-size: 1.35rem; } .ag-1 .nm-pie { align-self: end; }
.des-hero .totales { padding: 1rem; gap: .7rem; } .des-hero .totales-rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.des-hero .total { padding: .6rem .7rem; } .des-hero .total b { font-size: 1.5rem; } .des-hero .total .ic { width: 1.6rem; height: 1.6rem; margin-bottom: .15rem; }
.des-hero .total small { font-size: .66rem; }
.redes-cols { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); align-items: start; }
.redes-cols .cuentas-rejilla { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.redes-cols .cuenta { padding: 1rem; gap: .7rem; } .redes-cols .cuenta.principal { grid-column: auto; }
.redes-cols .cuenta.principal .cuenta-mets, .redes-cols .cuenta-mets { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: .55rem 0; }
.redes-cols .cuenta-datos { gap: .6rem; } .redes-cols .cuenta-num b { font-size: 1.5rem; }
@media (max-width: 860px) { .des-hero.dos { grid-template-columns: 1fr; } .ag-1 .nm-foto { aspect-ratio: 16 / 7; } .des-hero .totales-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mz-det-cab { flex-direction: column; align-items: flex-start; } .mz-det-cab .crece { width: 100%; } }
@media (max-width: 560px) { .mz-vids { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem .7rem; } .mz-cel, .mz-item-pie { width: 100%; } .mz-cel-marco { padding: .35rem; border-radius: 1.9rem; } .mz-cel-pantalla { border-radius: 1.55rem; } .mz-cel-prob b { font-size: 1.05rem; } .mz-cel-prob small { display: none; } .mz-cel-titulo { font-size: .68rem; } .mz-cel-lado { right: .35rem; gap: .45rem; } .mz-cel-lado svg { width: 1.1rem; height: 1.1rem; } .mz-cel-lado b { font-size: .6rem; } .mz-cel-abajo { right: 2.2rem; left: .6rem; } .mz-item-v b { font-size: 1.3rem; } .mz-ver { font-size: .78rem; padding: .45rem .5rem; } .mz-ver svg:last-child { display: none; } .mz-cel-play { width: 2.4rem; height: 2.4rem; margin: -1.2rem 0 0 -1.2rem; } }

/* Cuentas de ingreso del cliente (editar / quitar) */
details.cuenta { border: 1px solid var(--linea); border-radius: var(--r-m, 1rem); padding: .2rem .8rem; background: var(--superficie-2); }
details.cuenta + details.cuenta { margin-top: .5rem; }
details.cuenta > summary { display: flex; align-items: center; gap: .6rem; min-height: 3rem; cursor: pointer; list-style: none; }
details.cuenta > summary::-webkit-details-marker { display: none; }
details.cuenta[open] > summary { border-bottom: 1px solid var(--linea); margin-bottom: .7rem; }
details.cuenta .formulario { padding-bottom: .8rem; }

/* Tarjeta «Instalar la app» */
.tarjeta.instalar { border-color: var(--acento); }
.tarjeta.instalar .fila { flex-wrap: wrap; align-items: center; gap: .9rem; }
.tarjeta.instalar .avatar svg { width: 1.4rem; height: 1.4rem; }
.tarjeta.instalar .nombre { white-space: normal; overflow: visible; text-overflow: clip; display: flex; flex-wrap: wrap; gap: .4rem .5rem; align-items: center; }

/* «Continuar con Google» y el separador «o» de la pantalla de entrada */
.btn.google { background: #fff; color: #1f1f1f; border-color: #dadce0; font-weight: 500; }
.btn.google:hover { background: #f4f4f4; border-color: #c6c6c6; }
.btn.google svg { flex: none; }
.o-bien { display: flex; align-items: center; gap: .75rem; color: var(--texto-3); font-size: .85rem; }
.o-bien::before, .o-bien::after { content: ''; flex: 1; height: 1px; background: var(--linea); }
.tarjeta h2 svg { vertical-align: -3px; margin-right: .3rem; }
details.pasos { border: 1px solid var(--linea); border-radius: var(--r-m); padding: .6rem .9rem; margin-bottom: .9rem; }
details.pasos summary { cursor: pointer; font-weight: 500; }
details.pasos ol { padding-left: 1.2rem; display: grid; gap: .45rem; margin: .6rem 0 0; }
details.pasos code.copiable { display: block; margin-top: .3rem; padding: .4rem .6rem; border-radius: .5rem; background: oklch(98% 0.01 280 / .06); word-break: break-all; cursor: copy; user-select: all; }

/* Lo que lleva el atributo hidden no se ve, aunque su clase le ponga display (el campo del código 2FA en la entrada, por ejemplo). */
[hidden] { display: none !important; }

/* ═════════ El ciclo completo de los agentes (sección Agentes): anillo de oro champán, vidrio y un pulso que viaja ═════════ */
.cic { position: relative; display: grid; gap: 1.1rem; padding: 1.4rem 1.4rem 1.2rem; border-radius: 1.8rem; border: 1px solid transparent; overflow: hidden;
  background: linear-gradient(oklch(14% .04 280 / .92), oklch(12% .035 278 / .96)) padding-box, linear-gradient(135deg, #f6e7b8, #b8893a 32%, #5f4118 58%, #e9cf8b) border-box;
  box-shadow: var(--sombra-2), 0 0 60px oklch(80% .12 85 / .08); }
.cic::before { content: ""; position: absolute; inset: -40% -20% auto; height: 70%; background: radial-gradient(60% 60% at 50% 50%, oklch(80% .12 85 / .12), transparent 70%); pointer-events: none; }
.cic-h2 { position: relative; font-family: var(--f-titulo); font-weight: 500; font-size: 1.7rem; letter-spacing: -.01em; }
.cic-h2::after { content: ""; display: block; width: 3.2rem; height: 2px; margin-top: .45rem; background: linear-gradient(90deg, #f6e7b8, #b8893a); }
.cic-cab .sub { margin-top: .5rem; }
.cic-cuerpo { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(17rem, .95fr); gap: 1.4rem; align-items: center; }
@media (max-width: 920px) { .cic-cuerpo { grid-template-columns: 1fr; } }
.cic-svg { width: 100%; height: auto; max-width: 36rem; margin: 0 auto; display: block; overflow: visible; }
.cic-anillo { fill: none; stroke: oklch(85% .09 85 / .18); stroke-width: 1; stroke-dasharray: 2 6; }
.cic-linea { fill: none; stroke: oklch(100% 0 0 / .08); stroke-width: 1.4; }
.cic-activa { fill: none; stroke: url(#cic-oro); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 7 9; }
.cic-activa-luz { fill: none; stroke: #d9b265; stroke-width: 9; stroke-opacity: .28; }
.cic-dot { fill: #fff3cf; stroke: #d9b265; stroke-width: 3; filter: drop-shadow(0 0 8px #e9cf8b) drop-shadow(0 0 18px #b8893a); }
@media (prefers-reduced-motion: no-preference) { .cic-activa { animation: cic-fluye 1.1s linear infinite; } .cic-logo { animation: cic-respira 5s ease-in-out infinite; transform-origin: 300px 288px; } }
@keyframes cic-fluye { to { stroke-dashoffset: -16; } }
@keyframes cic-respira { 50% { transform: scale(1.04); } }
.cic-logo { filter: drop-shadow(0 0 22px oklch(60% .2 285 / .55)); }
.cic-contador { font-family: var(--f-titulo); font-style: italic; font-size: 19px; fill: #f1dfa8; letter-spacing: .06em; }
.cic-nodo { cursor: pointer; outline: none; }
.cic-nodo .cic-halo { fill: var(--c); opacity: 0; transition: opacity var(--t-3); }
.cic-nodo .cic-aro { fill: none; stroke: oklch(100% 0 0 / .16); stroke-width: 1.2; transition: stroke var(--t-2), stroke-width var(--t-2); }
.cic-nodo .cic-fondo { fill: oklch(16% .04 280); stroke: var(--c); stroke-width: 1.6; stroke-opacity: .55; transition: fill var(--t-2); }
.cic-nodo .cic-letra { font-family: var(--f-titulo); font-size: 21px; font-weight: 500; fill: var(--texto-2); text-anchor: middle; transition: fill var(--t-2); }
.cic-nodo .cic-nombre { font-family: var(--f-texto); font-size: 14.5px; fill: var(--texto-3); transition: fill var(--t-2); pointer-events: none; }
.cic-nodo .cic-vida { stroke: oklch(16% .04 280); stroke-width: 2; } .cic-vida.e-ok { fill: var(--ok); } .cic-vida.e-aviso { fill: var(--aviso); } .cic-vida.e-caida { fill: var(--error); } .cic-vida.e-sin_senal { fill: var(--texto-3); }
.cic-nodo:hover .cic-aro, .cic-nodo:focus-visible .cic-aro { stroke: var(--c); }
.cic-nodo.activo .cic-halo { opacity: .22; }
.cic-nodo.activo .cic-aro { stroke: url(#cic-oro); stroke-width: 2.4; }
.cic-nodo.activo .cic-fondo { fill: var(--c); stroke-opacity: 1; }
.cic-nodo.activo .cic-letra { fill: #fff; } .cic-nodo.activo .cic-nombre { fill: #f6e7b8; font-weight: 500; }
@media (prefers-reduced-motion: no-preference) { .cic-nodo.origen .cic-halo { animation: cic-onda 2.2s ease-out infinite; } }
@keyframes cic-onda { from { transform: scale(.7); opacity: .4; } to { transform: scale(1.6); opacity: 0; } }
.cic-nodo .cic-halo { transform-box: fill-box; transform-origin: center; }
.cic-panel { display: grid; gap: .75rem; align-content: start; padding: 1.3rem 1.4rem; border-radius: 1.4rem; border: 1px solid oklch(85% .09 85 / .25); background: linear-gradient(160deg, oklch(22% .045 280 / .7), oklch(14% .035 278 / .7)); backdrop-filter: blur(14px); min-height: 19rem; animation: entra var(--t-3) var(--ease) both; }
.cic-k { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #d9b873; }
.cic-t { font-family: var(--f-titulo); font-weight: 500; font-size: 1.55rem; line-height: 1.15; letter-spacing: -.01em; }
.cic-ruta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.cic-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px; font-size: .85rem; font-weight: 500; color: var(--texto); border: 1px solid color-mix(in oklch, var(--c) 60%, transparent); background: color-mix(in oklch, var(--c) 22%, transparent); }
.cic-chip::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.cic-chip.suave { opacity: .8; }
.cic-flecha { display: inline-grid; place-items: center; color: #d9b873; } .cic-flecha svg { width: 1.2rem; height: 1.2rem; }
.cic-viaja { display: grid; gap: .15rem; padding: .7rem .9rem; border-radius: .9rem; border-left: 2px solid #d9b873; background: oklch(80% .12 85 / .07); font-size: .95rem; }
.cic-viaja span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #d9b873; }
.cic-que { color: var(--texto-2); line-height: 1.55; }
.cic-hoy { display: grid; gap: .35rem; padding-top: .3rem; border-top: 1px dashed oklch(85% .09 85 / .25); }
.cic-hoy small { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-3); }
.cic-real { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .88rem; color: var(--texto-2); } .cic-real b { color: var(--texto); font-weight: 500; }
.cic-ctrl { display: flex; align-items: center; gap: .5rem; margin-top: .3rem; }
.cic-ctrl .btn { border-color: oklch(85% .09 85 / .35); color: #f1dfa8; } .cic-ctrl .btn:hover { background: oklch(80% .12 85 / .12); }
.cic-ctrl .cic-auto { flex: 1; } .cic-ctrl .cic-auto.on { background: linear-gradient(135deg, #f8ebc0, #d9b265 55%, #b8893a); color: #2a1a02; border-color: transparent; }
.cic-pasos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; }
.cic-paso { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1px solid oklch(85% .09 85 / .25); background: transparent; color: var(--texto-3); font-size: .7rem; font-variant-numeric: tabular-nums; cursor: pointer; transition: background var(--t-1), color var(--t-1), transform var(--t-1) var(--ease); }
.cic-paso:hover { color: #f1dfa8; border-color: #d9b873; transform: translateY(-2px); }
.cic-paso.hecho { color: #d9b873; border-color: oklch(85% .09 85 / .45); }
.cic-paso.activo { background: linear-gradient(135deg, #f8ebc0, #d9b265 55%, #b8893a); color: #2a1a02; border-color: transparent; box-shadow: 0 0 0 5px oklch(80% .12 85 / .15), 0 0 24px oklch(80% .12 85 / .35); }
@media (max-width: 600px) { .cic { padding: 1.1rem 1rem; } .cic-panel { padding: 1.1rem; min-height: 0; } .cic-nodo .cic-nombre { font-size: 17px; } }

/* Ciclo: etapas, etiquetas de estado, vueltas y voz */
.cic-resumen { position: relative; display: flex; flex-wrap: wrap; gap: .5rem .9rem; }
.cic-est { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--texto-2); }
.cic-est i { width: .62rem; height: .62rem; border-radius: 50%; background: var(--e); box-shadow: 0 0 10px var(--e); }
.e-ok { --e: var(--ok); } .e-medias { --e: var(--aviso); } .e-falta { --e: oklch(68% .14 25); }
.cic-etapas { position: relative; display: flex; flex-wrap: wrap; gap: .5rem; }
.cic-et { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem .45rem .5rem; border-radius: 999px; border: 1px solid oklch(85% .09 85 / .25); background: transparent; color: var(--texto-2); cursor: pointer; font-size: .88rem; transition: background var(--t-2), color var(--t-2), border-color var(--t-2); }
.cic-et:hover { border-color: #d9b873; color: #f1dfa8; }
.cic-et-n { display: grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .35rem; border-radius: 999px; border: 1px solid #d9b873; font-family: var(--f-titulo); font-style: italic; font-weight: 500; color: #f1dfa8; font-size: .92rem; }
.cic-et.activo { background: oklch(80% .12 85 / .12); border-color: #d9b873; color: #f6e7b8; }
.cic-et.activo .cic-et-n { background: linear-gradient(135deg, #f8ebc0, #d9b265 55%, #b8893a); color: #2a1a02; border-color: transparent; }
.cic-vuelta { font-family: var(--f-texto); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; fill: var(--texto-3); }
.cic-eco { fill: none; stroke: #d9b265; stroke-width: 1.2; stroke-dasharray: 3 8; }
.cic-hoyest { display: grid; gap: .3rem; padding: .65rem .85rem; border-radius: .9rem; border: 1px solid color-mix(in oklch, var(--e) 40%, transparent); background: color-mix(in oklch, var(--e) 9%, transparent); }
.cic-hoyest small { color: var(--texto-2); font-size: .86rem; line-height: 1.45; }
.cic-hoyest .cic-est { font-weight: 500; color: var(--texto); }
.cic-paso { box-shadow: inset 0 -3px 0 var(--e); }
.cic-paso.activo { box-shadow: 0 0 0 5px oklch(80% .12 85 / .15), 0 0 24px oklch(80% .12 85 / .35); }
.cic-ctrl { flex-wrap: wrap; }
.cic-ctrl .cic-voz { display: inline-flex; align-items: center; gap: .4rem; } .cic-ctrl .cic-voz svg { width: 1.05rem; height: 1.05rem; }
.cic-ctrl .cic-voz.on { background: oklch(80% .12 85 / .16); border-color: #d9b873; }
.cic-panel.habla::after { content: ""; position: absolute; right: 1rem; top: 1rem; width: .6rem; height: .6rem; border-radius: 50%; background: #e9cf8b; box-shadow: 0 0 14px #d9b265; animation: nm-pulso 1.1s ease-out infinite; }
.cic-panel { position: relative; }
@media (max-width: 600px) { .cic-et span:not(.cic-et-n) { font-size: .8rem; } .cic-et { padding-right: .75rem; } }
