/* Tema moderno del Espacio de trabajo — mismo lenguaje visual que admin.pymesimple.cl.
   Se carga DESPUES de espacio.css y pisa sus valores. Todo va con
   html:not(.pv-embed) delante: el punto de venta y las secciones que se abren
   dentro de su marco (?embed=1) quedan exactamente como estaban.
   Este archivo se genera a partir de un fuente sin prefijos; si se edita a
   mano, mantener el prefijo en cada regla. */
/* ---- tokens: ahora viven en tokens.css (colores, tipografía, radios, sombras,
        espaciados), que se carga ANTES que esta hoja. Aquí solo se usan. ---- */
html:not(.pv-embed) body{background:var(--fondo); color:var(--texto); font-family:var(--fuente);}
/* Controles de formulario: heredan la tipografía (por defecto el navegador usa la suya). */
html:not(.pv-embed) button,
html:not(.pv-embed) input,
html:not(.pv-embed) select,
html:not(.pv-embed) textarea{font-family:inherit;}
html:not(.pv-embed) h1,
html:not(.pv-embed) h2,
html:not(.pv-embed) h3{color:var(--tinta);}

/* ---- barra lateral oscura ---- */
html:not(.pv-embed) .lateral{background:var(--lateral-fondo); border-right:none; padding:18px 12px;}
html:not(.pv-embed) .lateral-cuenta{padding:6px 8px 20px;}
html:not(.pv-embed) .lateral-avatar{background:var(--azul); border-radius:var(--radio-2); width:36px; height:36px; flex-basis:36px;}
html:not(.pv-embed) .lateral-cuenta-txt strong{color:#fff; font-size:14px;}
html:not(.pv-embed) .lateral-cuenta-txt small{color:#8d99ad;}
html:not(.pv-embed) .lateral-nav{gap:2px;}
html:not(.pv-embed) .lateral-item{
  color:#aab4c5; border-left:none; border-radius:var(--radio-2); padding:10px 12px;
  font-size:14.5px; font-weight:600;
}
html:not(.pv-embed) .lateral-item .ico{color:#8d99ad; width:20px; height:20px;}
html:not(.pv-embed) .lateral-item:hover{background:rgba(255,255,255,.06); color:#fff;}
html:not(.pv-embed) .lateral-item:hover .ico{color:#fff;}
html:not(.pv-embed) .lateral-item.actual{background:rgba(47,107,243,.24); color:#fff; border-left:none;}
html:not(.pv-embed) .lateral-item.actual .ico{color:#fff;}
html:not(.pv-embed) .lateral-item.pronto{color:#5f6b80;}
html:not(.pv-embed) .lateral-item.pronto .ico{color:#4a5568;}
html:not(.pv-embed) .lateral-titulo{color:#6f7b90; margin:18px 12px 6px;}
html:not(.pv-embed) .lateral-pie{background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); box-shadow:none; border-radius:var(--radio-3); margin-top:14px;}
html:not(.pv-embed) .pie-boton{border-radius:9px; width:42px; height:42px; flex-basis:42px;}
html:not(.pv-embed) .pie-inicio{background:rgba(47,107,243,.24); color:#fff;}
html:not(.pv-embed) .pie-salir{color:#f2a49a;}
html:not(.pv-embed) .pie-salir:hover{background:rgba(242,164,154,.14);}
html:not(.pv-embed) .lateral-plegar{background:#fff; border:1px solid var(--borde);}

/* plegada: solo iconos (mis reglas de arriba empatan en peso con las de espacio.css) */
html:not(.pv-embed) body.lateral-chica .lateral{padding-left:0; padding-right:0;}
html:not(.pv-embed) body.lateral-chica .lateral-item{padding:12px 0; justify-content:center;}
html:not(.pv-embed) body.lateral-chica .lateral-pie{border-radius:var(--radio-4);}

/* ---- contenido y encabezados ---- */
html:not(.pv-embed) .contenido{padding:26px 34px 70px;}
/* el encabezado fijo se queda con el relleno de arriba (ver espacio.css) */
html:not(.pv-embed) .contenido:has(.lista-cabecera){padding-top:0;}
html:not(.pv-embed) .lista-cabecera{background:var(--fondo);}
html:not(.pv-embed) .cabeza{margin-bottom:22px;}
html:not(.pv-embed) .cabeza h1{font-size:24px; font-weight:800; letter-spacing:-.02em;}
html:not(.pv-embed) .cabeza p{color:var(--suave);}

/* ---- botones: rectángulos redondeados, no píldoras ---- */
html:not(.pv-embed) .boton{
  border-radius:var(--radio-2); padding:10px 18px; font-size:14px; font-weight:700;
  border-color:var(--borde); color:var(--tinta); background:#fff;
}
html:not(.pv-embed) .boton:hover{background:#f8fafc;}
html:not(.pv-embed) .boton--principal{padding:11px 20px; background:var(--azul); border-color:var(--azul); color:#fff;}
html:not(.pv-embed) .boton--principal:hover{background:var(--azul-oscuro);}
html:not(.pv-embed) .boton--icono{border-radius:var(--radio-2);}
html:not(.pv-embed) .ob-fin .boton,
html:not(.pv-embed) .ob-opcion .boton{border-radius:var(--radio-2);}

/* ---- campos ---- */
html:not(.pv-embed) .buscador input,
html:not(.pv-embed) .barra select{border-radius:var(--radio-2); border-color:var(--borde);}
html:not(.pv-embed) .buscador input:focus,
html:not(.pv-embed) .barra select:focus{outline:2px solid var(--azul-suave); border-color:var(--azul);}
html:not(.pv-embed) .fx-campo input,
html:not(.pv-embed) .fx-campo select,
html:not(.pv-embed) .fx-campo textarea{border-radius:var(--radio-2);}
html:not(.pv-embed) .fx-campo input:focus,
html:not(.pv-embed) .fx-campo select:focus,
html:not(.pv-embed) .fx-campo textarea:focus{outline:2px solid var(--azul-suave);}

/* ---- tarjetas y bloques ---- */
html:not(.pv-embed) .bloque,
html:not(.pv-embed) .pac-ficha,
html:not(.pv-embed) .imp,
html:not(.pv-embed) .tarjeta,
html:not(.pv-embed) .ob,
html:not(.pv-embed) .pf-caja{border-radius:var(--radio-4);}
html:not(.pv-embed) .bloque,
html:not(.pv-embed) .pac-ficha,
html:not(.pv-embed) .imp,
html:not(.pv-embed) .tarjeta{border:1px solid var(--linea);}

/* ---- inicio: lanzador de módulos (iconos grandes, estilo pantalla de apps) ---- */
html:not(.pv-embed) .inicio{max-width:1000px; margin:0 auto; padding:36px 0 60px; text-align:left;}
html:not(.pv-embed) .inicio-cab{display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:56px;}
html:not(.pv-embed) .inicio-hola{
  display:inline-block; margin:0 0 10px; padding:4px 12px; border-radius:var(--radio-pastilla);
  background:var(--azul-suave); color:var(--azul-texto); font-size:12.5px; font-weight:700; text-transform:none; letter-spacing:.02em;
}
html:not(.pv-embed) .inicio h1{font-size:30px; margin:0; letter-spacing:-.02em;}
html:not(.pv-embed) .inicio-salir{
  display:inline-flex; align-items:center; gap:8px; margin:0; padding:10px 18px; border:1px solid var(--tinta);
  border-radius:var(--radio-pastilla); background:#fff; color:var(--tinta); font-size:14px; font-weight:700; text-decoration:none;
}
html:not(.pv-embed) .inicio-salir .ico{width:18px; height:18px;}
html:not(.pv-embed) .inicio-salir:hover{background:var(--tinta); color:#fff;}

html:not(.pv-embed) .lanza{display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:44px 20px; justify-items:center;}
html:not(.pv-embed) .app{display:flex; flex-direction:column; align-items:center; gap:14px; width:150px; text-decoration:none; text-align:center;}
html:not(.pv-embed) .app-ico{
  width:104px; height:104px; border-radius:28px; display:flex; align-items:center; justify-content:center; color:#fff;
  box-shadow:0 10px 22px rgba(16,24,40,.16), inset 0 1px 0 rgba(255,255,255,.35);
  transition:transform .18s cubic-bezier(.22,.8,.3,1), box-shadow .18s;
}
html:not(.pv-embed) .app-ico .ico{width:50px; height:50px; stroke-width:1.6; filter:drop-shadow(0 2px 3px rgba(0,0,0,.18));}
html:not(.pv-embed) .app:hover .app-ico{transform:translateY(-5px) scale(1.04); box-shadow:0 16px 30px rgba(16,24,40,.22), inset 0 1px 0 rgba(255,255,255,.35);}
html:not(.pv-embed) .app:active .app-ico{transform:scale(.97);}
html:not(.pv-embed) .app-nom{font-size:16px; font-weight:600; color:var(--tinta); line-height:1.25;}
html:not(.pv-embed) .app:focus-visible .app-ico{outline:3px solid var(--azul); outline-offset:3px;}
html:not(.pv-embed) .app-ico--azul{background:linear-gradient(145deg,#4f8cff,#2358d8);}
html:not(.pv-embed) .app-ico--cielo{background:linear-gradient(145deg,#38bdf8,#1d7fe0);}
html:not(.pv-embed) .app-ico--naranja{background:linear-gradient(145deg,#ffb347,#f2780c);}
html:not(.pv-embed) .app-ico--verde{background:linear-gradient(145deg,#34d399,#0f9d6b);}
html:not(.pv-embed) .app-ico--violeta{background:linear-gradient(145deg,#a78bfa,#7c4dde);}
html:not(.pv-embed) .app-ico--pizarra{background:linear-gradient(145deg,#7488a6,#4a5b78);}

@media (max-width:640px){
  html:not(.pv-embed) .inicio{padding-top:20px;}
  html:not(.pv-embed) .inicio-cab{margin-bottom:34px;}
  html:not(.pv-embed) .lanza{grid-template-columns:repeat(3,1fr); gap:30px 8px;}
  html:not(.pv-embed) .app{width:100%;}
  html:not(.pv-embed) .app-ico{width:84px; height:84px; border-radius:23px;}
  html:not(.pv-embed) .app-ico .ico{width:40px; height:40px;}
  html:not(.pv-embed) .app-nom{font-size:14px;}
}

/* Ventas ocupa todo el alto: sin relleno inferior, para que la lista llegue hasta el borde. */
html:not(.pv-embed) .contenido:has(.vt-pagina){padding-bottom:0;}

/* Inicio: marca de la empresa arriba a la izquierda y el conjunto de iconos centrado. */
html:not(.pv-embed) .inicio{min-height:calc(100dvh - 40px); display:flex; flex-direction:column; padding:24px 0 40px;}
html:not(.pv-embed) .inicio-cab{align-items:center; margin-bottom:0;}
html:not(.pv-embed) .inicio-marca{display:flex; align-items:center; gap:12px; min-width:0;}
html:not(.pv-embed) .inicio-marca img{height:40px; max-width:120px; object-fit:contain;}
html:not(.pv-embed) .inicio-iniciales{
  width:40px; height:40px; border-radius:11px; background:var(--azul); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:800; letter-spacing:.5px;
}
html:not(.pv-embed) .inicio-empresa{font-size:15px; font-weight:700; color:var(--tinta); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
html:not(.pv-embed) .inicio-centro{flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; padding-bottom:6vh;}
html:not(.pv-embed) .inicio-saludo{font-size:30px; text-align:center; margin:0 0 48px;}
html:not(.pv-embed) .lanza{display:flex; flex-wrap:wrap; justify-content:center; gap:44px 40px; max-width:900px;}
html:not(.pv-embed) .app{width:150px;}
@media (max-width:640px){
  html:not(.pv-embed) .lanza{display:grid; grid-template-columns:repeat(3,1fr); gap:30px 8px; max-width:none; width:100%;}
  html:not(.pv-embed) .app{width:100%;}
  html:not(.pv-embed) .inicio-saludo{margin-bottom:34px;}
}

/* Los cinco módulos caben en una sola fila. */
html:not(.pv-embed) .lanza{max-width:1060px; gap:44px 36px;}

/* Menú contraído (por ancho de pantalla): inicio arriba y salir debajo, sin desplazamiento horizontal. */
html:not(.pv-embed) .lateral{overflow-x:hidden;}
@media (max-width:820px){
  html:not(.pv-embed) .lateral{padding-left:0; padding-right:0;}
  html:not(.pv-embed) .lateral-pie{flex-direction:column; border-radius:var(--radio-4);}
}
html:not(.pv-embed) body.lateral-chica .lateral-pie{flex-direction:column;}

/* ---- Cuenta: cuadro con las iniciales del espacio (pastilla del lateral, inicio y pantalla de usuario) ---- */
.cu-esp{display:inline-grid; place-items:center; width:30px; height:30px; border-radius:8px; color:#fff;
  font:800 12px/1 var(--fuente,system-ui,"Segoe UI",Roboto,sans-serif); letter-spacing:.02em; flex:0 0 auto; overflow:hidden;}
html:not(.pv-embed) .pie-avatar{background:transparent;}
html:not(.pv-embed) .pie-avatar:hover{background:rgba(255,255,255,.08);}
html:not(.pv-embed) .pie-avatar .cu-esp{width:34px; height:34px; border-radius:9px; font-size:13px;}
.inicio-acciones{display:flex; align-items:center; gap:12px;}
.inicio-avatar{display:inline-flex; text-decoration:none; border-radius:var(--radio-2);}
.inicio-avatar .cu-esp{width:40px; height:40px; border-radius:var(--radio-2); font-size:14px; box-shadow:0 2px 6px rgba(16,24,40,.18);}
.inicio-avatar:hover .cu-esp{filter:brightness(1.07);}

/* =====================================================================================================
   Orky — acceso y lanzador de módulos (paleta de la marca: marino #042644, menta #01E1A5).
   Va al final para ganar a lo anterior. El resto del sistema conserva su azul hasta que se migre.
   ===================================================================================================== */

/* ---- Acceso ---- */
.login-logo{height:92px; width:217px; margin:0 0 16px;}
.panel-login .login-sub{margin:0 0 6px; font-size:15px;}
.panel-login input:focus{outline:none; border-color:#042644; box-shadow:0 0 0 3px rgba(1,225,165,.35);}
.panel-login button.boton--principal{
  background:#01e1a5; color:#042644; border:0; font-weight:800; font-size:16px; border-radius:12px; padding:14px 18px;
  box-shadow:0 8px 20px -8px rgba(1,225,165,.7); transition:transform .15s, background .15s;
}
.panel-login button.boton--principal:hover{background:#2cf0bd; transform:translateY(-1px);}
.login-pie a{color:#042644; font-weight:700; text-decoration:underline; text-decoration-color:#01e1a5; text-decoration-thickness:2px; text-underline-offset:3px;}
@media (min-width:860px){
  .login-marco{background:linear-gradient(to top,rgba(4,38,68,.78),rgba(4,38,68,0) 55%);}
  .login-nav button:hover{background:#01e1a5; color:#042644; border-color:#01e1a5;}
}
.login-slide .login-foto-titulo{font-family:Nunito,"DM Sans",system-ui,sans-serif; font-weight:900; letter-spacing:-.02em;}

/* ---- Inicio: los módulos como tarjetas dentro de una ventana ---- */
html:not(.pv-embed) body:has(.inicio){background:linear-gradient(180deg,#f4f8fa,#eaf4f4);}
html:not(.pv-embed) .inicio-centro{padding-bottom:3vh;}
html:not(.pv-embed) .lanza{
  position:relative; display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; width:100%; max-width:1040px;
  padding:62px 26px 28px; background:#fff; border:1px solid #cfd9e3; border-radius:20px;
  box-shadow:0 30px 60px -28px rgba(4,38,68,.4); justify-items:stretch;
}
/* barra superior de la "ventana": tres puntos y una pastilla con la dirección */
html:not(.pv-embed) .lanza::before{
  content:"espacio.orky.cl"; position:absolute; left:0; right:0; top:0; height:42px; padding:0 0 0 88px; display:flex; align-items:center;
  font-size:11px; color:#5d7389; background:#f4f8fa; border-bottom:1px solid #e3eaf0; border-radius:20px 20px 0 0;
  background-image:radial-gradient(circle,#d5dde6 5px,transparent 5.5px),radial-gradient(circle,#d5dde6 5px,transparent 5.5px),radial-gradient(circle,#d5dde6 5px,transparent 5.5px);
  background-size:12px 12px,12px 12px,12px 12px; background-position:22px 15px,40px 15px,58px 15px; background-repeat:no-repeat;
}
html:not(.pv-embed) .app{
  width:auto; flex-direction:row; justify-content:flex-start; text-align:left; gap:14px; padding:16px 18px;
  background:#fff; border:1px solid #e3eaf0; border-radius:16px; transition:transform .16s, box-shadow .16s, border-color .16s;
}
html:not(.pv-embed) .app:hover{transform:translateY(-3px); border-color:#01e1a5; box-shadow:0 16px 30px -14px rgba(4,38,68,.35);}
html:not(.pv-embed) .app-ico{
  flex:0 0 auto; width:54px; height:54px; border-radius:15px; box-shadow:none; color:var(--c,#2f6bf3); background:var(--f,#eaf1fe);
}
html:not(.pv-embed) .app:hover .app-ico{transform:none; box-shadow:none;}
html:not(.pv-embed) .app-ico .ico{width:28px; height:28px; stroke-width:1.8; filter:none;}
html:not(.pv-embed) .app-nom{font-family:Nunito,"DM Sans",system-ui,sans-serif; font-weight:800; font-size:16.5px; color:#042644;}
html:not(.pv-embed) .app:focus-visible{outline:3px solid #01e1a5; outline-offset:2px;}
html:not(.pv-embed) .app-ico--azul{--c:#2f6bf3; --f:#eaf1fe; background:var(--f);}
html:not(.pv-embed) .app-ico--cielo{--c:#0b78c4; --f:#e2f3fd; background:var(--f);}
html:not(.pv-embed) .app-ico--naranja{--c:#c26a00; --f:#fff1d9; background:var(--f);}
html:not(.pv-embed) .app-ico--verde{--c:#00835f; --f:#d9fbf1; background:var(--f);}
html:not(.pv-embed) .app-ico--violeta{--c:#6a3fd1; --f:#efe9fd; background:var(--f);}
html:not(.pv-embed) .app-ico--pizarra{--c:#3f566f; --f:#e8eef3; background:var(--f);}
@media (max-width:640px){
  html:not(.pv-embed) .lanza{grid-template-columns:1fr; padding:58px 14px 16px; gap:12px;}
  html:not(.pv-embed) .app{width:auto;}
  html:not(.pv-embed) .app-ico{width:50px; height:50px; border-radius:14px;}
  html:not(.pv-embed) .app-ico .ico{width:26px; height:26px;}
  html:not(.pv-embed) .app-nom{font-size:16px;}
}

/* Foto del acceso: emprendedor sonriendo frente a su laptop (Vitaly Gariev, Unsplash, licencia Unsplash: uso libre).
   Va espejada (la regla base ya lo hace) para que la persona quede a la derecha, junto al marco. */
body:has(.login-doble)::before{background:url(/assets/emprendedor-feliz.jpg) center/cover no-repeat; filter:none;}


/* =====================================================================================================
   Tema Orky para el sistema (marino #042644, menta #01e1a5, Nunito). Los colores y la tipografía salen de tokens.css;
   acá van las reglas de componentes que NO se resuelven cambiando un valor:
   - botón principal: menta con texto marino (nunca texto blanco sobre menta);
   - ítem activo del menú: menta con texto marino;
   - títulos y cifras grandes en Nunito;
   - foco y detalles en menta.
   ===================================================================================================== */
html:not(.pv-embed) h1,
html:not(.pv-embed) h2,
html:not(.pv-embed) h3,
html:not(.pv-embed) .gst-monto,
html:not(.pv-embed) .gst-hero-datos strong,
html:not(.pv-embed) .gst-hero-datos div strong,
html:not(.pv-embed) .app-nom{font-family:var(--fuente-titulo); letter-spacing:-.015em;}
html:not(.pv-embed) h1{font-weight:900;}
html:not(.pv-embed) h2,
html:not(.pv-embed) h3{font-weight:800;}

/* barra lateral CLARA (como las ventanas de orky.cl): blanca, borde suave, ítem activo en menta suave con barra menta */
html:not(.pv-embed) .lateral{background:#fff; border-right:1px solid var(--linea);}
html:not(.pv-embed) .lateral-avatar{background:var(--menta); color:var(--marino);}
html:not(.pv-embed) .lateral-cuenta-txt strong{color:var(--marino);}
html:not(.pv-embed) .lateral-cuenta-txt small{color:var(--suave);}
html:not(.pv-embed) .lateral-item{color:var(--texto); border-left:3px solid transparent; border-radius:var(--radio-2);}
html:not(.pv-embed) .lateral-item .ico{color:var(--suave);}
html:not(.pv-embed) .lateral-item:hover{background:var(--fondo); color:var(--marino);}
html:not(.pv-embed) .lateral-item:hover .ico{color:var(--marino);}
html:not(.pv-embed) .lateral-item.actual{background:var(--menta-suave); color:var(--marino); font-weight:800; border-left-color:var(--menta);}
html:not(.pv-embed) .lateral-item.actual .ico{color:var(--marino);}
html:not(.pv-embed) .lateral-item.pronto,
html:not(.pv-embed) .lateral-item.pronto .ico{color:var(--tenue);}
html:not(.pv-embed) .lateral-titulo{color:var(--tenue);}
html:not(.pv-embed) .lateral-pie{background:var(--fondo); border:1px solid var(--linea);}
html:not(.pv-embed) .lateral-plegar{background:#fff; border:1px solid var(--borde); color:var(--suave);}

/* el recuadro "Lo que muestra": barra menta a la izquierda, etiqueta en versalitas (igual que en orky.cl) */
html:not(.pv-embed) .gst-g-lectura{
  background:#fff; border:1px solid var(--linea); border-left:4px solid var(--menta); border-radius:10px;
  padding:10px 14px; color:var(--texto); line-height:1.45;
}
html:not(.pv-embed) .gst-g-lectura b{font-size:0; display:block; margin-bottom:2px;}
html:not(.pv-embed) .gst-g-lectura b::before{
  content:"Lo que muestra"; font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--menta-fuerte);
}

/* botones */
html:not(.pv-embed) .boton--principal{background:var(--menta); border-color:var(--menta); color:var(--marino); font-weight:800;}
html:not(.pv-embed) .boton--principal:hover{background:#2cf0bd; border-color:#2cf0bd;}
html:not(.pv-embed) .boton--principal .ico{color:var(--marino);}
html:not(.pv-embed) .boton:focus-visible,
html:not(.pv-embed) a:focus-visible,
html:not(.pv-embed) input:focus,
html:not(.pv-embed) select:focus,
html:not(.pv-embed) textarea:focus{outline:2px solid var(--menta); outline-offset:1px;}
html:not(.pv-embed) a{color:var(--marino);}
html:not(.pv-embed) .inicio-iniciales{background:var(--marino); color:#fff;}
html:not(.pv-embed) .cu-esp{color:#fff;}

/* tarjetas y paneles: esquinas más redondeadas, como en orky.cl */
html:not(.pv-embed) .tarjeta,
html:not(.pv-embed) .gst-tarjeta,
html:not(.pv-embed) .gst-hero{border-radius:18px;}

/* cuadro con las iniciales del espacio: mismo marino de la marca en todos los espacios (el color por espacio venía inline) */
html:not(.pv-embed) .lateral-pie .cu-esp,
html:not(.pv-embed) .inicio-avatar .cu-esp{background:var(--marino) !important; color:#fff !important;}
