/* ============================================================
   Orbi Editor — estilo «Órbita de cristal» (28/10/2026, elegido por Christopher entre
   tres direcciones): la «Noche orbital» de la app llevada a premium. Aurora suave,
   vidrio, mucho aire y Orbi dentro de una órbita. Colores, letras y botones salen de
   rediseno.css (.rd-app); aquí solo lo propio del editor. Primero el celular; desde
   900 px, dos columnas. Con «reducir movimiento» todo queda en su estado final.
   ============================================================ */
.rd-app.editor {
  --vidrio: rgba(24, 27, 62, .55); --vidrio-fuerte: rgba(30, 34, 76, .72); --borde-vidrio: rgba(255, 255, 255, .10);
  --amarillo: #facc15; --luna-suave: rgba(240, 171, 252, .22);
  --ease: cubic-bezier(.23, 1, .32, 1);
  background:
    radial-gradient(70% 40% at 15% 0%, rgba(139, 92, 246, .34), transparent 70%),
    radial-gradient(60% 35% at 100% 18%, rgba(79, 157, 255, .20), transparent 70%),
    radial-gradient(80% 40% at 50% 110%, rgba(232, 121, 198, .14), transparent 70%), var(--fondo);
}
.rd-app.editor .pantalla { padding-bottom: calc(var(--e-7) + env(safe-area-inset-bottom)); }
.rd-app.editor h1:focus { outline: none; }
.ed-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Cabecera: volver · marca · idioma ---------- */
.rd-app.editor .ed-cabecera { display: grid; grid-template-columns: 44px 1fr auto; gap: var(--e-2); padding: 4px var(--e-4) 0; }
.rd-app.editor .ed-redondo { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--texto);
  background: var(--vidrio); border: 1px solid var(--borde-vidrio); text-decoration: none; transition: transform 160ms var(--ease); }
.rd-app.editor .ed-redondo:active { transform: scale(.96); }
.rd-app.editor .ed-marca { text-align: center; font: 600 16px var(--f-titulo); letter-spacing: -.01em; }
.rd-app.editor .ed-beta { font: 600 11px var(--f-texto); color: #d8ccff; background: rgba(139, 92, 246, .18); border: 1px solid rgba(196, 181, 253, .25);
  border-radius: var(--r-total); padding: 2px 8px; vertical-align: 2px; margin-left: 4px; letter-spacing: .02em; }
.rd-app.editor .ed-idioma { min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: var(--r-total); font: 600 13px var(--f-texto); color: var(--texto-2);
  background: var(--vidrio); border: 1px solid var(--borde-vidrio); cursor: pointer; }

/* ---------- Piezas comunes ---------- */
.rd-app.editor .ed-pila { display: flex; flex-direction: column; gap: var(--e-4); }
.rd-app.editor .ed-vidrio { background: var(--vidrio); border: 1px solid var(--borde-vidrio); border-radius: 24px; padding: var(--e-4);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.rd-app.editor .ed-cab-sec { display: flex; justify-content: space-between; align-items: baseline; gap: var(--e-3); margin-bottom: var(--e-3); }
.rd-app.editor .ed-cab-sec h2 { font: 600 16px var(--f-titulo); letter-spacing: -.01em; }
.rd-app.editor .ed-cab-sec span { font-size: 13px; color: var(--texto-3); }
.rd-app.editor .ed-chip { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--f-texto); padding: 7px 12px; border-radius: var(--r-total);
  background: rgba(139, 92, 246, .16); color: #d8ccff; border: 1px solid rgba(196, 181, 253, .25); }
.rd-app.editor .ed-chip.neutro { background: rgba(255, 255, 255, .06); color: var(--texto-2); border-color: var(--borde-vidrio); }
.rd-app.editor .ed-chip.aviso { background: var(--aviso-fondo); color: var(--aviso); border-color: rgba(251, 191, 36, .3); }
.rd-app.editor .ed-nota { text-align: center; font-size: 14px; color: var(--texto-3); line-height: 1.45; }
.rd-app.editor .ed-aviso { border-radius: 18px; padding: var(--e-3) var(--e-4); font-size: var(--t-chico); line-height: 1.45;
  background: var(--aviso-fondo); border: 1px solid rgba(251, 191, 36, .3); }
.rd-app.editor .ed-aviso.error { background: var(--error-fondo); border-color: rgba(255, 138, 143, .4); }
.rd-app.editor .ed-aviso.bien { background: var(--exito-fondo); border-color: rgba(52, 211, 153, .35); }
.rd-app.editor .boton { border-radius: 18px; transition: transform 160ms var(--ease), box-shadow 180ms ease, background 180ms ease; }
.rd-app.editor .boton:active:not(:disabled) { transform: scale(.97); }
.rd-app.editor .boton-secundario { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
.rd-app.editor .boton .ico { width: 20px; height: 20px; }
.rd-app.editor .ed-acciones { display: grid; grid-template-columns: 1fr; gap: var(--e-2); }
.rd-app.editor .ed-acciones.dos { grid-template-columns: 1fr 1fr; }

/* Orbi dentro de su órbita */
.rd-app.editor .ed-orbita { position: relative; width: 112px; height: 112px; margin: 0 auto; display: grid; place-items: center; flex: none; }
.rd-app.editor .ed-orbita img { width: 84px; height: 84px; position: relative; filter: drop-shadow(0 10px 24px rgba(91, 108, 255, .45)); }
.rd-app.editor .ed-orbita i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(196, 181, 253, .5);
  transform: rotate(-18deg) scaleY(.42); box-shadow: 0 0 20px rgba(139, 92, 246, .35); }
.rd-app.editor .ed-orbita i + i { inset: -14px; transform: rotate(24deg) scaleY(.36); border-color: rgba(147, 197, 253, .25); box-shadow: none; }
.rd-app.editor .ed-orbita.chica { width: 88px; height: 88px; }
.rd-app.editor .ed-orbita.chica img { width: 64px; height: 64px; }

.rd-app.editor .ed-dos { display: flex; flex-direction: column; gap: var(--e-5); }
.rd-app.editor .ed-izq { display: flex; flex-direction: column; gap: var(--e-5); }

/* ---------- Encabezado de cada pantalla ---------- */
.rd-app.editor .ed-hero { text-align: center; padding: var(--e-2) var(--e-2) 0; display: flex; flex-direction: column; align-items: center; gap: var(--e-2); }
.rd-app.editor .ed-hero h1 { font: 700 30px/1.1 var(--f-titulo); letter-spacing: -.03em; margin-top: var(--e-2); text-wrap: balance; }
.rd-app.editor .ed-hero p { color: var(--texto-2); font-size: 16px; line-height: 1.45; max-width: 30ch; text-wrap: pretty; }
.rd-app.editor .ed-destacado { background: var(--grad-marca); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(139, 92, 246, .35)); }
.rd-app.editor .ed-hero h1 .ed-linea { display: block; }

/* ---------- Subir ---------- */
.rd-app.editor .ed-zona { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 28px 18px 20px; border-radius: 28px; cursor: pointer;
  background: linear-gradient(180deg, rgba(139, 92, 246, .14), rgba(24, 27, 62, .42)); border: 1.5px dashed rgba(196, 181, 253, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 40px rgba(0, 0, 0, .3); transition: border-color 180ms ease, background 180ms ease, transform 180ms var(--ease); }
.rd-app.editor .ed-zona:hover { border-color: rgba(196, 181, 253, .7); }
.rd-app.editor .ed-zona.encima { border-color: var(--marca-violeta); border-style: solid; background: linear-gradient(180deg, rgba(139, 92, 246, .28), rgba(24, 27, 62, .5)); transform: scale(1.01); }
.rd-app.editor .ed-zona-ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; color: #fff; margin-bottom: 8px;
  background: var(--grad-marca); box-shadow: 0 10px 26px rgba(91, 108, 255, .5); }
.rd-app.editor .ed-zona-ico .ico { width: 28px; height: 28px; }
.rd-app.editor .ed-zona h2 { font: 600 19px var(--f-titulo); letter-spacing: -.01em; }
.rd-app.editor .ed-zona > p { color: var(--texto-2); font-size: 15px; }
.rd-app.editor .ed-zona .boton { width: auto; min-width: 200px; margin-top: var(--e-3); }
.rd-app.editor .ed-limites { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: var(--e-3); list-style: none; }
.rd-app.editor .ed-limites li { font: 500 13px var(--f-texto); color: var(--texto-2); padding: 5px 10px; border-radius: var(--r-total); background: rgba(255, 255, 255, .06); }
.rd-app.editor .ed-elegido { display: grid; grid-template-columns: 48px 1fr; gap: var(--e-3); align-items: center; }
.rd-app.editor .ed-elegido-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--acento-suave); color: var(--acento); }
.rd-app.editor .ed-elegido b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-app.editor .ed-elegido span { font-size: 14px; color: var(--texto-2); }

/* ---------- Inicio (01/11/2026): una sola columna centrada ---------- */
.rd-app.editor .ed-inicio { width: 100%; max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--e-5); }
.rd-app.editor .ed-inicio > .ed-hero { padding-top: var(--e-3); }
.rd-app.editor .ed-inicio > .ed-hero h1 .ed-linea { display: inline; white-space: nowrap; }
.rd-app.editor .ed-inicio > .ed-hero p { max-width: 36ch; }
.rd-app.editor .ed-zona.grande { padding: 44px 24px 30px; gap: 6px; border-width: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(139, 92, 246, .18), 0 24px 60px rgba(91, 108, 255, .22); }
.rd-app.editor .ed-zona.grande .ed-zona-ico { width: 72px; height: 72px; border-radius: 22px; }
.rd-app.editor .ed-zona.grande .ed-zona-ico .ico { width: 32px; height: 32px; }
.rd-app.editor .ed-zona.grande h2 { font-size: 22px; }
.rd-app.editor .ed-zona.grande .boton { min-width: 240px; min-height: 54px; font-size: 17px; }
.rd-app.editor .ed-cupo-linea { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin-top: calc(-1 * var(--e-2)); }
.rd-app.editor .ed-cupo-linea .ed-nota { margin: 0; max-width: 44ch; }
/* «Lo que Orbi recuerda de ti», plegado */
.rd-app.editor details.ed-plegado { padding: 0; }
.rd-app.editor details.ed-plegado > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 44px;
  padding: var(--e-4); font: 600 16px var(--f-titulo); letter-spacing: -.01em; border-radius: 24px; }
.rd-app.editor details.ed-plegado > summary::-webkit-details-marker { display: none; }
.rd-app.editor details.ed-plegado > summary:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }
.rd-app.editor details.ed-plegado > summary small { margin-left: auto; font: 600 13px var(--f-texto); color: var(--texto-2);
  min-width: 26px; padding: 2px 8px; border-radius: var(--r-total); background: rgba(255, 255, 255, .06); text-align: center; }
.rd-app.editor details.ed-plegado > summary .ico { width: 18px; height: 18px; flex: none; color: var(--texto-2); transition: transform 200ms var(--ease); }
.rd-app.editor details.ed-plegado[open] > summary .ico { transform: rotate(180deg); }
.rd-app.editor .ed-plegado-cuerpo { padding: 0 var(--e-4) var(--e-4); display: flex; flex-direction: column; gap: var(--e-3); }
.rd-app.editor .ed-plegado-cuerpo .ed-nota.ed-izquierda { margin: 0; }

/* El ejemplo de antes/después: dibujado hasta que haya un video real (EJEMPLO_EDITOR.md) */
.rd-app.editor .ed-ad { display: grid; grid-template-columns: 1fr 1fr; gap: var(--e-3); }
.rd-app.editor .ed-ad figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.rd-app.editor .ed-ad .ed-escena { width: 100%; max-width: 220px; border-radius: 20px; }
.rd-app.editor .ed-ad figcaption { font: 600 13px var(--f-texto); color: var(--texto-2); padding: 4px 12px; border-radius: var(--r-total); background: rgba(255, 255, 255, .06); }
.rd-app.editor .ed-ad .despues figcaption { color: #fff; background: rgba(139, 92, 246, .3); }
.rd-app.editor .ed-ad-linea { margin-top: var(--e-3); text-align: center; font: 600 14px/1.45 var(--f-texto); color: var(--texto-2); font-variant-numeric: tabular-nums; }
.rd-app.editor .ed-ad-linea > span { white-space: nowrap; }
.rd-app.editor .ed-escena { position: relative; aspect-ratio: 9 / 16; width: 100%; overflow: hidden; border-radius: 14px; margin: 0 auto;
  background: linear-gradient(180deg, #3b3550 0%, #2a2740 55%, #1d1b2c 100%); }
.rd-app.editor .ed-escena.antes { filter: saturate(.55) brightness(.85); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.rd-app.editor .ed-escena.despues { box-shadow: 0 0 0 2px rgba(139, 92, 246, .85), 0 14px 34px rgba(91, 108, 255, .4); }
/* Los 3 pasos con iconos (09/11/2026; mientras no hay ejemplo real, en lugar del dibujo) */
.rd-app.editor .ed-pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e-4); }
.rd-app.editor .ed-pasos li { display: flex; align-items: center; gap: var(--e-4); font: 600 15px/1.4 var(--f-texto); }
.rd-app.editor .ed-pasos-ico { position: relative; flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(167, 139, 250, .22), rgba(91, 108, 255, .22)); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .35); }
.rd-app.editor .ed-pasos-ico .ico { width: 24px; height: 24px; fill: none; stroke: #c4b5fd; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rd-app.editor .ed-pasos-ico b { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #a78bfa, #5b6cff); color: #fff; font: 700 11px var(--f-texto); }
@media (min-width: 900px) {
  .rd-app.editor .ed-pasos { grid-template-columns: repeat(3, 1fr); }
  .rd-app.editor .ed-pasos li { flex-direction: column; text-align: center; }
}
.rd-app.editor .ed-gratis .ed-ss-acciones { display: flex; flex-wrap: wrap; gap: var(--e-3); justify-content: center; }
.rd-app.editor .ed-gratis .ed-ss-acciones .boton { min-height: 48px; flex: 1 1 200px; max-width: 280px; justify-content: center; }
.rd-app.editor .ed-gratis .ed-cupo-linea { justify-content: center; }
.rd-app.editor video.ed-escena.real { display: block; object-fit: cover; background: #000; filter: none; }
.rd-app.editor video.ed-escena.real.antes { filter: saturate(.8); }

/* ---------- Progreso: el anillo con Orbi en el centro ---------- */
.rd-app.editor .ed-anillo { position: relative; width: 176px; height: 176px; margin: 0 auto; display: grid; place-items: center; }
.rd-app.editor .ed-anillo svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, .55)); }
.rd-app.editor .ed-anillo circle { fill: none; stroke-width: 5; }
.rd-app.editor .ed-anillo .pista { stroke: rgba(255, 255, 255, .08); }
.rd-app.editor .ed-anillo .avance { stroke: url(#edGrad); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3;
  transition: stroke-dashoffset .6s var(--ease); }
.rd-app.editor .ed-anillo .ed-orbita { width: 96px; height: 96px; }
.rd-app.editor .ed-anillo .ed-orbita img { width: 70px; height: 70px; animation: ed-flotar 3.2s ease-in-out infinite; }
.rd-app.editor .ed-porciento { font: 700 15px var(--f-titulo); color: #d8ccff; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
@keyframes ed-flotar { 50% { transform: translateY(-5px); } }

/* La onda de la voz (préstamo de «Mesa de montaje», sin códigos de tiempo) */
.rd-app.editor .ed-onda { position: relative; display: flex; align-items: center; gap: 2px; height: 64px; isolation: isolate; }
.rd-app.editor .ed-onda i { flex: 1; min-width: 2px; border-radius: 3px; background: linear-gradient(180deg, #a78bfa, #5b6cff);
  transition: height .5s var(--ease), opacity .5s ease; }
.rd-app.editor .ed-onda i.sil { background: rgba(240, 171, 252, .5); }
.rd-app.editor .ed-onda i.fuera { background: rgba(255, 255, 255, .14); }
/* el silencio: una banda suave; mientras edita aparece un corte en cada uno (en orden) y al renderizar se encoge */
.rd-app.editor .ed-banda { position: absolute; top: -6px; bottom: -6px; z-index: -1; border-radius: 6px; background: rgba(240, 171, 252, .12);
  transform-origin: center; transition: transform .6s var(--ease), opacity .6s ease; }
.rd-app.editor .ed-banda::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; border-radius: 2px;
  background: #f0abfc; box-shadow: 0 0 8px rgba(240, 171, 252, .85); opacity: 0; }
.rd-app.editor .ed-onda.cortando .ed-banda::before { animation: ed-corte .45s var(--ease) forwards; animation-delay: calc(var(--i) * 110ms); }
.rd-app.editor .ed-onda.quitando .ed-banda { transform: scaleX(.2); opacity: .4; }
.rd-app.editor .ed-onda.quitando i.sil { opacity: .2; height: 3px !important; }
@keyframes ed-corte { from { opacity: 0; transform: scaleY(.3); } to { opacity: 1; transform: none; } }
.rd-app.editor .ed-leyenda { display: flex; align-items: center; gap: 8px; margin-top: var(--e-3); font-size: 13px; color: var(--texto-2); }
.rd-app.editor .ed-leyenda::before { content: ""; width: 14px; height: 8px; border-radius: 3px; background: rgba(240, 171, 252, .55); }
.rd-app.editor .ed-leyenda.quedo::before { background: linear-gradient(90deg, #a78bfa, #5b6cff); }

/* Lo que cuenta Orbi, paso a paso */
.rd-app.editor .ed-relato { list-style: none; padding: 6px 16px; }
.rd-app.editor .ed-relato li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 11px 0; align-items: start; }
.rd-app.editor .ed-relato li + li { border-top: 1px solid rgba(255, 255, 255, .06); }
.rd-app.editor .ed-marca-paso { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.rd-app.editor .hecho .ed-marca-paso { background: rgba(52, 211, 153, .16); color: var(--exito); }
.rd-app.editor .hecho .ed-marca-paso .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.rd-app.editor .ahora .ed-marca-paso { background: rgba(139, 92, 246, .22); box-shadow: 0 0 0 5px rgba(139, 92, 246, .12); }
.rd-app.editor .ahora .ed-marca-paso::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #c4b5fd; animation: ed-latido 1.6s ease-in-out infinite; }
.rd-app.editor .luego .ed-marca-paso { border: 1.5px dashed rgba(255, 255, 255, .2); }
.rd-app.editor .ed-relato b { font: 600 16px var(--f-texto); display: block; line-height: 1.35; }
.rd-app.editor .ed-relato .luego b { color: var(--texto-3); font-weight: 500; }
.rd-app.editor .ed-relato li > div > span:not(.ed-sr) { display: block; font-size: 14px; line-height: 1.4; color: var(--texto-2); margin-top: 2px; }
@keyframes ed-latido { 50% { transform: scale(.6); opacity: .6; } }
.rd-app.editor .ed-subs { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.rd-app.editor .ed-subs span { font: 700 14px var(--f-titulo); color: #fff; padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .07);
  transition: background 160ms ease, color 160ms ease, opacity 160ms ease; }
.rd-app.editor .ed-subs span.act { background: var(--amarillo); color: #1a1300; }
.rd-app.editor .ed-subs span.fantasma { opacity: .3; }

/* ---------- Confirmar ---------- */
.rd-app.editor .ed-ganchos { display: flex; flex-direction: column; gap: var(--e-2); border: 0; margin: 0; padding: 0; min-width: 0; }
.rd-app.editor .ed-gancho { position: relative; display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 4px var(--e-3);
  padding: var(--e-3) var(--e-4); border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--borde-vidrio);
  font-weight: 600; line-height: 1.35; cursor: pointer; transition: background 180ms ease, border-color 180ms ease, transform 160ms var(--ease); }
.rd-app.editor fieldset .ed-gancho:hover { border-color: rgba(196, 181, 253, .45); }
.rd-app.editor fieldset .ed-gancho:active { transform: scale(.98); }
.rd-app.editor .ed-gancho:focus-within { outline: 2px solid var(--acento); outline-offset: 2px; }
.rd-app.editor .ed-gancho-marca { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: transparent;
  border: 2px solid rgba(255, 255, 255, .28); transition: background 180ms ease, border-color 180ms ease, color 180ms ease; }
.rd-app.editor .ed-gancho-marca .ico { width: 15px; height: 15px; stroke-width: 3; }
.rd-app.editor .ed-va-primero { grid-column: 2; justify-self: start; padding: 3px 9px; font-size: 12px; }
.rd-app.editor .ed-gancho:not(.elegido) .ed-va-primero { display: none; }
.rd-app.editor .ed-gancho.elegido { background: rgba(139, 92, 246, .16); border-color: rgba(139, 92, 246, .75);
  box-shadow: 0 8px 24px rgba(91, 108, 255, .22); }
.rd-app.editor .ed-gancho.elegido .ed-gancho-marca { background: var(--grad-marca); border-color: transparent; color: #fff; }
.rd-app.editor .ed-gancho.elegido .ed-gancho-texto { color: #fff; }
.rd-app.editor .ed-cobro { display: grid; grid-template-columns: 48px 1fr; gap: var(--e-3); align-items: center; }
.rd-app.editor .ed-cobro-ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: var(--grad-marca); box-shadow: 0 8px 20px rgba(91, 108, 255, .4); }
.rd-app.editor .ed-cobro b { display: block; font: 600 17px var(--f-titulo); }
.rd-app.editor .ed-cobro span { font-size: 14px; color: var(--texto-2); }

/* ---------- Resultado ---------- */
.rd-app.editor .ed-col-video { display: flex; flex-direction: column; align-items: center; gap: var(--e-3); }
.rd-app.editor .ed-marco { position: relative; width: min(232px, 62vw); aspect-ratio: 9 / 16; border-radius: 34px; padding: 6px;
  background: linear-gradient(160deg, #2b2e55, #111327);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 60px rgba(0, 0, 0, .55), 0 0 60px rgba(139, 92, 246, .25); }
.rd-app.editor .ed-marco video { width: 100%; height: 100%; display: block; border-radius: 28px; background: #000; object-fit: contain; }
.rd-app.editor .ed-marco .ed-etiqueta-video { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); font: 600 12px var(--f-texto);
  padding: 4px 10px; border-radius: var(--r-total); background: rgba(0, 0, 0, .55); color: #fff; pointer-events: none; }
/* 01/11/2026 (prueba en el iPhone): todo el ancho, una parte igual para cada opción (antes quedaba hueco a la derecha) */
.rd-app.editor .ed-segmento { display: flex; width: 100%; padding: 4px; border-radius: var(--r-total); background: var(--vidrio); border: 1px solid var(--borde-vidrio); }
.rd-app.editor .ed-col-video > .ed-segmento { width: min(320px, 100%); }
.rd-app.editor .ed-segmento button { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 0 18px; border-radius: var(--r-total); border: 0; background: none;
  font: 600 14px var(--f-texto); color: var(--texto-2); cursor: pointer; transition: background 180ms ease, color 180ms ease; }
.rd-app.editor .ed-segmento button[aria-pressed="true"] { background: #fff; color: #0b0c1e; }
/* «Animaciones: sí / no», la encuesta y «Lo que Orbi recuerda» (30/10/2026), en el mismo vidrio */
.rd-app.editor .ed-animaciones { gap: var(--e-2); }
.rd-app.editor .ed-encuesta { display: flex; flex-direction: column; gap: var(--e-3); }
/* los pulgares (01/11/2026): dos botones grandes, mitad y mitad */
.rd-app.editor .ed-pulgares { display: grid; grid-template-columns: 1fr 1fr; gap: var(--e-3); }
.rd-app.editor .ed-pulgar { min-height: 64px; border-radius: 20px; border: 1px solid var(--borde-vidrio); background: rgba(255, 255, 255, .04); color: var(--texto-2);
  display: grid; place-items: center; cursor: pointer; transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 160ms var(--ease); }
.rd-app.editor .ed-pulgar svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rd-app.editor .ed-pulgar:active { transform: scale(.97); }
.rd-app.editor .ed-pulgar[aria-pressed="true"] { background: #fff; color: #0b0c1e; border-color: #fff; }
.rd-app.editor .ed-pulgar.abajo[aria-pressed="true"] { background: rgba(248, 113, 113, .18); color: #fecaca; border-color: rgba(248, 113, 113, .6); }
.rd-app.editor .ed-pulgar:focus-visible, .rd-app.editor .ed-ajustar:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }
.rd-app.editor .ed-encuesta-sub { margin: var(--e-2) 0 0; }
.rd-app.editor .ed-ajustar { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 0 16px;
  border-radius: 16px; border: 1px solid var(--borde-vidrio); background: rgba(255, 255, 255, .03); color: var(--texto); font: 600 15px var(--f-texto);
  cursor: pointer; text-align: left; }
.rd-app.editor .ed-ajustar .ico { width: 18px; height: 18px; flex: none; color: var(--texto-2); transition: transform 200ms var(--ease); }
.rd-app.editor .ed-ajustar[aria-expanded="true"] .ico { transform: rotate(180deg); }
.rd-app.editor .ed-grupos { display: flex; flex-direction: column; gap: var(--e-4); }
.rd-app.editor .ed-grupos[hidden] { display: none; }
.rd-app.editor .ed-grupo h3 { font: 600 13px var(--f-texto); letter-spacing: .04em; text-transform: uppercase; color: var(--texto-2); margin: 0 0 8px; }
.rd-app.editor .ed-opciones { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rd-app.editor .ed-opcion { min-height: 40px; padding: 0 14px; border-radius: var(--r-total); border: 1px solid var(--borde-vidrio);
  background: rgba(255, 255, 255, .05); color: var(--texto); font: 600 14px var(--f-texto); cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms var(--ease); }
.rd-app.editor .ed-opcion[aria-pressed="true"] { background: rgba(139, 92, 246, .28); border-color: rgba(167, 139, 250, .7); }
.rd-app.editor .ed-opcion:active { transform: scale(.97); }
.rd-app.editor .ed-comentario { width: 100%; box-sizing: border-box; min-height: 84px; padding: 12px 14px; border-radius: 16px; resize: vertical;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--borde-vidrio); color: var(--texto); font: 400 15px/1.45 var(--f-texto); }
.rd-app.editor .ed-comentario:focus-visible, .rd-app.editor .ed-opcion:focus-visible, .rd-app.editor .ed-quitar:focus-visible {
  outline: 2px solid #a78bfa; outline-offset: 2px; }
.rd-app.editor .ed-recuerda { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rd-app.editor .ed-recuerda li { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 14px; border-radius: var(--r-total);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--borde-vidrio); font: 600 14px var(--f-texto); }
.rd-app.editor .ed-quitar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: none; color: var(--texto-2); cursor: pointer; }
.rd-app.editor .ed-quitar .ico { width: 16px; height: 16px; }
.rd-app.editor .ed-titulo-listo { display: flex; align-items: center; justify-content: space-between; gap: var(--e-3); flex-wrap: wrap; }
.rd-app.editor .ed-orbi-feliz { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 6px 14px rgba(91, 108, 255, .45)); }
.rd-app.editor .ed-titulo-listo h1 { flex: 1; font: 700 26px/1.15 var(--f-titulo); letter-spacing: -.025em; }
/* Cuadrícula de tantas columnas como tarjetas chicas (data-n, 1 a 4): llenan el ancho sin hueco a la derecha.
   Cuatro en el celular van de a dos. La de los segundos con su reparto ocupa la fila entera. */
.rd-app.editor .ed-cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; }
.rd-app.editor .ed-cifras[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
.rd-app.editor .ed-cifras[data-n="2"], .rd-app.editor .ed-cifras[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rd-app.editor .ed-cifras li { padding: 12px 6px; border-radius: 18px; background: var(--vidrio); border: 1px solid var(--borde-vidrio); text-align: center;
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.rd-app.editor .ed-cifras b { font: 700 21px var(--f-titulo); letter-spacing: -.02em; background: var(--grad-marca); -webkit-background-clip: text; background-clip: text;
  color: transparent; font-variant-numeric: tabular-nums; }
.rd-app.editor .ed-cifras span { font-size: 12.5px; color: var(--texto-2); line-height: 1.25; }
.rd-app.editor .ed-cifras small { font-size: 12px; color: var(--texto-3); }
.rd-app.editor .ed-cifras li.ancha { grid-column: 1 / -1; }
.rd-app.editor .ed-cifras .ed-partes { font-size: 13px; color: var(--texto-2); }
.rd-app.editor .ed-resumen p + p { margin-top: var(--e-2); }
.rd-app.editor .ed-consejos { padding-left: 1.2em; color: var(--texto-2); font-size: var(--t-chico); }
.rd-app.editor .ed-consejos li + li { margin-top: var(--e-1); }
.rd-app.editor .ed-carrusel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none;
  margin: 0 calc(-1 * var(--e-4)); padding: 2px var(--e-4) 6px; scrollbar-width: none; }
.rd-app.editor .ed-carrusel::-webkit-scrollbar { display: none; }
.rd-app.editor .ed-carrusel li { flex: none; width: 168px; scroll-snap-align: start; }
.rd-app.editor .ed-gtarjeta { width: 100%; min-height: 104px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  padding: 14px; border-radius: 20px; background: var(--vidrio); border: 1px solid var(--borde-vidrio); color: var(--texto); cursor: pointer;
  font: 600 15px/1.3 var(--f-texto); transition: transform 160ms var(--ease), border-color 180ms ease; }
.rd-app.editor button.ed-gtarjeta:hover { border-color: rgba(196, 181, 253, .45); }
.rd-app.editor button.ed-gtarjeta:active { transform: scale(.97); }
.rd-app.editor .ed-gtarjeta small { font: 600 12px var(--f-texto); color: var(--acento); display: inline-flex; align-items: center; gap: 4px; }
.rd-app.editor .ed-gtarjeta.actual { border-color: rgba(139, 92, 246, .7); background: rgba(139, 92, 246, .16); cursor: default; }
.rd-app.editor .ed-gtarjeta.actual small { color: #d8ccff; }
.rd-app.editor .ed-col-video > .ed-acciones { width: 100%; }
.rd-app.editor .ed-col-video > .ed-acciones .boton { min-height: 58px; font-size: 17px; }
.rd-app.editor .ed-nota.ed-izquierda { text-align: left; margin: -6px 0 var(--e-3); }
.rd-app.editor .ed-otro-video { display: flex; justify-content: center; }

/* ---------- Mis ediciones ---------- */
.rd-app.editor .ed-lista { list-style: none; display: flex; flex-direction: column; gap: var(--e-2); }
.rd-app.editor .ed-fila { display: grid; grid-template-columns: 40px 1fr auto; gap: 2px var(--e-3); align-items: center; width: 100%; text-align: left;
  min-height: 68px; padding: var(--e-3) var(--e-4); border-radius: 20px; border: 1px solid var(--borde-vidrio);
  background: var(--vidrio); color: var(--texto); cursor: pointer; font: inherit; transition: border-color 180ms ease, transform 160ms var(--ease); }
.rd-app.editor .ed-fila:hover { border-color: rgba(196, 181, 253, .35); }
.rd-app.editor .ed-fila:active { transform: scale(.98); }
.rd-app.editor .ed-fila-ico { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--texto-2); }
.rd-app.editor .ed-fila-ico .ico { width: 19px; height: 19px; }
.rd-app.editor .ed-fila b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rd-app.editor .ed-fila small { color: var(--texto-3); font-size: 14px; grid-column: 2; }
.rd-app.editor .ed-etiqueta { grid-row: 1 / span 2; grid-column: 3; font-size: 13px; font-weight: 600; padding: 4px 10px;
  border-radius: var(--r-total); background: rgba(255, 255, 255, .06); color: var(--texto-2); white-space: nowrap; }
.rd-app.editor .listo .ed-fila-ico { background: var(--exito-fondo); color: var(--exito); }
.rd-app.editor .ed-etiqueta.listo { background: var(--exito-fondo); color: var(--exito); }
.rd-app.editor .proceso .ed-fila-ico, .rd-app.editor .esperando .ed-fila-ico { background: var(--acento-suave); color: var(--acento); }
.rd-app.editor .ed-etiqueta.proceso, .rd-app.editor .ed-etiqueta.esperando { background: var(--acento-suave); color: var(--acento); }
.rd-app.editor .error .ed-fila-ico { background: var(--error-fondo); color: var(--error); }
.rd-app.editor .ed-etiqueta.error { background: var(--error-fondo); color: var(--error); }
.rd-app.editor .ed-vacio { text-align: center; color: var(--texto-3); font-size: 15px; padding: var(--e-4) 0; }

/* ---------- Errores y devolución ---------- */
.rd-app.editor .ed-devuelto { display: grid; grid-template-columns: 44px 1fr; gap: var(--e-3); align-items: center; text-align: left;
  border-color: rgba(52, 211, 153, .3); background: linear-gradient(180deg, rgba(52, 211, 153, .10), rgba(24, 27, 62, .5)); }
.rd-app.editor .ed-devuelto .ed-cobro-ico { width: 44px; height: 44px; background: rgba(52, 211, 153, .18); color: var(--exito); box-shadow: none; }

/* ---------- Entrada suave de cada pantalla (solo opacidad y un poco de desplazamiento) ---------- */
.rd-app.editor .ed-entra > * { animation: ed-entra .45s var(--ease) both; }
.rd-app.editor .ed-entra > *:nth-child(2) { animation-delay: 50ms; }
.rd-app.editor .ed-entra > *:nth-child(3) { animation-delay: 100ms; }
.rd-app.editor .ed-entra > *:nth-child(n+4) { animation-delay: 150ms; }
@keyframes ed-entra { from { opacity: 0; transform: translateY(8px); } }

/* ---------- PC: dos columnas ---------- */
@media (min-width: 900px) {
  .rd-app.editor .ed-cifras[data-n="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rd-app.editor .pantalla { padding-left: max(var(--e-5), calc(50% - 500px)); padding-right: max(var(--e-5), calc(50% - 500px)); }
  .rd-app.editor .ed-cabecera { padding-left: max(var(--e-4), calc(50% - 508px)); padding-right: max(var(--e-4), calc(50% - 508px)); }
  .rd-app.editor .ed-dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--e-6); align-items: start; }
  .rd-app.editor .ed-dos > .ed-izq { position: sticky; top: var(--e-4); }
  .rd-app.editor .ed-dos .ed-hero { align-items: flex-start; text-align: left; padding-top: var(--e-6); }
  .rd-app.editor .ed-dos .ed-hero .ed-orbita { margin: 0; }
  .rd-app.editor .ed-dos .ed-hero .ed-anillo { margin: 0; }
  .rd-app.editor .ed-dos .ed-hero h1 { font-size: 44px; }
  .rd-app.editor .ed-dos .ed-hero p { font-size: 18px; max-width: 34ch; }
  .rd-app.editor .ed-listo { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .rd-app.editor .ed-marco { width: min(320px, 100%); }
  /* todos los ganchos en una sola fila, del mismo ancho (ninguno queda solo en otra línea) */
  .rd-app.editor .ed-carrusel { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .rd-app.editor .ed-carrusel li { width: auto; }
  .rd-app.editor .ed-carrusel .ed-gtarjeta { height: 100%; }
  .rd-app.editor .ed-centro { max-width: 560px; margin: 0 auto; }
  .rd-app.editor .ed-inicio > .ed-hero h1 { font-size: 48px; }
  .rd-app.editor .ed-inicio > .ed-hero p { font-size: 18px; }
  .rd-app.editor .ed-ad { gap: var(--e-5); padding: 0 var(--e-4); }
}

/* ---------- Reducir movimiento: todo en su estado final, sin desplazamientos ---------- */
@media (prefers-reduced-motion: reduce) {
  .rd-app.editor .ed-entra > *, .rd-app.editor .ed-anillo .ed-orbita img, .rd-app.editor .ahora .ed-marca-paso::after { animation: none; }
  .rd-app.editor .ed-onda.cortando .ed-banda::before { animation: none; opacity: 1; }
  .rd-app.editor .ed-banda { transition: none; }
  .rd-app.editor .ed-anillo .avance, .rd-app.editor .ed-onda i, .rd-app.editor .ed-zona { transition: none; }
  .rd-app.editor .ed-zona.encima, .rd-app.editor .boton:active:not(:disabled), .rd-app.editor .ed-fila:active,
  .rd-app.editor button.ed-gtarjeta:active, .rd-app.editor .ed-redondo:active, .rd-app.editor fieldset .ed-gancho:active { transform: none; }
  .rd-app.editor .ed-gancho, .rd-app.editor .ed-gancho-marca { transition: none; }
  .rd-app.editor .ed-opcion, .rd-app.editor .ed-pulgar, .rd-app.editor .ed-ajustar .ico, .rd-app.editor details.ed-plegado > summary .ico { transition: none; }
  .rd-app.editor .ed-opcion:active, .rd-app.editor .ed-pulgar:active { transform: none; }
}

/* Sin sesión con el editor abierto (09/11/2026): botones arriba, el antes/después, los pasos y el precio */
.rd-app.editor .ed-sin-sesion .ed-ss-acciones { display: flex; flex-wrap: wrap; gap: var(--e-3); justify-content: center; }
.rd-app.editor .ed-sin-sesion .ed-ss-acciones .boton { min-height: 48px; flex: 1 1 200px; max-width: 280px; justify-content: center; }
.rd-app.editor .ed-ss-pasos { list-style: none; margin: 0; display: grid; gap: var(--e-3); }
.rd-app.editor .ed-ss-pasos li { display: flex; align-items: center; gap: var(--e-3); }
.rd-app.editor .ed-ss-pasos b { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #a78bfa, #5b6cff); color: #fff; font-size: 15px; }
.rd-app.editor .ed-ss-precio { text-align: center; font-weight: 600; margin: 0; }
.rd-app.editor .ed-ss-nota { text-align: center; margin: 0; }
