/* Pivot AI · simulador interactivo (copia visual del panel de DaVinci: pestañas Studio | Effects)
   Izquierda: el panel tal cual se ve en el plugin. Derecha: un editor simulado que muestra lo que hace cada función. */
.psim { --p-bg: #0d0d0f; --p-bar: #111113; --p-pill: #212126; --p-btn: #1a1a22; --p-line: rgba(255,255,255,.08);
  display: grid; grid-template-columns: 1fr minmax(330px, 400px); gap: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: var(--p-bg); box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(122,62,248,.12); height: 720px; font-size: 13px; color: #d4d4d4; text-align: left; }
.psim * { box-sizing: border-box; }
.psim button { font-family: inherit; }
@media (max-width: 980px) { .psim { grid-template-columns: 1fr; height: auto; } .ps-panel { height: 600px; } .ps-view { height: 640px; } }

/* ---------- barra superior estilo DaVinci ---------- */
.ps-panel { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--p-line); order: 2; position: relative; }
.ps-tabs { display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: var(--p-bar); border-bottom: 1px solid rgba(255,255,255,.06); flex: none; }
.ps-tabs img { width: 18px; height: 18px; margin: 0 6px 0 2px; }
.ps-tab { border: 1px solid transparent; background: transparent; color: #9a9aa3; font: 600 12px var(--font); padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.ps-tab:hover { color: #e0e0e0; background: rgba(255,255,255,.04); }
.ps-tab.on { color: #fff; background: rgba(117,68,248,.18); border-color: rgba(117,68,248,.45); }
.ps-tab small { font-weight: 400; color: #8b8b95; margin-left: 4px; }
.ps-sp { flex: 1; }
.ps-plan { display: inline-flex; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; overflow: hidden; }
.ps-plan button { border: 0; background: transparent; color: #8b8b95; font: 600 11px var(--font); padding: 5px 8px; cursor: pointer; }
.ps-plan button.on { background: #7544f8; color: #fff; }

/* ---------- cuerpo del panel ---------- */
.ps-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ps-body[hidden] { display: none; }
.ps-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; background: var(--p-bar); border-bottom: 1px solid rgba(255,255,255,.06); }
.ps-head b { color: #e0e0e0; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.ps-badge { font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.ps-badge.ok { color: #9ff0c2; background: #10261a; border: 1px solid #1f4d33; }
.ps-badge.free { color: #e2d8ff; background: #221b35; border: 1px solid #3a2e5c; }
.ps-dot { width: 8px; height: 8px; border-radius: 50%; background: #4caf50; box-shadow: 0 0 8px rgba(76,175,80,.6); display: inline-block; }
.ps-chat { flex: 1; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; min-height: 0; }
.ps-greet h4 { margin: 18px 0 4px; font-size: 22px; font-weight: 600; background: linear-gradient(135deg, #a78bfa, #7c3aed, #6d28d9); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ps-greet p { margin: 0; color: #888; font-size: 17px; }
.ps-greet small { display: block; margin-top: 14px; color: #6f6f7c; font-size: 12px; }
.ps-msg { background: #1a1a1e; border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 10px 12px; line-height: 1.5; max-width: 96%; animation: psIn .25s ease; }
.ps-msg.me { align-self: flex-end; background: #28213b; border-color: #3a2e5c; color: #fff; }
.ps-msg b { color: #fff; }
.ps-msg .muted { color: #8b8b96; }
@keyframes psIn { from { opacity: 0; transform: translateY(6px); } }
.ps-steps { display: flex; flex-direction: column; margin-top: 6px; }
.ps-step { display: flex; gap: 9px; align-items: center; padding: 5px 2px; border-bottom: 1px solid #22222a; font-size: 12.5px; color: #6b6b78; }
.ps-step:last-child { border-bottom: 0; }
.ps-step i { font-style: normal; width: 16px; height: 16px; flex: none; display: inline-grid; place-items: center; font-size: 11px; }
.ps-step.run { color: #fff; font-weight: 600; }
.ps-step.run i { border: 2px solid #3a2e5c; border-top-color: #a78bfa; border-radius: 50%; animation: psSpin .9s linear infinite; }
.ps-step.ok { color: #c8c8d0; }
@keyframes psSpin { to { transform: rotate(360deg); } }
.ps-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; border-radius: 12px; padding: 3px 9px; margin: 6px 4px 0 0; }
.ps-chip.ok { color: #9ff0c2; background: #10261a; border: 1px solid #1f4d33; }
.ps-chip.run { color: #d9d0ff; background: #221b35; border: 1px solid #3a2e5c; }
.ps-chip.opt { color: #c8c8d0; background: #1c1c22; border: 1px solid #2c2c35; }
.ps-code { margin-top: 8px; background: #0d0d10; border: 1px solid #24242a; border-radius: 8px; padding: 7px 9px; font: 11px/1.45 var(--mono); color: #d6d6de; max-height: 120px; overflow: hidden; white-space: pre; }
.ps-code .k { color: #a78bfa; } .ps-code .s { color: #9ff0c2; } .ps-code .n { color: #00c6fe; }

/* ---------- caja de escritura (input pill) ---------- */
.ps-input { padding: 0 12px 10px; display: flex; flex-direction: column; gap: 10px; align-items: center; flex: none; }
.ps-pill { position: relative; background: var(--p-pill); border: 1px solid rgba(255,255,255,.08); border-radius: 22px; width: 100%; padding: 40px 12px 8px; transition: border-color .3s; }
.ps-pill:focus-within { border-color: rgba(124,58,237,.35); }
.ps-selects { position: absolute; top: 10px; right: 12px; display: flex; gap: 6px; }
.ps-select { background: transparent; color: #c4c7c5; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; font: 12px var(--font); padding: 2px 8px; }
.ps-select.mode { color: #a78bfa; }
.ps-ctx { position: absolute; top: 12px; left: 14px; right: 120px; font-size: 11px; color: #8b8b96; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-ctx b { color: #c8c8d0; }
.ps-pill textarea { width: 100%; background: transparent; border: 0; color: #e3e3e3; font: 14px var(--font); resize: none; outline: none; padding: 2px 6px; height: 24px; }
.ps-pill textarea::placeholder { color: #777784; }
.ps-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.ps-tools > div { display: flex; gap: 2px; align-items: center; }
.ps-tb { background: transparent; border: 0; color: #c4c7c5; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 14px; position: relative; }
.ps-tb:hover { background: rgba(255,255,255,.1); color: #fff; }
.ps-tb.rec { color: #ff6b81; animation: psPulse 1s ease infinite; }
@keyframes psPulse { 50% { box-shadow: 0 0 0 6px rgba(255,107,129,.15); } }
.ps-send { width: 32px; height: 32px; border-radius: 50%; border: 0; background: linear-gradient(90deg, #7a3ef8, #00c6fe); color: #fff; cursor: pointer; display: grid; place-items: center; }
.ps-hide { display: none !important; }

/* botones de acción (suggestion-btn) */
.ps-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; width: 100%; }
.ps-act { background: var(--p-btn); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 7px 12px; color: #c4c7c5; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; transition: all .2s; position: relative; }
.ps-act:hover { background: #26262e; color: #fff; border-color: rgba(255,255,255,.18); }
.ps-act.grad { background: linear-gradient(270deg, #7a3ef8, #00f2fe, #7a3ef8); background-size: 200% 100%; animation: iaFlow 3s ease infinite; color: #fff; border-color: rgba(255,255,255,.2); }
.ps-act.active { box-shadow: 0 0 0 2px #7a3ef8; color: #fff; }
.ps-act .star { color: #b69cff; font-size: 10px; }
.ps-act.locked { opacity: .45; }
.ps-act.locked::after { content: '🔒'; position: absolute; top: -5px; right: -3px; font-size: 9px; }
.ps-act .free { font-size: 9px; font-weight: 700; color: #9ff0c2; background: #10261a; border: 1px solid #1f4d33; border-radius: 6px; padding: 0 4px; }

/* ventana (+) Personaliza tu panel */
.ps-pop { position: absolute; bottom: 64px; left: 10px; width: min(320px, calc(100% - 20px)); max-height: 62%; overflow-y: auto; background: #151518; border: 1px solid #2c2c33; border-radius: 14px; padding: 12px; z-index: 5; box-shadow: 0 16px 40px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 8px; animation: psIn .2s ease; }
.ps-pop[hidden] { display: none; }
.ps-pop .h { display: flex; gap: 8px; }
.ps-pop .h div { flex: 1; } .ps-pop .h b { display: block; color: #fff; font-size: 13px; } .ps-pop .h span { color: #8b8b96; font-size: 11px; }
.ps-pop .x { width: 26px; height: 26px; border-radius: 8px; border: 1px solid #2e2e37; background: #1c1c22; color: #ccc; cursor: pointer; }
.ps-pop .g { display: flex; justify-content: space-between; font-size: 10.5px; color: #a9a9b3; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.ps-pop .g button { background: none; border: 0; color: #a98bff; font-size: 11px; cursor: pointer; text-transform: none; padding: 0; }
.ps-fx { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 12px; color: #e6e6ec; }
.ps-fx:hover { background: #1c1c22; }
.ps-fx span { flex: 1; }
.ps-fx.off span { color: #77778a; }
.ps-fx input { position: absolute; opacity: 0; width: 0; }
.ps-fx i { width: 30px; height: 17px; border-radius: 17px; background: #3a3a44; position: relative; flex: none; transition: background .15s; }
.ps-fx i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .15s; }
.ps-fx input:checked + i { background: linear-gradient(90deg, #7a3ef8, #00c6fe); }
.ps-fx input:checked + i::after { transform: translateX(13px); }
.ps-pop .f { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #26262e; padding-top: 8px; font-size: 11px; color: #8b8b96; }
.ps-pop .f button { border: 1px solid #2e2e37; background: #22222a; color: #fff; border-radius: 8px; padding: 5px 9px; font-size: 12px; cursor: pointer; }

/* ventana de licencia */
.ps-modal { position: absolute; inset: 0; background: rgba(0,0,0,.7); display: grid; place-items: center; z-index: 9; padding: 16px; }
.ps-modal[hidden] { display: none; }
.ps-modal > div { background: #131314; border: 1px solid #333; border-radius: 18px; padding: 20px; width: 100%; max-width: 330px; display: flex; flex-direction: column; gap: 10px; animation: psIn .2s ease; }
.ps-modal h5 { margin: 0; color: #fff; font-size: 15px; }
.ps-modal p { margin: 0; color: #8b8b96; font-size: 12.5px; }
.ps-modal input { background: #1c1c22; border: 1px solid #2c2c35; color: #fff; border-radius: 8px; padding: 9px 10px; font: 13px var(--mono); }

/* ---------- visor (editor simulado) ---------- */
.ps-view { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #16161a; }
.ps-vbar { display: flex; align-items: center; gap: 4px; padding: 6px 10px; background: #1c1c21; border-bottom: 1px solid #000; font-size: 11px; color: #8b8b95; flex: none; }
.ps-page { padding: 4px 10px; border-radius: 6px; font-weight: 600; transition: all .3s; }
.ps-page.on { color: #fff; background: #2b2b33; box-shadow: inset 0 -2px 0 #f5a524; }
.ps-vstatus { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; color: #c8c8d0; }
.ps-vstatus .ps-dot { background: #f5a524; box-shadow: 0 0 8px rgba(245,165,36,.6); }
.ps-vstatus.idle .ps-dot { background: #4caf50; box-shadow: 0 0 8px rgba(76,175,80,.5); }
.ps-stage { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 10px; gap: 8px; }
.ps-monwrap { flex: 1 1 52%; min-height: 0; display: grid; place-items: center; background: #0b0b0d; border-radius: 8px; border: 1px solid #000; position: relative; overflow: hidden; }
.ps-mon { position: relative; height: 100%; max-width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; transition: aspect-ratio .8s ease; container-type: size; }
.ps-mon.v916 { aspect-ratio: 9 / 16; }
.ps-scene { position: absolute; inset: 0; transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .35s; transform-origin: 50% 38%; }
.ps-scene svg { width: 100%; height: 100%; display: block; }
.ps-ov { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ps-tc { position: absolute; left: 8px; top: 8px; font: 11px var(--mono); color: #fff; background: rgba(0,0,0,.55); padding: 2px 6px; border-radius: 4px; z-index: 3; }
.ps-sub { position: absolute; left: 6%; right: 6%; bottom: 14%; text-align: center; font-weight: 800; color: #fff; font-size: clamp(12px, 6cqw, 30px); text-shadow: 0 3px 0 #000, 0 0 12px rgba(0,0,0,.6); line-height: 1.15; text-transform: uppercase; }
.ps-sub em { font-style: normal; color: #ffd84d; display: inline-block; animation: psPop .25s ease; }
@keyframes psPop { from { transform: scale(1.35); } }
.ps-broll { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(40px, 22cqh, 110px); animation: psKB 2.4s ease-out forwards; }
@keyframes psKB { from { transform: scale(1.15); opacity: 0; } 15% { opacity: 1; } to { transform: scale(1); } }
.ps-flash { position: absolute; inset: 0; background: #fff; animation: psFlash .35s ease forwards; }
@keyframes psFlash { to { opacity: 0; } }

/* abajo: línea de tiempo o panel de resultado */
.ps-bottom { flex: 1 1 48%; min-height: 0; position: relative; background: #1a1a1f; border: 1px solid #000; border-radius: 8px; overflow: hidden; }
.ps-tl { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 4px 0 6px; }
.ps-ruler { height: 18px; margin-left: 44px; position: relative; border-bottom: 1px solid #2a2a30; font: 10px var(--mono); color: #6f6f7c; flex: none; }
.ps-ruler span { position: absolute; top: 3px; transform: translateX(-50%); }
.ps-markers { position: absolute; left: 44px; right: 0; top: 0; height: 18px; z-index: 2; }
.ps-mk { position: absolute; top: 2px; transform: translateX(-50%); font-size: 11px; animation: psIn .3s ease; white-space: nowrap; }
.ps-mk::after { content: ''; position: absolute; left: 50%; top: 15px; width: 1px; height: 400px; background: rgba(245,165,36,.25); }
.ps-mk b { display: inline-block; background: #f5a524; color: #1a1a1f; border-radius: 3px; padding: 0 4px; font-size: 9.5px; font-weight: 700; }
.ps-tracks { flex: 1; display: flex; flex-direction: column; gap: 3px; padding-top: 4px; position: relative; min-height: 0; }
.ps-trk { flex: 1; display: flex; min-height: 0; }
.ps-trk > b { width: 44px; flex: none; font: 600 10px var(--mono); color: #8b8b96; display: grid; place-items: center; background: #202026; border-right: 1px solid #000; }
.ps-lane { flex: 1; position: relative; }
.ps-clip { position: absolute; top: 2px; bottom: 2px; border-radius: 4px; font-size: 10px; color: #fff; padding: 2px 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: left .8s cubic-bezier(.3,.7,.2,1), width .8s cubic-bezier(.3,.7,.2,1), opacity .4s; animation: psIn .3s ease; border: 1px solid rgba(0,0,0,.4); }
.ps-clip.v { background: #3d5a99; }
.ps-clip.b { background: #8a5cc9; }
.ps-clip.g { background: #c9478f; }
.ps-clip.t { background: #2f8f7a; }
.ps-clip.a { background: #2e6b45; }
.ps-clip.m { background: #6b5b2e; }
.ps-clip.sel { box-shadow: 0 0 0 2px #f5a524; }
.ps-clip.hot { background: #f5a524; color: #1a1a1f; font-weight: 700; }
.ps-wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.ps-head-line { position: absolute; top: 0; bottom: 0; width: 2px; background: #ff4d4d; left: 44px; z-index: 4; pointer-events: none; }
.ps-head-line::before { content: ''; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top-color: #ff4d4d; }
.ps-res { position: absolute; inset: 0; overflow-y: auto; padding: 12px; display: none; animation: psIn .3s ease; }
.ps-res.on { display: block; }
.ps-dur { position: absolute; right: 8px; bottom: 6px; z-index: 5; font: 600 11px var(--mono); background: rgba(0,0,0,.65); color: #fff; border-radius: 6px; padding: 3px 8px; }
.ps-dur s { color: #ff8a8a; margin-right: 6px; }

/* panel de resultado: piezas comunes */
.ps-res h6 { margin: 0 0 8px; color: #fff; font-size: 13px; }
.ps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.ps-thumb { aspect-ratio: 16/10; border-radius: 8px; display: grid; place-items: center; font-size: 30px; position: relative; overflow: hidden; animation: psIn .4s ease both; border: 1px solid rgba(255,255,255,.06); }
.ps-thumb small { position: absolute; left: 6px; bottom: 4px; font-size: 9.5px; color: #fff; background: rgba(0,0,0,.55); padding: 1px 5px; border-radius: 4px; }
.ps-thumb.load { background: linear-gradient(90deg, #1c1c22, #2a2a33, #1c1c22) !important; background-size: 200% 100% !important; animation: iaFlow 1.2s ease infinite; font-size: 0; }
.ps-thumb.v916 { aspect-ratio: 9/16; }
.ps-kit-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.ps-kit-tabs span { font-size: 11px; padding: 4px 9px; border-radius: 12px; background: #1c1c22; border: 1px solid #2c2c35; color: #c8c8d0; }
.ps-kit-tabs span.on { background: linear-gradient(90deg, rgba(122,62,248,.35), rgba(0,198,254,.25)); border-color: #7a3ef8; color: #fff; }
.ps-field { background: #111115; border: 1px solid #26262e; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.ps-field label { display: flex; justify-content: space-between; font-size: 10px; color: #8b8b96; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.ps-field label button { background: none; border: 0; color: #a78bfa; cursor: pointer; font-size: 10px; text-transform: none; }
.ps-field div { color: #e6e6ec; font-size: 12.5px; white-space: pre-wrap; min-height: 18px; }
.ps-field .tag { color: #7fd6ff; }
.ps-block { display: flex; gap: 8px; align-items: flex-start; padding: 7px 9px; border-radius: 8px; background: #111115; border: 1px solid #26262e; margin-bottom: 6px; font-size: 12px; transition: transform .6s ease, opacity .4s, background .3s; }
.ps-block b { flex: none; font-size: 10px; border-radius: 6px; padding: 1px 6px; color: #1a1a1f; }
.ps-block.cut { opacity: .45; text-decoration: line-through; text-decoration-color: #ff6b6b; }
.ps-block.gone { opacity: 0; transform: translateX(30px); height: 0; padding: 0; margin: 0; border: 0; overflow: hidden; }
.ps-dash { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.ps-kpi { background: #111115; border: 1px solid #26262e; border-radius: 8px; padding: 8px; }
.ps-kpi small { color: #8b8b96; font-size: 10px; } .ps-kpi b { display: block; color: #fff; font-size: 17px; } .ps-kpi i { font-style: normal; font-size: 10px; color: #4ade80; }
.ps-bars { display: flex; align-items: flex-end; gap: 4px; height: 70px; }
.ps-bars span { flex: 1; background: linear-gradient(180deg, #7a3ef8, #00c6fe); border-radius: 3px 3px 0 0; height: 0; transition: height .8s cubic-bezier(.3,.7,.2,1); }

/* nodos de Fusion */
.ps-nodes { position: absolute; inset: 0; }
.ps-nodes svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ps-node { position: absolute; transform: translate(-50%, -50%); background: #2c2c34; border: 1px solid #4a4a58; border-radius: 4px; padding: 4px 8px; font: 600 10px var(--font); color: #e6e6ec; white-space: nowrap; transition: left .9s cubic-bezier(.3,.7,.2,1), top .9s cubic-bezier(.3,.7,.2,1); animation: psIn .3s ease both; }
.ps-node.t { background: #3b2f5c; border-color: #7a3ef8; }
.ps-node.m { background: #2a3f4f; border-color: #00c6fe; }
.ps-node.o { background: #4d3b1c; border-color: #f5a524; }
.ps-node.bad { border-color: #ff6b6b; box-shadow: 0 0 0 2px rgba(255,107,107,.25); }

/* ---------- motion graphics del visor ---------- */
.mg { position: absolute; inset: 0; font-family: var(--font); color: #fff; }
.mg-center { display: grid; place-items: center; text-align: center; }
.mg-title { font-weight: 900; font-size: 11cqw; letter-spacing: -.03em; line-height: 1; }
.mg-title span { display: inline-block; animation: mgRise .6s cubic-bezier(.2,.8,.2,1.2) both; }
.mg-title .g { background: linear-gradient(90deg, #a78bfa, #00f1fe); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mg-sub { font-size: 3.4cqw; color: #c8c8d0; margin-top: 2cqh; animation: mgFade .6s .8s both; letter-spacing: .3em; text-transform: uppercase; }
@keyframes mgRise { from { transform: translateY(60%) scale(.8); opacity: 0; } }
@keyframes mgFade { from { opacity: 0; transform: translateY(8px); } }
.mg-dim { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(13,13,15,.55), rgba(13,13,15,.88)); animation: mgFade .4s both; }
.mg-lower { position: absolute; left: 6%; bottom: 14%; display: flex; align-items: stretch; gap: 1.6cqw; }
.mg-lower i { width: 1.2cqw; background: linear-gradient(180deg, #7a3ef8, #00c6fe); border-radius: 4px; animation: mgGrowY .5s ease both; }
.mg-lower div { background: rgba(13,13,15,.85); padding: 1.6cqh 2.6cqw; border-radius: 1cqw; clip-path: inset(0 100% 0 0); animation: mgReveal .7s .3s cubic-bezier(.3,.7,.2,1) forwards; }
.mg-lower b { display: block; font-size: 4.4cqw; } .mg-lower small { color: #00c6fe; font-size: 2.6cqw; letter-spacing: .12em; text-transform: uppercase; }
@keyframes mgGrowY { from { transform: scaleY(0); } }
@keyframes mgReveal { to { clip-path: inset(0 0 0 0); } }
.mg-card { background: rgba(19,19,20,.9); border: 1px solid rgba(255,255,255,.1); border-radius: 2cqw; padding: 3cqh 3cqw; animation: mgRise .6s both; }
.mg-num { font-size: 10cqw; font-weight: 900; font-variant-numeric: tabular-nums; background: linear-gradient(90deg, #fff, #00f1fe); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mg-barrow { display: flex; align-items: flex-end; gap: 1.2cqw; height: 26cqh; margin-top: 2cqh; }
.mg-barrow span { width: 4cqw; background: linear-gradient(180deg, #00f1fe, #7a3ef8); border-radius: .6cqw .6cqw 0 0; animation: mgGrowY .8s cubic-bezier(.3,.7,.2,1) both; transform-origin: bottom; }
.mg-split { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.mg-split > div { display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 5cqw; }
.mg-split .a { background: rgba(120,30,40,.85); animation: mgL .6s both; } .mg-split .b { background: rgba(16,60,40,.88); animation: mgR .6s .5s both; }
.mg-split small { display: block; font-size: 2.6cqw; opacity: .8; font-weight: 600; letter-spacing: .1em; }
@keyframes mgL { from { transform: translateX(-100%); } } @keyframes mgR { from { transform: translateX(100%); } }
.mg-phone { width: 24cqw; aspect-ratio: 9/18; background: #0d0d0f; border: .8cqw solid #2c2c35; border-radius: 3cqw; position: relative; overflow: hidden; animation: mgRise .7s both; }
.mg-phone .live { position: absolute; top: 3%; left: 6%; background: #ff3b5c; font-size: 2cqw; font-weight: 800; padding: .2cqw 1cqw; border-radius: .6cqw; }
.mg-phone .cm { position: absolute; left: 6%; right: 6%; font-size: 1.8cqw; background: rgba(255,255,255,.1); border-radius: 1cqw; padding: .6cqw 1cqw; animation: mgUp 3s linear both; }
.mg-heart { position: absolute; right: 8%; bottom: 8%; font-size: 3cqw; animation: mgHeart 1.8s ease-out both; }
@keyframes mgUp { from { bottom: 5%; opacity: 0; } 10% { opacity: 1; } to { bottom: 70%; opacity: 0; } }
@keyframes mgHeart { to { transform: translate(-4cqw, -40cqh) scale(1.6); opacity: 0; } }
.mg-list { text-align: left; display: flex; flex-direction: column; gap: 1.8cqh; }
.mg-list div { display: flex; gap: 1.6cqw; align-items: center; font-size: 3.8cqw; font-weight: 700; animation: mgSlide .5s both; }
.mg-list i { font-style: normal; width: 5cqw; height: 5cqw; border-radius: 50%; display: grid; place-items: center; font-size: 2.6cqw; background: linear-gradient(135deg, #7a3ef8, #00c6fe); }
@keyframes mgSlide { from { transform: translateX(-30px); opacity: 0; } }
.mg-kin { font-size: 8cqw; font-weight: 900; text-transform: uppercase; line-height: 1.05; text-align: center; }
.mg-kin span { display: inline-block; animation: mgKin .35s cubic-bezier(.2,.8,.2,1.4) both; margin: 0 .8cqw; }
.mg-kin .y { color: #ffd84d; }
@keyframes mgKin { from { transform: scale(2.2) rotate(-6deg); opacity: 0; } }
.mg-cta { display: flex; align-items: center; gap: 2cqw; animation: mgRise .5s both; }
.mg-cta .btn { background: #ff0033; color: #fff; font-weight: 800; font-size: 4cqw; padding: 1.6cqh 3.4cqw; border-radius: 1.4cqw; transition: background .3s; }
.mg-cta .btn.done { background: #3a3a44; }
.mg-cta .bell { font-size: 5cqw; display: inline-block; }
.mg-cta .bell.ring { animation: mgRing .6s ease 2; }
.mg-cursor { position: absolute; font-size: 5cqw; transition: left .8s ease, top .8s ease; filter: drop-shadow(0 2px 4px #000); z-index: 2; }
@keyframes mgRing { 25% { transform: rotate(18deg); } 75% { transform: rotate(-18deg); } }
.mg-ring { position: absolute; border: .6cqw solid #ffd84d; border-radius: 50%; animation: mgDraw .6s ease both; }
@keyframes mgDraw { from { transform: scale(1.8); opacity: 0; } }
.mg-arrow { position: absolute; font-size: 7cqw; color: #ffd84d; animation: mgPoint .9s ease-in-out infinite alternate; }
@keyframes mgPoint { to { transform: translate(1.5cqw, 1.5cqw); } }
.mg-cd { font-size: 26cqh; font-weight: 900; animation: mgCd 1s ease both; background: linear-gradient(180deg, #fff, #a78bfa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@keyframes mgCd { from { transform: scale(1.6); opacity: 0; } 70% { opacity: 1; } to { transform: scale(.9); } }
.mg-wipe { position: absolute; inset: -10%; }
.mg-wipe span { position: absolute; top: 0; bottom: 0; width: 40%; transform: skewX(-18deg) translateX(-160%); animation: mgWipe 1.1s cubic-bezier(.7,0,.3,1) forwards; }
@keyframes mgWipe { to { transform: skewX(-18deg) translateX(330%); } }
.mg-ideas { text-align: left; font-size: 2.8cqw; display: flex; flex-direction: column; gap: 1.4cqh; }
.mg-ideas div { background: rgba(19,19,20,.9); border: 1px solid #3a2e5c; border-radius: 1.2cqw; padding: 1.2cqh 2cqw; animation: mgSlide .4s both; }
.ps-crop { position: absolute; inset: 0; pointer-events: none; }
.ps-crop::before, .ps-crop::after { content: ''; position: absolute; top: 0; bottom: 0; width: 34.2%; background: rgba(0,0,0,.72); animation: mgFade .5s both; }
.ps-crop::before { left: 0; } .ps-crop::after { right: 0; }

/* barra inferior del simulador */
.psim-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.psim-foot span { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- DaVinci (nodos) / Adobe (capas) ---------- */
.ps-pages { display: inline-flex; gap: 4px; }
.ps-pages[hidden], .ps-app[hidden] { display: none; }
.ps-app { font-weight: 600; color: #c8c8d0; padding: 4px 6px; }
.ps-host { display: inline-flex; margin-left: 10px; border: 1px solid #2c2c35; border-radius: 8px; overflow: hidden; }
.ps-host button { border: 0; background: transparent; color: #8b8b95; font: 600 11px var(--font); padding: 4px 9px; cursor: pointer; }
.ps-host button.on { background: linear-gradient(90deg, rgba(122,62,248,.45), rgba(0,198,254,.3)); color: #fff; }
.ps-nohost { display: none !important; }
.ps-layers { position: absolute; inset: 0; padding: 0; font-size: 11.5px; background: #232328; }
.ps-lhead, .ps-lrow { display: grid; grid-template-columns: 26px 12px minmax(90px, 34%) 1fr; align-items: center; gap: 6px; padding: 0 8px; }
.ps-lhead { height: 24px; background: #1a1a1f; color: #8b8b96; font-size: 10.5px; border-bottom: 1px solid #000; }
.ps-lruler { display: flex; justify-content: space-between; font: 10px var(--mono); color: #6f6f7c; }
.ps-lruler i { font-style: normal; }
.ps-lrow { height: 30px; border-bottom: 1px solid #1a1a1f; color: #e6e6ec; animation: psIn .35s ease both; }
.ps-lrow > span:first-child { color: #8b8b96; text-align: center; }
.ps-lrow > b { width: 10px; height: 10px; border-radius: 2px; }
.ps-lrow .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ps-lrow.vid .nm { color: #b9c3d6; font-weight: 400; }
.ps-lbar { position: relative; height: 100%; }
.ps-lbar i { position: absolute; top: 7px; bottom: 7px; border-radius: 3px; border: 1px solid rgba(255,255,255,.12); }
.ps-lbar em { position: absolute; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #ffd84d; transform: rotate(45deg); border: 1px solid #1a1a1f; animation: psKf .3s ease both; transition: left .7s ease; }
@keyframes psKf { from { transform: rotate(45deg) scale(0); } }
.ps-cti { position: absolute; top: 0; bottom: 0; left: calc(34% + 52px); width: 2px; background: #4aa3ff; animation: psCti 3.2s linear forwards; }
@keyframes psCti { to { left: calc(100% - 10px); } }

/* Visor a la izquierda, plugin a la derecha */
.ps-view { order: 1; }
@media (max-width: 980px) { .ps-panel { border-left: 0; border-top: 1px solid var(--p-line); } }
/* Kit de Publicación dentro del chat */
.ps-msg.kit { width: 100%; max-width: 100%; }
.ps-msg.kit .ps-kit-tabs { margin: 8px 0; }
.ps-msg.kit .ps-kit-tabs span { cursor: pointer; }
.ps-msg.kit .ps-field { margin-bottom: 6px; padding: 7px 9px; }
.ps-msg.kit .ps-field div { font-size: 12px; line-height: 1.45; }
