/* ════════════════════════════════════════════════════════════════════
   Órbita · Estudio de vídeo
   ════════════════════════════════════════════════════════════════════ */
.est-host-editor { height: calc(100vh - var(--barra)); }
.est-host-inicio { min-height: calc(100vh - var(--barra)); }

/* ── Inicio del Estudio ───────────────────────────────────────────── */
.est-inicio { padding: 10px 32px 60px; display: flex; flex-direction: column; gap: 34px; animation: aparecer .5s cubic-bezier(.2,.8,.2,1); }
.est-heroe { position: relative; display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: center; padding: 34px 38px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(circle at 85% 20%, rgba(34,211,238,.35), transparent 45%), radial-gradient(circle at 10% 110%, rgba(255,79,163,.35), transparent 50%), linear-gradient(135deg, #120f36, #1b0f3b 50%, #0d1b3a);
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 80px rgba(34, 211, 238, .12); }
.est-heroe::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 60px), repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 60px); pointer-events: none; }
.est-heroe-txt { position: relative; z-index: 1; }
.est-heroe h1 { font-size: 44px; line-height: 1.05; letter-spacing: -.035em; margin: 14px 0 12px; color: #fff; }
.est-heroe p { color: #c9cdf5; max-width: 620px; font-size: 15px; margin: 0 0 22px; }
.est-grad { background: linear-gradient(90deg, #22D3EE, #7B5CFF 50%, #FF4FA3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.est-pildora { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 30px; background: rgba(34,211,238,.14); border: 1px solid rgba(34,211,238,.35); color: #8ef0ff; font-weight: 700; font-size: 12.5px; }
.est-heroe-arte { position: relative; height: 260px; z-index: 1; }
.est-orbita-arte { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 20px 50px rgba(123,92,255,.6)); animation: flotar 6s ease-in-out infinite; }
.est-sat { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; animation: est-orbitar 14s linear infinite; }
.est-sat svg { filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.est-sat.s1 { animation-delay: -2.33s; } .est-sat.s2 { animation-delay: -4.66s; } .est-sat.s3 { animation-delay: -7s; } .est-sat.s4 { animation-delay: -9.33s; } .est-sat.s5 { animation-delay: -11.66s; }
@keyframes est-orbitar { from { transform: rotate(0deg) translateX(150px) rotate(0deg) scaleY(1); } to { transform: rotate(360deg) translateX(150px) rotate(-360deg); } }

.est-sec-cab { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.est-sec-cab h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; margin-right: auto; }
.est-sec-cab h2 .ico { color: #22D3EE; }
.est-formatos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.est-formato { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--borde); color: var(--texto); text-decoration: none; text-align: center; transition: transform var(--transicion), border-color var(--transicion), box-shadow var(--transicion); }
.est-formato:hover { transform: translateY(-4px); border-color: rgba(34,211,238,.6); box-shadow: 0 16px 40px rgba(34,211,238,.18); }
.est-formato-marco { display: grid; place-items: center; border-radius: 9px; border: 2px solid var(--borde-fuerte); background: linear-gradient(160deg, rgba(123,92,255,.25), rgba(255,79,163,.18)); margin-bottom: 8px; max-height: 78px; max-width: 120px; }
.est-formato b { font-size: 13.5px; }
.est-formato small { font-size: 11.5px; color: var(--apagado); line-height: 1.3; }
.est-formato-res { position: absolute; top: 8px; right: 10px; font-family: var(--fuente-mono); font-size: 9.5px; color: var(--tenue); }

.est-plantillas { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.est-plantilla { cursor: pointer; border-radius: 18px; padding: 8px; background: var(--panel); border: 1px solid var(--borde); transition: transform var(--transicion), box-shadow var(--transicion), border-color var(--transicion); }
.est-plantilla:hover { transform: translateY(-4px) scale(1.01); border-color: rgba(123,92,255,.7); box-shadow: 0 18px 46px rgba(123,92,255,.25); }
.est-plantilla-lienzo { position: relative; border-radius: 12px; overflow: hidden; background: #000; max-height: 340px; margin: 0 auto; }
.est-plantilla-lienzo canvas { width: 100%; height: 100%; display: block; }
.est-plantilla-usar { position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 10px); opacity: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 30px; background: rgba(255,255,255,.92); color: #111; font-weight: 800; font-size: 12.5px; transition: all var(--transicion); white-space: nowrap; }
.est-plantilla:hover .est-plantilla-usar { opacity: 1; transform: translate(-50%, 0); }
.est-plantilla-info { display: flex; gap: 10px; align-items: flex-start; padding: 10px 4px 2px; }
.est-plantilla-info > span { font-size: 22px; line-height: 1; }
.est-plantilla-info b { display: block; font-size: 13.5px; }
.est-plantilla-info small { color: var(--apagado); font-size: 11.5px; }

.est-proyectos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.est-proy { position: relative; cursor: pointer; border-radius: 18px; padding: 8px; background: var(--panel); border: 1px solid var(--borde); transition: transform var(--transicion), border-color var(--transicion); }
.est-proy:hover { transform: translateY(-3px); border-color: var(--borde-fuerte); }
.est-proy-mini { position: relative; border-radius: 12px; overflow: hidden; background: #000; max-height: 260px; display: grid; place-items: center; }
.est-proy-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.est-proy-vacia { color: var(--tenue); }
.est-proy-vacia .ico { width: 36px; height: 36px; }
.est-proy-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 7px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 700; font-family: var(--fuente-mono); }
.est-proy-red { position: absolute; left: 8px; top: 8px; width: 18px; height: 18px; }
.est-proy-exp { position: absolute; right: 8px; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: #10B981; color: #fff; display: grid; place-items: center; }
.est-proy-exp .ico { width: 13px; height: 13px; }
.est-proy-info { padding: 10px 34px 4px 4px; }
.est-proy-info b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-proy-info small { color: var(--apagado); font-size: 11.5px; }
.est-proy-mas { position: absolute; right: 6px; bottom: 8px; }
.est-sin-proy { display: flex; gap: 16px; align-items: center; padding: 26px; border-radius: 18px; border: 2px dashed var(--borde-fuerte); color: var(--apagado); }
.est-sin-proy > .ico { width: 40px; height: 40px; color: #22D3EE; }
.est-sin-proy p { margin: 4px 0 0; }

/* ── Editor ────────────────────────────────────────────────────────── */
.est-editor { display: grid; grid-template-rows: 52px minmax(0, 1fr) 6px var(--alto-linea, 270px); height: 100%; background: linear-gradient(180deg, rgba(8,9,26,.92), rgba(5,6,18,.96)); }
.est-barra { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--borde); background: rgba(10,11,32,.8); backdrop-filter: blur(12px); min-width: 0; }
.est-nombre { width: 230px; background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 7px 10px; font-weight: 700; font-size: 14.5px; color: var(--texto); outline: none; }
.est-nombre:hover { border-color: var(--borde); }
.est-nombre:focus { border-color: #22D3EE; background: rgba(0,0,0,.25); }
.est-estado { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--apagado); white-space: nowrap; }
.est-estado .ico { width: 14px; height: 14px; }
.est-estado.guardado { color: var(--exito); }
.est-estado.error { color: var(--peligro); }
.est-estado.cambios { color: var(--aviso); }
.est-formato { }
.est-barra .est-formato { display: inline-flex; gap: 7px; }
.est-forma-mini { display: inline-block; height: 16px; border: 2px solid currentColor; border-radius: 3px; opacity: .8; }
.est-on { background: rgba(34,211,238,.16) !important; border-color: rgba(34,211,238,.5) !important; color: #8ef0ff !important; }
.est-seg-peq { padding: 3px; }
.est-seg-peq button { padding: 5px 10px; font-size: 12px; }
.est-exportar { box-shadow: 0 6px 24px rgba(34,211,238,.35); }

.est-cuerpo { display: grid; grid-template-columns: 318px minmax(0, 1fr) 336px; min-height: 0; }

/* Recursos */
.est-recursos { display: grid; grid-template-columns: 66px minmax(0, 1fr); border-right: 1px solid var(--borde); min-height: 0; background: rgba(9,10,28,.6); }
.est-rail { display: flex; flex-direction: column; gap: 2px; padding: 8px 6px; border-right: 1px solid var(--borde); overflow-y: auto; }
.est-rail button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border: 0; border-radius: 11px; background: transparent; color: var(--apagado); font-size: 10px; font-weight: 700; transition: all var(--transicion); }
.est-rail button:hover { color: var(--texto); background: var(--panel-2); }
.est-rail button.activo { color: #fff; background: linear-gradient(160deg, rgba(34,211,238,.35), rgba(123,92,255,.35)); box-shadow: inset 0 0 0 1px rgba(34,211,238,.4); }
.est-rail .ico { width: 20px; height: 20px; }
.est-rec-cont { padding: 14px 14px 30px; overflow-y: auto; min-width: 0; }
.est-rec-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.est-rec-cab h4 { font-size: 14.5px; }
.est-buscar { margin-bottom: 10px; }
.est-buscar .entrada { padding-top: 7px; padding-bottom: 7px; }
.est-ancho { width: 100%; }
.est-aviso-peq { padding: 9px 11px; font-size: 12px; margin-bottom: 10px; }
.est-vacio-rec { text-align: center; color: var(--apagado); padding: 26px 10px; font-size: 12.5px; }
.est-vacio-rec .ico { width: 34px; height: 34px; color: #22D3EE; }
.est-rejilla-medios { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.est-medio { position: relative; aspect-ratio: 1; border-radius: 11px; overflow: hidden; background: #000; cursor: grab; border: 1px solid var(--borde); transition: transform .15s, box-shadow .15s; }
.est-medio:hover { transform: scale(1.03); box-shadow: 0 0 0 2px #22D3EE; }
.est-medio img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.est-medio-audio { display: grid; place-items: center; height: 100%; background: linear-gradient(135deg, #10B981, #22D3EE); color: #fff; }
.est-medio-dur { position: absolute; right: 5px; top: 5px; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.7); color: #fff; font-size: 10.5px; font-weight: 700; }
.est-medio-nombre { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 4px; font-size: 10.5px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.8)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-rejilla-textos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.est-texto-pre { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 10px 6px; border-radius: 12px; background: linear-gradient(160deg, #1a1740, #0f0e26); border: 1px solid var(--borde); cursor: grab; transition: all .15s; overflow: hidden; }
.est-texto-pre:hover { border-color: rgba(123,92,255,.7); transform: translateY(-2px); }
.est-texto-muestra { font-size: 19px; line-height: 1.1; text-align: center; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-texto-pre small { font-size: 10.5px; color: var(--apagado); font-weight: 600; }
.est-rejilla-formas { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.est-forma-pre { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--borde); cursor: grab; transition: all .15s; }
.est-forma-pre:hover { border-color: #FF4FA3; }
.est-forma-dib { width: 100%; aspect-ratio: 1.3; display: grid; place-items: center; }
.est-forma-dib i { display: block; }
.est-forma-pre small { font-size: 10px; color: var(--apagado); text-align: center; }
.est-rejilla-stickers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.est-rejilla-stickers button { border: 0; background: var(--panel); border-radius: 10px; font-size: 24px; aspect-ratio: 1; cursor: grab; transition: transform .15s, background .15s; font-family: 'Segoe UI Emoji', sans-serif; }
.est-rejilla-stickers button:hover { transform: scale(1.18); background: var(--panel-3); }
.est-rejilla-fondos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.est-rejilla-fondos button { aspect-ratio: 9/14; border-radius: 9px; border: 2px solid rgba(255,255,255,.12); cursor: pointer; transition: transform .15s; }
.est-rejilla-fondos button:hover { transform: scale(1.06); border-color: #fff; }
.est-lista-audio { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.est-audio-item { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 11px; background: var(--panel); border: 1px solid var(--borde); cursor: grab; }
.est-audio-item:hover { border-color: #10B981; }
.est-audio-item b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.est-audio-item small { font-size: 10.5px; color: var(--apagado); }
.est-audio-ico { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, #10B981, #22D3EE); color: #fff; }
.est-audio-ico .ico { width: 16px; height: 16px; }
.est-mini-onda { width: 46px; height: 20px; flex: none; }
.est-mini-onda rect { fill: #34D399; }
.est-int { margin: 10px 0; font-size: 12.5px; }
.est-grabar-btn { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--borde); background: var(--panel); text-align: left; transition: all .15s; }
.est-grabar-btn:hover { border-color: #FF4FA3; transform: translateY(-2px); }
.est-grabar-btn > span { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #FF4FA3, #7B5CFF); color: #fff; }
.est-grabar-btn b { display: block; font-size: 13.5px; }
.est-grabar-btn small { color: var(--apagado); font-size: 11.5px; }
.est-marca-logo { display: flex; gap: 10px; align-items: center; margin: 8px 0 12px; }
.est-marca-logo img { width: 70px; height: 70px; object-fit: contain; border-radius: 10px; background: repeating-conic-gradient(#333 0 25%, #222 0 50%) 0 0 / 14px 14px; }
.est-pos-marca { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 10px; }
.est-pos-marca button { padding: 6px 0; border-radius: 8px; border: 1px solid var(--borde); background: var(--panel); font-size: 15px; }
.est-pos-marca button.activo { background: rgba(34,211,238,.2); border-color: #22D3EE; }
.est-colores-marca { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.est-colores-marca button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); cursor: pointer; transition: transform .15s; }
.est-colores-marca button:hover { transform: scale(1.15); }
.est-estilos-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.est-estilos-sub button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 11px; background: #000; border: 1px solid var(--borde); color: #fff; font-size: 15px; }
.est-estilos-sub button.activo { border-color: #22D3EE; box-shadow: 0 0 0 2px rgba(34,211,238,.35); }
.est-estilos-sub small { font-size: 10px; color: #aaa; font-family: var(--fuente); font-weight: 600; }
.est-lista-subs { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; max-height: 340px; overflow-y: auto; }
.est-sub-item { display: flex; gap: 6px; align-items: center; padding: 4px; border-radius: 9px; cursor: pointer; }
.est-sub-item.sel { background: rgba(255,181,71,.15); }
.est-sub-item small { width: 38px; flex: none; font-family: var(--fuente-mono); font-size: 10.5px; color: var(--apagado); }
.est-sub-item .entrada { padding: 5px 8px; font-size: 12px; }

/* Escenario */
.est-escenario { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 18px 24px 70px; min-width: 0; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(123,92,255,.12), transparent 60%), radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 22px 22px; }
.est-escenario:fullscreen { background: #000; padding: 0 0 70px; }
.est-lienzo-caja { position: relative; flex: none; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.6), 0 0 120px rgba(34,211,238,.08); cursor: default; user-select: none; touch-action: none; }
.est-lienzo-caja.soltando { box-shadow: 0 0 0 3px #22D3EE, 0 30px 80px rgba(0,0,0,.6); }
.est-lienzo { width: 100%; height: 100%; display: block; }
.est-superpuesto { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.est-zona { position: absolute; background: repeating-linear-gradient(45deg, rgba(255,70,90,.13) 0 7px, transparent 7px 14px); border: 1px dashed rgba(255,110,120,.45); }
.est-zona span { position: absolute; left: 6px; top: 4px; font-size: 9.5px; font-weight: 800; color: rgba(255,170,175,.9); text-transform: uppercase; letter-spacing: .05em; text-shadow: 0 1px 2px #000; }
.est-tercios { position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
  linear-gradient(0deg, transparent calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% - .5px) calc(33.33% + .5px), transparent calc(33.33% + .5px) calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% - .5px) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
.est-guia-x { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -.5px; background: #FF4FA3; box-shadow: 0 0 6px #FF4FA3; display: none; }
.est-guia-y { position: absolute; left: 0; right: 0; height: 1px; margin-top: -.5px; background: #FF4FA3; box-shadow: 0 0 6px #FF4FA3; display: none; }
.est-seleccion { position: absolute; left: 0; top: 0; border: 1.5px solid #22D3EE; box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 0 18px rgba(34,211,238,.35); transform-origin: 50% 50%; }
.est-seleccion .h { position: absolute; width: 11px; height: 11px; border-radius: 3px; background: #fff; border: 2px solid #22D3EE; pointer-events: auto; }
.est-seleccion .tl { left: -6px; top: -6px; cursor: nwse-resize; } .est-seleccion .tr { right: -6px; top: -6px; cursor: nesw-resize; }
.est-seleccion .bl { left: -6px; bottom: -6px; cursor: nesw-resize; } .est-seleccion .br { right: -6px; bottom: -6px; cursor: nwse-resize; }
.est-seleccion .rot { position: absolute; left: 50%; top: -34px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; pointer-events: auto; cursor: grab; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.est-seleccion .rot .ico { width: 13px; height: 13px; }
.est-seleccion .rot::after { content: ''; position: absolute; top: 22px; left: 50%; width: 1.5px; height: 12px; background: #22D3EE; }
.est-transporte { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 40px; background: rgba(14,16,40,.85); border: 1px solid var(--borde-fuerte); backdrop-filter: blur(14px); box-shadow: 0 12px 30px rgba(0,0,0,.4); white-space: nowrap; }
.est-transporte .btn .ico + .ico { margin-left: -12px; }
.est-play { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #22D3EE, #7B5CFF 55%, #FF4FA3); box-shadow: 0 6px 20px rgba(123,92,255,.5); transition: transform .15s; }
.est-play:hover { transform: scale(1.08); }
.est-play .ico { width: 18px; height: 18px; }
.est-tiempo { font-family: var(--fuente-mono); font-size: 13px; font-weight: 600; padding: 0 6px; }

/* Propiedades */
.est-props { border-left: 1px solid var(--borde); display: flex; flex-direction: column; min-height: 0; background: rgba(9,10,28,.6); }
.est-props-cab { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--borde); }
.est-props-cab b { display: block; font-size: 14px; }
.est-props-cab small { font-family: var(--fuente-mono); font-size: 10.5px; color: var(--apagado); }
.est-props-ico { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #22D3EE, #7B5CFF); }
.est-props-ico.tipo-video { background: linear-gradient(135deg, #3B82F6, #6366F1); }
.est-props-ico.tipo-imagen { background: linear-gradient(135deg, #14B8A6, #22D3EE); }
.est-props-ico.tipo-texto, .est-props-ico.tipo-subtitulos { background: linear-gradient(135deg, #8B5CF6, #C04DFF); }
.est-props-ico.tipo-forma { background: linear-gradient(135deg, #EC4899, #FF4FA3); }
.est-props-ico.tipo-sticker { background: linear-gradient(135deg, #F59E0B, #FFB547); }
.est-props-ico.tipo-audio { background: linear-gradient(135deg, #10B981, #34D399); }
.est-props-pes { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--borde); overflow-x: auto; }
.est-props-pes button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border: 0; border-radius: 9px; background: transparent; color: var(--apagado); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.est-props-pes button:hover { color: var(--texto); background: var(--panel-2); }
.est-props-pes button.activo { color: #fff; background: rgba(34,211,238,.18); box-shadow: inset 0 0 0 1px rgba(34,211,238,.4); }
.est-props-pes .ico { width: 17px; height: 17px; }
.est-props-cuerpo { overflow-y: auto; flex: 1; padding-bottom: 30px; }
.est-seccion { padding: 14px; border-bottom: 1px solid var(--borde); display: flex; flex-direction: column; gap: 8px; }
.est-seccion h5 { margin: 0 0 2px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--apagado); display: flex; align-items: center; gap: 7px; font-weight: 800; }
.est-seccion h5 .ico { width: 14px; height: 14px; color: #22D3EE; }
.est-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.est-sel { padding: 8px 32px 8px 11px; font-size: 13px; }
.est-area { min-height: 70px; font-size: 13.5px; }
.est-rango { display: flex; flex-direction: column; gap: 3px; }
.est-rango-cab { display: flex; align-items: center; gap: 6px; }
.est-rango-cab label { font-size: 12px; font-weight: 650; color: var(--texto-2); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-num { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; color: var(--apagado); }
.est-num input { width: 58px; padding: 3px 5px; border-radius: 7px; border: 1px solid var(--borde); background: rgba(0,0,0,.25); font-family: var(--fuente-mono); font-size: 11.5px; text-align: right; color: var(--texto); }
.est-num input::-webkit-inner-spin-button { display: none; }
.est-rango input[type="range"] { height: 18px; accent-color: #22D3EE; }
.est-rombo { width: 22px; height: 22px; border: 1px solid var(--borde); border-radius: 6px; background: transparent; color: var(--tenue); font-size: 11px; line-height: 1; padding: 0; }
.est-rombo:hover { color: #FFB547; border-color: #FFB547; }
.est-rombo.hay { color: #FFB547; opacity: .65; }
.est-rombo.activo { color: #111; background: #FFB547; border-color: #FFB547; }
.est-fila-color { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.est-fila-color > label { width: 70px; font-size: 12px; font-weight: 650; color: var(--texto-2); }
.est-fila-color input[type="color"] { width: 32px; height: 32px; }
.est-fila-color input[type="range"] { flex: 1; min-width: 80px; }
.est-info-medio { display: flex; align-items: center; gap: 6px; word-break: break-all; }
.est-info-medio .ico { width: 14px; height: 14px; flex: none; }
.est-emoji-in { font-size: 26px; text-align: center; font-family: 'Segoe UI Emoji', sans-serif; }
.est-estilos-rapidos { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.est-estilos-rapidos button { aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--borde); background: #111; font-size: 15px; padding: 0; }
.est-estilos-rapidos button:hover { border-color: #22D3EE; }
.est-anim-bloque { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-bottom: 1px dashed var(--borde); }
.est-anim-bloque:last-of-type { border-bottom: 0; }
.est-galeria-tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 4px; }
.est-galeria-tr button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 2px; border-radius: 9px; border: 1px solid var(--borde); background: var(--panel); font-size: 9.5px; font-weight: 700; color: var(--texto-2); }
.est-galeria-tr button.activo, .est-galeria-tr button:hover { border-color: #22D3EE; color: #fff; }
.est-tr-ico { width: 34px; height: 22px; border-radius: 4px; background: linear-gradient(90deg, #7B5CFF 50%, #22D3EE 50%); position: relative; overflow: hidden; }
.est-galeria-tr button:hover .est-tr-ico { animation: est-tr-demo 1s ease infinite; }
@keyframes est-tr-demo { 0% { background-position: 0 0; filter: none; } 50% { filter: brightness(1.6); } }
.tr-fundido { background: linear-gradient(90deg, #7B5CFF, #22D3EE); }
.tr-negro { background: linear-gradient(90deg, #7B5CFF, #000 50%, #22D3EE); }
.tr-blanco { background: linear-gradient(90deg, #7B5CFF, #fff 50%, #22D3EE); }
.tr-circulo { background: radial-gradient(circle, #22D3EE 40%, #7B5CFF 42%); }
.tr-persiana { background: repeating-linear-gradient(0deg, #22D3EE 0 3px, #7B5CFF 3px 6px); }
.tr-glitch { background: linear-gradient(90deg, #7B5CFF 40%, #ff00c8 40% 46%, #22D3EE 46%); }
.tr-destello { background: radial-gradient(circle, #fff 20%, #22D3EE 60%); }
.tr-zoomIn, .tr-zoomOut { background: radial-gradient(circle, #22D3EE 30%, #7B5CFF 31%); }
.tr-giro { background: conic-gradient(#22D3EE, #7B5CFF, #22D3EE); }
.tr-desenfoque { background: linear-gradient(90deg, #7B5CFF, #22D3EE); filter: blur(2px); }
.tr-deslizarArriba, .tr-deslizarAbajo { background: linear-gradient(0deg, #7B5CFF 50%, #22D3EE 50%); }
.est-looks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.est-looks button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px 2px; border-radius: 10px; border: 1px solid transparent; background: transparent; }
.est-looks button span { width: 100%; aspect-ratio: 1.3; border-radius: 8px; }
.est-looks button small { font-size: 10px; font-weight: 700; color: var(--texto-2); }
.est-looks button.activo, .est-looks button:hover { border-color: #22D3EE; background: var(--panel); }
.est-clave-fila { padding: 8px 0; border-bottom: 1px dashed var(--borde); font-size: 12.5px; }
.est-claves-lista { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.est-clave-chip { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 8px; background: var(--panel); font-size: 11.5px; }
.est-clave-chip.actual { background: rgba(255,181,71,.18); }
.est-clave-chip span { flex: 1; cursor: pointer; font-family: var(--fuente-mono); }
.est-clave-chip select { background: var(--panel-solido); border: 1px solid var(--borde); border-radius: 6px; font-size: 11px; padding: 2px; }
.est-clave-chip button { border: 0; background: transparent; color: var(--peligro); font-size: 15px; }
.est-formato-tarjeta { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--panel); }
.est-formato-tarjeta b { display: block; font-size: 13px; }
.est-formato-tarjeta small { font-size: 11.5px; color: var(--apagado); }
.est-marcador-fila { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; cursor: pointer; font-size: 12.5px; }
.est-marcador-fila:hover { background: var(--panel); }
.est-marcador-fila i { width: 10px; height: 10px; border-radius: 3px; }
.est-marcador-fila small { font-family: var(--fuente-mono); color: var(--apagado); }
.est-consejo { display: flex; gap: 10px; margin: 14px; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(34,211,238,.1), rgba(123,92,255,.1)); border: 1px solid rgba(34,211,238,.25); font-size: 12.5px; color: var(--texto-2); }
.est-consejo .ico { color: #22D3EE; flex: none; }

/* Tirador entre escenario y línea */
.est-tirador { cursor: ns-resize; background: linear-gradient(var(--borde), var(--borde)) center / 100% 1px no-repeat; position: relative; }
.est-tirador::after { content: ''; position: absolute; left: 50%; top: 1px; width: 44px; height: 4px; margin-left: -22px; border-radius: 4px; background: var(--borde-fuerte); }
.est-tirador:hover::after { background: #22D3EE; }

/* ── Línea de tiempo ──────────────────────────────────────────────── */
.est-linea { display: grid; grid-template-rows: 42px minmax(0, 1fr); min-height: 0; background: #080918; }
.est-linea-barra { display: flex; align-items: center; gap: 4px; padding: 0 10px; border-bottom: 1px solid var(--borde); overflow-x: auto; white-space: nowrap; }
.est-linea-barra .btn.peq { height: 29px; }
.est-sep { width: 1px; height: 20px; background: var(--borde-fuerte); margin: 0 4px; }
.est-zoom { width: 110px; accent-color: #22D3EE; }
.est-linea-scroll { overflow: auto; position: relative; }
.est-linea-lienzo { position: relative; min-height: 100%; }
.est-regla { position: sticky; top: 0; z-index: 6; display: flex; height: 28px; background: #0c0d22; border-bottom: 1px solid var(--borde); }
.est-regla-cab { position: sticky; left: 0; z-index: 7; width: 170px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: #0c0d22; border-right: 1px solid var(--borde); font-family: var(--fuente-mono); font-size: 12px; color: #8ef0ff; }
.est-regla-cab .ico { width: 14px; height: 14px; }
.est-regla-marcas { position: relative; cursor: col-resize; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 1px, transparent 1px var(--paso)), repeating-linear-gradient(90deg, rgba(255,255,255,.1) 0 1px, transparent 1px calc(var(--paso) / 5)); background-size: 100% 9px, 100% 5px; background-position: 0 100%, 0 100%; background-repeat: repeat-x; }
.est-marca-t { position: absolute; top: 3px; padding-left: 4px; font-size: 10px; font-family: var(--fuente-mono); color: var(--apagado); pointer-events: none; }
.est-fin { position: absolute; top: 0; height: 2000px; border-left: 2px dashed rgba(255,79,163,.5); pointer-events: none; z-index: 1; }
.est-marcador { position: absolute; top: 0; z-index: 3; cursor: pointer; }
.est-marcador i { position: absolute; left: -6px; top: 0; width: 12px; height: 14px; background: var(--c); clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%); }
.est-marcador b { position: absolute; left: 9px; top: 1px; font-size: 9.5px; color: var(--c); white-space: nowrap; font-weight: 800; }
.est-pista { display: flex; height: 54px; border-bottom: 1px solid rgba(255,255,255,.05); }
.est-pista.tipo-audio { height: 50px; }
.est-pista.tipo-subtitulos { height: 40px; }
.est-pista.tipo-grafico { height: 44px; }
.est-pista-cab { position: sticky; left: 0; z-index: 4; width: 170px; flex: none; display: flex; align-items: center; gap: 7px; padding: 0 6px 0 10px; background: #0c0d22; border-right: 1px solid var(--borde); }
.est-pista-ico { width: 24px; height: 24px; flex: none; border-radius: 7px; display: grid; place-items: center; background: var(--panel-3); color: var(--texto-2); }
.est-pista-ico .ico { width: 14px; height: 14px; }
.est-pista-nombre { flex: 1; min-width: 0; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: text; }
.est-pista-btns { display: flex; gap: 0; opacity: .45; transition: opacity .15s; }
.est-pista:hover .est-pista-btns { opacity: 1; }
.est-pista-btns button { width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: var(--texto-2); display: grid; place-items: center; padding: 0; }
.est-pista-btns button:hover { background: var(--panel-3); color: #fff; }
.est-pista-btns .ico { width: 13px; height: 13px; }
.est-pista.oculta .est-carril { opacity: .35; }
.est-pista.bloqueada .est-carril { background: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 6px, transparent 6px 12px); }
.est-carril { position: relative; flex: 1; }
.est-carril.soltando { background: rgba(34,211,238,.08); box-shadow: inset 0 0 0 1px rgba(34,211,238,.5); }
.est-clip { position: absolute; top: 4px; bottom: 4px; border-radius: 8px; overflow: hidden; cursor: grab; display: flex; align-items: center; color: #fff; user-select: none;
  background: linear-gradient(180deg, #4F46E5, #3730A3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 2px 6px rgba(0,0,0,.35); background-repeat: repeat-x; }
.est-clip:active { cursor: grabbing; }
.est-clip.tipo-video { background-color: #1e3a8a; }
.est-clip.tipo-imagen { background-color: #115e59; background-image: linear-gradient(180deg, #14B8A6, #0F766E); }
.est-clip.tipo-texto { background: linear-gradient(180deg, #8B5CF6, #6D28D9); }
.est-clip.tipo-subtitulos { background: linear-gradient(180deg, #F59E0B, #B45309); }
.est-clip.tipo-forma { background: var(--muestra, #EC4899); }
.est-clip.tipo-forma .est-clip-etq { background: rgba(0,0,0,.45); }
.est-clip.tipo-sticker { background: linear-gradient(180deg, #FBBF24, #D97706); }
.est-clip.tipo-audio { background: linear-gradient(180deg, #10B981, #047857); }
.est-clip.hueco { background: repeating-linear-gradient(45deg, #2b2160 0 8px, #3a2a72 8px 16px) !important; border: 1px dashed rgba(255,255,255,.4); }
.est-clip.sel { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(34,211,238,.6), 0 6px 18px rgba(0,0,0,.5); z-index: 2; }
.est-clip-etq { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 5px; margin: 0 8px; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; max-width: calc(100% - 16px); text-shadow: 0 1px 2px rgba(0,0,0,.6); background: rgba(0,0,0,.28); pointer-events: none; }
.est-clip-etq span { overflow: hidden; text-overflow: ellipsis; }
.est-clip-etq .ico { width: 12px; height: 12px; flex: none; }
.est-chip-vel { padding: 0 4px; border-radius: 4px; background: rgba(255,255,255,.25); font-size: 10px; }
.est-onda { position: absolute; inset: 2px 0; width: 100%; height: calc(100% - 4px); pointer-events: none; }
.est-onda rect { fill: rgba(255,255,255,.38); }
.est-clip.tipo-video .est-onda { inset: auto 0 0 0; height: 45%; }
.est-clip.tipo-video .est-onda rect { fill: rgba(16,185,129,.75); }
.est-tr { position: absolute; top: 0; bottom: 0; z-index: 1; pointer-events: none; }
.est-tr.ini { left: 0; background: linear-gradient(90deg, rgba(255,255,255,.45), transparent); clip-path: polygon(0 0, 100% 0, 0 100%); }
.est-tr.fin { right: 0; background: linear-gradient(-90deg, rgba(255,255,255,.45), transparent); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.est-fundido { position: absolute; top: 0; bottom: 0; z-index: 1; pointer-events: none; background: rgba(0,0,0,.35); }
.est-fundido.ini { left: 0; clip-path: polygon(0 0, 0 100%, 100% 0); }
.est-fundido.fin { right: 0; clip-path: polygon(0 0, 100% 100%, 100% 0); }
.est-clave { position: absolute; bottom: 2px; width: 7px; height: 7px; margin-left: -3.5px; background: #FFB547; transform: rotate(45deg); z-index: 3; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.5); }
.est-asa { position: absolute; top: 0; bottom: 0; width: 9px; z-index: 4; cursor: ew-resize; }
.est-asa.izq { left: 0; } .est-asa.der { right: 0; }
.est-clip:hover .est-asa, .est-clip.sel .est-asa { background: rgba(255,255,255,.28); }
.est-asa::after { content: ''; position: absolute; top: 30%; bottom: 30%; left: 3px; width: 2px; border-radius: 2px; background: rgba(255,255,255,.8); opacity: 0; }
.est-clip:hover .est-asa::after, .est-clip.sel .est-asa::after { opacity: 1; }
.est-cursor { position: absolute; top: 0; bottom: 0; left: 170px; width: 2px; margin-left: -1px; background: #FF4FA3; z-index: 8; pointer-events: none; box-shadow: 0 0 10px rgba(255,79,163,.7); will-change: transform; }
.est-cursor i { position: absolute; top: 0; left: -6px; width: 14px; height: 16px; background: #FF4FA3; clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }

/* ── Exportar ─────────────────────────────────────────────────────── */
.est-exp-modal .m-cuerpo { padding: 22px; }
.est-exp-opciones { display: flex; flex-direction: column; gap: 16px; }
.est-exp-resumen { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(34,211,238,.1), rgba(123,92,255,.12)); border: 1px solid rgba(34,211,238,.25); }
.est-exp-forma { display: grid; place-items: center; height: 64px; border: 2px solid rgba(255,255,255,.4); border-radius: 8px; flex: none; }
.est-exp-calidades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.est-exp-calidades button { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 13px; border: 1px solid var(--borde); background: var(--panel); text-align: left; }
.est-exp-calidades button.activo { border-color: #22D3EE; background: rgba(34,211,238,.12); box-shadow: 0 0 0 2px rgba(34,211,238,.25); }
.est-exp-calidades small { color: var(--apagado); font-size: 11.5px; }
.est-exp-progreso { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: center; }
.est-exp-vista { display: grid; place-items: center; background: #000; border-radius: 14px; overflow: hidden; height: 380px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.est-exp-lienzo { max-width: 100%; max-height: 380px; width: auto; height: auto; display: block; }
.est-exp-datos { text-align: center; }
.est-exp-datos h3 { margin: 10px 0 14px; font-size: 17px; }
.est-exp-anillo { position: relative; width: 170px; height: 170px; margin: 0 auto; }
.est-anillo { width: 100%; height: 100%; filter: drop-shadow(0 0 18px rgba(123,92,255,.45)); }
.est-anillo circle:last-child { transition: stroke-dasharray .25s ease; }
.est-exp-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2px; font-family: var(--fuente-titulo); font-size: 44px; font-weight: 700; }
.est-exp-pct small { font-size: 18px; color: var(--apagado); }
.est-exp-pct .ico { width: 44px; height: 44px; color: #22D3EE; animation: latir 1.2s infinite; }
.est-exp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.est-exp-stats div { padding: 8px; border-radius: 10px; background: var(--panel); }
.est-exp-stats b { display: block; font-family: var(--fuente-mono); font-size: 15px; }
.est-exp-stats small { font-size: 10.5px; color: var(--apagado); }
.est-exp-hecho { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: center; }
.est-exp-video { width: 100%; max-height: 440px; background: #000; border-radius: 14px; }
.est-exp-fin { display: flex; flex-direction: column; gap: 10px; }
.est-exp-fin h2 { font-size: 26px; }
.est-exp-fin p { margin: 0 0 6px; }
.est-exp-ok { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #10B981, #34D399); color: #fff; box-shadow: 0 10px 30px rgba(16,185,129,.45); animation: emerger .5s cubic-bezier(.2,1.4,.3,1); }
.est-exp-ok .ico { width: 30px; height: 30px; }
.est-exp-redes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.est-exp-redes .btn { justify-content: flex-start; }

/* ── Grabar ───────────────────────────────────────────────────────── */
.est-grabar { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.est-grabar-video { width: 100%; max-height: 360px; border-radius: 14px; background: #000; }
.est-grabar-micro { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #FF4FA3, #7B5CFF); box-shadow: 0 0 0 calc(var(--nivel, 0) * 40px) rgba(255,79,163,.25); transition: box-shadow .08s; }
.est-grabar-micro .ico { width: 46px; height: 46px; }
.est-grabar-micro.activo { animation: latir 1.4s infinite; }
.est-grabar-nivel { width: 100%; height: 6px; border-radius: 6px; background: var(--panel-3); overflow: hidden; }
.est-grabar-nivel i { display: block; height: 100%; background: linear-gradient(90deg, #10B981, #FBBF24, #F87171); transition: width .08s; }
.est-grabar-tiempo { font-family: var(--fuente-mono); font-size: 30px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.est-grabar-tiempo.rojo { color: #F87171; }
.punto-rec { width: 14px; height: 14px; border-radius: 50%; background: #F87171; animation: pulso 1s infinite; box-shadow: 0 0 0 0 rgba(248,113,113,.6); }

@media (max-width: 1350px) {
  .est-cuerpo { grid-template-columns: 280px minmax(0, 1fr) 300px; }
  .est-heroe { grid-template-columns: 1fr; }
  .est-heroe-arte { display: none; }
}
