/* Línea visual VoyViral (manual de identidad v1.0): Noche, Azul mando, Ámbar como único acento y Azul eléctrico de luz secundaria. */
@font-face { font-family: 'Chakra Petch'; font-weight: 500; font-display: swap; src: url(/fuentes/chakra-petch-500.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 700; font-display: swap; src: url(/fuentes/chakra-petch-700.woff2) format('woff2'); }
:root {
  --fondo: #04070f; --panel: rgba(255,255,255,.045); --panel-solido: #0a1124; --tinta: #eef4f8; --suave: #9aa7b8; --tenue: #5b6779;
  --linea: rgba(255,255,255,.10); --linea-fuerte: rgba(255,255,255,.22);
  --marca: #ffb32c; --marca-2: #3f7bff; --marca-osc: #ffd27a; --marca-clara: rgba(255,179,44,.12);
  --degrade: linear-gradient(100deg, #ffb32c 0%, #ffc55a 100%); --azul: #3f7bff;
  --titulos: 'Chakra Petch', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
  --ambar: #ffd98a; --ambar-claro: rgba(255,200,97,.13); --rojo: #ff6b7a; --rojo-claro: rgba(255,107,122,.14);
  --verde: #7cf7a8; --verde-claro: rgba(124,247,168,.14); --violeta: #b9a4ff; --violeta-claro: rgba(185,164,255,.15);
  --radio: 18px; --sombra: 0 1px 0 rgba(255,255,255,.06) inset, 0 20px 50px rgba(0,0,0,.45);
  --brillo: 0 0 0 1px rgba(255,179,44,.35), 0 0 34px rgba(255,179,44,.22);
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  /* Curvas de movimiento: salida fuerte para entradas y respuestas; entrada-salida para lo que se mueve en pantalla */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--fondo); }
body { margin: 0; color: var(--tinta); font-size: 15px; line-height: 1.55; min-height: 100vh; position: relative;
  background:
    radial-gradient(900px 520px at 85% -8%, rgba(255,179,44,.16), transparent 62%),
    radial-gradient(760px 520px at -6% 28%, rgba(63,123,255,.09), transparent 60%),
    var(--fondo); background-attachment: fixed; }
/* Retícula tenue de fondo */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%); }
#app, body > header, body > section, body > div, body > footer { position: relative; z-index: 1; }
h1, h2, h3 { font-family: var(--titulos); }
h1 { font-size: 30px; line-height: 1.12; margin: 0 0 8px; letter-spacing: -.01em; font-weight: 700; }
h2 { font-size: 19px; margin: 0 0 4px; letter-spacing: -.01em; }
h3 { font-size: 15px; margin: 0 0 4px; }
p { margin: 0 0 10px; }
a { color: var(--marca); }
b, strong { color: var(--tinta); }
.suave { color: var(--suave); } .chico { font-size: 13px; }
.cargando { padding: 60px; text-align: center; color: var(--suave); }
.grad { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
::selection { background: rgba(255,179,44,.35); }
:focus-visible { outline: 2px solid var(--marca); outline-offset: 2px; }

/* Estructura */
.shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.lado { background: rgba(8,13,28,.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-right: 1px solid var(--linea); padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--titulos); font-weight: 700; font-size: 19px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px 16px; }
.logo > span { display: flex; flex-direction: column; line-height: 1.15; }
.logo .eslogan { font-family: 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--suave); white-space: nowrap; }
/* El símbolo es el casco de Comando; el carácter de relleno queda oculto. */
.logo i { width: 34px; height: 34px; flex: none; background: url(/marca/simbolo.svg) center / contain no-repeat; font-size: 0; filter: drop-shadow(0 0 10px rgba(255,179,44,.45)); }
.lado select { width: 100%; margin-bottom: 12px; }
.nav a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--suave); text-decoration: none; font-weight: 500; border: 1px solid transparent; transition: color 150ms ease, background-color 150ms ease; }
.nav a:hover { color: var(--tinta); background: rgba(255,255,255,.05); }
.nav a.activo { color: var(--tinta); background: var(--marca-clara); border-color: rgba(255,179,44,.28); box-shadow: inset 3px 0 0 var(--marca); }
.lado .pie { margin-top: auto; font-size: 13px; color: var(--suave); padding: 12px 8px 4px; border-top: 1px solid var(--linea); }
.lado .pie b { display: block; }
main { padding: 32px 36px 70px; max-width: 1200px; width: 100%; }
.cabeza { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }

/* Piezas */
.tarjeta { background: var(--panel); border: 1px solid var(--linea); border-radius: var(--radio); padding: 22px; box-shadow: var(--sombra); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
a.tarjeta { transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms var(--ease-out); }
a.tarjeta:active { transform: scale(.99); }
.rejilla { display: grid; gap: 16px; } .rejilla > * { min-width: 0; }
.r2 { grid-template-columns: repeat(2, 1fr); } .r3 { grid-template-columns: repeat(3, 1fr); } .r4 { grid-template-columns: repeat(4, 1fr); }
.fila { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.entre { justify-content: space-between; }
button, .boton { font: inherit; font-weight: 600; border: 1px solid var(--linea-fuerte); background: rgba(255,255,255,.05); color: var(--tinta); padding: 10px 18px; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: border-color 150ms ease, background-color 150ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out); }
button:active:not(:disabled), .boton:active { transform: scale(.97); }
button:hover:not(:disabled), .boton:hover { border-color: var(--marca); background: rgba(255,179,44,.08); }
button.primario, .boton.primario { background: var(--degrade); border-color: transparent; color: #1a1200; box-shadow: 0 0 28px rgba(255,179,44,.32); }
button.primario:hover:not(:disabled), .boton.primario:hover { background: var(--degrade); box-shadow: 0 0 44px rgba(124,247,192,.5); }
button.peligro { color: var(--rojo); border-color: rgba(255,107,122,.4); }
button.peligro:hover:not(:disabled) { background: var(--rojo-claro); border-color: var(--rojo); }
button.texto { border: 0; background: none; padding: 4px 6px; color: var(--marca); border-radius: 6px; }
button:disabled { opacity: .45; cursor: not-allowed; }
label { display: block; font-weight: 600; font-size: 12px; margin: 14px 0 6px; color: var(--suave); text-transform: uppercase; letter-spacing: .08em; }
label small { font-weight: 400; color: var(--tenue); text-transform: none; letter-spacing: 0; font-size: 12px; }
input, textarea, select { font: inherit; width: 100%; padding: 11px 13px; border: 1px solid var(--linea); border-radius: 12px; background: rgba(0,0,0,.38); color: var(--tinta); transition: border-color 150ms ease, box-shadow 150ms ease; }
input::placeholder, textarea::placeholder { color: var(--tenue); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--marca); box-shadow: 0 0 0 3px rgba(255,179,44,.16); }
input:disabled { color: var(--suave); }
select option { background: var(--panel-solido); color: var(--tinta); }
input[type=color] { padding: 3px; height: 42px; width: 68px; }
input[type=checkbox] { width: auto; accent-color: var(--marca); }
textarea { min-height: 88px; resize: vertical; }
.pastilla { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 99px; background: rgba(255,255,255,.07); color: var(--suave); text-transform: uppercase; letter-spacing: .09em; border: 1px solid var(--linea); }
.pastilla.activa { background: var(--verde-claro); color: var(--verde); border-color: rgba(124,247,168,.35); }
.pastilla.pausada, .pastilla.lista { background: var(--ambar-claro); color: var(--ambar); border-color: rgba(255,200,97,.35); }
.pastilla.error { background: var(--rojo-claro); color: var(--rojo); border-color: rgba(255,107,122,.4); }
.pastilla.sim { background: var(--violeta-claro); color: var(--violeta); border-color: rgba(185,164,255,.35); }
.aviso { border-radius: 14px; padding: 13px 16px; background: var(--ambar-claro); color: #ffe2a8; border: 1px solid rgba(255,200,97,.28); margin-bottom: 16px; font-size: 14px; }
.aviso.info { background: var(--marca-clara); color: #ffe9bf; border-color: rgba(255,179,44,.28); }
.aviso.mal { background: var(--rojo-claro); color: #ffc9cf; border-color: rgba(255,107,122,.35); }
.aviso a { color: inherit; }
.vacio { text-align: center; padding: 56px 20px; color: var(--suave); }

/* Acceso */
.acceso { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.acceso .tarjeta { width: 100%; max-width: 430px; padding: 32px; box-shadow: var(--sombra), 0 0 80px rgba(255,179,44,.10); }
.acceso .logo { padding: 0 0 20px; }

/* Asistente */
/* Inicio guiado: asistente de identidad a pantalla completa, antes del panel */
.inicio-marca { max-width: 1120px; margin: 0 auto; padding: 22px 24px 60px; }
.inicio-marca > header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.inicio-marca > header .logo { padding: 0; }
.inicio-intro { margin-bottom: 22px; } .inicio-intro h1 { margin-bottom: 6px; }
.pasos { display: flex; gap: 6px; margin-bottom: 24px; }
.pasos span { height: 4px; flex: 1; border-radius: 9px; background: rgba(255,255,255,.1); }
.pasos span.hecho { background: var(--degrade); box-shadow: 0 0 14px rgba(255,179,44,.5); }
.opcion { text-align: left; display: block; width: 100%; padding: 20px; border-radius: var(--radio); background: var(--panel); border: 1px solid var(--linea); cursor: pointer; font-weight: 400; color: var(--suave); }
.opcion b { display: block; font-size: 17px; margin-bottom: 3px; }
.opcion:hover:not(:disabled) { border-color: var(--marca); box-shadow: var(--brillo); background: rgba(255,179,44,.06); }
.opcion.elegida { border-color: var(--marca); background: var(--marca-clara); }
.estrategia { border-color: rgba(255,179,44,.55); box-shadow: var(--sombra), 0 0 60px rgba(255,179,44,.14); }
.estrategia ul, .tarjeta ul { color: var(--suave); }

/* Pestañas */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--linea); margin-bottom: 22px; overflow-x: auto; }
.tabs button { border: 0; background: none; border-radius: 0; padding: 11px 16px; color: var(--suave); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button:hover:not(:disabled) { background: none; color: var(--tinta); }
.tabs button.activo { color: var(--tinta); border-bottom-color: var(--marca); }

/* Campañas */
.camp { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.camp .nums { display: flex; gap: 26px; text-align: right; }
.camp .nums b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.kpi b { font-size: 30px; display: block; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi span { color: var(--suave); font-size: 13px; }

/* Editor de anuncios: la vista previa imita una publicación real, por eso va en claro */
.angulo { display: grid; grid-template-columns: 300px 1fr; gap: 22px; }
.previa { border: 1px solid var(--linea-fuerte); border-radius: 14px; overflow: hidden; background: #fff; color: #1c1917; font-size: 13px; }
.previa b { color: #1c1917; }
.previa .pag { display: flex; gap: 8px; align-items: center; padding: 10px; font-weight: 600; }
.previa .pag i { width: 30px; height: 30px; border-radius: 50%; background: #0f766e center/cover; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 13px; }
.previa .pag small { display: block; font-weight: 400; color: #78716c; }
.previa-google { padding: 12px 14px; font-family: Arial, sans-serif; }
.previa-google > small { font-weight: 700; color: #202124; }
.previa-google .pag { padding: 6px 0; }
.previa-google > b { display: block; color: #1a0dab; font-size: 18px; font-weight: 400; line-height: 1.3; }
.previa-google .txt { color: #4d5156; font-size: 14px; margin-top: 4px; }
.previa .txt { padding: 0 10px 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.previa img, .previa canvas { width: 100%; display: block; aspect-ratio: 1; background: #e7e5e4; }
.previa .cta { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 10px; background: #f5f5f4; }
.previa .cta b { display: block; } .previa .cta span { color: #78716c; }
.previa .cta em { font-style: normal; font-weight: 600; background: #e7e5e4; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.fotos { display: flex; gap: 8px; flex-wrap: wrap; }
.fotos button { padding: 0; width: 58px; height: 58px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: rgba(255,255,255,.06) center/cover; }
.fotos button.elegida { border-color: var(--marca); box-shadow: var(--brillo); }
.fotos .mas { border: 1.5px dashed var(--linea-fuerte); display: grid; place-items: center; font-size: 22px; color: var(--suave); }
.checks { list-style: none; padding: 0; margin: 12px 0; }
.checks li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--linea); position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--verde); font-weight: 700; }
.checks li.no::before { content: "!"; color: var(--rojo); }
.checks li.ojo::before { content: "!"; color: var(--ambar); }
.checks li small { display: block; color: var(--suave); }

/* Gráfica */
.barras { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; border-bottom: 1px solid var(--linea); }
.barras div { flex: 1; background: linear-gradient(180deg, #ffb32c, #3f7bff); border-radius: 5px 5px 0 0; min-height: 2px; position: relative; opacity: .85; box-shadow: 0 0 18px rgba(255,179,44,.25); }
.barras div:hover { opacity: 1; }
.barras div:hover::after { content: attr(data-t); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: #fff; color: #1a1200; font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 8px; white-space: nowrap; margin-bottom: 6px; z-index: 2; }
/* Campos guiados del perfil (perfil.js): son <label> pero no llevan el estilo de etiqueta de campo. */
.opcion, .rasgo, .marcable { margin: 0; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--tinta); }
.opcion input, .rasgo input, .marcable input { width: auto; padding: 0; }
.opcion > span { min-width: 0; }
.opciones { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.opcion { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border: 1px solid var(--linea); border-radius: 14px; cursor: pointer; background: rgba(255,255,255,.03); transition: border-color .15s, background .15s; }
.opcion:hover { border-color: var(--linea-fuerte); }
.opcion:has(input:checked) { border-color: var(--marca); background: var(--marca-clara); box-shadow: var(--brillo); }
.opcion input { margin-top: 3px; accent-color: var(--marca); flex: none; }
.opcion b { display: block; font-size: 14px; }
.opcion small { display: block; color: var(--suave); font-size: 12px; margin-top: 3px; line-height: 1.35; }
.rasgos { display: flex; flex-wrap: wrap; gap: 8px; }
.rasgo { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--linea); border-radius: 99px; cursor: pointer; font-size: 13px; background: rgba(255,255,255,.03); }
.rasgo:has(input:checked) { border-color: var(--marca); background: var(--marca-clara); color: var(--tinta); }
.rasgo input { accent-color: var(--marca); margin: 0; }
.rasgos .mal { color: var(--rojo); }
.chips-lista { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; border: 1px solid var(--linea); border-radius: 14px; background: rgba(255,255,255,.03); }
.chips-lista input { flex: 1 1 160px; min-width: 120px; border: 0; background: none; padding: 6px 4px; margin: 0; }
.chips-lista input:focus { box-shadow: none; outline: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 11px; border-radius: 99px; background: rgba(255,255,255,.08); font-size: 13px; }
.chip button { padding: 0 6px; border: 0; background: none; color: var(--suave); font-size: 15px; line-height: 1; border-radius: 99px; }
.chip button:hover { color: var(--rojo); background: none; }
.chips-sug { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.chips-sug button { padding: 4px 10px; border-radius: 99px; border: 1px dashed var(--linea-fuerte); background: none; color: var(--suave); font-size: 12px; }
.chips-sug button:hover { color: var(--tinta); border-color: var(--marca); }
.marcables { display: flex; flex-direction: column; gap: 6px; }
.marcable { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--linea); border-radius: 12px; cursor: pointer; font-size: 14px; background: rgba(255,255,255,.03); }
.marcable:has(input:checked) { border-color: rgba(255,179,44,.55); background: var(--marca-clara); }
.marcable input { accent-color: var(--marca); margin-top: 3px; flex: none; }
.marcables > input { margin-top: 4px; }
.medidor { height: 6px; background: rgba(255,255,255,.1); border-radius: 9px; overflow: hidden; margin: 8px 0 2px; }
.medidor i { display: block; height: 100%; background: var(--degrade); }

/* Modal y avisos */
.modal { position: fixed; inset: 0; background: rgba(2,4,8,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; z-index: 20; opacity: 1; transition: opacity 200ms var(--ease-out); }
.modal .tarjeta { width: 100%; max-width: 540px; max-height: 90vh; overflow: auto; background: var(--panel-solido); border-color: var(--linea-fuerte); transform: none; transition: transform 240ms var(--ease-out), opacity 200ms var(--ease-out); }
@starting-style { .modal { opacity: 0; } .modal .tarjeta { opacity: 0; transform: scale(.96) translateY(8px); } }
#toasts { position: fixed; bottom: 20px; right: 20px; display: grid; gap: 8px; z-index: 30; }
.toast { background: #fff; color: #1a1200; font-weight: 600; padding: 12px 16px; border-radius: 12px; max-width: 360px; box-shadow: 0 16px 40px rgba(0,0,0,.5); opacity: 1; transform: none; transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out); }
@starting-style { .toast { opacity: 0; transform: translateY(100%); } }
.toast.mal { background: var(--rojo); color: #2a0409; }

@media (hover: hover) and (pointer: fine) {
  a.tarjeta:hover { border-color: rgba(255,179,44,.45); transform: translateY(-2px); box-shadow: var(--sombra), 0 0 40px rgba(255,179,44,.12); }
  button.primario:hover:not(:disabled):not(:active), .boton.primario:hover:not(:active) { transform: translateY(-1px); }
  .opcion:hover:not(:disabled):not(:active) { transform: translateY(-2px); }
}
/* Menos movimiento: se conservan los fundidos y cambios de color; se quitan desplazamientos y bucles */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-property: opacity, color, background-color, border-color, box-shadow !important; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .lado { position: static; height: auto; }
  .nav { display: flex; flex-wrap: wrap; }
  main { padding: 22px 16px 54px; }
  .r2, .r3, .r4, .angulo, .camp { grid-template-columns: 1fr; }
  .camp .nums { text-align: left; }
  h1 { font-size: 26px; }
}

/* Creación de campaña: sin menú lateral, y piezas del editor por pasos */
.shell.enfoque { grid-template-columns: 1fr; }
.shell.enfoque .lado { display: none; }
.shell.enfoque main { max-width: 1080px; margin: 0 auto; width: 100%; }
.punto { width: 32px; height: 32px; padding: 0; border-radius: 50%; justify-content: center; font-size: 13px; }
.punto.ok { border-color: var(--verde); color: var(--verde); }
.punto.actual { border-color: var(--marca); box-shadow: var(--brillo); }
.pieza { width: 100%; aspect-ratio: 1; display: block; border-radius: 10px; background: #000; object-fit: contain; margin-bottom: 8px; }
.hueco { display: grid; place-items: center; aspect-ratio: 1; background: #e7e5e4; color: #78716c; text-align: center; padding: 16px; font-size: 13px; }
.hueco.pieza { background: rgba(255,255,255,.05); color: var(--suave); border: 1.5px dashed var(--linea-fuerte); }
.hueco.mini { width: 56px; height: 56px; padding: 0; border-radius: 8px; font-size: 11px; flex: none; }
.ranura { box-shadow: none; padding: 12px; }
.fila-resumen { gap: 12px; padding: 10px 0; border-top: 1px solid var(--linea); flex-wrap: nowrap; }
.fila-resumen img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; }
.corta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Pasos de "Armando tu estrategia": aparecen uno tras otro */
.armando { opacity: 0; animation: armando 320ms cubic-bezier(0.23, 1, 0.32, 1) forwards; }
@keyframes armando { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .armando { animation: none; opacity: 1; } }

/* ---------- Asistente de campaña: presupuesto, "armando" y opciones de lanzamiento ---------- */
.montos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.monto { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 18px; border-radius: 16px; text-align: left; margin: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid var(--linea); text-transform: none; letter-spacing: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms var(--ease-out); }
.monto b { font-family: var(--titulos); font-size: 28px; line-height: 1.05; letter-spacing: -.02em; }
.monto small { color: var(--suave); font-size: 12px; font-weight: 400; }
.monto.elegido { border-color: var(--marca); box-shadow: var(--brillo); background: linear-gradient(180deg, rgba(255,179,44,.16), rgba(255,179,44,.04)); }
.monto.elegido b { color: var(--marca); }
.monto.otro input { margin-top: 6px; font-family: var(--titulos); font-size: 20px; padding: 6px 10px; }
.monto:active:not(.otro) { transform: scale(.97); }

.escena-armando { min-height: 440px; border-radius: 24px; padding: 44px; display: flex; align-items: center; border: 1px solid var(--linea-fuerte); overflow: hidden; position: relative;
  background: linear-gradient(90deg, #04070f 0%, rgba(4,7,15,.94) 38%, rgba(4,7,15,.35) 70%, rgba(4,7,15,.1) 100%), url(/marca/comando-panel-900.webp) right center / cover no-repeat;
  box-shadow: var(--sombra), 0 0 90px rgba(255,179,44,.12); }
.escena-armando > div { max-width: 440px; }
.escena-armando h1 { font-size: 40px; }
.barra-armando { height: 4px; border-radius: 9px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 18px; }
.barra-armando i { display: block; height: 100%; background: var(--degrade); box-shadow: 0 0 18px rgba(255,179,44,.7); transform-origin: left; animation: barra-armando 1.7s linear forwards; }
@keyframes barra-armando { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.presenta { display: grid; grid-template-columns: 1fr 190px; gap: 24px; align-items: end; margin-bottom: 26px; }
.presenta h1 { font-size: 36px; }
.presenta img { width: 190px; height: 210px; object-fit: cover; object-position: 50% 6%; border-radius: 22px 22px 0 0; display: block;
  mask-image: radial-gradient(ellipse 62% 68% at 50% 42%, #000 52%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 62% 68% at 50% 42%, #000 52%, transparent 100%); }

.planes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-bottom: 18px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px; border-radius: 22px; border: 1px solid var(--linea); overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); box-shadow: var(--sombra); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; animation: plan-entra 460ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 70ms);
  transition: transform 180ms var(--ease-out), border-color 180ms ease, box-shadow 180ms ease; }
.plan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(63,123,255,.8), transparent); }
.plan-rec { border-color: rgba(255,179,44,.6); background: radial-gradient(420px 260px at 50% -10%, rgba(255,179,44,.22), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  box-shadow: var(--sombra), 0 0 0 1px rgba(255,179,44,.3), 0 0 80px rgba(255,179,44,.18); }
.plan-rec::before { background: var(--degrade); height: 3px; }
.plan-cinta, .plan-etq { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; padding: 4px 11px; border-radius: 99px; }
.plan-cinta { background: var(--degrade); color: #1a1200; box-shadow: 0 0 22px rgba(255,179,44,.45); }
.plan-etq { background: rgba(255,255,255,.07); color: var(--suave); border: 1px solid var(--linea); }
.plan-num { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; }
.plan-num b { font-family: var(--titulos); font-size: 78px; line-height: .86; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.plan-num span { font-family: var(--titulos); font-size: 20px; color: var(--suave); }
.plan-fichas { display: flex; flex-wrap: wrap; gap: 5px; margin: 14px 0 16px; min-height: 22px; }
.plan-fichas i { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--linea-fuerte); background: linear-gradient(135deg, rgba(63,123,255,.35), rgba(255,255,255,.06)); position: relative; }
.plan-rec .plan-fichas i { border-color: rgba(255,179,44,.55); background: linear-gradient(135deg, rgba(255,179,44,.5), rgba(255,179,44,.08)); }
.plan-fichas.video i::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 7px solid rgba(255,255,255,.9); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.plan h2 { font-size: 18px; margin: 0 0 6px; }
.plan-texto { color: var(--suave); font-size: 13.5px; margin: 0 0 14px; }
.plan-datos { margin: 0 0 14px; border-top: 1px solid var(--linea); }
.plan-datos div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--linea); }
.plan-datos dt { color: var(--suave); font-size: 12.5px; }
.plan-datos dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.plan-datos small { color: var(--suave); font-weight: 400; }
.plan-porque { font-size: 13px; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,179,44,.1); border: 1px solid rgba(255,179,44,.28); color: #ffe2a8; }
.plan-riesgo { font-size: 12.5px; color: var(--suave); margin: 0 0 16px; }
.plan > button { margin-top: auto; width: 100%; justify-content: center; }
@keyframes plan-entra { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@media (hover: hover) and (pointer: fine) {
  .plan:hover { transform: translateY(-4px); border-color: var(--linea-fuerte); }
  .plan-rec:hover { border-color: var(--marca); box-shadow: var(--sombra), 0 0 0 1px rgba(255,179,44,.45), 0 0 100px rgba(255,179,44,.26); }
  .monto:hover:not(.otro) { border-color: var(--linea-fuerte); }
}
@media (max-width: 900px) {
  .planes { grid-template-columns: 1fr; }
  .presenta { grid-template-columns: 1fr; } .presenta img { display: none; }
  .escena-armando { padding: 28px; min-height: 360px; background: linear-gradient(180deg, rgba(4,7,15,.9), rgba(4,7,15,.82)), url(/marca/comando-panel-900.webp) 70% center / cover no-repeat; }
}
@media (prefers-reduced-motion: reduce) {
  .plan { animation: none; opacity: 1; transition: none; }
  .plan:hover { transform: none; }
  .barra-armando i { animation: none; }
}
.plan-pones { font-size: 13px; margin: 0 0 8px; }

/* ---------- Línea Comando dentro de la app (2026-11-18): superficies con luz, cifras en Chakra Petch y acentos de estado ---------- */
.tarjeta { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.022)); }
.tarjeta::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent); }
.modal .tarjeta { background: var(--panel-solido); }

.cabeza > div:first-child { padding-left: 16px; border-left: 3px solid var(--marca); }
.cabeza h1 { font-size: 34px; margin-bottom: 4px; }
.cabeza p { margin-bottom: 0; }

.lado { background: linear-gradient(180deg, rgba(10,17,36,.86), rgba(4,7,15,.82)); }
.nav a.activo { box-shadow: inset 3px 0 0 var(--marca), 0 0 26px rgba(255,179,44,.14); }

/* Cifras */
.kpi b, .camp .nums b { font-family: var(--titulos); }
.tarjeta.kpi { overflow: hidden; }
.tarjeta.kpi::before { left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--marca), rgba(63,123,255,.5) 55%, transparent); }

/* Panel del mes */
.mes { padding: 26px; border-color: rgba(255,179,44,.3);
  background: radial-gradient(520px 240px at 100% 0%, rgba(255,179,44,.17), transparent 70%), radial-gradient(420px 260px at 0% 100%, rgba(63,123,255,.13), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); }
.mes .kpi { padding-left: 18px; border-left: 1px solid var(--linea); }
.mes .kpi:first-child { padding-left: 0; border-left: 0; }
.mes .kpi b { font-size: 38px; }

/* Lista de campañas */
.camp { grid-template-columns: auto 1fr auto; padding: 16px 20px; }
.camp-mini { width: 62px; height: 62px; border-radius: 14px; object-fit: cover; display: block; border: 1px solid var(--linea-fuerte);
  background: rgba(255,255,255,.05) url(/marca/simbolo.svg) center / 26px no-repeat; }
.camp { box-shadow: var(--sombra), inset 3px 0 0 rgba(255,255,255,.16); }
.camp-activa { box-shadow: var(--sombra), inset 3px 0 0 var(--verde); }
.camp-lista, .camp-pausada { box-shadow: var(--sombra), inset 3px 0 0 var(--marca); }
.camp-error { box-shadow: var(--sombra), inset 3px 0 0 var(--rojo); }
.camp .nums b { font-size: 22px; letter-spacing: -.02em; }
.vacio img { display: block; margin: 0 auto 14px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,179,44,.4), 0 0 50px rgba(255,179,44,.25); }

/* Pestañas y pasos: píldoras, la activa en ámbar */
.tabs { gap: 4px; padding: 5px; border: 1px solid var(--linea); border-radius: 999px; background: rgba(255,255,255,.04); width: fit-content; max-width: 100%; }
.tabs button { border-radius: 999px; border-bottom: 0; padding: 9px 17px; }
.tabs button.activo, .tabs button.activo:hover:not(:disabled) { background: var(--degrade); color: #1a1200; box-shadow: 0 0 22px rgba(255,179,44,.35); }

/* La recomendación del panel de resultados */
.accion { border-color: rgba(255,179,44,.42); background: radial-gradient(380px 200px at 100% 0%, rgba(255,179,44,.16), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); }
.accion h2 { font-size: 22px; }

@media (hover: hover) and (pointer: fine) {
  a.tarjeta.camp:hover { transform: translateY(-2px); border-color: rgba(255,179,44,.5); }
}
@media (max-width: 900px) {
  .mes .kpi { padding-left: 0; border-left: 0; }
  .camp { grid-template-columns: auto 1fr; } .camp .nums { grid-column: 1 / -1; justify-content: space-between; text-align: left; }
  .tabs { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { a.tarjeta.camp:hover { transform: none; } }
/* Con pocos días, las barras no se estiran hasta parecer un bloque */
.barras div { max-width: 44px; }

/* ---------- Publicación en vivo: el Comando operando la cuenta publicitaria del dueño ---------- */
.escena-publicar { position: fixed; inset: 0; z-index: 40; background: var(--fondo); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: stretch; overflow: hidden;
  opacity: 1; transition: opacity 260ms var(--ease-out); }
@starting-style { .escena-publicar { opacity: 0; } }
.escena-publicar video { width: 100%; height: 100vh; object-fit: cover; object-position: 66% center; display: block;
  mask-image: linear-gradient(90deg, #000 50%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent); }
.publicar-panel { padding: 22px 28px 26px 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.publicar-panel [data-linea] { font-variant-numeric: tabular-nums; text-align: right; }
/* La cuenta: una ventana con su encabezado y sus tres niveles */
.cuenta { border: 1px solid var(--linea-fuerte); border-radius: 20px; background: linear-gradient(180deg, rgba(10,17,36,.92), rgba(6,10,22,.92)); box-shadow: var(--sombra), 0 0 70px rgba(63,123,255,.12); padding: 0 18px 18px; }
.cuenta > header { display: flex; align-items: center; gap: 12px; padding: 14px 0; position: sticky; top: 0; background: #0a1124; z-index: 1; border-radius: 20px 20px 0 0; }
.cuenta > header i { width: 34px; height: 34px; border-radius: 10px; flex: none; background: rgba(255,179,44,.12) url(/marca/simbolo.svg) center / 20px no-repeat; border: 1px solid rgba(255,179,44,.35); }
.cuenta > header div { flex: 1; min-width: 0; }
.cuenta > header b { display: block; font-family: var(--titulos); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cuenta > header small { color: var(--suave); font-size: 12px; font-variant-numeric: tabular-nums; }
.barra-publicar { height: 3px; border-radius: 9px; background: rgba(255,255,255,.1); overflow: hidden; margin-bottom: 14px; }
.barra-publicar i { display: block; height: 100%; background: var(--degrade); box-shadow: 0 0 18px rgba(255,179,44,.7); transform-origin: left; transform: scaleX(0); transition: transform 420ms var(--ease-out); }
.bloque { border: 1px solid var(--linea); border-radius: 14px; padding: 12px 14px; margin-top: 10px; background: rgba(255,255,255,.025); opacity: .45;
  transition: opacity 220ms ease, border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease; }
.bloque[data-parte="conjunto"] { margin-left: 16px; } .bloque[data-parte="anuncios"] { margin-left: 32px; }
.bloque h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 8px; font-size: 14px; }
.bloque h3 em, .anuncios-vivo em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--marca); font-family: inherit; font-variant-numeric: tabular-nums; }
.bloque.activo { opacity: 1; border-color: rgba(255,179,44,.5); background: rgba(255,179,44,.06); box-shadow: 0 0 30px rgba(255,179,44,.1); }
.bloque.listo { opacity: 1; border-color: rgba(124,247,168,.35); }
.bloque.listo h3 em, .anuncios-vivo article.listo em { color: var(--verde); }
.bloque dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.bloque dl div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; align-items: baseline; min-height: 22px; }
.bloque dt { color: var(--suave); font-size: 12px; }
.bloque dd { margin: 0; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cursor::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--marca); }
.anuncios-vivo { display: grid; gap: 8px; }
.anuncios-vivo article { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; border: 1px solid transparent; opacity: .45; transition: opacity 220ms ease, border-color 220ms ease, background-color 220ms ease; }
.anuncios-vivo article.activo { opacity: 1; border-color: rgba(255,179,44,.45); background: rgba(255,179,44,.07); }
.anuncios-vivo article.listo { opacity: 1; }
.anuncios-vivo img, .anuncios-vivo .hueco { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.anuncios-vivo article > div { min-width: 0; display: grid; gap: 1px; }
.anuncios-vivo b { font-size: 13.5px; min-height: 19px; } .anuncios-vivo span { font-size: 12.5px; color: var(--suave); min-height: 18px; }
.anuncios-vivo b, .anuncios-vivo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anuncios-vivo small { color: var(--tenue); font-size: 11.5px; }
@media (max-width: 900px) {
  .escena-publicar { grid-template-columns: 1fr; overflow: auto; }
  .escena-publicar video { height: 26vh; mask-image: linear-gradient(#000 55%, transparent); -webkit-mask-image: linear-gradient(#000 55%, transparent); }
  .publicar-panel { padding: 0 14px 28px; height: auto; overflow: visible; }
  .bloque dl { grid-template-columns: 1fr; } .bloque[data-parte="conjunto"], .bloque[data-parte="anuncios"] { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .barra-publicar i { transition: none; } }

/* Creación en vivo: los anuncios escribiéndose */
.redaccion { display: grid; gap: 8px; }
.redaccion article { padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; opacity: .4; transition: opacity 220ms ease, border-color 220ms ease, background-color 220ms ease; min-height: 44px; }
.redaccion article.activo { opacity: 1; }
.redaccion article.escribiendo { border-color: rgba(255,179,44,.45); background: rgba(255,179,44,.07); }
.redaccion article.listo { border-color: rgba(124,247,168,.28); }
.redaccion b { font-family: var(--titulos); font-size: 13px; color: var(--marca); display: block; }
.redaccion b span { color: var(--tinta); font-weight: 500; }
.redaccion p { margin: 4px 0 0; font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.redaccion .idea { color: var(--suave); font-size: 12px; font-style: italic; }
.redaccion strong { display: block; margin-top: 6px; font-size: 13.5px; }
.redaccion .escribiendo [data-campo]:not(:empty):last-of-type::after, .redaccion .escribiendo p:not(:empty):not(:has(~ :not(:empty)))::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--marca); }
.redaccion :empty { display: none; }

/* ---------- Cabina (2026-11-19): el espacio del Comando dentro de la app ---------- */
/* Fondo: estrellas con profundidad (canvas), nebulosa azul y el horizonte de un planeta al pie de la pantalla */
body > .espacio { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.espacio canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.espacio .nebulosa { position: absolute; inset: 0;
  background: radial-gradient(720px 420px at 78% 18%, rgba(63,123,255,.16), transparent 65%), radial-gradient(520px 360px at 12% 82%, rgba(63,123,255,.10), transparent 65%), radial-gradient(420px 300px at 92% 70%, rgba(255,179,44,.07), transparent 65%); }
.espacio .horizonte { position: absolute; left: -25%; right: -25%; top: calc(100% - 7vh); height: 150vw; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0%, #0b1530 0%, #050912 38%, #04070f 60%);
  box-shadow: 0 -1px 0 rgba(140,180,255,.55), 0 -10px 50px rgba(63,123,255,.30), 0 -2px 14px rgba(255,179,44,.18); }
body:has(.espacio)::before { opacity: .45; }

/* Franja de mando */
.cabina { position: relative; display: flex; align-items: center; gap: 22px; min-height: 138px; margin-bottom: 22px; padding: 18px 22px; overflow: hidden; isolation: isolate;
  border-radius: 22px; border: 1px solid rgba(255,255,255,.12); background: linear-gradient(110deg, rgba(10,17,36,.92) 0%, rgba(6,10,22,.78) 55%, rgba(4,7,15,.35) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 24px 60px rgba(0,0,0,.5); }
.cabina::before { content: ""; position: absolute; left: 22px; right: 40%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,179,44,.8), transparent); }
.cabina-info { position: relative; z-index: 2; display: grid; gap: 14px; justify-items: start; }
.hud { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; }
.hud b { display: block; font-family: var(--titulos); font-size: 22px; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hud span { font-size: 12px; color: var(--suave); }
.uso-mes { display: flex; align-items: center; gap: 12px; }
.uso-mes svg { width: 52px; height: 52px; transform: rotate(-90deg); flex: none; }
.uso-mes circle { fill: none; stroke-width: 4; }
.uso-mes .pista { stroke: rgba(255,255,255,.10); }
.uso-mes .avance { stroke: var(--marca); stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(255,179,44,.7)); }
.cabina-comando { position: absolute; right: 0; top: 0; z-index: 0; width: 46%; height: 100%; object-fit: cover; object-position: 14% 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%); }

/* Núcleo 3D: tres anillos que giran en ejes distintos alrededor de una luz */
.nucleo { position: relative; z-index: 2; width: 92px; height: 92px; margin-left: auto; margin-right: 40%; flex: none; perspective: 520px; transform-style: preserve-3d; }
.nucleo i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255,179,44,.85); box-shadow: 0 0 14px rgba(255,179,44,.35), inset 0 0 14px rgba(255,179,44,.18); }
.nucleo i::after { content: ""; position: absolute; top: -4px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px rgba(255,179,44,.9); }
.nucleo i:nth-child(1) { animation: orbita-a 7s linear infinite; }
.nucleo i:nth-child(2) { inset: 9px; border-color: rgba(63,123,255,.9); box-shadow: 0 0 14px rgba(63,123,255,.4); animation: orbita-b 9s linear infinite; }
.nucleo i:nth-child(2)::after { box-shadow: 0 0 12px 3px rgba(63,123,255,.9); }
.nucleo i:nth-child(3) { inset: 20px; border-style: dashed; border-color: rgba(255,255,255,.55); animation: orbita-c 12s linear infinite; }
.nucleo b { position: absolute; inset: 36px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #ffb32c 45%, transparent 72%); animation: latido 2.6s var(--ease-in-out) infinite; }
@keyframes orbita-a { from { transform: rotateX(68deg) rotateZ(0deg); } to { transform: rotateX(68deg) rotateZ(360deg); } }
@keyframes orbita-b { from { transform: rotateY(66deg) rotateX(18deg) rotateZ(360deg); } to { transform: rotateY(66deg) rotateX(18deg) rotateZ(0deg); } }
@keyframes orbita-c { from { transform: rotateX(24deg) rotateY(-28deg) rotateZ(0deg); } to { transform: rotateX(24deg) rotateY(-28deg) rotateZ(360deg); } }
@keyframes latido { 0%, 100% { transform: scale(.82); opacity: .75; } 50% { transform: scale(1.12); opacity: 1; } }

/* Mientras se crea una campaña no hay distracciones: sin franja */
.shell.enfoque .cabina { display: none; }

/* Superficies: vidrio sobre el espacio y respuesta al puntero */
.lado { background: linear-gradient(180deg, rgba(10,17,36,.78), rgba(4,7,15,.70)); box-shadow: 1px 0 0 rgba(255,255,255,.04), 20px 0 60px rgba(0,0,0,.35); }
.nav a { transition: color 150ms ease, background-color 150ms ease, transform 180ms var(--ease-out); }
.kpi, .plan { transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); will-change: transform; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { transform: translateX(3px); }
  #main .tarjeta { transition: border-color 200ms ease, box-shadow 220ms var(--ease-out); }
  #main .tarjeta:hover { border-color: rgba(255,179,44,.26); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 26px 60px rgba(0,0,0,.5), 0 0 40px rgba(255,179,44,.07); }
}
@media (max-width: 900px) {
  .cabina { min-height: 0; padding: 16px; }
  .nucleo { display: none; }
  .cabina-comando { width: 60%; opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
  .nucleo i, .nucleo b { animation: none; }
  .nav a:hover { transform: none; }
}

/* Escenas de crear y publicar: el Comando en el espacio ocupa más de la mitad y se funde con el fondo, sin marco */
.escena-publicar:has(video.espacial) { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center;
  background: radial-gradient(900px 600px at 28% 50%, rgba(63,123,255,.10), transparent 70%), var(--fondo); }
.escena-publicar video.espacial { width: 124%; max-width: none; margin-left: -6%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center;
  -webkit-mask-image: radial-gradient(ellipse 58% 62% at 44% 50%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 58% 62% at 44% 50%, #000 52%, transparent 100%); }
.escena-publicar:has(video.espacial) .publicar-panel { align-self: stretch; padding-left: 6px; }
@media (max-width: 900px) {
  .escena-publicar:has(video.espacial) { grid-template-columns: 1fr; align-items: start; }
  .escena-publicar video.espacial { width: 100%; margin-left: 0; height: auto; }
}
