/* ==========================================================================
   Tema nuevo de las pantallas del app (se activa con TEMA_NUEVO en tema.js).
   Todo vive bajo html.tema-nuevo: con la llave apagada, styles.css queda igual que antes.
   NUNCA se aplica a las páginas de venta, a la vista previa ni a las páginas publicadas.
   ========================================================================== */

/* ---------- 1. Tokens: un solo tema ---------- */
html.tema-nuevo {
  /* Base: fondo casi negro y azules luminosos */
  --tn-fondo: #000305;
  --tn-azul-900: #002639;
  --tn-azul-700: #005a84;
  --tn-azul-600: #007aae;
  --tn-azul-500: #0096d5;
  --tn-azul-400: #41b7f5;
  --tn-azul-300: #99d2fe;
  --tn-brillo: #00a2e5;
  --tn-texto: #f0f6f9;
  --tn-texto-2: #b9c8ce;
  --tn-apagado: #8a9da5;
  /* Acción (botón principal): blanco que se vuelve azul claro, texto azul profundo (contraste > 10:1) */
  --tn-accion: linear-gradient(180deg, #ffffff, #a9dcff);
  --tn-accion-texto: #00253a;
  /* Colores de apoyo por sección */
  --tn-turquesa: #5fe0d0;
  --tn-violeta: #b9a3ff;
  --tn-ambar: #ffc85c;
  --tn-coral: #ff8a9a;
  --tn-verde: #5ee69a;
  --tn-color: var(--tn-azul-400);
  /* Superficies */
  --tn-vidrio: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .02)), rgb(3 12 17 / .78);
  --tn-vidrio-suave: rgb(255 255 255 / .035);
  --tn-borde: rgb(153 210 254 / .15);
  --tn-borde-fuerte: rgb(65 183 245 / .55);
  --tn-sombra: inset 0 1px 0 rgb(255 255 255 / .07), 0 30px 60px -30px rgb(0 0 0 / .85);
  --tn-radio: 18px;
  /* Curvas */
  --tn-curva: cubic-bezier(.2, .7, .2, 1);
  --tn-curva-salida: cubic-bezier(.16, 1, .3, 1);
  --tn-curva-mola: cubic-bezier(.34, 1.4, .5, 1);
  --tn-horizonte-op: .42;

  /* Los tokens de styles.css pasan al tema oscuro (así todo lo que ya los usa cambia solo) */
  --bg: #061219;
  --bg-alt: rgb(255 255 255 / .04);
  --text: var(--tn-texto);
  --muted: var(--tn-texto-2);
  --primary: var(--tn-azul-400);
  --primary-dark: var(--tn-azul-300);
  --primary-soft: rgb(65 183 245 / .12);
  --accent: var(--tn-ambar);
  --border: var(--tn-borde);
  --radius: var(--tn-radio);
  --shadow: var(--tn-sombra);

  color-scheme: dark;
  background: var(--tn-fondo);
}
html.tema-nuevo[data-seccion="panel"], html.tema-nuevo[data-seccion="oferta"] { --tn-color: var(--tn-turquesa); }
html.tema-nuevo[data-seccion="editor"] { --tn-color: var(--tn-violeta); }
html.tema-nuevo[data-seccion="cuenta"] { --tn-color: var(--tn-ambar); }
html.tema-nuevo[data-seccion="admin"] { --tn-color: var(--tn-coral); }
html.tema-nuevo[data-seccion="inicio"] { --tn-horizonte-op: .8; }

html.tema-nuevo body {
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;
  background: transparent;
  color: var(--tn-texto);
  overflow-x: clip;
}
html.tema-nuevo ::selection { background: rgb(65 183 245 / .38); color: #fff; }
/* Las vistas previas de las páginas de venta se ven exactamente como antes */
html.tema-nuevo iframe { color-scheme: normal; }
html.tema-nuevo :focus-visible { outline: 2px solid var(--tn-azul-300); outline-offset: 3px; }
html.tema-nuevo a { text-underline-offset: 3px; }

/* ---------- 2. Fondo: grade que se apaga en los bordes, estrellas, horizonte que respira, foco del mouse ---------- */
.tn-fondo, .tn-fondo i { position: fixed; inset: 0; pointer-events: none; }
.tn-fondo { z-index: -1; overflow: hidden; contain: strict; }
html:not(.tema-nuevo) .tn-fondo, html:not(.tema-nuevo) .tn-cursor { display: none; }
.tn-grade {
  inset: -40px !important;
  background-image: linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  will-change: transform;
}
.tn-estrellas {
  inset: -60px !important;
  opacity: .5;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 140px 90px, #cfe6ff, transparent),
    radial-gradient(1.5px 1.5px at 260px 200px, #fff, transparent), radial-gradient(1px 1px at 90px 260px, #b9dcff, transparent);
  background-size: 311px 283px, 373px 337px, 419px 401px, 293px 359px;
  will-change: transform;
}
.tn-fondo .tn-horizonte {
  inset: auto;
  left: 50%;
  bottom: -64vh;
  width: max(1500px, 170vw);
  height: 100vh;
  opacity: var(--tn-horizonte-op);
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(153 210 254 / .7), rgb(0 150 213 / .55) 22%, rgb(0 90 132 / .28) 46%, rgb(0 38 57 / .16) 66%, transparent);
  animation: tn-horizonte-surge 2.4s var(--tn-curva-salida) .1s backwards, tn-horizonte-respira 9s ease-in-out 2.5s infinite;
}
@keyframes tn-horizonte-surge { from { opacity: 0; transform: translate(-50%, 18vh) scaleX(.85); } }
@keyframes tn-horizonte-respira { 50% { opacity: calc(var(--tn-horizonte-op) * .8); transform: translateX(-50%) scale(1.03); } }
.tn-fondo .tn-foco {
  inset: auto;
  left: -380px;
  top: -380px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(0 162 229 / .11), rgb(0 162 229 / .04) 55%, transparent);
  opacity: 0;
  transition: opacity .6s var(--tn-curva);
  will-change: transform;
}
html.tn-mouse .tn-foco { opacity: 1; }
/* Halo suave del cursor: solo con mouse */
.tn-cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.tema-nuevo .tn-cursor {
    display: block;
    position: fixed;
    left: -18px;
    top: -18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    border: 1px solid rgb(153 210 254 / .45);
    background: radial-gradient(circle, rgb(65 183 245 / .16), transparent 70%);
    box-shadow: 0 0 24px -4px rgb(0 162 229 / .5);
    opacity: 0;
    transition: opacity .3s, scale .35s var(--tn-curva-mola);
    will-change: transform;
  }
  html.tn-mouse .tn-cursor { opacity: 1; }
  html.tn-mouse .tn-cursor.sobre { scale: 1.6; }
}
@media (max-width: 640px) {
  /* Celular: menos capas de fondo */
  .tn-estrellas, .tn-fondo .tn-foco { display: none; }
  .tn-grade { background-size: 48px 48px; }
}

/* ---------- 3. Movimiento: entradas en cascada saliendo del desenfoque ---------- */
/* Empieza casi invisible (no en 0) para que el navegador cuente la pintura del contenido principal al instante (LCP) */
@keyframes tn-surge { from { opacity: .02; transform: translateY(14px); filter: blur(10px); } }
@keyframes tn-surge-lcp { from { opacity: .02; transform: translateY(14px); filter: blur(10px); } }
@keyframes tn-entra-der { from { opacity: 0; transform: translateX(32px); filter: blur(8px); } }
@keyframes tn-entra-izq { from { opacity: 0; transform: translateX(-32px); filter: blur(8px); } }
@keyframes tn-sale-izq { to { opacity: 0; transform: translateX(-32px); filter: blur(8px); } }
@keyframes tn-sale-der { to { opacity: 0; transform: translateX(32px); filter: blur(8px); } }
@keyframes tn-raya { 0% { transform: translateX(0) skewX(-18deg); } 55%, 100% { transform: translateX(520%) skewX(-18deg); } }
@keyframes tn-brillo-pasa { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes girar { to { transform: rotate(360deg); } }

html.tema-nuevo .tn-surge { animation: tn-surge 1s var(--tn-curva-salida) backwards; }
html.tema-nuevo .tn-d1 { animation-delay: .1s; }
html.tema-nuevo .tn-d2 { animation-delay: .25s; }
html.tema-nuevo .tn-d3 { animation-delay: .4s; }
html.tema-nuevo .tn-d4 { animation-delay: .55s; }
html.tema-nuevo .tn-d5 { animation-delay: .75s; }
/* Títulos palabra por palabra (tema-nuevo.js parte el texto en .tn-p) */
html.tema-nuevo .tn-p { display: inline-block; animation: tn-surge .9s var(--tn-curva-salida) backwards; animation-delay: calc(var(--tn-base, 80ms) + var(--d, 0ms)); }
html.tema-nuevo .ini-titulo .tn-p { animation-name: tn-surge-lcp; }
/* Pantallas del app: el contenido entra en cascada al abrir */
html.tema-nuevo .app > .container > :not(.pregunta):not(#cargando):not(.quiz-barra):not(.quiz-progreso),
html.tema-nuevo .editor-lateral > * { animation: tn-surge .8s var(--tn-curva-salida) backwards; }
html.tema-nuevo .app > .container > :nth-child(2), html.tema-nuevo .editor-lateral > :nth-child(2) { animation-delay: .08s; }
html.tema-nuevo .app > .container > :nth-child(3), html.tema-nuevo .editor-lateral > :nth-child(3) { animation-delay: .16s; }
html.tema-nuevo .app > .container > :nth-child(4), html.tema-nuevo .editor-lateral > :nth-child(4) { animation-delay: .24s; }
html.tema-nuevo .app > .container > :nth-child(n+5), html.tema-nuevo .editor-lateral > :nth-child(n+5) { animation-delay: .32s; }
/* Tarjetas nuevas (ideas, ofertas, nombres…): entran una vez, la primera vez que aparecen */
html.tema-nuevo .tn-nueva { animation: tn-surge .7s var(--tn-curva-salida) backwards; animation-delay: var(--tn-retraso, 0ms); }
/* Cuestionario: la pregunta nueva entra y la anterior sale, con desenfoque y desplazamiento */
html.tema-nuevo .tn-entra { animation: tn-entra-der .6s var(--tn-curva-salida) .08s backwards; }
html.tema-nuevo .tn-entra.tn-atras { animation-name: tn-entra-izq; }
html.tema-nuevo .tn-sale { position: absolute; pointer-events: none; margin: 0; animation: tn-sale-izq .38s var(--tn-curva) forwards; }
html.tema-nuevo .tn-sale.tn-atras { animation-name: tn-sale-der; }
/* Revelar al bajar (inicio) */
html.tema-nuevo .tn-revela { opacity: 0; transform: translateY(18px); filter: blur(8px); transition: opacity .8s var(--tn-curva-salida), transform .8s var(--tn-curva-salida), filter .8s var(--tn-curva-salida); }
html.tema-nuevo .tn-revela.tn-visible { opacity: 1; transform: none; filter: none; }
/* Animaciones continuas: se pausan fuera de la pantalla */
html.tema-nuevo .tn-pausa, html.tema-nuevo .tn-pausa *, html.tema-nuevo .tn-pausa::after, html.tema-nuevo .tn-pausa *::after { animation-play-state: paused !important; }

/* ---------- 4. Tipografía ---------- */
html.tema-nuevo :is(h1, h2, h3, .app-title, .section-title) { color: var(--tn-texto); }
html.tema-nuevo .app-title { font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
html.tema-nuevo .app-sub, html.tema-nuevo .ayuda, html.tema-nuevo .nota { color: var(--tn-texto-2); }
html.tema-nuevo .section-title {
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
  font-size: clamp(1.8rem, 4.2vw, 3.1rem);
}
html.tema-nuevo .highlight, html.tema-nuevo .ini-titulo em {
  font-style: normal;
  background: linear-gradient(100deg, var(--tn-azul-300), var(--tn-azul-400) 35%, var(--tn-azul-500) 55%, #e6f5ff 62%, var(--tn-azul-400) 72%, var(--tn-azul-300));
  background-size: 220% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgb(0 162 229 / .45));
  display: inline-block;
  animation: tn-surge-lcp .9s var(--tn-curva-salida) var(--tn-d-em, .1s) backwards, tn-brillo-pasa 2.4s var(--tn-curva) 1.4s 1 backwards;
}
/* Rótulo pequeño con "punto de radar" */
html.tema-nuevo .tn-kick, html.tema-nuevo .pill, html.tema-nuevo .quiz-paso {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--tn-color);
  background: none;
  padding: 0;
}
html.tema-nuevo .tn-kick::before, html.tema-nuevo .pill::before {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tn-azul-300) 0 2px, transparent 2.6px), conic-gradient(from 210deg, var(--tn-azul-700), var(--tn-color), var(--tn-azul-300), var(--tn-azul-700));
  -webkit-mask: radial-gradient(circle, #000 0 2.4px, transparent 2.8px 3.8px, #000 4.2px);
  mask: radial-gradient(circle, #000 0 2.4px, transparent 2.8px 3.8px, #000 4.2px);
}
html.tema-nuevo .quiz-paso { justify-content: center; letter-spacing: .2em; }

/* ---------- 5. Barra de arriba (vidrio) ---------- */
html.tema-nuevo .nav, html.tema-nuevo .editor-barra {
  background: rgb(0 6 10 / .58);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgb(153 210 254 / .1);
}
html.tema-nuevo .logo { font-weight: 800; letter-spacing: -.01em; color: var(--tn-texto); }
html.tema-nuevo .logo-mark {
  border-radius: 10px;
  color: var(--tn-accion-texto);
  background: var(--tn-accion);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .35), 0 0 22px -4px rgb(0 162 229 / .8);
  font-weight: 800;
}
html.tema-nuevo .nav-links a, html.tema-nuevo .nav-entrar, html.tema-nuevo .nav-usuario { color: var(--tn-texto-2); }
html.tema-nuevo .nav-links a:hover, html.tema-nuevo .nav-entrar:hover { color: #fff; }
html.tema-nuevo .nav-usuario a { color: var(--tn-texto); }
html.tema-nuevo .nav-usuario a:hover { color: var(--tn-azul-300); }
html.tema-nuevo .nav-usuario a.nav-alerta { color: var(--tn-ambar); }
html.tema-nuevo .nav-usuario a, html.tema-nuevo .nav-usuario .btn-link, html.tema-nuevo .nav-entrar, html.tema-nuevo .nav-links a, html.tema-nuevo .editor-volver {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---------- 6. Botones: luz, brillo que pasa, flecha que anda, magnéticos ---------- */
html.tema-nuevo .btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--tn-accion-texto);
  background: var(--tn-accion);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .45), 0 12px 28px -12px rgb(0 0 0 / .8), 0 0 34px -10px rgb(0 162 229 / .85);
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0);
  transition: transform .4s var(--tn-curva), box-shadow .35s var(--tn-curva), filter .35s var(--tn-curva), opacity .2s;
}
html.tema-nuevo .btn:hover {
  background: var(--tn-accion);
  filter: brightness(1.06);
  transform: translate3d(var(--tx, 0px), calc(var(--ty, 0px) - 1px), 0);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .7), 0 16px 34px -12px rgb(0 0 0 / .8), 0 0 46px -8px rgb(0 162 229 / 1);
}
html.tema-nuevo .btn:active { transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(.98); }
html.tema-nuevo .btn-block { display: flex; width: 100%; }
html.tema-nuevo .btn-large { padding: 17px 34px; font-size: 1.08rem; }
html.tema-nuevo .btn-small { padding: 8px 18px; }
html.tema-nuevo .btn-outline, html.tema-nuevo .btn-outline:hover {
  color: var(--tn-texto);
  background: linear-gradient(180deg, rgb(255 255 255 / .08), rgb(255 255 255 / .03));
  box-shadow: inset 0 0 0 1px rgb(153 210 254 / .35), 0 10px 26px -14px rgb(0 0 0 / .8);
}
html.tema-nuevo .btn-outline:hover { box-shadow: inset 0 0 0 1px rgb(153 210 254 / .75), 0 0 30px -10px rgb(0 162 229 / .9); filter: none; }
html.tema-nuevo .btn-light, html.tema-nuevo .btn-light:hover { color: var(--tn-accion-texto); background: var(--tn-accion); }
html.tema-nuevo .btn:disabled { opacity: .42; filter: grayscale(.4); transform: none; }
/* Raya de luz: pasa al pasar el mouse; en las llamadas grandes pasa sola de vez en cuando */
html.tema-nuevo .btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 26%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / .85), transparent);
  transform: translateX(-130%) skewX(-18deg);
}
html.tema-nuevo .btn-outline::after { background: linear-gradient(100deg, transparent, rgb(153 210 254 / .35), transparent); }
html.tema-nuevo .btn:hover:not(:disabled)::after { animation: tn-raya .95s var(--tn-curva); }
html.tema-nuevo :is(.btn-large, .tn-cta)::after { animation: tn-raya 4.2s var(--tn-curva) 1.4s infinite; }
/* Flecha que anda en el hover (botones que llevan al paso siguiente) */
html.tema-nuevo :is(.btn[type="submit"], .btn-large, .tn-cta, a.btn[href^="/registro"], a.btn[href="/crear"], .idea-acciones .btn, #bonos-continuar, #testimonios-continuar, .enlace-editor)::before {
  content: "";
  order: 2;
  flex: none;
  width: 1.05em;
  height: 1.05em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s var(--tn-curva);
}
html.tema-nuevo .btn:hover:not(:disabled)::before { transform: translateX(4px); }
html.tema-nuevo .btn small { opacity: .75; font-weight: 600; }
/* Enlaces con forma de botón y botones pequeños */
html.tema-nuevo .btn-link, html.tema-nuevo button.btn-link { color: var(--tn-azul-300); font-weight: 600; transition: color .2s; }
html.tema-nuevo .btn-link:hover { color: #fff; text-decoration: underline; }
html.tema-nuevo :is(.btn-mini, .chip, .pestana, .segmento, .mercado, .paleta, .motivo) {
  background: linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / .025));
  border: 1px solid rgb(153 210 254 / .22);
  color: var(--tn-texto);
  transition: border-color .25s, box-shadow .25s, color .25s, transform .3s var(--tn-curva);
}
html.tema-nuevo :is(.btn-mini, .chip, .pestana, .segmento, .mercado, .paleta):hover {
  border-color: rgb(153 210 254 / .6);
  color: #fff;
  box-shadow: 0 0 22px -8px rgb(0 162 229 / .9);
}
html.tema-nuevo :is(.pestana.activa, .segmento.activo, .mercado.activa) {
  color: var(--tn-accion-texto);
  background: var(--tn-accion);
  border-color: transparent;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .4), 0 0 26px -8px rgb(0 162 229 / .95);
}
html.tema-nuevo .btn-mini-peligro, html.tema-nuevo .btn-peligro, html.tema-nuevo .btn-quitar { color: var(--tn-coral) !important; }
html.tema-nuevo .btn-mini-peligro:hover { border-color: var(--tn-coral); color: var(--tn-coral); box-shadow: 0 0 22px -8px rgb(255 90 114 / .8); }
html.tema-nuevo .btn-icono { color: var(--tn-texto); border-radius: 10px; }
html.tema-nuevo .btn-icono:hover:not(:disabled) { background: rgb(255 255 255 / .08); }
@media (pointer: coarse) {
  html.tema-nuevo :is(.btn-mini, .chip, .pestana, .segmento, .btn-icono) { min-height: 44px; min-width: 44px; }
  html.tema-nuevo button.btn-link { min-height: 44px; }
}

/* ---------- 7. Campos en vidrio, con anillo de luz en el foco ---------- */
html.tema-nuevo :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"]), textarea, select) {
  color: var(--tn-texto);
  background: linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / .03));
  border: 1px solid rgb(65 183 245 / .3);
  border-radius: 14px;
  min-height: 44px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06);
  transition: border-color .3s, box-shadow .3s;
}
html.tema-nuevo :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"]), textarea, select):focus {
  outline: none;
  border-color: rgb(65 183 245 / .8);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 0 0 3px rgb(0 162 229 / .24), 0 0 26px -6px rgb(0 162 229 / .7);
}
html.tema-nuevo ::placeholder { color: #7d929a; opacity: 1; }
html.tema-nuevo select option { background: #06131a; color: var(--tn-texto); }
html.tema-nuevo :is(input[type="checkbox"], input[type="radio"], input[type="range"]) { accent-color: var(--tn-azul-400); }
html.tema-nuevo .form-cuenta label, html.tema-nuevo .campo, html.tema-nuevo .form-liberar legend { color: var(--tn-texto); }
html.tema-nuevo .form-cuenta small { color: var(--tn-texto-2); }
/* Nicho: píldora de vidrio con el botón adentro (como en la referencia) */
@media (min-width: 641px) {
  html.tema-nuevo .nicho-form {
    position: relative;
    gap: 0;
    padding: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / .03));
    border: 1px solid rgb(65 183 245 / .32);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 20px 50px -24px rgb(0 0 0 / .9);
    transition: border-color .3s, box-shadow .3s;
  }
  html.tema-nuevo .nicho-form:focus-within { border-color: rgb(65 183 245 / .75); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 0 0 3px rgb(0 162 229 / .22), 0 20px 50px -24px rgb(0 0 0 / .9); }
  html.tema-nuevo .nicho-form input, html.tema-nuevo .nicho-form input:focus { border: 0; background: none; box-shadow: none; padding-left: 22px; font-weight: 600; letter-spacing: .02em; }
}
/* Dirección de la página publicada: el contenedor es el campo */
html.tema-nuevo .direccion { background: linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / .03)); border: 1px solid rgb(65 183 245 / .3); border-radius: 14px; transition: border-color .3s, box-shadow .3s; }
html.tema-nuevo .direccion:focus-within { border-color: rgb(65 183 245 / .8); box-shadow: 0 0 0 3px rgb(0 162 229 / .24); }
html.tema-nuevo .direccion input, html.tema-nuevo .direccion input:focus { background: none; box-shadow: none; min-height: 36px; }
html.tema-nuevo .direccion-estado.ok { color: var(--tn-verde); }
html.tema-nuevo .direccion-estado.mal { color: var(--tn-coral); }

/* ---------- 8. Tarjetas oscuras: vidrio, cantoneras que se encienden, luz que sigue el mouse, inclinación 3D ---------- */
html.tema-nuevo :is(.panel, .form-cuenta, .quiz-form, .oferta-resumen, .vacio, .legal, .card, .plan, .steps li, .opcion-grande, .oferta-tarjeta, .idea, .nombre-opcion, .modelo, .paquete, .mockup-tarjeta, .tarjeta-plegable, .editor-ia) {
  position: relative;
  background: var(--tn-vidrio);
  border: 1px solid var(--tn-borde);
  border-radius: var(--tn-radio);
  box-shadow: var(--tn-sombra);
  color: var(--tn-texto);
}
/* Cantoneras: arriba a la izquierda y abajo a la derecha; se encienden al aparecer (.tn-acesa) */
html.tema-nuevo :is(.panel, .form-cuenta, .quiz-form, .oferta-resumen, .vacio, .card, .plan, .steps li, .opcion-grande, .oferta-tarjeta, .idea, .nombre-opcion, .modelo, .paquete, .mockup-tarjeta, .tn-tarjeta)::before {
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  border-radius: calc(var(--tn-radio) - 8px);
  background:
    linear-gradient(var(--tn-color), var(--tn-color)) left top / 16px 2px no-repeat,
    linear-gradient(var(--tn-color), var(--tn-color)) left top / 2px 16px no-repeat,
    linear-gradient(var(--tn-color), var(--tn-color)) right bottom / 16px 2px no-repeat,
    linear-gradient(var(--tn-color), var(--tn-color)) right bottom / 2px 16px no-repeat;
  opacity: .22;
  transition: opacity .9s var(--tn-curva), filter .9s var(--tn-curva);
}
html.tema-nuevo .tn-acesa.tn-acesa::before { opacity: 1; filter: drop-shadow(0 0 5px var(--tn-color)); }
/* Luz que sigue el mouse dentro de la tarjeta (tema-nuevo.js pone --mx y --my) */
html.tema-nuevo :is(.card, .plan, .steps li, .opcion-grande, .oferta-tarjeta, .idea, .nombre-opcion, .modelo, .paquete, .saldo > div, .tn-tarjeta)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(65 183 245 / .13), transparent 60%);
  opacity: 0;
  transition: opacity .4s var(--tn-curva);
}
html.tema-nuevo .tn-sobre.tn-sobre::after { opacity: 1; }
html.tema-nuevo .tn-inclina { transition: transform .6s var(--tn-curva), border-color .3s, box-shadow .3s; will-change: transform; }
html.tema-nuevo .tn-inclina.tn-sobre { transition: transform .14s linear, border-color .3s, box-shadow .3s; }
html.tema-nuevo :is(.card, .plan, .steps li, .opcion-grande:not(:disabled), .oferta-tarjeta, .nombre-opcion, .modelo, .paquete, .idea).tn-sobre {
  border-color: color-mix(in srgb, var(--tn-color) 55%, transparent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .09), 0 0 0 1px color-mix(in srgb, var(--tn-color) 25%, transparent), 0 28px 60px -26px rgb(0 0 0 / .9), 0 0 44px -16px var(--tn-color);
}
html.tema-nuevo .tn-toque { transition: transform .18s var(--tn-curva); }

/* ---------- 9. Avisos y estados ---------- */
html.tema-nuevo .error { background: rgb(255 90 114 / .1); color: #ffc2cb; border: 1px solid rgb(255 90 114 / .4); border-radius: 14px; }
html.tema-nuevo .aviso, html.tema-nuevo .aviso-sensible, html.tema-nuevo .borrador-legal, html.tema-nuevo .respuesta-ia.aviso {
  background: rgb(255 200 92 / .09);
  color: #ffe1a3 !important;
  border: 1px solid rgb(255 200 92 / .32);
  border-radius: 12px;
}
html.tema-nuevo .aviso-editor { background: rgb(65 183 245 / .09); color: #cfe9ff; border: 1px solid rgb(65 183 245 / .35); border-radius: 14px; }
html.tema-nuevo .aviso-editor a, html.tema-nuevo .cuenta-alt a, html.tema-nuevo .acepto a, html.tema-nuevo .enlace a { color: var(--tn-azul-300); }
html.tema-nuevo .publicada, html.tema-nuevo .respuesta-ia.ok { background: rgb(94 230 154 / .08); border: 1px solid rgb(94 230 154 / .32); color: #c8f7dc; border-radius: 14px; }
html.tema-nuevo .publicada-estado { color: var(--tn-verde); }
html.tema-nuevo .publicada .btn-link { color: var(--tn-coral); }
html.tema-nuevo .estado { background: rgb(255 255 255 / .05); color: var(--tn-texto-2); border-color: var(--tn-borde); }
html.tema-nuevo .estado-on { background: rgb(94 230 154 / .1); color: var(--tn-verde); border-color: rgb(94 230 154 / .4); box-shadow: 0 0 18px -6px rgb(94 230 154 / .7); }
html.tema-nuevo .estado-retirada { background: rgb(255 90 114 / .1); color: var(--tn-coral); border-color: rgb(255 90 114 / .4); }
html.tema-nuevo .error-chico, html.tema-nuevo .aviso-tamano { color: var(--tn-coral); }
html.tema-nuevo .aviso-tamano { color: var(--tn-ambar); }
html.tema-nuevo .spinner { border-color: rgb(65 183 245 / .15); border-top-color: var(--tn-azul-300); box-shadow: 0 0 30px -6px rgb(0 162 229 / .8); }
html.tema-nuevo .spinner-mini, html.tema-nuevo .cargando-mini::before { border-color: rgb(65 183 245 / .2); border-top-color: var(--tn-azul-300); }
html.tema-nuevo .cargando { color: var(--tn-texto-2); }
html.tema-nuevo .cargando p { color: var(--tn-texto); }

/* ---------- 10. Inicio (página de presentación nueva: public/inicio.html) ---------- */
html.tema-nuevo .nav-links { gap: 30px; }
.ini-hero { padding: clamp(40px, 7vh, 80px) 0 24px; text-align: center; }
.ini-hero .tn-kick { margin-bottom: 22px; }
.ini-titulo {
  max-width: 19ch;
  margin: 0 auto;
  font-size: clamp(2.4rem, 4.6vw, 4.6rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
}
.ini-lead { max-width: 620px; margin: 22px auto 30px; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--tn-texto-2); }
html.tema-nuevo .hero-cta { gap: 14px; }
/* Rueda 3D con los 6 modelos */
.ini-palco {
  --h: clamp(240px, 38vh, 360px);
  --w: calc(var(--h) * .61);
  --raio: calc(var(--w) * 1.62);
  position: relative;
  /* De borde a borde, cortando lo que sale de la pantalla (sin barra horizontal) */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  height: calc(var(--h) * 1.32 + 30px);
  margin-top: clamp(4px, 2vh, 24px);
  perspective: 1600px;
  perspective-origin: 50% 35%;
  display: grid;
  place-items: center;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.ini-palco:focus-visible { outline: 2px solid var(--tn-azul-300); outline-offset: 6px; border-radius: 24px; }
.ini-palco.arrastrando { cursor: grabbing; }
.ini-palco::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: min(900px, 120%);
  height: 70px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(0 162 229 / .35), rgb(0 38 57 / .3) 55%, transparent);
  pointer-events: none;
}
.ini-rueda { position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d; will-change: transform; transform: rotateX(-5deg); }
.ini-carta {
  --cor: var(--tn-azul-400);
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 18px;
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(calc(var(--i) * 60deg)) translateZ(var(--raio));
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--cor) 14%, transparent), transparent 65%), linear-gradient(180deg, #08161b, #01070b);
  border: 1px solid color-mix(in srgb, var(--cor) 32%, rgb(255 255 255 / .08));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 30px 60px -24px rgb(0 0 0 / .8);
}
.ini-carta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgb(255 255 255 / .03) 0 1px, transparent 1px 18px), repeating-linear-gradient(90deg, rgb(255 255 255 / .03) 0 1px, transparent 1px 18px);
}
.ini-carta .canto { position: absolute; width: 16px; height: 16px; border: 0 solid var(--cor); z-index: 2; opacity: .35; transition: opacity .8s var(--tn-curva); }
.ini-carta .canto.a { top: 6px; left: 6px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 6px; }
.ini-carta .canto.b { bottom: 6px; right: 6px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 6px; }
.ini-carta.acesa .canto { opacity: 1; filter: drop-shadow(0 0 4px var(--cor)); }
.ini-carta img { position: relative; flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top; border-radius: 10px; box-shadow: 0 0 0 1px rgb(255 255 255 / .1); }
.ini-carta figcaption { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 4px; }
.ini-carta b { font-weight: 800; font-size: .95rem; letter-spacing: -.01em; color: var(--tn-texto); }
.ini-carta small { font-size: 9.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--cor); }
.ini-capa { position: absolute; inset: 0; border-radius: inherit; background: #01070b; pointer-events: none; opacity: 0; z-index: 3; }
.ini-dica { margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--tn-apagado); }
.ini-dica .tactil { display: none; }
@media (hover: none) { .ini-dica .raton { display: none; } .ini-dica .tactil { display: inline; } }
@media (max-width: 640px) {
  .ini-palco { --h: clamp(220px, 34vh, 280px); --raio: calc(var(--w) * 1.12); }
  .ini-titulo { font-size: clamp(2.3rem, 11vw, 3.2rem); }
}
/* Secciones del inicio */
html.tema-nuevo .section { padding: clamp(64px, 10vh, 112px) 0; }
html.tema-nuevo .section-alt { background: linear-gradient(180deg, transparent, rgb(0 38 57 / .25) 30%, rgb(0 38 57 / .25) 70%, transparent); }
.ini-cabeza { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ini-cabeza .section-sub, html.tema-nuevo .section-sub { color: var(--tn-texto-2); }
html.tema-nuevo .steps li { padding: 26px 22px; }
html.tema-nuevo .step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--tn-accion-texto);
  background: var(--tn-accion);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .35), 0 0 26px -6px rgb(0 162 229 / .9);
  font-weight: 800;
}
html.tema-nuevo .steps h3, html.tema-nuevo .card h3 { color: var(--tn-texto); letter-spacing: -.01em; }
html.tema-nuevo .steps p, html.tema-nuevo .card p { color: var(--tn-texto-2); }
.ini-icono {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  color: var(--cor, var(--tn-azul-300));
  background: color-mix(in srgb, var(--cor, var(--tn-azul-400)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--cor, var(--tn-azul-400)) 35%, transparent);
  box-shadow: 0 0 30px -10px var(--cor, var(--tn-azul-400));
}
.ini-icono svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html.tema-nuevo .card { --tn-color: var(--cor, var(--tn-azul-400)); padding: 30px 28px; }
/* Planes */
html.tema-nuevo .plan { padding: 38px 32px; }
html.tema-nuevo .plan-featured {
  border-color: rgb(65 183 245 / .55);
  background: radial-gradient(120% 60% at 50% 0%, rgb(0 162 229 / .16), transparent 60%), var(--tn-vidrio);
  box-shadow: 0 0 0 1px rgb(65 183 245 / .25), 0 30px 70px -28px rgb(0 0 0 / .9), 0 0 70px -24px rgb(0 162 229 / .9);
}
html.tema-nuevo .badge { background: linear-gradient(180deg, #ffe2a6, var(--tn-ambar)); color: #2a1a00; box-shadow: 0 0 24px -6px rgb(255 200 92 / .8); letter-spacing: .04em; z-index: 2; }
html.tema-nuevo .plan-desc, html.tema-nuevo .period, html.tema-nuevo .currency { color: var(--tn-texto-2); }
html.tema-nuevo .price { background: linear-gradient(180deg, #fff, var(--tn-azul-300)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
html.tema-nuevo .price .currency, html.tema-nuevo .price .period { -webkit-text-fill-color: var(--tn-texto-2); }
html.tema-nuevo :is(.features, .check) li::before { color: var(--tn-azul-300); text-shadow: 0 0 10px rgb(0 162 229 / .9); }
html.tema-nuevo .plans-note { color: var(--tn-texto-2); }
/* Llamada final y pie */
html.tema-nuevo .cta-final {
  position: relative;
  overflow: hidden;
  background: radial-gradient(60% 120% at 50% 120%, rgb(0 162 229 / .45), rgb(0 90 132 / .2) 45%, transparent 75%);
  border-top: 1px solid rgb(153 210 254 / .1);
  padding: clamp(80px, 14vh, 140px) 0;
}
html.tema-nuevo .cta-final h2 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; max-width: 16ch; margin: 0 auto 34px; }
html.tema-nuevo .footer { color: var(--tn-apagado); border-top: 1px solid rgb(153 210 254 / .1); }
html.tema-nuevo .footer a { color: var(--tn-texto-2); }

/* ---------- 11. App: fondo, panel, oferta ---------- */
html.tema-nuevo .app, html.tema-nuevo .editor-body { background: transparent; }
html.tema-nuevo .app { padding-top: 56px; }
html.tema-nuevo .progress li { background: rgb(255 255 255 / .04); border-color: var(--tn-borde); color: var(--tn-texto-2); }
html.tema-nuevo .progress li.active { background: rgb(95 224 208 / .12); border-color: rgb(95 224 208 / .5); color: var(--tn-turquesa); box-shadow: 0 0 20px -8px var(--tn-turquesa); }
html.tema-nuevo .oferta-tarjeta { padding: 22px 26px; }
html.tema-nuevo .oferta-info h3 { color: var(--tn-texto); }
html.tema-nuevo .oferta-info p { color: var(--tn-texto-2); }
html.tema-nuevo .vacio .icon { filter: drop-shadow(0 0 18px rgb(255 200 92 / .6)); }
html.tema-nuevo .vacio p { color: var(--tn-texto-2); }
html.tema-nuevo .oferta-precio { background: rgb(65 183 245 / .08); border: 1px solid rgb(65 183 245 / .25); }
html.tema-nuevo .oferta-precio strong, html.tema-nuevo .item-valor { color: var(--tn-azul-300) !important; }
html.tema-nuevo .item p, html.tema-nuevo .campos dd, html.tema-nuevo .oferta-promesa { color: var(--tn-texto-2); }
html.tema-nuevo .campos dt { color: var(--tn-color); letter-spacing: .02em; }
html.tema-nuevo .fila-item { background: rgb(255 255 255 / .035); border: 1px solid rgb(153 210 254 / .1); }
html.tema-nuevo .barra-deshacer { background: rgb(65 183 245 / .1); color: var(--tn-azul-300); border: 1px solid rgb(65 183 245 / .3); }
html.tema-nuevo .panel h2 { color: var(--tn-texto); letter-spacing: -.01em; }
html.tema-nuevo .modelo-marco { background: #0b1820; box-shadow: 0 0 0 1px rgb(255 255 255 / .06); }
html.tema-nuevo .modelo.seleccionado { border-color: var(--tn-borde-fuerte); box-shadow: 0 0 0 1px rgb(65 183 245 / .35), 0 0 44px -14px rgb(0 162 229 / .95); }
html.tema-nuevo .modelo.seleccionado .modelo-nombre::after { color: var(--tn-azul-300); }
/* Los mockups (transparentes, pensados para la página) se ven sobre un fondo claro, como en la página */
html.tema-nuevo .mockup-marco { background: #eef3f6; }
html.tema-nuevo .mockup-texto { color: var(--tn-texto-2); }
html.tema-nuevo .direccion-prefijo, html.tema-nuevo .direccion-dominio, html.tema-nuevo .direccion-barra { color: var(--tn-texto-2); }

/* ---------- 12. Cuestionario ---------- */
html.tema-nuevo .quiz { position: relative; }
html.tema-nuevo .quiz-barra { color: var(--tn-texto-2); }
html.tema-nuevo .quiz-progreso { position: relative; height: 4px; overflow: visible; background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .03); }
html.tema-nuevo .quiz-progreso div {
  position: relative;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tn-azul-700), var(--tn-azul-500) 45%, var(--tn-azul-300));
  box-shadow: 0 0 14px rgb(0 162 229 / .9), 0 0 4px rgb(153 210 254 / .9);
  transition: width .7s var(--tn-curva-salida);
}
html.tema-nuevo .quiz-progreso div::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 3px rgb(65 183 245 / .9);
}
html.tema-nuevo .pregunta .app-title { font-size: clamp(1.9rem, 4.6vw, 3rem); }
html.tema-nuevo .opcion-grande { padding: 30px; gap: 8px; }
html.tema-nuevo .opcion-grande .icon { font-size: 1.9rem; }
html.tema-nuevo .opcion-grande span { color: var(--tn-texto-2); }
html.tema-nuevo .opcion-grande:disabled { opacity: .5; }
html.tema-nuevo .tag { background: rgb(65 183 245 / .12); color: var(--tn-azul-300); border: 1px solid rgb(65 183 245 / .3); }
html.tema-nuevo .opcion-grande .tag { color: var(--tn-azul-300); }
html.tema-nuevo .ejemplos { color: var(--tn-texto-2); }
html.tema-nuevo .quiz-form { padding: 26px; }
html.tema-nuevo .ideas-estado { color: var(--tn-texto-2); }
html.tema-nuevo .mercados { padding: 5px; border-radius: 999px; background: rgb(255 255 255 / .04); border: 1px solid var(--tn-borde); }
html.tema-nuevo .mercado { border-color: transparent; background: none; color: var(--tn-texto-2); min-height: 44px; }
/* Tarjetas de los temas: cerradas y limpias, con la flecha que abre la descripción */
html.tema-nuevo .ideas { gap: 12px; }
html.tema-nuevo .idea { padding: 20px 22px; gap: 10px; border-color: var(--tn-borde); }
html.tema-nuevo .idea:hover, html.tema-nuevo .idea.abierta { border-color: rgb(153 210 254 / .4); }
html.tema-nuevo .idea:has(.idea-detalle:not([hidden])) { border-color: var(--tn-borde-fuerte); box-shadow: var(--tn-sombra), 0 0 40px -18px rgb(0 162 229 / .9); }
html.tema-nuevo .idea-nombre { font-size: 1.12rem; letter-spacing: -.01em; color: var(--tn-texto); }
html.tema-nuevo .idea-h1 { color: var(--tn-texto); }
html.tema-nuevo .idea-h2, html.tema-nuevo .idea-resumen, html.tema-nuevo .idea-detalle { color: var(--tn-texto-2); }
html.tema-nuevo .idea-resumen strong, html.tema-nuevo .idea-detalle strong, html.tema-nuevo .idea-detalle h4 { color: var(--tn-texto); }
html.tema-nuevo .idea .idea-detalle { border-top: 1px solid rgb(153 210 254 / .14); }
html.tema-nuevo .idea-ver { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
html.tema-nuevo .idea-ver::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .35s var(--tn-curva-mola);
}
html.tema-nuevo .idea:has(.idea-detalle:not([hidden])) .idea-ver::after { transform: rotate(45deg) translate(-2px, -2px); }
html.tema-nuevo .idea-viral {
  border-color: rgb(255 200 92 / .55);
  background: radial-gradient(120% 60% at 0% 0%, rgb(255 200 92 / .1), transparent 60%), var(--tn-vidrio);
  box-shadow: var(--tn-sombra), 0 0 46px -18px rgb(255 200 92 / .7);
  --tn-color: var(--tn-ambar);
}
html.tema-nuevo .badge-viral { background: linear-gradient(180deg, #ffe2a6, var(--tn-ambar)); color: #2a1a00; box-shadow: 0 0 20px -6px rgb(255 200 92 / .9); }
html.tema-nuevo .chip-mini { background: rgb(65 183 245 / .1); color: #cfe9ff; border: 1px solid rgb(65 183 245 / .22); }
html.tema-nuevo .chip-top { background: rgb(94 230 154 / .1); color: #c8f7dc; border: 1px solid rgb(94 230 154 / .3); }
html.tema-nuevo .hipotesis { background: rgb(255 200 92 / .12); color: #ffe1a3; }
html.tema-nuevo .evidencia { color: var(--tn-verde); }
html.tema-nuevo .nombre-opcion { padding: 18px; }
html.tema-nuevo .nombre-opcion span { color: var(--tn-texto-2); }
html.tema-nuevo .nombre-opcion.seleccionada { border-color: var(--tn-borde-fuerte); box-shadow: 0 0 0 1px rgb(65 183 245 / .35), 0 0 40px -14px rgb(0 162 229 / .95); }
html.tema-nuevo .elegida .icon { filter: drop-shadow(0 0 18px rgb(0 162 229 / .7)); }

/* ---------- 13. Editor (solo el marco: la vista previa de la página no cambia) ---------- */
html.tema-nuevo .editor-barra { padding: 10px 20px; }
html.tema-nuevo .editor-volver { color: var(--tn-texto-2); }
html.tema-nuevo .editor-volver:hover { color: #fff; }
html.tema-nuevo .editor-lateral { background: linear-gradient(180deg, rgb(3 12 17 / .9), rgb(1 6 9 / .92)); border-right: 1px solid rgb(153 210 254 / .1); }
html.tema-nuevo .editor-ia {
  padding: 18px;
  background: radial-gradient(120% 80% at 0% 0%, rgb(185 163 255 / .14), transparent 60%), var(--tn-vidrio);
  border-color: rgb(185 163 255 / .3);
}
html.tema-nuevo .editor-ia h2 { color: var(--tn-texto); }
html.tema-nuevo .pestanas { padding: 4px; border-radius: 999px; background: rgb(255 255 255 / .04); border: 1px solid var(--tn-borde); width: max-content; max-width: 100%; }
html.tema-nuevo .pestanas .pestana { border-color: transparent; background: none; }
html.tema-nuevo .pestanas .pestana.activa { background: var(--tn-accion); }
html.tema-nuevo .editor-subtitulo { color: var(--tn-texto); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
html.tema-nuevo .fila-bloque { background: rgb(255 255 255 / .035); border-color: rgb(153 210 254 / .14); }
html.tema-nuevo .fila-bloque.abierta { border-color: rgb(185 163 255 / .6); box-shadow: 0 0 34px -14px rgb(185 163 255 / .9); }
html.tema-nuevo .fila-bloque-info:hover { background: rgb(255 255 255 / .05); }
html.tema-nuevo .fila-bloque-tipo { color: var(--tn-color); }
html.tema-nuevo .form-bloque { border-top-color: rgb(153 210 254 / .12); }
html.tema-nuevo .paleta { background: rgb(255 255 255 / .04); }
html.tema-nuevo .paleta-muestras { border-color: rgb(255 255 255 / .15); }
html.tema-nuevo .color { color: var(--tn-texto); }
html.tema-nuevo .color input { border-color: rgb(255 255 255 / .2); }
html.tema-nuevo .zona-reconstruir { border-top-color: rgb(153 210 254 / .12); }
html.tema-nuevo .tarjeta-plegable { padding: 12px 16px; }
html.tema-nuevo .tarjeta-plegable summary { color: var(--tn-texto); }
html.tema-nuevo .tarjeta-plegable[open] { border-color: rgb(185 163 255 / .4); }
html.tema-nuevo .sim-resultado { color: var(--tn-azul-300); }
html.tema-nuevo .campo-imagen img { border-color: rgb(255 255 255 / .15); }
html.tema-nuevo .vista-marco iframe {
  background: #fff;
  border: 1px solid rgb(153 210 254 / .22);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .4), 0 30px 80px -30px rgb(0 0 0 / .95), 0 0 60px -30px rgb(0 162 229 / .8);
}

/* ---------- 14. Mi cuenta y /admin ---------- */
html.tema-nuevo .saldo div {
  position: relative;
  background: var(--tn-vidrio);
  border: 1px solid var(--tn-borde);
  box-shadow: var(--tn-sombra);
}
html.tema-nuevo .saldo strong { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, var(--tn-ambar)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.tema-nuevo .saldo span, html.tema-nuevo .paquete span { color: var(--tn-texto-2); }
html.tema-nuevo .plan-actual { color: var(--tn-texto); }
html.tema-nuevo .costos li { border-bottom-color: rgb(153 210 254 / .1); }
html.tema-nuevo .tabla th { color: var(--tn-texto-2); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
html.tema-nuevo .tabla th, html.tema-nuevo .tabla td { border-bottom-color: rgb(153 210 254 / .1); }
html.tema-nuevo .tabla tbody tr { transition: background .2s; }
html.tema-nuevo .tabla tbody tr:hover { background: rgb(255 255 255 / .03); }
html.tema-nuevo .banco-detalle { border-left-color: rgb(255 138 154 / .4); }
html.tema-nuevo .banco-idea { background: rgb(255 255 255 / .035); border: 1px solid rgb(153 210 254 / .12); border-radius: 12px; }
html.tema-nuevo .banco-idea-descartada { background: rgb(255 255 255 / .015); opacity: .7; }
html.tema-nuevo .precarga-estado { color: var(--tn-texto-2); }
html.tema-nuevo .legal p, html.tema-nuevo .legal li { color: var(--tn-texto-2); }
html.tema-nuevo .legal h2 { color: var(--tn-texto); }

/* ---------- 15. Movimiento reducido: sin entradas, sin respiración, sin rayas; nada se mueve solo ---------- */
@media (prefers-reduced-motion: reduce) {
  html.tema-nuevo *, html.tema-nuevo *::before, html.tema-nuevo *::after { animation: none !important; transition-duration: .01ms !important; }
  html.tema-nuevo .tn-revela { opacity: 1; transform: none; filter: none; }
  .tn-cursor, .tn-fondo .tn-foco { display: none !important; }
  /* Lo que indica "cargando" sigue girando, más lento */
  html.tema-nuevo :is(.spinner, .spinner-mini, .spinner-chico), html.tema-nuevo .cargando-mini::before { animation: girar 1.6s linear infinite !important; }
}

/* Casillas y opciones dentro de .campo: tamaño propio (no el ancho completo de los campos de texto) */
html.tema-nuevo .campo :is(input[type="radio"], input[type="checkbox"]), html.tema-nuevo .opcion-radio input { width: 18px; height: 18px; flex: none; margin-top: 3px; padding: 0; }

/* Barra de arriba del app en el celular: el logo queda solo con la marca y los enlaces caben en una línea */
@media (max-width: 640px) {
  html.tema-nuevo .nav-inner:has(.nav-usuario) .logo { font-size: 0; gap: 0; max-width: none; }
  html.tema-nuevo .nav-inner:has(.nav-usuario) .logo-mark { font-size: .8rem; width: 36px; height: 36px; }
  html.tema-nuevo .nav-usuario { gap: 14px; font-size: .88rem; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
}
@media (max-width: 640px) {
  html.tema-nuevo .nav-usuario { gap: 12px; font-size: .82rem; }
  html.tema-nuevo .mercados { border-radius: 22px; }
  html.tema-nuevo .mercado { border-radius: 16px; }
}
