/* Autónoma Studio — interfaz del pipeline de vídeo largo. Fondo de constelación oscuro y dorado (web/fondo.js).
   Tokens y superficies tomados del estilo de la casa (autonoma-estilo/tokens-general.css y vidrio.css). */
*, *::before, *::after { box-sizing: border-box; }
/* `hidden` manda sobre cualquier display de las clases (las vistas y paneles se ocultan con él). */
[hidden] { display: none !important; }

:root {
  --navy-deep: #04101f;
  --navy-700: #0a2342;
  --navy-600: #10325c;
  --txt: #f2f5fa;
  --txt-dim: #8fa0b5;
  --txt-idle: #4e627e;
  --gold: #c9a24a;
  --gold-light: #e6c878;
  --gold-pale: #f0d78c;
  --pos: #5bbf8a;
  --neg: #e08a6a;
  --alerta: #fbbf24;
  --glass: rgba(10, 24, 45, 0.82);
  --glass-2: rgba(30, 58, 98, 0.82);
  --glass-borde: rgba(255, 255, 255, 0.12);
  --glass-borde-hover: rgba(201, 162, 74, 0.55);
  --trazo-suave: rgba(255, 255, 255, 0.1);
  --gold-fig: linear-gradient(120deg, #f0d78c, #c9a24a, #e6c878);
  --radio: 18px;
  --radio-panel: 24px;
  --radio-campo: 12px;
  --muelle: cubic-bezier(0.32, 1.45, 0.32, 1);
  --spring: cubic-bezier(0.32, 1.45, 0.32, 1); /* el del Lab (catalogo/colores.css), lo usan el v12 y el selector */
  --letra: "Manrope", system-ui, "Segoe UI", sans-serif;
  --letra-titulos: "Saira", "Manrope", system-ui, sans-serif;
  color-scheme: dark;
}

html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: var(--letra);
  color: var(--txt);
  background: #030303;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--letra-titulos); line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
a { color: var(--gold-light); }
::selection { background: rgba(201, 162, 74, 0.3); }

/* ── Fondo: constelación oscura y dorada ───────────────────────────
   La del CRM (SiteBackground) con un look más oscuro y dorado: base casi negra con un punto cálido, halos de oro
   tenues que respiran despacio y la constelación en un lienzo (web/fondo.js). */
.fondo-estudio {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(70% 55% at 12% 0%, rgba(201, 162, 74, 0.07), transparent 60%),
    radial-gradient(60% 50% at 100% 100%, rgba(150, 108, 40, 0.09), transparent 62%),
    linear-gradient(160deg, #0a0906 0%, #060505 50%, #020202 100%);
}
.fondo-estudio .halo { position: absolute; border-radius: 50%; will-change: transform; }
.fondo-estudio .h1 { width: 680px; height: 680px; top: -14%; left: -16%; background: rgba(201, 162, 74, 0.075); filter: blur(130px); animation: halo-a 34s ease-in-out infinite alternate; }
.fondo-estudio .h2 { width: 520px; height: 520px; top: -6%; right: -12%; background: rgba(245, 227, 179, 0.035); filter: blur(115px); animation: halo-b 28s ease-in-out infinite alternate; }
.fondo-estudio .h3 { width: 560px; height: 560px; bottom: -16%; left: 8%; background: rgba(150, 108, 40, 0.07); filter: blur(120px); animation: halo-a 31s ease-in-out infinite alternate-reverse; }
.fondo-estudio .h4 { width: 500px; height: 500px; bottom: -12%; right: -10%; background: rgba(201, 162, 74, 0.06); filter: blur(115px); animation: halo-b 37s ease-in-out infinite alternate-reverse; }
.fondo-estudio .vineta { inset: 0; border-radius: 0; background: radial-gradient(125% 95% at 50% 42%, transparent 50%, rgba(0, 0, 0, 0.7) 100%); }
.constelacion { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
@keyframes halo-a { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); } }
@keyframes halo-b { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(-5vmax, 5vmax, 0) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .fondo-estudio .halo { animation: none; } }
.encima { position: relative; z-index: 1; }

/* ── El vidrio: Liquid Glass Lab · v35 ─────────────────────────────
   Copiado de liquid-glass-lab/catalogo/vidrios.css: «v35 · Demo Captura de clientes»
   (23-sep-2026). Esmerilado de blanco 10 → 3 %, blur de 14px, borde blanco al 12 % y una
   sombra larga de 50px que lo despega del fondo. Receta cerrada: no lleva hairline dorado
   ni anillo de lente; el oro queda para acciones y estados activos.
   Variante b (barras): radio 14px, blur 10px, sin sombra.
   Regla del Lab: vidrio dentro de vidrio no desenfoca, así que lo que va DENTRO de un panel
   usa superficies planas (sin backdrop-filter). */
/* Base .lg del Lab (variables de color y anillos), copiada tal cual: la usan el v12 y el selector. */
.lg {
  position: relative;
  --lg-a: var(--tema-a, #c9a24a);
  --lg-a2: var(--tema-a2, #e6c878);
  --lg-a3: var(--tema-a3, #f5e3b3);
  --lg-b: var(--tema-b, #5a96ff);
  --lg-b2: var(--tema-b2, #8cafe1);
  --lg-luz: var(--tema-luz, #fff0cd);
  --lg-t1: var(--tema-t1, #9085e9);
  --lg-t2: var(--tema-t2, #3987e5);
  /* El anillo de lente oficial (tokens.css): cáusticas + fringe */
  --lg-anillo:
    inset 0 12px 14px -9px rgb(from var(--lg-luz) r g b / 0.85),
    inset 0 -12px 14px -9px rgb(from var(--lg-luz) r g b / 0.75),
    inset 9px 0 12px -11px rgba(255, 255, 255, 0.4),
    inset -9px 0 12px -11px rgba(255, 255, 255, 0.4),
    inset 7px -4px 16px -9px rgb(from var(--lg-b) r g b / 0.5),
    inset -7px 4px 16px -9px rgb(from var(--lg-b) r g b / 0.45);
  /* El anillo dorado (Liquid Glass 2.0 y CLAUDE.md del repo General) */
  --lg-anillo-oro:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.55),
    inset 0 -2px 4px rgb(from var(--lg-a) r g b / 0.55),
    inset 2px 0 3px rgb(from var(--lg-a2) r g b / 0.3),
    inset -2px 0 3px rgb(from var(--lg-a2) r g b / 0.3),
    0 0 22px rgb(from var(--lg-a) r g b / 0.3),
    0 8px 26px rgba(0, 0, 0, 0.5);
}
.lg > .lg-rim,
.lg > .lg-spec {
  display: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.lg > .lg-in { position: relative; z-index: 1; }
.lg-v35 {
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.lg-v35.var-b {
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
}

/* ── Selector de opción múltiple oficial del Lab (a25 variante d) ─────────
   Todo lo que se elige de una lista va con el selector v12 + Motion, como el CRM (GlassSelect).
   Copiado tal cual de liquid-glass-lab: el bloque @v12 de catalogo/vidrios.css y @sel de catalogo/selector.css;
   el JS en web/selector.js y Motion en web/vendor/motion.js (MIT). */
/* @v12 · Presentación «Liquid Glass v2» · 2-jul-2026 */
.lg-v12 {
  /* El anillo de la v2 es el oficial, más suave */
  --lg-anillo-v2:
    inset 0 12px 14px -9px rgb(from var(--lg-luz) r g b / 0.75),
    inset 0 -12px 14px -9px rgb(from var(--lg-luz) r g b / 0.6),
    inset 9px 0 12px -11px rgba(255, 255, 255, 0.35),
    inset -9px 0 12px -11px rgba(255, 255, 255, 0.35),
    inset 7px -4px 16px -9px rgb(from var(--lg-b) r g b / 0.45),
    inset -7px 4px 16px -9px rgb(from var(--lg-b) r g b / 0.4);
  border-radius: 30px;
  background:
    radial-gradient(130% 70% at 50% -25%, rgb(from var(--lg-luz) r g b / 0.06) 0%, transparent 55%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    inset 0 10px 12px -9px rgb(from var(--lg-luz) r g b / 0.4),
    inset 0 -10px 12px -9px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
/* b · tarjeta (sin desenfoque; se enciende al pasar) */
.lg-v12.var-b {
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% -25%, rgb(from var(--lg-luz) r g b / 0.06), transparent 55%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.028));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: inset 0 7px 9px -7px rgb(from var(--lg-luz) r g b / 0.3), inset 0 -7px 9px -7px rgba(255, 255, 255, 0.1);
  transition: transform 0.55s var(--spring), border-color 0.35s, box-shadow 0.35s;
}
.lg-v12.var-b:hover {
  transform: translateY(-5px) scale(1.012);
  border-color: rgb(from var(--lg-a) r g b / 0.45);
  box-shadow: var(--lg-anillo-v2), 0 18px 40px rgba(0, 0, 0, 0.4);
}
/* c · documento (el «hero» de la plantilla de documento) */
.lg-v12.var-c {
  border-radius: 32px;
  background:
    radial-gradient(130% 70% at 50% -25%, rgb(from var(--lg-luz) r g b / 0.07), transparent 55%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    inset 0 10px 12px -9px rgb(from var(--lg-luz) r g b / 0.4),
    inset 0 -10px 12px -9px rgba(255, 255, 255, 0.12);
}
/* d · botón redondo (flechas de la presentación) */
.lg-v12.var-d {
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 8px 10px -7px rgb(from var(--lg-luz) r g b / 0.5),
    inset 0 -8px 10px -7px rgb(from var(--lg-luz) r g b / 0.35),
    0 10px 26px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s var(--spring), box-shadow 0.3s, border-color 0.3s;
}
.lg-v12.var-d:hover {
  transform: scale(1.12);
  border-color: rgb(from var(--lg-a) r g b / 0.55);
  box-shadow: var(--lg-anillo-v2), 0 12px 30px rgba(0, 0, 0, 0.45);
}
/* e · contador (pastilla) */
.lg-v12.var-e {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 6px 8px -6px rgb(from var(--lg-luz) r g b / 0.35);
}
/* @fin v12 */
/* @sel · Selector de opción múltiple (v12 + Motion) */
.sel-v12 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px 0 8px;
  font-size: 13px;
  color: #f2f5fa;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.5s var(--spring);
}
.sel-v12:hover,
.sel-v12.abierto {
  border-color: rgb(from var(--lg-a) r g b / 0.55);
  box-shadow: var(--lg-anillo-v2), 0 8px 22px rgba(0, 0, 0, 0.35);
}
.sel-v12:active { transform: scale(0.97); }
.sel-v12 .sel-texto { max-width: 190px; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.sel-v12 .sel-vacio { color: rgba(215, 222, 234, 0.6); font-weight: 500; }
.sel-v12 .sel-etq { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(215, 222, 234, 0.6); }
.sel-flecha { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7; }
.sel-marca { display: inline-flex; align-items: center; flex: none; }

/* La lista: v12 base, con el radio de un menú */
.sel-pop {
  position: fixed;
  z-index: 200;
  border-radius: 22px;
  padding: 6px;
  max-width: min(440px, calc(100vw - 24px));
  color: #f2f5fa;
  transform-origin: 50% 0;
}
.sel-pop.arriba { transform-origin: 50% 100%; }
.sel-pop:focus { outline: none; }
.sel-lista {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
  gap: 2px;
  max-height: min(62vh, 440px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
/* La luz que recorre las opciones (la mueve Motion con resorte) */
.sel-luz {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  opacity: 0;
  border-radius: 14px;
  background: rgb(from var(--lg-a) r g b / 0.1);
  border: 1px solid rgb(from var(--lg-a) r g b / 0.4);
  box-shadow: var(--lg-anillo-v2);
  pointer-events: none;
}
.sel-op {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 14px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.sel-op-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sel-op-t small { font-size: 11px; color: rgba(215, 222, 234, 0.62); white-space: normal; }
.sel-op[aria-selected='true'] .sel-op-t { color: var(--lg-a2); font-weight: 600; }
.sel-check { width: 16px; height: 16px; margin-left: auto; flex: none; stroke: var(--lg-a2); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.sel-op[aria-selected='true'] .sel-check { opacity: 1; }
.sel-pop:focus-visible .sel-op.activa { outline: 2px solid rgb(from var(--lg-a2) r g b / 0.7); outline-offset: -2px; }

/* Marcas que van dentro de las opciones */
.sel-punto { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.sel-tri { display: inline-flex; }
.sel-tri i { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(6, 21, 40, 0.9); }
.sel-tri i + i { margin-left: -5px; }
.sel-mini { position: relative; display: block; width: 38px; height: 24px; border-radius: 7px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }

/* Grupo de botones (pestañas, filtros, variantes): una luz viaja al activo */
.op-grupo { position: relative; isolation: isolate; }
.op-luz.lg-v12 {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  border-radius: 999px;
  background: rgb(from var(--lg-a) r g b / 0.12);
  border: 1px solid rgb(from var(--lg-a) r g b / 0.45);
  box-shadow: var(--lg-anillo-v2);
  pointer-events: none;
  opacity: 0;
}
/* @fin sel */
/* Disposición del selector en el formulario (no es parte de la receta): ocupa la columna como un campo. */
.sel-v12.campo-sel { width: 100%; height: 44px; padding: 0 12px 0 14px; font: inherit; font-size: .95rem; justify-content: flex-start; }
.sel-v12.campo-sel { min-width: 0; }
.sel-v12.campo-sel .sel-texto { max-width: none; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.sel-v12.campo-sel .sel-flecha { margin-left: auto; }
textarea.campo { resize: vertical; min-height: 96px; line-height: 1.45; }
.ayuda { font-size: .78rem; color: var(--txt-dim); margin: 6px 0 0; line-height: 1.45; }
/* Colores extra: pastillas v12 (variante e, como el botón del selector) que se encienden como él al pasar. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-color { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 6px; font: inherit; font-size: .82rem; color: var(--txt-dim); cursor: pointer; transition: border-color .3s, box-shadow .3s, color .3s, transform .5s var(--spring); }
.chip-color .sel-punto { width: 20px; height: 20px; flex: none; }
.chip-color:hover { border-color: rgb(from var(--lg-a) r g b / 0.35); }
.chip-color[aria-pressed="true"] { color: var(--txt); border-color: rgb(from var(--lg-a) r g b / 0.55); box-shadow: var(--lg-anillo-v2), 0 6px 16px rgba(0, 0, 0, 0.3); }
.chip-color:active { transform: scale(0.96); }
.punto-color { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }

/* ── Carpetas (inicio) y vídeos de una carpeta ──────────────────────
   Cada carpeta es un vidrio v35 con una luz de su color DETRÁS: el desenfoque del vidrio la convierte en el tono de la
   carpeta sin tocar la receta («el vidrio necesita algo que mirar detrás», Liquid Glass Lab). */
.vista { padding: 6px 28px 40px; max-width: 1480px; margin: 0 auto; }
.vista-cabecera { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 6px 0 22px; }
.vista-cabecera h1 { font-size: 1.9rem; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.vista-cabecera p { margin: 6px 0 0; }
.vista-cabecera .acciones .btn, .vista-cabecera > .btn { margin-top: 0; }
.rejilla-carpetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.carpeta { position: relative; display: block; isolation: isolate; color: var(--txt); text-decoration: none; border-radius: 20px; transition: transform .5s var(--spring); }
.carpeta:hover, .carpeta:focus-visible { transform: translateY(-4px); outline: none; }
.carpeta-luz { position: absolute; inset: 6% 8%; z-index: -1; border-radius: 50%; background: radial-gradient(circle at 32% 30%, var(--tono), transparent 72%); filter: blur(34px); opacity: .55; transition: opacity .4s ease; pointer-events: none; }
.carpeta:hover .carpeta-luz, .carpeta:focus-visible .carpeta-luz { opacity: .85; }
.carpeta.sin .carpeta-luz { opacity: .22; }
.carpeta-vidrio { display: flex; flex-direction: column; gap: 6px; min-height: 172px; padding: 22px 22px 20px; }
.carpeta-vidrio b { font-family: var(--letra-titulos); font-size: 1.25rem; font-weight: 600; }
.carpeta-vidrio small { color: var(--txt-dim); }
.carpeta-icono { width: 50px; height: 42px; margin-bottom: 10px; fill: var(--tono); filter: drop-shadow(0 6px 16px color-mix(in srgb, var(--tono) 55%, transparent)); }
.panel-carpeta { max-width: 560px; margin-bottom: 22px; }
.vacio-carpetas { grid-column: 1 / -1; text-align: center; color: var(--txt-dim); }
.rejilla-proyectos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.tarjeta-video { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; color: var(--txt); text-decoration: none; transition: transform .45s var(--spring), border-color .3s ease; }
.tarjeta-video:hover, .tarjeta-video:focus-visible { transform: translateY(-3px); border-color: rgba(201, 162, 74, .45); outline: none; }
.tarjeta-video b { font-size: 1.02rem; }
.tarjeta-cabecera { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.tarjeta-cabecera small { color: var(--txt-dim); }
.formato { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); color: var(--txt-dim); vertical-align: middle; }
.formato.reel { border-color: rgba(201, 162, 74, .5); color: var(--gold-light); }
.punto-color.grande { width: 16px; height: 16px; margin-right: 0; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
/* Ruta de navegación en la cabecera */
.migas { flex: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: 28px; font-size: .9rem; color: var(--txt-dim); min-width: 0; }
.migas a { color: var(--txt); text-decoration: none; display: inline-flex; align-items: center; }
.migas a:hover { color: var(--gold-light); }
.migas span:last-child:not(.migas-sep) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
.migas-sep { opacity: .45; }
#mover-carpeta { flex: none; }
.previa.vertical { width: auto; max-width: min(100%, 380px); max-height: 72vh; display: block; margin: 0 auto; }
@media (max-width: 960px) { .vista { padding: 6px 16px 32px; } .migas { margin-left: 0; order: 3; flex-basis: 100%; } .cabecera { flex-wrap: wrap; } }

/* ── Cabecera y disposición ────────────────────────────────────── */
.cabecera { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px; }
.marca { display: flex; align-items: center; gap: 14px; }
.marca-nombre { font-family: var(--letra-titulos); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; }
.marca-sub { color: var(--txt-dim); font-size: .82rem; }
.estado-servidor { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--txt-dim); padding: 7px 14px; }
.pin { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; color: var(--txt-idle); flex: none; }
.pin.ok { color: var(--pos); } .pin.ocupado { color: var(--gold); } .pin.mal { color: var(--neg); }

.disposicion { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; padding: 6px 28px 40px; max-width: 1480px; margin: 0 auto; }
.columna { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.panel { padding: 22px 24px 24px; }
.panel-cabecera { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.titulo { font-size: 1.05rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.panel-cabecera .titulo { margin: 0; }
.contador { color: var(--txt-dim); font-size: .8rem; }
@media (max-width: 960px) { .disposicion { grid-template-columns: 1fr; padding: 6px 16px 32px; } .cabecera { padding: 14px 16px; } }

/* ── Formulario ────────────────────────────────────────────────── */
.etiqueta { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--txt-dim); margin: 14px 0 6px; }
.campo {
  width: 100%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radio-campo);
  color: var(--txt); font: inherit; font-size: .95rem; padding: 10px 13px; outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.campo:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,74,.15); }
.campo::placeholder { color: var(--txt-idle); }
select.campo option { background: #061528; color: var(--txt); }
.fila-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.casilla { display: flex; align-items: center; gap: 10px; margin: 16px 0 4px; font-size: .9rem; color: var(--txt-dim); cursor: pointer; }
.casilla input { accent-color: var(--gold); width: 16px; height: 16px; }
.opcional { margin-top: 8px; font-size: .85rem; color: var(--txt-dim); }
.opcional summary { cursor: pointer; }
.opcional .campo { margin-top: 8px; }
.zona-soltar {
  border: 1.5px dashed rgba(255,255,255,.22); border-radius: var(--radio); padding: 22px 16px; text-align: center; color: var(--txt-dim);
  cursor: pointer; transition: border-color .2s ease, background .2s ease; background: rgba(255,255,255,.025);
}
.zona-soltar:hover, .zona-soltar.activa, .zona-soltar:focus-visible { border-color: var(--gold); background: rgba(201,162,74,.08); outline: none; }
.zona-soltar.con-archivo { color: var(--txt); border-style: solid; }
.zona-texto u { color: var(--gold-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ── Botones ───────────────────────────────────────────────────── */
.btn {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: var(--radio-campo); padding: 11px 22px;
  border: 1px solid var(--glass-borde); background: rgba(255,255,255,.05); color: var(--txt);
  transition: all .22s var(--muelle); margin-top: 16px;
}
.btn:hover { border-color: var(--glass-borde-hover); color: var(--gold-light); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-oro { position: relative; overflow: hidden; color: var(--navy-deep); background: linear-gradient(135deg, var(--gold-pale), var(--gold)); border-color: transparent; }
.btn-oro:hover { color: var(--navy-deep); box-shadow: 0 4px 20px rgba(201,162,74,.4); }
.btn-oro::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: translateX(-160%); animation: lustre 4.5s ease-in-out infinite; pointer-events: none;
}
@keyframes lustre { 0%, 62% { transform: translateX(-160%); } 100% { transform: translateX(320%); } }
.btn-peligro:hover { color: var(--neg); border-color: rgba(224,138,106,.5); }
.acciones { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.acciones .btn { margin-top: 0; }
.aviso { margin-top: 12px; font-size: .85rem; color: var(--neg); }
.aviso.ok { color: var(--pos); }

/* ── Lista de proyectos ────────────────────────────────────────── */
.lista-proyectos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.proyecto {
  display: block; width: 100%; text-align: left; font: inherit; color: var(--txt); cursor: pointer;
  padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--glass-borde);
  transition: border-color .2s ease, transform .22s var(--muelle);
}
.proyecto:hover { border-color: var(--glass-borde-hover); transform: translateY(-1px); }
.proyecto.activo { border-color: rgba(201,162,74,.6); box-shadow: inset 0 0 0 1px rgba(201,162,74,.3), 0 0 16px -6px rgba(201,162,74,.5); }
.proyecto b { display: block; font-size: .95rem; margin-bottom: 4px; }
.proyecto small { color: var(--txt-dim); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: .7rem; letter-spacing: .04em; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--trazo-suave); color: var(--txt-dim); display: inline-flex; align-items: center; gap: 6px; }
.chip.ok { color: var(--pos); border-color: rgba(91,191,138,.35); }
.chip.oro { color: var(--gold-light); border-color: rgba(201,162,74,.4); }
.chip.mal { color: var(--neg); border-color: rgba(224,138,106,.4); }
.chip.aviso { color: var(--alerta); border-color: rgba(251,191,36,.4); }
.mini-barra { height: 3px; border-radius: 999px; background: rgba(255,255,255,.08); margin-top: 10px; overflow: hidden; }
.mini-barra div { height: 100%; background: var(--gold-fig); transition: width .4s ease; }

/* ── Detalle ───────────────────────────────────────────────────── */
.detalle { min-height: 520px; }
.vacio { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 100%; min-height: 440px; color: var(--txt-dim); text-align: center; opacity: .9; }
.detalle-cabecera { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.detalle-cabecera h1 { font-size: 1.6rem; font-weight: 600; }
.meta { color: var(--txt-dim); font-size: .85rem; margin-top: 4px; }
.meta code { color: var(--txt); font-family: ui-monospace, Consolas, monospace; font-size: .8rem; }

.pasos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 10px 0 20px; }
.paso { position: relative; padding: 10px 8px 8px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--trazo-suave); text-align: center; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--txt-idle); }
.paso span { display: block; width: 8px; height: 8px; border-radius: 50%; margin: 0 auto 7px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.paso.hecho { color: var(--pos); border-color: rgba(91,191,138,.3); }
.paso.activo { color: var(--gold-light); border-color: rgba(201,162,74,.55); background: rgba(201,162,74,.08); }
.paso.mal { color: var(--neg); border-color: rgba(224,138,106,.4); }
@media (max-width: 700px) { .pasos { grid-template-columns: repeat(3, 1fr); } }

.seccion { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--trazo-suave); }
.seccion h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--txt-dim); margin-bottom: 12px; font-family: var(--letra); font-weight: 700; }
.barra { height: 10px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.barra-relleno { height: 100%; width: 0; background: var(--gold-fig); border-radius: 999px; transition: width .5s ease; box-shadow: 0 0 14px -2px rgba(201,162,74,.7); }
.pie-progreso { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--txt-dim); margin-top: 8px; }
.pie-progreso b { color: var(--txt); font-family: var(--letra-titulos); font-size: 1rem; }
.cifra-grande { font-family: var(--letra-titulos); font-size: 2.4rem; font-weight: 700; line-height: 1; background: var(--gold-fig); -webkit-background-clip: text; background-clip: text; color: transparent; }
.registro { margin: 12px 0 0; padding: 12px 14px; max-height: 190px; overflow: auto; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--trazo-suave); font-family: ui-monospace, Consolas, monospace; font-size: .74rem; line-height: 1.5; color: var(--txt-dim); white-space: pre-wrap; word-break: break-word; }

.tabla { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tabla th { text-align: left; font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--txt-dim); padding: 6px 10px; border-bottom: 1px solid var(--trazo-suave); }
.tabla td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: top; }
.tabla td.tiempo { font-family: ui-monospace, Consolas, monospace; color: var(--gold-light); white-space: nowrap; }
.tabla td.tipo { color: var(--txt-dim); white-space: nowrap; }
.tabla td.nota { color: var(--txt-idle); font-size: .8rem; }
.bloque-copiar { width: 100%; min-height: 90px; resize: vertical; margin-top: 8px; }

.renders { display: flex; flex-direction: column; gap: 10px; }
.render { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--glass-borde); }
.render b { font-size: .9rem; }
.render small { color: var(--txt-dim); display: block; }
.render a { font-size: .85rem; white-space: nowrap; }
video.previa { width: 100%; max-height: 420px; border-radius: 14px; background: #000; border: 1px solid var(--glass-borde); margin-bottom: 12px; }
.texto-dim { color: var(--txt-dim); font-size: .88rem; }

/* ── Entrar con la cuenta del CRM ───────────────────────────────── */
.cabecera-derecha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.sesion { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--txt-dim); padding: 5px 6px 5px 14px; }
.sesion-quien { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--txt); }
.sesion-salir { font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; color: var(--txt-dim); background: rgba(255,255,255,.06); border: 1px solid var(--glass-borde); border-radius: 999px; padding: 5px 12px; transition: color .2s ease, border-color .2s ease; }
.sesion-salir:hover { color: var(--gold-light); border-color: var(--glass-borde-hover); }
.acceso { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px 16px; overflow-y: auto; }
.acceso[hidden] { display: none; }
.acceso-panel { width: min(400px, 100%); display: flex; flex-direction: column; text-align: left; padding: 30px 28px 24px; }
.acceso-logo { align-self: center; margin-bottom: 10px; }
.acceso-titulo { font-family: var(--letra-titulos); font-weight: 600; font-size: 1.35rem; letter-spacing: .02em; text-align: center; margin: 0; }
.acceso-sub { text-align: center; margin: 6px 0 4px; }
.acceso-boton { width: 100%; margin-top: 20px; }
.enlace { align-self: center; margin-top: 14px; font: inherit; font-size: .8rem; color: var(--txt-dim); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.enlace:hover { color: var(--gold-light); }
body.sin-sesion main, body.sin-sesion .migas, body.sin-sesion .estado-servidor { visibility: hidden; }
