/* Acto 4 · CMS con agentes: Vidrala Studio (st-*), vista previa de la web (pv-*), planner (pl-*) y asistente (as-*).
   Solo tokens del design system. El cromo de la app es verde stage, así que admite glass.
   Ámbar y rojo solo para estados (traducción en curso, avisos, bloqueos). */

:root {
  --st-line: rgba(255, 255, 255, .09);
  --st-line-2: rgba(255, 255, 255, .16);
  --st-mute: rgba(255, 255, 255, .66);
  --st-faint: rgba(255, 255, 255, .46);
  --st-panel: rgba(255, 255, 255, .045);
  --st-amber: #F5D27A;
  --st-red: #F2A49D;
  --dock: 172px;
}

/* =========================================================
   Página
   ========================================================= */
.st-body-page { background: var(--green-950); color: var(--white); }
.st-gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.st-intro, .st-stage, .st-after { position: relative; z-index: 1; }

.st-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; padding-top: 28px; padding-bottom: 22px; }
.st-intro__t { margin-top: 12px; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.06; letter-spacing: -0.022em; max-width: 780px; }
.st-pillars { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 10px; }
.st-pillars li { display: flex; gap: 10px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--st-line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.st-pillars svg { width: 20px; height: 20px; flex: none; color: var(--green-100); margin-top: 1px; }
.st-pillars b { display: block; font-size: 14px; }
.st-pillars span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--st-mute); }

.st-stage { padding: 0 16px 20px; }
.st-after { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 48px; }
.st-after__note { font-size: 13px; color: var(--st-mute); max-width: 72ch; }
.st-after__note b { color: var(--white); }

/* =========================================================
   Ventana de la app
   ========================================================= */
.st-app {
  position: relative; max-width: 1720px; margin: 0 auto; height: clamp(720px, calc(100vh - 24px), 1080px);
  display: grid; grid-template-rows: 54px 50px minmax(0, 1fr); overflow: hidden; border-radius: 24px;
  background: linear-gradient(180deg, rgba(2, 48, 26, .78) 0%, rgba(1, 31, 17, .88) 100%);
  border: 1px solid var(--st-line-2); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 40px 120px rgba(0, 0, 0, .5);
  backdrop-filter: blur(28px) saturate(140%); -webkit-backdrop-filter: blur(28px) saturate(140%);
  animation: st-in 1.1s var(--ease-reveal) both .15s;
}
@keyframes st-in { from { opacity: 0; transform: translateY(28px) scale(.985); } to { opacity: 1; transform: none; } }
.st-app button { font-family: inherit; }
.st-app :focus-visible { box-shadow: 0 0 0 3px rgba(0, 154, 68, .55); }
.st-app .vd-seg { padding: 3px; }
.st-app .vd-seg button { height: 30px; padding: 0 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.st-app .vd-seg button svg { width: 15px; height: 15px; }
.st-lbl { font-size: 11px; font-weight: var(--weight-bold); letter-spacing: .12em; text-transform: uppercase; color: var(--st-faint); }

/* Botón píldora compacto del cromo */
.st-chipbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--st-line-2);
  background: rgba(255, 255, 255, .06); color: var(--white); font-size: 13px; font-weight: var(--weight-bold); white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
.st-chipbtn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .32); opacity: 1; color: var(--white); }
.st-chipbtn:active { transform: scale(.97); }
.st-chipbtn svg { width: 15px; height: 15px; flex: none; }
.st-chipbtn--solid { background: var(--green-500); border-color: var(--green-500); }
.st-chipbtn--solid:hover { background: var(--green-600); border-color: var(--green-600); }
.st-chipbtn--ghost { background: transparent; border-color: transparent; color: var(--st-mute); }
.st-chipbtn--ghost:hover { background: rgba(255, 255, 255, .06); border-color: transparent; }
.st-chipbtn[aria-pressed="true"] { background: rgba(255, 255, 255, .92); color: var(--green-900); border-color: transparent; }

/* ---------- Barra superior ---------- */
.st-top { display: flex; align-items: center; gap: 14px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--st-line); position: relative; z-index: 30; }
.st-brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.st-brand img { height: 24px; width: auto; }
.st-brand b { font-size: 15px; letter-spacing: -0.01em; }
.st-env { font-size: 11px; font-weight: var(--weight-bold); padding: 3px 8px; border-radius: var(--radius-pill); background: rgba(0, 154, 68, .22); color: var(--green-100); }
.st-top__sp { flex: 1; }
.st-clock { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--st-mute); white-space: nowrap; }
.st-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: var(--weight-bold); color: var(--green-100); }
.st-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); animation: vd-pulse 1.6s var(--ease-out) infinite; color: var(--green-500); }
.st-ap { height: 34px; }
.st-ap:disabled { opacity: .5; }

.st-limits { position: relative; }
.st-pop { position: absolute; top: calc(100% + 10px); right: 0; width: 390px; padding: 18px; border-radius: 20px; z-index: 50;
  background: rgba(2, 40, 22, .94); border: 1px solid var(--st-line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity .3s var(--ease-reveal), transform .3s var(--ease-reveal); }
.st-pop.is-open { opacity: 1; transform: none; }
.st-pop__h { display: block; font-size: 14px; margin-bottom: 10px; }
.st-guard { list-style: none; display: grid; gap: 8px; }
.st-guard li { display: flex; gap: 10px; align-items: flex-start; }
.st-guard li > span { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: rgba(0, 154, 68, .2); color: var(--green-100); }
.st-guard svg { width: 16px; height: 16px; }
.st-guard b { display: block; font-size: 13px; line-height: 1.3; }
.st-guard small { display: block; font-size: 12px; color: var(--st-mute); }
.st-sec { display: grid; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--st-line); }
.st-sec b { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--st-faint); }
.st-sec span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--st-mute); }
.st-sec svg { width: 15px; height: 15px; color: var(--green-100); flex: none; }

/* ---------- Barra del documento ---------- */
.st-docbar { display: flex; align-items: center; gap: 16px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--st-line); background: rgba(0, 0, 0, .14); min-width: 0; }
.st-crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--st-mute); min-width: 0; white-space: nowrap; flex: 0 1 auto; overflow: hidden; }
.st-crumb svg { width: 15px; height: 15px; flex: none; }
.st-crumb .st-crumb__sep { width: 13px; height: 13px; opacity: .5; }
.st-crumb b { color: var(--white); overflow: hidden; text-overflow: ellipsis; }
.st-crumb__d { margin-left: 6px; font-size: 11px; font-weight: var(--weight-bold); padding: 2px 8px; border-radius: var(--radius-pill); background: rgba(224, 161, 0, .18); color: var(--st-amber); }
.st-flow { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.st-flow__c { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: var(--weight-bold);
  color: rgba(255, 255, 255, .42); border: 1px solid rgba(255, 255, 255, .08); white-space: nowrap; transition: all .5s var(--ease-reveal); }
.st-flow__c svg { width: 13px; height: 13px; }
.st-flow__c.is-done { color: var(--green-100); background: rgba(0, 154, 68, .14); border-color: transparent; }
.st-flow__c.is-now { color: var(--white); background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); box-shadow: 0 0 0 4px rgba(255, 255, 255, .04); }
.st-flow__c.is-pub { color: var(--white); background: var(--green-500); border-color: var(--green-500); box-shadow: 0 0 24px rgba(0, 154, 68, .45); }
.st-flow__sep { color: rgba(255, 255, 255, .25); display: grid; }
.st-flow__sep svg { width: 14px; height: 14px; }
.st-auton { display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-auton__l { font-size: 11px; font-weight: var(--weight-bold); letter-spacing: .12em; text-transform: uppercase; color: var(--st-faint); }

/* ---------- Cuerpo ---------- */
.st-main { display: grid; grid-template-columns: 236px minmax(0, 1fr) 384px; min-height: 0; }

/* Raíl */
.st-rail { border-right: 1px solid var(--st-line); overflow: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 16px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.st-rail__sec { display: grid; gap: 8px; align-content: start; }
.st-roles { display: grid; gap: 4px; }
.st-role { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 9px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--white); text-align: left; cursor: pointer; transition: background .25s, border-color .25s; }
.st-role:hover { background: rgba(255, 255, 255, .05); }
.st-role[aria-checked="true"] { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .2); }
.st-role__ic { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--green-100); transition: background .3s, color .3s; }
.st-role[aria-checked="true"] .st-role__ic { background: var(--green-500); color: var(--white); }
.st-role__ic svg { width: 16px; height: 16px; }
.st-role__t { min-width: 0; }
.st-role__t b { display: block; font-size: 12.5px; line-height: 1.25; }
.st-role__t span { display: block; font-size: 11.5px; color: var(--st-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.st-tree { display: grid; gap: 2px; }
.st-node__h { display: flex; align-items: center; gap: 6px; width: 100%; padding: 7px 6px; border: 0; background: none; color: var(--white); font-size: 13.5px; border-radius: 10px; cursor: pointer; text-align: left; }
.st-node__h:hover { background: rgba(255, 255, 255, .05); }
.st-node__h b { white-space: nowrap; }
.st-node__chev { width: 14px; height: 14px; flex: none; opacity: .55; transition: transform .3s var(--ease-reveal); }
.st-node.is-open .st-node__chev { transform: rotate(90deg); }
.st-acc { display: grid; color: var(--st-faint); }
.st-acc svg { width: 13px; height: 13px; }
.st-acc--own { color: var(--green-100); }
.st-flags { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; max-width: 104px; }
.st-flags em { font-style: normal; font-size: 9.5px; font-weight: var(--weight-bold); letter-spacing: .02em; padding: 1px 4px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .78); }
.st-node__b { display: none; padding: 0 0 6px 20px; }
.st-node.is-open .st-node__b { display: block; animation: st-fade .35s var(--ease-reveal); }
.st-node__g { display: block; margin: 6px 0 2px 10px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--st-faint); }
.st-node__b ul { list-style: none; }
.st-leaf { display: flex; align-items: center; gap: 6px; width: 100%; padding: 5px 10px; border: 0; border-radius: 8px; background: none; color: rgba(255, 255, 255, .7); font-size: 13px; text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.st-leaf:hover:not(:disabled) { background: rgba(255, 255, 255, .05); color: var(--white); }
.st-leaf.is-on { background: rgba(0, 154, 68, .22); color: var(--white); box-shadow: inset 2px 0 0 var(--green-500); }
.st-leaf:disabled { cursor: default; }
.st-node.is-off { opacity: .42; }
.st-new { margin-left: auto; font-size: 10px; font-weight: var(--weight-bold); padding: 1px 6px; border-radius: var(--radius-pill); background: var(--green-500); color: var(--white); }
.st-addbu { display: flex; align-items: center; gap: 8px; margin-top: 8px; width: 100%; padding: 9px 10px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .24); background: none; color: var(--st-mute); font-size: 13px; cursor: pointer; }
.st-addbu:hover { color: var(--white); border-color: rgba(255, 255, 255, .45); }
.st-addbu svg { width: 15px; height: 15px; }
.st-addbu span { margin-left: auto; font-size: 11px; color: var(--st-faint); }

/* Centro */
.st-center { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--st-line); }
.st-viewpane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.st-viewpane[hidden] { display: none; }
.st-tools { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 54px; flex: none; border-bottom: 1px solid var(--st-line); }
.st-tools__sp { flex: 1; }
.st-langs { display: flex; gap: 4px; }
.st-lang { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: var(--radius-pill); border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: rgba(255, 255, 255, .82); font-size: 12.5px; font-weight: var(--weight-bold); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.st-lang:hover { border-color: rgba(255, 255, 255, .35); }
.st-lang[aria-selected="true"] { background: var(--white); color: var(--green-900); border-color: var(--white); }
.st-lang.is-na { opacity: .32; cursor: not-allowed; }
.st-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); flex: none; transition: background .3s, box-shadow .3s; }
.st-lang.is-pending .st-dot { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.st-lang[aria-selected="true"].is-pending .st-dot { box-shadow: inset 0 0 0 1.5px var(--ink-500); }
.st-lang.is-work .st-dot { background: var(--warning); color: var(--warning); animation: vd-pulse 1s var(--ease-out) infinite; }
.st-lang.is-na .st-dot { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.st-lang.is-ok .st-dot { animation: st-pop .45s var(--ease-spring); }
.st-device button { padding: 0 10px; }

.st-ring { display: flex; align-items: center; gap: 8px; padding-left: 8px; margin-left: 4px; border-left: 1px solid var(--st-line); }
.st-ring svg { width: 36px; height: 36px; transform: rotate(-90deg); }
.st-ring circle { fill: none; stroke-width: 4; }
.st-ring .bg { stroke: rgba(255, 255, 255, .12); }
.st-ring .fg { stroke: var(--green-500); stroke-linecap: round; stroke-dasharray: 100 100; transition: stroke-dasharray .9s var(--ease-reveal), stroke .4s; }
.st-ring.is-warn .fg { stroke: var(--warning); }
.st-ring.is-low .fg { stroke: rgba(255, 255, 255, .5); }
.st-ring.is-full .fg { filter: drop-shadow(0 0 4px rgba(0, 154, 68, .8)); }
.st-ring b { display: block; font-size: 15px; line-height: 1; }
.st-ring span { display: block; font-size: 10.5px; color: var(--st-faint); white-space: nowrap; margin-top: 2px; }

/* Pozo del lienzo */
.st-well { position: relative; flex: 1; min-height: 0; display: flex; justify-content: center; padding: 16px; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 0%, rgba(0, 154, 68, .12) 0%, rgba(0, 0, 0, 0) 70%), rgba(0, 0, 0, .22); }
.st-frame { width: 100%; max-width: 1180px; height: 100%; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--surface-page);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 80px rgba(0, 0, 0, .45); transition: width .8s var(--ease-reveal), border-radius .8s var(--ease-reveal); }
.st-frame.is-mobile { width: 390px; max-width: 100%; border-radius: 28px; }
.st-browser { flex: none; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; background: var(--ink-100); border-bottom: 1px solid var(--ink-200); }
.st-dots { display: flex; gap: 5px; }
.st-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-300); }
.st-url { flex: 1; max-width: 380px; margin: 0 auto; height: 22px; line-height: 22px; border-radius: var(--radius-pill); background: var(--white); font-size: 12px; color: var(--ink-500); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; }
.st-draft { font-size: 11px; font-weight: var(--weight-bold); color: var(--green-700); background: var(--green-050); padding: 2px 8px; border-radius: var(--radius-pill); white-space: nowrap; }
.st-frame.is-mobile .st-draft, .st-frame.is-mobile .st-dots { display: none; }
.st-pvwrap { position: relative; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.st-pv { position: relative; container-type: inline-size; color: var(--ink-900); background: var(--surface-page); font-size: 15px; line-height: 1.5; min-height: 100%; }
.st-pv.is-swap { animation: pv-swap .55s var(--ease-reveal); }
@keyframes pv-swap { from { opacity: .35; filter: blur(5px); } to { opacity: 1; filter: none; } }

/* Barra de calidad */
.st-quality { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 14px; min-height: 48px; border-top: 1px solid var(--st-line); overflow-x: auto; scrollbar-width: none; }
.st-q { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: var(--weight-bold); white-space: nowrap;
  color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); transition: background .4s, color .4s; }
.st-q svg { width: 14px; height: 14px; }
.st-q.is-ok { color: var(--green-100); background: rgba(0, 154, 68, .16); border-color: rgba(0, 154, 68, .3); }
.st-q.is-ok svg { animation: st-pop .45s var(--ease-spring); }
.st-q.is-warn { color: var(--st-amber); background: rgba(224, 161, 0, .14); border-color: rgba(224, 161, 0, .3); }
.st-q.is-err { color: var(--st-red); background: rgba(200, 55, 45, .2); border-color: rgba(200, 55, 45, .4); }
.st-q.is-run { color: var(--white); border-color: rgba(255, 255, 255, .3); }
.st-q.is-run svg { animation: st-spin 1s linear infinite; }
.st-q__sp { flex: 1; }
.st-q__meta { font-size: 12px; color: var(--st-faint); white-space: nowrap; }

/* Terminal */
.st-dock { height: var(--dock); flex: none; display: flex; flex-direction: column; border-top: 1px solid var(--st-line); background: rgba(0, 0, 0, .3); }
.st-dock__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px 4px; }
.st-dock__h > span:first-child { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: var(--weight-bold); }
.st-dock__h svg { width: 14px; height: 14px; color: var(--green-100); }
.st-dock__meta { font-size: 11.5px; color: var(--st-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-term { flex: 1; min-height: 0; overflow: auto; padding: 2px 14px 10px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.st-l { color: var(--white); animation: st-fade .3s var(--ease-out); }
.st-l .ts { color: rgba(255, 255, 255, .38); margin-right: 10px; }
.st-l .who { color: var(--green-100); font-weight: var(--weight-bold); margin-right: 10px; }
.st-l .args { color: rgba(255, 255, 255, .62); }
.st-l .caret { display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--green-500); animation: st-blink .9s steps(1) infinite; }
.st-o { padding-left: 76px; color: var(--green-100); animation: st-fade .4s var(--ease-out); }
.st-o .br { display: inline-block; width: 10px; height: 8px; margin-right: 7px; border-left: 1px solid rgba(255, 255, 255, .35); border-bottom: 1px solid rgba(255, 255, 255, .35); vertical-align: 3px; }
.st-o.is-warn { color: var(--st-amber); }
.st-o.is-err { color: var(--st-red); }
.is-quiet { opacity: .48; }
.st-code { margin: 4px 0 6px 76px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--green-100); font: inherit; font-size: 12px; white-space: pre-wrap; animation: st-fade .4s var(--ease-out); }

/* Lado derecho */
.st-side { display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 12px 12px 0; gap: 8px; overflow: hidden; }
.st-side__h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.st-side__h--q { margin-top: 6px; }
.st-side__n { font-size: 11.5px; color: var(--st-faint); }
.st-team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.st-ag { position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; padding: 8px 9px; border-radius: 12px; background: var(--st-panel); border: 1px solid rgba(255, 255, 255, .07); transition: background .4s, border-color .4s, box-shadow .4s; }
.st-ag__ic { position: relative; width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--green-100); transition: background .4s, color .4s; }
.st-ag__ic svg { width: 16px; height: 16px; }
.st-ag__ic::after { content: ""; position: absolute; inset: -3px; border-radius: 12px; border: 1.5px solid rgba(0, 154, 68, .55); opacity: 0; animation: st-breathe 5s var(--ease-in-out) infinite; animation-delay: calc(var(--i) * -.62s); }
.st-ag__t { min-width: 0; }
.st-ag__t b { display: block; font-size: 12.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-ag__s { display: block; font-size: 11.5px; color: var(--st-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-ag__s.is-swap { animation: st-up .45s var(--ease-reveal); }
.st-ag.is-busy { background: rgba(0, 154, 68, .16); border-color: rgba(0, 154, 68, .55); box-shadow: 0 0 24px rgba(0, 154, 68, .22); }
.st-ag.is-busy .st-ag__ic { background: var(--green-500); color: var(--white); }
.st-ag.is-busy .st-ag__ic::after { opacity: 1; border-color: transparent; border-top-color: var(--green-100); border-right-color: rgba(205, 235, 217, .4); animation: st-spin .9s linear infinite; border-radius: 50%; inset: -5px; }
.st-ag.is-busy .st-ag__s { color: var(--white); }
.st-ag.is-done .st-ag__ic { animation: st-pop .5s var(--ease-spring); }
.st-ag.is-ping .st-ag__ic::after { animation: st-ping 1.4s var(--ease-out); }

.st-queue { position: relative; flex: 1; min-height: 0; overflow: auto; margin-right: -8px; padding: 0 8px 12px 0; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.st-recs { display: grid; gap: 8px; }
.st-scan { padding: 16px; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, .2); font-size: 13px; color: var(--st-mute); }
.st-scan__bar { display: block; height: 3px; margin-bottom: 10px; border-radius: 3px; background: linear-gradient(90deg, rgba(0, 154, 68, 0), var(--green-500), rgba(0, 154, 68, 0)); background-size: 50% 100%; background-repeat: no-repeat; animation: st-scan 1.2s var(--ease-in-out) infinite; }
.st-rec { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .4s, background .4s, opacity .4s, transform .4s var(--ease-reveal); }
.st-rec:hover { border-color: rgba(255, 255, 255, .22); }
.is-stagger .st-rec { animation: st-rec .8s var(--ease-reveal) both; animation-delay: calc(var(--i) * 420ms); }
.st-rec.is-hot { border-color: rgba(0, 154, 68, .6); box-shadow: 0 0 0 1px rgba(0, 154, 68, .3), 0 12px 40px rgba(0, 154, 68, .18); }
.st-rec.is-done { background: rgba(0, 154, 68, .07); }
.st-rec.is-gone { animation: st-gone .45s var(--ease-reveal) forwards; }
.st-rec__top { display: flex; gap: 10px; align-items: flex-start; }
.st-score { position: relative; width: 36px; height: 36px; flex: none; display: grid; place-items: center; }
.st-score svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.st-score circle { fill: none; stroke-width: 3; }
.st-score .bg { stroke: rgba(255, 255, 255, .12); }
.st-score .fg { stroke: var(--green-500); stroke-linecap: round; }
.st-score b { position: relative; font-size: 12.5px; }
.st-rec__tt { min-width: 0; }
.st-rec__k { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; color: var(--st-faint); font-weight: var(--weight-bold); }
.st-rec__tt > b { display: block; margin-top: 2px; font-size: 14px; line-height: 1.3; }
.st-pubtag { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; padding: 1px 7px; border-radius: var(--radius-pill); background: rgba(0, 154, 68, .3); color: var(--white); }
.st-pubtag svg { width: 11px; height: 11px; }
.st-rec__i { font-size: 12.5px; line-height: 1.45; color: var(--st-mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-rec__ev { display: flex; align-items: center; gap: 10px; }
.st-rec__ev > span { font-size: 11px; line-height: 1.3; color: var(--st-faint); }
.st-rec__c { display: flex; flex-wrap: wrap; gap: 4px; }
.st-c { font-size: 11px; font-weight: var(--weight-bold); padding: 2px 8px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .78); white-space: nowrap; }
.st-c.is-risk { color: var(--st-amber); background: rgba(224, 161, 0, .14); }
.st-rec__b { display: flex; gap: 6px; flex-wrap: wrap; }
.st-spark { flex: none; overflow: visible; }
.st-spark rect { fill: rgba(255, 255, 255, .26); transform-box: fill-box; transform-origin: bottom; animation: st-grow .7s var(--ease-reveal) both; animation-delay: calc(var(--i) * 45ms); }
.st-spark rect.hi { fill: var(--green-500); }
.st-spark.is-big { width: 100%; height: auto; }
.st-hbars { display: grid; gap: 5px; flex: 1; min-width: 0; }
.st-hbar { display: grid; grid-template-columns: 56px minmax(0, 1fr) 34px; align-items: center; gap: 8px; font-size: 11px; color: var(--st-mute); }
.st-hbar i { display: block; height: 7px; width: var(--w); border-radius: 4px; background: rgba(255, 255, 255, .28); transform-origin: left; animation: st-grow-x .8s var(--ease-reveal) both; }
.st-hbar.is-max i { background: var(--green-500); }
.st-hbar b { text-align: right; color: var(--white); font-variant-numeric: tabular-nums; }
.st-rec__ev .st-hbars { max-width: 210px; }

/* Tarea en curso */
.st-task { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.st-task.is-in { animation: st-rec .6s var(--ease-reveal); }
.st-task[hidden], .st-recs[hidden] { display: none; }
.st-task__h { display: flex; align-items: center; gap: 8px; }
.st-back { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--st-line-2); background: none; color: var(--white); display: grid; place-items: center; cursor: pointer; }
.st-back svg { width: 15px; height: 15px; }
.st-status { margin-left: auto; font-size: 11.5px; font-weight: var(--weight-bold); padding: 3px 9px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .1); white-space: nowrap; }
.st-status.is-wait { background: rgba(224, 161, 0, .2); color: var(--st-amber); }
.st-status.is-ok { background: var(--green-500); }
.st-task h3 { color: var(--white); font-size: 16px; line-height: 1.3; }
.st-steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.st-steps i { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); transition: background .5s; }
.st-steps i.is-done { background: var(--green-500); }
.st-steps i.is-now { background: var(--green-100); animation: st-glow 1.4s var(--ease-in-out) infinite; }
.st-steps__l { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; }
.st-steps__l span { color: var(--st-faint); }
.st-ev { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .22); }
.st-ev > span { font-size: 11.5px; color: var(--st-mute); }
.st-ev > em { font-style: normal; font-size: 10.5px; color: var(--st-faint); }
.st-task__blk { animation: st-rec .6s var(--ease-reveal); }
.st-task__x { display: grid; gap: 8px; }
.st-task__f { display: flex; justify-content: flex-end; }
.st-box { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--st-line-2); display: grid; gap: 8px; }
.st-box p { font-size: 13px; line-height: 1.45; color: var(--st-mute); }
.st-box p b { color: var(--white); }
.st-box.is-ok { border-color: rgba(0, 154, 68, .55); background: rgba(0, 154, 68, .12); }
.st-box__b { display: flex; gap: 6px; flex-wrap: wrap; }
.st-res { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .22); }
.st-res__v { font-size: 30px; font-weight: var(--weight-bold); letter-spacing: -0.02em; color: var(--green-100); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-res b { font-size: 13px; }
.st-res p { font-size: 12.5px; line-height: 1.4; color: var(--st-mute); margin-top: 2px; }
.st-res em { display: block; margin-top: 4px; font-style: normal; font-size: 10.5px; color: var(--st-faint); }
.st-probe { display: grid; gap: 4px; }
.st-probe > b { font-size: 13px; margin-bottom: 4px; }
.st-probe__r { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; padding: 6px 9px; border-radius: 8px; background: rgba(0, 0, 0, .2); animation: st-up .5s var(--ease-reveal) both; animation-delay: calc(var(--i) * 200ms); }
.st-probe__r em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; color: var(--st-red); font-size: 12px; }
.st-probe__r svg { width: 13px; height: 13px; }
.st-probe__n { font-size: 10.5px; color: var(--st-faint); }

/* Biblioteca de bloques */
.st-drawer { position: absolute; top: 16px; right: 16px; bottom: 16px; width: 330px; max-width: calc(100% - 32px); z-index: 20; display: flex; flex-direction: column;
  border-radius: 20px; background: rgba(2, 40, 22, .9); border: 1px solid var(--st-line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); transform: translateX(calc(100% + 24px)); transition: transform .5s var(--ease-reveal); }
.st-drawer.is-open { transform: none; }
.st-drawer__h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 16px; }
.st-drawer__h b { display: block; font-size: 15px; }
.st-drawer__h span { display: block; font-size: 12px; color: var(--st-mute); margin-top: 2px; }
.st-x { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--st-line-2); background: none; color: var(--white); display: grid; place-items: center; cursor: pointer; }
.st-x svg { width: 15px; height: 15px; }
.st-lib { flex: 1; overflow: auto; padding: 0 12px 12px; display: grid; gap: 8px; align-content: start; scrollbar-width: thin; }
.st-libi { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; padding: 10px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: var(--white); text-align: left; cursor: pointer; transition: background .25s, border-color .25s, transform .25s var(--ease-reveal); }
.st-libi:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); transform: translateY(-1px); }
.st-libi.is-locked { opacity: .5; }
.st-libi.is-locked:hover { transform: none; }
.st-libi__t b { display: block; font-size: 13.5px; }
.st-libi__t span { display: block; font-size: 12px; color: var(--st-mute); line-height: 1.35; }
.st-libi__s { grid-column: 2; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: var(--weight-bold); color: var(--green-100); }
.st-libi__s svg { width: 12px; height: 12px; }
.st-libi.is-locked .st-libi__s { color: var(--st-mute); }
.st-mini { grid-row: 1 / span 2; position: relative; width: 76px; height: 56px; border-radius: 8px; background: var(--surface-page); padding: 6px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; overflow: hidden; }
.st-mini i { display: block; }
.st-mini .m-photo { position: absolute; inset: 0; background: linear-gradient(135deg, #036A38, #02301A); }
.st-mini .m-photo--banner { inset: 10px 6px; border-radius: 4px; background: linear-gradient(135deg, #3d2a1a, #02301A); }
.st-mini .m-line { position: relative; height: 5px; border-radius: 3px; background: var(--ink-300); }
.st-mini .m-line.light { background: rgba(255, 255, 255, .85); }
.st-mini .w60 { width: 60%; } .st-mini .w50 { width: 50%; } .st-mini .w40 { width: 40%; }
.st-mini .m-stage { position: absolute; inset: 0; display: flex; gap: 3px; align-items: center; padding: 0 5px; background: var(--green-900); }
.st-mini .m-gs { flex: 1; height: 55%; border-radius: 3px; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.st-mini .m-cards { position: absolute; inset: 6px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.st-mini .m-cards i { background: var(--white); border-radius: 3px; border-top: 22px solid #6f9c80; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.st-mini .m-cards--li i { border-top-color: var(--ink-300); }
.st-mini .m-list { position: absolute; inset: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.st-mini .m-list i { background: var(--white); border-radius: 3px; border-left: 3px solid var(--green-500); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.st-mini .m-spot { position: absolute; inset: 6px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 5px; }
.st-mini .m-tile { border-radius: 4px; background: var(--surface-vitreous-dark); }
.st-mini .m-txt { background: linear-gradient(var(--ink-300) 0 0) 0 30% / 90% 4px no-repeat, linear-gradient(var(--ink-300) 0 0) 0 50% / 70% 4px no-repeat, linear-gradient(var(--green-500) 0 0) 0 75% / 40% 6px no-repeat; }
.st-mini .m-acc { position: absolute; inset: 8px 6px; display: grid; gap: 3px; }
.st-mini .m-acc i { border-bottom: 1px solid var(--ink-300); background: linear-gradient(var(--ink-500) 0 0) 0 50% / 60% 3px no-repeat; }
.st-mini .m-soft { position: absolute; inset: 6px; border-radius: 4px; background: var(--surface-soft); display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.st-mini .m-pill { width: 22px; height: 8px; border-radius: 8px; background: var(--green-500); }

/* Aprobación */
.st-sheet { position: absolute; left: 50%; bottom: calc(var(--dock) + 64px); width: min(580px, calc(100% - 32px)); z-index: 25; padding: 18px 20px; border-radius: 20px;
  background: var(--white); color: var(--ink-900); box-shadow: 0 0 0 1px rgba(2, 48, 26, .08), 0 30px 80px rgba(0, 0, 0, .5);
  opacity: 0; transform: translate(-50%, 24px) scale(.98); transition: opacity .45s var(--ease-reveal), transform .45s var(--ease-reveal); }
.st-sheet.is-open { opacity: 1; transform: translate(-50%, 0); }
.st-sheet.is-fin { box-shadow: 0 0 0 3px rgba(0, 154, 68, .5), 0 30px 80px rgba(0, 0, 0, .5); }
.st-sheet__h { display: flex; gap: 12px; align-items: flex-start; }
.st-sheet__ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--green-050); color: var(--green-500); }
.st-sheet__ic.is-fin { background: var(--green-900); color: var(--white); }
.st-sheet__ic svg { width: 20px; height: 20px; }
.st-sheet__h b { display: block; font-size: 15.5px; line-height: 1.3; }
.st-sheet__h span { display: block; font-size: 13px; color: var(--ink-700); margin-top: 2px; }
.st-sheet__l { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 14px 0; }
.st-sheet__l li { display: flex; align-items: center; gap: 7px; font-size: 13px; animation: st-up .45s var(--ease-reveal) both; animation-delay: calc(200ms + var(--i) * 120ms); }
.st-sheet__l svg { width: 16px; height: 16px; flex: none; color: var(--green-500); }
.st-sheet__f { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 12px; border-top: 1px solid var(--ink-200); }
.st-sheet__who { margin-right: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-500); }
.st-sheet__who svg { width: 14px; height: 14px; }
.st-sheet .vd-btn.is-press { transform: scale(.95); background: var(--green-600); }

/* Comparador antes / después */
.st-compare { position: absolute; left: 50%; top: 50%; width: min(640px, calc(100% - 32px)); z-index: 22; padding: 16px; border-radius: 20px; color: var(--white);
  background: rgba(2, 40, 22, .92); border: 1px solid var(--st-line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; transform: translate(-50%, -46%) scale(.97); transition: opacity .45s var(--ease-reveal), transform .45s var(--ease-reveal); }
.st-compare.is-open { opacity: 1; transform: translate(-50%, -50%); }
.st-cmp__h b { display: block; font-size: 15px; }
.st-cmp__h span { display: block; font-size: 12.5px; color: var(--st-mute); }
.st-cmp__v { position: relative; height: 200px; margin-top: 12px; border-radius: 16px; overflow: hidden; }
.st-cmp__l { position: absolute; inset: 0; }
.st-cmp__l .pv-banner { margin: 0; height: 100%; border-radius: 0; }
.st-cmp__tag { position: absolute; top: 10px; left: 10px; z-index: 3; font-size: 11.5px; font-weight: var(--weight-bold); padding: 3px 9px; border-radius: var(--radius-pill); background: rgba(200, 55, 45, .9); }
.st-cmp__tag--r { left: auto; right: 10px; background: var(--green-500); }
.st-cmp__bar { position: absolute; top: 0; bottom: 0; left: 50%; z-index: 4; width: 2px; margin-left: -1px; background: var(--white); pointer-events: none; }
.st-cmp__bar svg { position: absolute; top: 50%; left: 50%; width: 32px; height: 32px; padding: 7px; margin: -16px 0 0 -16px; border-radius: 50%; background: var(--white); color: var(--green-900); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.st-cmp__r { width: 100%; margin-top: 12px; accent-color: var(--green-500); }

/* Anillo de foco y cursor del piloto automático */
.st-focus { position: absolute; z-index: 40; left: 0; top: 0; width: 0; height: 0; pointer-events: none; border-radius: 16px; opacity: 0;
  box-shadow: 0 0 0 2px var(--green-500), 0 0 0 8px rgba(0, 154, 68, .22), 0 0 0 9999px rgba(1, 20, 11, .44);
  transition: left .85s var(--ease-reveal), top .85s var(--ease-reveal), width .85s var(--ease-reveal), height .85s var(--ease-reveal), opacity .5s var(--ease-out); }
.st-focus.is-on { opacity: 1; }
.st-cursor { position: absolute; left: 0; top: 0; z-index: 60; pointer-events: none; display: flex; align-items: flex-start; gap: 2px; opacity: 0;
  transition: transform 1.4s cubic-bezier(.45, 0, .2, 1), opacity .3s; }
.st-cursor.is-on { opacity: 1; }
.st-cursor svg { filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .4)); transition: transform .15s; }
.st-cursor span { margin-top: 20px; font-size: 11.5px; font-weight: var(--weight-bold); padding: 4px 9px; border-radius: var(--radius-pill); background: var(--green-900); color: var(--white); white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.st-cursor.is-click svg { transform: scale(.82); }
.st-cursor::before { content: ""; position: absolute; left: -14px; top: -14px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--green-500); opacity: 0; }
.st-cursor.is-click::before { animation: st-ripple .6s var(--ease-out); }

/* Narración */
.st-narr { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; padding: 18px 24px 0; border-radius: 24px; color: var(--white);
  background: rgba(2, 40, 22, .88); border: 1px solid var(--st-line-2); box-shadow: 0 -10px 60px rgba(0, 0, 0, .4); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  transform: translateY(140%); transition: transform .7s var(--ease-reveal); }
.st-narr.is-on { transform: none; }
.st-narr__in { display: flex; align-items: center; gap: 22px; max-width: 1600px; margin: 0 auto; }
.st-narr__n { font-size: 44px; font-weight: var(--weight-bold); letter-spacing: -0.03em; color: var(--green-100); min-width: 92px; }
.st-narr__txt { min-width: 0; }
.st-narr__txt.is-swap { animation: st-up .6s var(--ease-reveal); }
.st-narr__txt b { display: block; font-size: 26px; line-height: 1.15; letter-spacing: -0.015em; }
.st-narr__txt span { display: block; margin-top: 4px; font-size: 19px; line-height: 1.4; color: rgba(255, 255, 255, .86); max-width: 1000px; }
.st-narr__btns { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.st-narr__prog { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 1600px; margin: 0 auto; padding: 14px 0 16px; }
.st-narr__prog i { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .15); transition: background .5s; }
.st-narr__prog i.is-done { background: var(--green-500); }
.st-narr__prog i.is-now { background: linear-gradient(90deg, var(--green-100) 0 50%, rgba(255, 255, 255, .15) 50% 100%); background-size: 200% 100%; animation: st-fill 7s linear forwards; }
body.is-narr .st-app { height: calc(100vh - 168px); min-height: 600px; }
body.is-narr .st-after { padding-bottom: 200px; }
body.is-narr .vd-toast { bottom: 170px; }

/* =========================================================
   Vista previa de la web (pv-*)
   ========================================================= */
.pv-b { position: relative; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .25s; }
.pv-b:hover, .is-struct .pv-b { outline-color: rgba(0, 154, 68, .75); }
.pv-b.is-locked:hover, .is-struct .pv-b.is-locked { outline-color: rgba(74, 73, 71, .55); outline-style: dashed; }
.pv-lbl { position: absolute; top: 8px; left: 8px; z-index: 6; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: var(--weight-bold); color: var(--white); background: var(--green-900); white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s var(--ease-reveal); pointer-events: none; }
.pv-lbl svg { width: 12px; height: 12px; }
.pv-lbl em { font-style: normal; font-weight: var(--weight-regular); opacity: .8; padding-left: 6px; border-left: 1px solid rgba(255, 255, 255, .35); }
.pv-lbl--local { background: var(--green-500); }
.pv-lbl--shared { background: var(--ink-700); }
.pv-b:hover .pv-lbl, .is-struct .pv-lbl, .is-reveal .pv-b.is-locked .pv-lbl, .pv-b.is-flash .pv-lbl { opacity: 1; transform: none; }
.pv-lock { position: absolute; top: 8px; right: 8px; z-index: 6; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: var(--weight-bold); color: var(--ink-700); background: rgba(255, 255, 255, .94); box-shadow: 0 2px 8px rgba(0, 0, 0, .14); pointer-events: none; }
.pv-lock svg { width: 12px; height: 12px; }
.is-reveal .pv-lock { animation: st-pop .5s var(--ease-spring); }
.pv-b.is-edit [contenteditable] { border-radius: 4px; transition: box-shadow .2s, background .2s; cursor: text; }
.pv-b.is-edit [contenteditable]:hover { box-shadow: 0 0 0 1px rgba(0, 154, 68, .6); }
.pv-b.is-edit [contenteditable]:focus { outline: none; box-shadow: 0 0 0 2px var(--green-500); background: rgba(0, 154, 68, .06); }
.pv-b.is-flash { animation: pv-flash 1.4s var(--ease-out); }
.pv-b.is-shake { animation: pv-shake .5s var(--ease-out); }
.pv-b.is-new { animation: pv-in .8s var(--ease-reveal); }
@keyframes pv-flash { 0% { outline-color: var(--green-500); box-shadow: inset 0 0 0 9999px rgba(0, 154, 68, .1); } 100% { outline-color: transparent; box-shadow: inset 0 0 0 9999px rgba(0, 154, 68, 0); } }
@keyframes pv-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes pv-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

.pv-nav { display: flex; align-items: center; gap: 20px; padding: 14px 24px; background: var(--white); border-bottom: 1px solid var(--ink-200); }
.pv-nav .vd-lockup img { height: 22px; }
.pv-nav__l { display: flex; gap: 16px; margin-left: auto; font-size: 13px; color: var(--ink-700); white-space: nowrap; }
.pv-nav__lang { font-size: 11px; font-weight: var(--weight-bold); padding: 3px 8px; border-radius: var(--radius-pill); border: 1px solid var(--ink-300); }

.pv-hero { min-height: 300px; display: flex; align-items: flex-end; }
.pv-hero--sec { min-height: 230px; }
.pv-hero__in { padding: 40px 32px 34px; max-width: 560px; }
.pv-hero h2 { margin: 10px 0; font-size: 38px; line-height: 1.02; letter-spacing: -0.028em; color: var(--white); }
.pv-hero p { font-size: 15px; color: rgba(255, 255, 255, .88); }
.pv-hero .vd-btn { margin-top: 18px; height: 38px; }

.pv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 22px 24px; }
.pv-gs { padding: 16px 18px; border-radius: 18px; }
.pv-gs .vd-stat b { font-size: 30px; }
.pv-gs .vd-stat span { font-size: 12.5px; }

.pv-banner { position: relative; margin: 24px 24px 0; border-radius: 20px; min-height: 170px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 22px; overflow: hidden; color: var(--white); background: var(--green-900); }
.pv-banner > img, .pv-banner > .vd-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 48, 26, .85) 0%, rgba(2, 48, 26, .3) 60%, rgba(0, 0, 0, .45) 100%); }
.pv-banner > *:not(img):not(.vd-ph) { position: relative; z-index: 1; }
.pv-banner__in b { display: block; margin-top: 8px; font-size: 22px; line-height: 1.15; letter-spacing: -0.015em; max-width: 360px; }
.pv-banner .vd-lockup img { height: 22px; }
.pv-encirc { font-size: 28px; font-weight: var(--weight-bold); letter-spacing: -0.03em; text-transform: lowercase; color: var(--white); opacity: .95; }
.pv-banner.is-blocked { box-shadow: 0 0 0 3px var(--negative); }
.pv-flag { position: absolute !important; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: var(--weight-bold); padding: 5px 11px; border-radius: var(--radius-pill); background: var(--negative); color: var(--white); animation: st-pop .5s var(--ease-spring); }
.pv-flag svg { width: 14px; height: 14px; }

.pv-sec { padding: 26px 24px; }
.pv-sec--soft { background: var(--surface-soft); }
.pv-sec__h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.pv-sec__h h3 { font-size: 22px; letter-spacing: -0.015em; }
.pv-more { font-size: 13px; font-weight: var(--weight-bold); color: var(--green-500); white-space: nowrap; }
.pv-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pv-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-soft); }
.pv-card__img { position: relative; aspect-ratio: 16 / 10; background: var(--green-900); }
.pv-card__img > img, .pv-card__img > .vd-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.pv-new { position: absolute; top: 10px; left: 10px; height: 24px; }
.pv-liic { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 8px; background: var(--white); color: var(--ink-900); display: grid; place-items: center; }
.pv-liic svg { width: 15px; height: 15px; }
.pv-card__b { padding: 12px 14px 14px; }
.pv-date { font-size: 12px; color: var(--ink-500); }
.pv-card__b b { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.28; }
.pv-plants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pv-plant { display: flex; gap: 10px; align-items: flex-start; background: var(--white); border-radius: 14px; padding: 12px 14px; }
.pv-plant svg { width: 20px; height: 20px; flex: none; color: var(--green-500); }
.pv-plant b { display: block; font-size: 13.5px; line-height: 1.25; }
.pv-plant span { display: block; font-size: 12px; color: var(--ink-500); }
.pv-contact { margin: 24px; padding: 24px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow-soft); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pv-contact h3 { margin-top: 8px; font-size: 22px; }
.pv-contact p { margin-top: 4px; font-size: 14px; color: var(--ink-700); max-width: 440px; }

.pv-art { padding: 34px 32px 20px; max-width: 760px; }
.pv-art__t { margin: 12px 0; font-size: 34px; line-height: 1.08; letter-spacing: -0.025em; min-height: 1.1em; }
.pv-art__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-500); }
.pv-src { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--green-050); color: var(--green-700); font-size: 12px; font-weight: var(--weight-bold); }
.pv-src svg { width: 13px; height: 13px; }
.pv-art__lead { margin-top: 14px; font-size: 18px; line-height: 1.5; color: var(--ink-700); }
.pv-skel { display: block; height: .72em; margin: .3em 0; border-radius: 6px; background: linear-gradient(90deg, var(--ink-200) 0%, var(--ink-100) 50%, var(--ink-200) 100%); background-size: 200% 100%; animation: pv-shimmer 1.4s linear infinite; }
.pv-skel--light { display: inline-block; width: 120px; height: 28px; background: linear-gradient(90deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .28), rgba(255, 255, 255, .14)); background-size: 200% 100%; }
.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--green-500); animation: st-blink .8s steps(1) infinite; }

.pv-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 22px 24px; }
.pv-fig .vd-stat b { font-size: 30px; min-height: 30px; }
.pv-delta { font-style: normal; font-weight: var(--weight-bold); color: var(--green-100); }
.pv-ver { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 11.5px; font-weight: var(--weight-bold); padding: 3px 9px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .62); }
.pv-ver svg { width: 13px; height: 13px; }
.pv-ver.is-ok { background: rgba(0, 154, 68, .45); color: var(--white); }
.pv-ver.is-pop { animation: st-pop .5s var(--ease-spring); }
.pv-figs.is-empty .pv-ver { opacity: 0; }
.pv-figs--one { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: center; }
.pv-figs__note { font-size: 22px; line-height: 1.25; font-weight: var(--weight-bold); color: rgba(255, 255, 255, .9); letter-spacing: -0.01em; }
.pv-photo { margin: 0 32px; border-radius: 20px; aspect-ratio: 21 / 9; }
.pv-body { padding: 18px 32px 30px; max-width: 760px; }
.pv-body p { font-size: 16px; line-height: 1.65; color: var(--ink-700); }
.pv-heads { display: grid; gap: 8px; }
.pv-head { display: grid; grid-template-columns: 100px 56px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--white); animation: pv-in .6s var(--ease-reveal) both; animation-delay: calc(var(--i) * 180ms); }
.pv-head__m { font-size: 12.5px; font-weight: var(--weight-bold); color: var(--ink-500); }
.pv-lang { justify-self: start; font-size: 11px; font-weight: var(--weight-bold); padding: 2px 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--ink-300); color: var(--ink-700); }
.pv-head b { font-size: 14px; line-height: 1.3; }
.pv-dist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pv-li, .pv-alert { background: var(--white); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-soft); }
.pv-li__h { display: flex; align-items: center; gap: 10px; }
.pv-li__h b { display: block; font-size: 14px; }
.pv-li__h span { display: block; font-size: 12px; color: var(--ink-500); }
.pv-li__h > svg { width: 18px; height: 18px; margin-left: auto; color: var(--ink-500); }
.pv-li__av { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--green-900); display: grid; place-items: center; }
.pv-li__av img { width: 20px; height: auto; }
.pv-li p { margin: 12px 0; font-size: 13.5px; line-height: 1.5; }
.pv-li__card { border-radius: 12px; overflow: hidden; border: 1px solid var(--ink-200); }
.pv-li__card > img, .pv-li__card > .vd-ph { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; min-height: 0; }
.pv-li__card span { display: block; padding: 8px 10px; font-size: 12px; color: var(--ink-700); }
.pv-alert__ic { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--green-050); color: var(--green-500); display: grid; place-items: center; }
.pv-alert__ic svg { width: 18px; height: 18px; }
.pv-alert dl { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 6px 10px; margin: 14px 0 0; font-size: 13px; }
.pv-alert dt { color: var(--ink-500); }
.pv-alert dd { margin: 0; font-weight: var(--weight-bold); }
.pv-alert.is-flash { animation: pv-flash-card 1.4s var(--ease-out); }
@keyframes pv-flash-card { 0% { box-shadow: 0 0 0 3px var(--green-500), var(--shadow-soft); } 100% { box-shadow: 0 0 0 3px transparent, var(--shadow-soft); } }
.pv-faq .pv-q { padding: 14px 0; border-bottom: 1px solid var(--ink-300); animation: pv-in .6s var(--ease-reveal) both; animation-delay: calc(var(--i) * 140ms); }
.pv-q b { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.pv-q b svg { width: 18px; height: 18px; color: var(--green-500); flex: none; }
.pv-q p { display: none; margin-top: 6px; font-size: 14px; color: var(--ink-700); }
.pv-q.is-open p { display: block; }

.pv-cathead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 28px 24px 12px; }
.pv-cathead h2 { margin-top: 8px; font-size: 30px; letter-spacing: -0.02em; }
.pv-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-filters span { height: 30px; line-height: 30px; padding: 0 12px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: var(--weight-bold); background: var(--white); box-shadow: inset 0 0 0 1px var(--ink-200); }
.pv-filters .is-on { background: var(--green-900); color: var(--white); box-shadow: none; }
.pv-catcount { display: flex; align-items: baseline; gap: 8px; }
.pv-catcount b { font-size: 28px; color: var(--green-500); letter-spacing: -0.02em; }
.pv-catcount span { font-size: 12px; color: var(--ink-500); }
.pv-cat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 10px 24px 28px; }
.pv-prod { margin: 0; }
.pv-prod__img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; transition: background-color .9s var(--ease-reveal), border-radius .9s var(--ease-reveal), padding .9s var(--ease-reveal), box-shadow .9s; }
.pv-prod__img > img, .pv-prod__img > .vd-ph { position: relative; display: block; width: 100%; height: 100%; min-height: 0; transition: filter .9s var(--ease-reveal), transform .9s var(--ease-reveal), border-radius .9s var(--ease-reveal); }
.pv-prod__img::before, .pv-prod__img::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .9s var(--ease-reveal); }
.pv-prod__img::before { background: linear-gradient(180deg, rgba(0, 154, 68, .08) 0%, rgba(2, 48, 26, .5) 100%); }
.pv-prod__img::after { background: var(--reflection); }
.pv-prod figcaption { margin-top: 8px; font-size: 12.5px; font-weight: var(--weight-bold); color: var(--ink-700); }
/* Antes: 6 estilos que no casan */
.pv-prod.m0 .pv-prod__img { background: #FFFFFF; padding: 18px; }
.pv-prod.m0 img { object-fit: contain; filter: saturate(.35) brightness(1.18); }
.pv-prod.m1 .pv-prod__img { background: #D9D6CF; border-radius: 4px; }
.pv-prod.m1 img { object-fit: cover; filter: sepia(.6) contrast(.85); transform: scale(1.3) rotate(-4deg); }
.pv-prod.m2 .pv-prod__img { background: #1C1C1C; border-radius: 30px; padding: 10px; }
.pv-prod.m2 img { object-fit: cover; filter: grayscale(.8) brightness(.7); border-radius: 30px; }
.pv-prod.m3 .pv-prod__img { background: #F4EFE2; padding: 26px; }
.pv-prod.m3 img { object-fit: contain; filter: contrast(1.45) saturate(1.7); }
.pv-prod.m4 .pv-prod__img { background: #E8E8E8; border-radius: 8px; padding: 6px 30px; }
.pv-prod.m4 img { object-fit: cover; filter: brightness(1.35) contrast(.75); }
.pv-prod.m5 .pv-prod__img { background: #FFFFFF; border-radius: 50%; padding: 14px; }
.pv-prod.m5 img { object-fit: cover; filter: saturate(.55) blur(.6px); border-radius: 50%; }
/* Después: fondo vitreous y luz única */
.pv-prod.is-fixed .pv-prod__img { background: var(--green-900); border-radius: 20px; padding: 0; box-shadow: 0 10px 24px rgba(2, 48, 26, .18); }
.pv-prod.is-fixed img { object-fit: cover; filter: saturate(.9) contrast(1.06) brightness(.95); transform: none; border-radius: 20px; }
.pv-prod.is-fixed .pv-prod__img::before, .pv-prod.is-fixed .pv-prod__img::after { opacity: 1; }

.pv-spot { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: center; padding: 26px 24px; }
.pv-spot__tile { width: 100%; }
.pv-spot h3 { margin: 10px 0 8px; font-size: 24px; letter-spacing: -0.015em; }
.pv-spot p { font-size: 14px; color: var(--ink-700); margin-bottom: 16px; }

@container (max-width: 600px) {
  .pv-nav__l { display: none; }
  .pv-nav { padding: 12px 16px; }
  .pv-hero { min-height: 340px; }
  .pv-hero__in { padding: 28px 18px; }
  .pv-hero h2 { font-size: 28px; }
  .pv-stats, .pv-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; gap: 8px; }
  .pv-figs--one { grid-template-columns: 1fr; }
  .pv-gs { padding: 12px 14px; }
  .pv-gs .vd-stat b, .pv-fig .vd-stat b { font-size: 22px; }
  .pv-news { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scrollbar-width: none; }
  .pv-plants, .pv-dist { grid-template-columns: 1fr; }
  .pv-sec, .pv-cathead { padding-left: 16px; padding-right: 16px; }
  .pv-contact { flex-direction: column; align-items: flex-start; margin: 16px; }
  .pv-banner { margin: 16px 16px 0; flex-direction: column; align-items: flex-start; }
  .pv-art, .pv-body { padding-left: 18px; padding-right: 18px; }
  .pv-art__t { font-size: 26px; }
  .pv-head { grid-template-columns: 1fr auto; }
  .pv-head b { grid-column: 1 / -1; }
  .pv-cat { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px 16px 20px; }
  .pv-spot { grid-template-columns: 1fr; }
  .pv-photo { margin: 0 16px; }
}

/* =========================================================
   Planner (pl-*)
   ========================================================= */
.pl { flex: 1; min-height: 0; overflow: auto; margin: 16px; padding: 20px 22px; border-radius: 18px; background: var(--white); color: var(--ink-900); scrollbar-width: thin; }
.pl .st-lbl { color: var(--ink-500); }
.pl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pl-head h3 { margin-top: 4px; font-size: 22px; letter-spacing: -0.015em; }
.pl-months { margin-left: auto; }
.pl-months button { height: 32px; padding: 0 14px; font-size: 13px; }
.pl-head .vd-btn { height: 40px; }
.pl-head .vd-btn svg { width: 16px; height: 16px; }
.pl-head .vd-btn.is-ready { box-shadow: 0 0 0 4px rgba(0, 154, 68, .25); animation: st-glow 1.4s var(--ease-in-out) infinite; }
.pl-ok { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--green-050); color: var(--green-700); font-size: 14px; font-weight: var(--weight-bold); }
.pl-ok svg { width: 16px; height: 16px; }
.pl-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 10px; }
.pl-legend .pl-chip { display: inline-block; }
.pl-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pl-wd { font-size: 11px; font-weight: var(--weight-bold); color: var(--ink-500); text-align: center; padding: 4px 0; }
.pl-day { min-height: 80px; min-width: 0; padding: 6px; border-radius: 10px; background: var(--surface-soft); display: flex; flex-direction: column; gap: 3px; }
.pl-day > b { font-size: 12px; color: var(--ink-500); }
.pl-day.is-wk { background: #F7F6F4; }
.pl-day.is-today { box-shadow: inset 0 0 0 2px var(--green-500); }
.pl-day.is-empty { background: transparent; }
.pl-chip { display: block; max-width: 100%; padding: 3px 6px; border-radius: 6px; font-size: 11px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-chip em { font-style: normal; font-weight: var(--weight-bold); font-size: 9.5px; opacity: .78; margin-right: 4px; }
.pl-chip svg { width: 11px; height: 11px; display: inline-block; vertical-align: -1px; margin-right: 3px; }
.c-grupo { background: var(--green-900); color: var(--white); }
.c-iberia { background: var(--green-500); color: var(--white); }
.c-uk { background: var(--green-100); color: var(--green-900); }
.c-br { background: var(--white); color: var(--green-700); box-shadow: inset 0 0 0 1.5px var(--green-500); }
.c-cl { background: var(--ink-200); color: var(--ink-900); }
.c-none { background: var(--white); color: var(--ink-700); }
.pl-chip.is-prop { outline: 1.5px dashed var(--green-500); outline-offset: 1px; }
.pl-chip.is-new { animation: st-chip .7s var(--ease-spring); }
.pl-chip.is-ok { box-shadow: inset 0 0 0 1.5px var(--green-500), 0 0 0 2px rgba(0, 154, 68, .2); }
.pl-gaps { margin-top: 18px; display: grid; gap: 10px; }
.pl-gaps__l { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pl-gap { display: grid; gap: 6px; align-content: start; padding: 12px; border-radius: 14px; background: var(--surface-soft); animation: pv-in .6s var(--ease-reveal) both; }
.pl-gap .pl-chip { justify-self: start; }
.pl-gap b { font-size: 14px; line-height: 1.3; }
.pl-gap > span:last-child { display: flex; gap: 5px; align-items: flex-start; font-size: 12px; color: var(--ink-700); }
.pl-gap > span:last-child svg { width: 14px; height: 14px; flex: none; color: var(--green-500); margin-top: 1px; }
.pl-note { margin-top: 14px; font-size: 12px; color: var(--ink-500); }

/* =========================================================
   Animaciones
   ========================================================= */
@keyframes st-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes st-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes st-rec { from { opacity: 0; transform: translateX(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes st-gone { to { opacity: 0; transform: translateX(30px); height: 0; padding-top: 0; padding-bottom: 0; margin: 0; border-width: 0; } }
@keyframes st-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes st-chip { 0% { opacity: 0; transform: scale(.6); } 100% { opacity: 1; transform: none; } }
@keyframes st-spin { to { transform: rotate(360deg); } }
@keyframes st-blink { 50% { opacity: 0; } }
@keyframes st-breathe { 0%, 100% { opacity: 0; transform: scale(.94); } 50% { opacity: .55; transform: scale(1); } }
@keyframes st-ping { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes st-ripple { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.8); } }
@keyframes st-glow { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes st-grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes st-grow-x { from { transform: scaleX(0); } to { transform: none; } }
@keyframes st-scan { 0% { background-position: -50% 0; } 100% { background-position: 150% 0; } }
@keyframes st-fill { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes pv-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1380px) {
  .st-main { grid-template-columns: 224px minmax(0, 1fr) 330px; }
  .st-auton__l, .st-dock__meta { display: none; }
  .st-flow__c { padding: 0 9px; font-size: 12px; }
  .st-ring span { display: none; }
}
@media (max-width: 1180px) {
  .st-intro { grid-template-columns: 1fr; }
  .st-app { height: auto; grid-template-rows: auto auto auto; }
  .st-docbar { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .st-flow { margin: 0; }
  .st-main { grid-template-columns: minmax(0, 1fr); }
  .st-rail { border-right: 0; border-bottom: 1px solid var(--st-line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-height: 360px; }
  .st-center { height: 820px; border-right: 0; border-bottom: 1px solid var(--st-line); }
  .st-side { padding-bottom: 12px; }
  .st-queue { max-height: 640px; }
  body.is-narr .st-app { height: auto; }
}
@media (max-width: 760px) {
  .st-pillars { grid-template-columns: 1fr; }
  .st-stage { padding: 0 8px 16px; }
  .st-app { border-radius: 18px; }
  .st-top { flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
  .st-top__sp, .st-clock, .st-env { display: none; }
  .st-views { order: 3; }
  .st-limits { order: 4; }
  .st-limits .st-chipbtn span { display: none; }
  .st-ap { margin-left: auto; }
  .st-pop { position: fixed; left: 12px; right: 12px; top: 120px; width: auto; }
  .st-crumb { flex-basis: 100%; }
  .st-flow { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .st-auton, .st-auton .vd-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .st-rail { grid-template-columns: 1fr; max-height: 420px; }
  .st-tools { flex-wrap: wrap; height: auto; padding: 8px 10px; }
  .st-tools__sp { display: none; }
  .st-ring { margin-left: auto; }
  #structBtn span { display: none; }
  .st-well { padding: 8px; }
  .st-center { height: 760px; }
  .st-sheet { bottom: calc(var(--dock) + 12px); padding: 14px; }
  .st-sheet__l { grid-template-columns: 1fr; }
  .st-compare { width: calc(100% - 16px); }
  .st-cmp__v { height: 170px; }
  .st-o, .st-code { padding-left: 16px; margin-left: 0; }
  .st-l .ts { display: none; }
  .st-narr { left: 8px; right: 8px; bottom: 8px; padding: 12px 14px 0; border-radius: 18px; }
  .st-narr__in { flex-wrap: wrap; gap: 8px 12px; }
  .st-narr__n { font-size: 26px; min-width: 0; }
  .st-narr__txt { flex: 1 1 70%; }
  .st-narr__txt b { font-size: 17px; }
  .st-narr__txt span { font-size: 14px; }
  .st-narr__btns { margin-left: 0; width: 100%; justify-content: flex-start; }
  .st-narr__prog { padding: 10px 0 12px; }
  .pl { margin: 8px; padding: 14px; }
  .pl-day { min-height: 56px; padding: 4px; }
  .pl-chip { font-size: 0; padding: 0; height: 6px; border-radius: 3px; }
  .pl-legend .pl-chip, .pl-gap .pl-chip { font-size: 11px; height: auto; padding: 3px 6px; }
  .pl-chip svg, .pl-day .pl-chip em { display: none; }
  .pl-months { margin-left: 0; }
}

/* Lienzo con zoom de editor en escritorio: se ve más página de un vistazo */
@media (min-width: 1181px) {
  .st-frame:not(.is-mobile) .st-pv { zoom: .84; }
}
.st-ring.is-idle b { font-size: 12px; color: var(--st-mute); }

/* =========================================================
   Pregunta a Vidrala (as-*)
   ========================================================= */
.as-phase { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: var(--radius-pill); font-size: 13px; font-weight: var(--weight-bold);
  color: var(--white); background: rgba(255, 255, 255, .1); border: 1px dashed rgba(255, 255, 255, .45); }
.as-phase svg { width: 15px; height: 15px; color: var(--green-100); }
.as-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; padding-bottom: 12px; }

/* La web con el chat */
.as-site { border-radius: 22px; overflow: hidden; background: var(--surface-page); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 100px rgba(0, 0, 0, .5); animation: st-in 1.1s var(--ease-reveal) both .1s; }
.as-browser { height: 38px; }
.as-stage { position: relative; min-height: 780px; display: flex; flex-direction: column; }
.as-stage::after { background: linear-gradient(180deg, rgba(1, 31, 17, .55) 0%, rgba(1, 31, 17, .25) 40%, rgba(1, 31, 17, .7) 100%); }
.as-stage__nav { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; padding: 18px 24px; font-size: 13px; color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; }
.as-stage__nav img { height: 24px; width: auto; margin-right: auto; }
.as-chat { position: relative; z-index: 1; margin: auto 24px 24px; display: flex; flex-direction: column; height: 680px; padding: 0; border-radius: 24px; overflow: hidden; }
.as-chat__h { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.as-chat__h b { display: block; font-size: 16px; }
.as-chat__h div span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.as-ava { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--green-500); box-shadow: 0 0 0 4px rgba(0, 154, 68, .25); }
.as-ava img { width: 22px; height: auto; }
.as-online { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: var(--weight-bold); color: var(--green-100); }
.as-online i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); color: var(--green-500); animation: vd-pulse 1.6s var(--ease-out) infinite; }
.as-log { flex: 1; min-height: 0; overflow: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.as-msg { max-width: 88%; font-size: 15px; line-height: 1.5; animation: st-up .45s var(--ease-reveal); }
.as-msg--me { align-self: flex-end; padding: 10px 14px; border-radius: 18px 18px 4px 18px; background: var(--white); color: var(--green-900); font-weight: var(--weight-bold); }
.as-msg--bot { align-self: flex-start; padding: 12px 14px; border-radius: 18px 18px 18px 4px; background: rgba(2, 48, 26, .62); border: 1px solid rgba(255, 255, 255, .14); color: var(--white); }
.as-msg--bot ul { margin: 6px 0 0 18px; display: grid; gap: 4px; }
.as-cites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.as-cite { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--radius-pill); border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1);
  color: var(--white); font-size: 12px; font-weight: var(--weight-bold); cursor: pointer; animation: st-chip .5s var(--ease-spring) both; transition: background .2s; }
.as-cite:hover { background: rgba(255, 255, 255, .22); }
.as-cite svg { width: 13px; height: 13px; color: var(--green-100); }
.as-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.as-st { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: var(--weight-bold); color: var(--green-100); }
.as-st svg { width: 13px; height: 13px; }
.as-st.is-refuse, .as-st.is-new, .as-st.is-lang { color: rgba(255, 255, 255, .78); }
.as-st.is-nosource, .as-st.is-low, .as-st.is-unsourced { color: var(--st-amber); }
.as-lng { font-size: 10.5px; font-weight: var(--weight-bold); padding: 1px 6px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .78); }
.as-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.as-typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .8); animation: as-dot 1.2s var(--ease-in-out) infinite; }
.as-typing i:nth-child(2) { animation-delay: .15s; } .as-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes as-dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.as-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 12px; }
.as-chip { height: 32px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); color: var(--white); font-size: 13px; cursor: pointer; white-space: nowrap; animation: st-up .5s var(--ease-reveal) both; transition: background .2s, border-color .2s; }
.as-chip:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .6); }
.as-form { display: flex; gap: 8px; padding: 12px 18px 8px; border-top: 1px solid rgba(255, 255, 255, .14); }
.as-input { flex: 1; min-width: 0; height: 46px; padding: 0 18px; border-radius: var(--radius-pill); border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); color: var(--white); font: inherit; font-size: 15px; }
.as-input::placeholder { color: rgba(255, 255, 255, .7); }
.as-input:focus { outline: none; border-color: var(--white); box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.as-send { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--white); color: var(--green-900); display: grid; place-items: center; cursor: pointer; transition: transform .15s; }
.as-send:active { transform: scale(.94); }
.as-send svg { width: 20px; height: 20px; }
.as-legal { padding: 0 18px 12px; font-size: 11.5px; color: rgba(255, 255, 255, .66); }

/* Consola de HQ */
.as-console { display: grid; gap: 12px; padding: 18px; border-radius: 22px; color: var(--white);
  background: linear-gradient(180deg, rgba(2, 48, 26, .78), rgba(1, 31, 17, .88)); border: 1px solid var(--st-line-2);
  backdrop-filter: blur(28px) saturate(140%); -webkit-backdrop-filter: blur(28px) saturate(140%); box-shadow: 0 40px 100px rgba(0, 0, 0, .45); animation: st-in 1.1s var(--ease-reveal) both .25s; }
.as-console__h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.as-console__h h2 { margin-top: 4px; font-size: 24px; letter-spacing: -0.015em; color: var(--white); }
.as-p { padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 10px; align-content: start; }
.as-p__h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.as-p__h b { font-size: 14px; }
.as-p__h span { font-size: 11.5px; color: var(--st-faint); text-align: right; }
.as-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.as-src { display: grid; gap: 6px; }
.as-srci { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .18); cursor: pointer; transition: background .3s, opacity .3s; opacity: .55; }
.as-srci.is-on { opacity: 1; background: rgba(0, 154, 68, .12); }
.as-srci__ic { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--green-100); }
.as-srci__ic svg { width: 16px; height: 16px; }
.as-srci__t { flex: 1; min-width: 0; }
.as-srci__t b { display: block; font-size: 13px; }
.as-srci__t span { display: block; font-size: 11.5px; color: var(--st-mute); }
.as-srci input, .as-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.as-tog, .as-sw > i { position: relative; width: 38px; height: 22px; flex: none; border-radius: 11px; background: rgba(255, 255, 255, .2); transition: background .3s; }
.as-tog::after, .as-sw > i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); transition: transform .3s var(--ease-reveal); }
.as-srci input:checked + .as-tog, .as-sw input:checked + .as-sw__t + i { background: var(--green-500); }
.as-srci input:checked + .as-tog::after, .as-sw input:checked + .as-sw__t + i::after { transform: translateX(16px); }
.as-srci input:focus-visible + .as-tog, .as-sw input:focus-visible + .as-sw__t + i { box-shadow: 0 0 0 3px rgba(0, 154, 68, .55); }
.as-langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.as-lang { display: grid; gap: 1px; text-align: left; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: rgba(255, 255, 255, .6); font-size: 13px; font-weight: var(--weight-bold); cursor: pointer; transition: all .25s; }
.as-lang small { font-size: 11px; font-weight: var(--weight-regular); color: var(--st-faint); }
.as-lang[aria-pressed="true"] { background: rgba(0, 154, 68, .18); border-color: rgba(0, 154, 68, .6); color: var(--white); }
.as-sw { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; cursor: pointer; }
.as-range { display: grid; gap: 6px; font-size: 13px; }
.as-range span { display: flex; justify-content: space-between; }
.as-range input { width: 100%; accent-color: var(--green-500); }
.as-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.as-kpis div { padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .2); }
.as-kpis b { display: block; font-size: 24px; letter-spacing: -0.02em; }
.as-kpis b.is-bump { animation: st-pop .45s var(--ease-spring); color: var(--green-100); }
.as-kpis span { display: block; font-size: 11.5px; color: var(--st-mute); line-height: 1.3; }
.as-top { display: grid; gap: 6px; }
.as-top__l { font-size: 11.5px; color: var(--st-faint); }
.as-bar { display: grid; grid-template-columns: 96px minmax(0, 1fr) 36px; align-items: center; gap: 8px; font-size: 12px; color: var(--st-mute); }
.as-bar i { display: block; height: 8px; width: var(--w); border-radius: 4px; background: rgba(255, 255, 255, .28); transition: width .6s var(--ease-reveal); transform-origin: left; animation: st-grow-x .8s var(--ease-reveal) both; }
.as-bar.is-hot i { background: var(--green-500); }
.as-bar.is-hot span { color: var(--white); }
.as-bar b { text-align: right; color: var(--white); }
.as-model { display: flex; align-items: center; gap: 12px; }
.as-model__ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--white); color: var(--green-900); }
.as-model__ic svg { width: 22px; height: 22px; }
.as-model b { display: block; font-size: 15px; }
.as-model div span { display: block; font-size: 12.5px; color: var(--st-mute); }
.as-priv { list-style: none; display: grid; gap: 6px; }
.as-priv li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.as-priv svg { width: 15px; height: 15px; color: var(--green-100); flex: none; }

@media (max-width: 1100px) { .as-wrap { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .as-stage { min-height: 640px; }
  .as-stage__nav span { display: none; }
  .as-chat { margin: auto 10px 10px; height: 580px; }
  .as-msg { font-size: 14px; max-width: 94%; }
  .as-grid2, .as-kpis { grid-template-columns: 1fr; }
  .as-console { padding: 12px; }
}
.as-online { white-space: nowrap; }
@media (max-width: 640px) {
  .as-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .as-chip { flex: none; }
}
/* v2 · Century Gothic es más ancha: nombre y tarea del agente en dos líneas en lugar de cortarse */
.st-ag { align-items: flex-start; }
.st-ag__t b { white-space: normal; }
.st-ag__s { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; }
