/* Idealizarte futurista: fondo negro con grilla tenue y brillos, paneles de vidrio, los tres colores de la marca (naranja, amarillo, verde) como luces */
:root {
  --bg: #07080c; --bg-2: #0b0d13;
  --surface: rgba(255,255,255,.035); --surface-2: rgba(255,255,255,.06); --solido: #10131b; --solido-2: #151925;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.13);
  --ink: #eef1f7; --ink-2: #b6bccb; --muted: #7d8497;
  --accent: #ff7a2f; --accent-ink: #1a0a02; --accent-glow: rgba(255,122,47,.35);
  --cyan: #9bd64b; --amarillo: #f5c518; --marca: "Comfortaa", "Sora", system-ui, sans-serif; --cyan-glow: rgba(155,214,75,.3);
  --ok: #3ddc84; --warn: #ffb547; --info: #9b8cff; --danger: #ff5c6c; --azul: #5aa2ff;
  --display: "Sora", "Manrope", system-ui, sans-serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 20px; --r-s: 12px;
  --vidrio: blur(18px) saturate(1.4);
  --side-w: 272px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  color: var(--ink); font-family: var(--font); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
}
/* El fondo va en una capa fija aparte: "background-attachment: fixed" no funciona bien en iPhone/iPad */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(900px 520px at 88% -8%, rgba(255,122,47,.14), transparent 60%),
    radial-gradient(800px 560px at -8% 108%, rgba(155,214,75,.10), transparent 60%),
    radial-gradient(600px 400px at 50% 50%, rgba(245,197,24,.04), transparent 70%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: auto, auto, auto, 44px 44px, 44px 44px;
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: 16.5px; letter-spacing: -.015em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.cargando { padding: 48px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.muted.chico { font-size: 12.5px; margin: 8px 0 0; }
.sub { margin: 4px 0 14px; font-size: 13.5px; }
.sobre { margin: 0 0 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.sobre a { color: var(--accent); text-decoration: none; }
.bajada { margin: 10px 0 0; font-size: 15px; color: var(--ink-2); }
.bajada b { color: var(--accent); }
.texto { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.fila { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.error { color: var(--danger); font-weight: 600; font-size: 13.5px; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 700; font-size: 13px; text-decoration: none; }
.ok-linea { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 700; margin: 8px 0; }
.ok-linea svg { width: 18px; height: 18px; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: 13.5px; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .2s, transform .1s, color .15s; }
.btn:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.09); }
.btn:active { transform: scale(.98); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 var(--accent-glow); }
.btn.pri:hover { background: #ff9a5c; box-shadow: 0 0 24px var(--accent-glow), 0 0 0 1px var(--accent); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #04120a; }
.btn.ok:hover { box-shadow: 0 0 24px rgba(61,220,132,.4); }
.btn.grande { height: 48px; padding: 0 22px; font-size: 14.5px; border-radius: 13px; }
.btn.chico { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.btn.fantasma { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.fantasma:hover { background: var(--surface-2); }
.btn.icono { width: 44px; padding: 0; flex: none; }
.btn:disabled { opacity: .4; cursor: default; transform: none; box-shadow: none; }
.archivo-btn { position: relative; overflow: hidden; cursor: pointer; }
.archivo-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.ic-btn { position: relative; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); display: grid; place-items: center; flex: none; color: var(--ink); transition: border-color .15s, box-shadow .2s; }
.ic-btn:hover { border-color: var(--cyan); box-shadow: 0 0 18px var(--cyan-glow); }
.ic-btn svg { width: 19px; height: 19px; }
.ic-btn .n { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 14px var(--accent-glow); animation: late 2.4s ease-in-out infinite; }
@keyframes late { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.25); } 90% { transform: scale(.95); } }
.ic-btn.plano { border: 0; background: var(--surface-2); }
.ic-btn.plano:hover { box-shadow: none; background: rgba(255,255,255,.1); }

/* campos */
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo > span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.input { width: 100%; height: 44px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 0 14px; font-size: 14.5px; color: var(--ink); transition: border-color .15s, box-shadow .2s, background .15s; }
.input::placeholder { color: #5f6678; }
.input:hover { border-color: rgba(255,255,255,.22); }
.input:focus { outline: none; border-color: var(--accent); background: rgba(255,122,47,.04); box-shadow: 0 0 0 3px rgba(255,122,47,.14); }
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d8497' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
select.input option { background: var(--solido); color: var(--ink); }

/* segmentos */
.seg { display: inline-flex; gap: 3px; padding: 4px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 13px; flex-wrap: wrap; max-width: 100%; }
.seg button { border: 0; background: transparent; border-radius: 9px; height: 38px; padding: 0 16px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); transition: background .15s, color .15s, box-shadow .2s; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: rgba(255,255,255,.1); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg.tipos button.on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 18px var(--accent-glow); }
.seg.chico { margin-top: 10px; }
.seg.chico button { height: 32px; padding: 0 14px; font-size: 12.5px; }
.seg.chico button.on { color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(155,214,75,.5); background: rgba(155,214,75,.08); }
@media (max-width: 560px) { .seg.tipos { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .seg.tipos::-webkit-scrollbar { display: none; } .seg button { flex: none; padding: 0 13px; } }

/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.login-arte { padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; position: relative; overflow: hidden; border-right: 1px solid var(--line); background: radial-gradient(700px 500px at 20% 30%, rgba(255,122,47,.12), transparent 60%), radial-gradient(600px 500px at 90% 100%, rgba(155,214,75,.16), transparent 60%); }
.login-arte > * { position: relative; z-index: 1; }
.login-marca { display: flex; align-items: center; gap: 12px; font-family: var(--marca); font-weight: 700; font-size: 22px; color: var(--accent); }
.login-titulo { width: fit-content; font-family: var(--display); font-size: clamp(44px, 6vw, 86px); font-weight: 800; letter-spacing: -.055em; line-height: .92; background: linear-gradient(100deg, #ffffff 25%, var(--amarillo) 55%, var(--accent) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-bajada { color: var(--ink-2); max-width: 380px; margin: 18px 0 0; font-size: 15px; }
.login-prendas { display: flex; align-items: flex-end; gap: 14px; }
.login-prendas svg { height: auto; filter: drop-shadow(0 0 22px rgba(155,214,75,.28)) drop-shadow(0 20px 30px rgba(0,0,0,.6)); }
.login-prendas svg:nth-child(1) { width: 40%; } .login-prendas svg:nth-child(2) { width: 29%; } .login-prendas svg:nth-child(3) { width: 16%; }
.login-form { align-self: center; justify-self: center; width: 100%; max-width: 380px; padding: 40px 24px; display: flex; flex-direction: column; gap: 16px; }
.login-form h1 { font-size: 30px; }
.login-form p { margin: -8px 0 6px; }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login-arte { border-right: 0; border-bottom: 1px solid var(--line); padding: calc(24px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 22px max(20px, env(safe-area-inset-left, 0px)); } .login-titulo { font-size: 44px; } .login-prendas { max-width: 300px; } .login-bajada { display: none; } }
.logo-cuadro { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; box-shadow: 0 0 22px rgba(255,122,47,.18); }
.logo-cuadro svg { width: auto; height: 28px; filter: drop-shadow(0 0 6px rgba(255,122,47,.35)); }
.nombre-marca { font-family: var(--marca); font-weight: 700; letter-spacing: -.01em; color: var(--accent); }

/* estructura */
.shell { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: rgba(9,10,15,.82); backdrop-filter: var(--vidrio); -webkit-backdrop-filter: var(--vidrio); border-right: 1px solid var(--line); color: var(--ink-2); display: flex; flex-direction: column; z-index: 50; padding: calc(16px + env(safe-area-inset-top, 0px)) 14px calc(14px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); }
.side-marca { display: flex; align-items: center; gap: 12px; padding: 6px 8px 20px; text-decoration: none; color: var(--ink); }
.side-marca b { display: block; font-family: var(--marca); font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--accent); text-shadow: 0 0 18px rgba(255,122,47,.3); }
.side-marca small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.side-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; min-height: 0; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; scrollbar-color: #232733 transparent; }
.side-nav a, .side-pie a, .side-pie > button:not(.side-app) { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 13.5px; color: var(--ink-2); background: none; border: 0; width: 100%; text-align: left; transition: background .12s, color .12s; }
.side-nav a:hover, .side-pie a:hover, .side-pie > button:not(.side-app):hover { background: rgba(255,255,255,.05); color: var(--ink); }
.side-nav a.on, .side-pie a.on { background: linear-gradient(90deg, rgba(255,122,47,.14), rgba(255,122,47,.02)); color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); }
.side-nav a.on svg { color: var(--accent); filter: drop-shadow(0 0 6px var(--accent-glow)); }
.side-nav svg, .side-pie svg { width: 18px; height: 18px; flex: none; }
.side-nav .txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav .cuenta, .carpeta .cuenta { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 12px var(--accent-glow); }
.side-nav .num { margin-left: auto; font-size: 12px; color: #5f6678; font-weight: 700; font-variant-numeric: tabular-nums; }
.side-sec { display: flex; justify-content: space-between; align-items: center; padding: 18px 10px 6px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: #5f6678; }
.side-sec a { width: auto; padding: 4px; border-radius: 6px; }
.side-sec a svg { width: 15px; height: 15px; }
.side-carpetas { display: flex; flex-direction: column; gap: 1px; margin-bottom: 10px; }
.side-carpetas a svg { color: #5f6678; }
.side-carpetas a.on svg, .side-carpetas a:hover svg { color: var(--accent); }
.side-vacio { font-size: 12.5px; padding: 4px 10px; margin: 0; color: #5f6678; }
.side-pie { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.side-app { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 11px 12px; margin-bottom: 10px; border-radius: 13px; border: 1px solid rgba(155,214,75,.3); background: linear-gradient(120deg, rgba(155,214,75,.1), rgba(255,122,47,.06)); color: var(--ink); transition: box-shadow .2s, border-color .2s; }
.side-app:hover { box-shadow: 0 0 22px var(--cyan-glow); border-color: var(--cyan); }
.side-app svg { width: 20px; height: 20px; color: var(--cyan); flex: none; }
.side-app b { display: block; font-size: 13.5px; }
.side-app small { display: block; font-size: 11.5px; color: var(--ink-2); }
.side-app.activo { border-color: rgba(61,220,132,.35); background: rgba(61,220,132,.07); }
.side-app.activo svg { color: var(--ok); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 4px 8px 10px; }
.side-user b { display: block; color: var(--ink); font-size: 13.5px; }
.side-user small { display: block; font-size: 12px; color: var(--muted); }
.side-user > span:last-child { min-width: 0; overflow: hidden; }
.side-user b, .side-user small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, rgba(255,122,47,.25), rgba(155,214,75,.25)); border: 1px solid var(--line-2); color: var(--ink); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.avatar.chico { width: 40px; height: 40px; }
.principal { margin-left: var(--side-w); min-width: 0; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: calc(64px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) max(28px, env(safe-area-inset-right, 0px)) 0 28px; background: rgba(7,8,12,.7); backdrop-filter: var(--vidrio); -webkit-backdrop-filter: var(--vidrio); border-bottom: 1px solid var(--line); }
.migas { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.migas a { color: var(--muted); text-decoration: none; font-weight: 600; }
.migas a:hover { color: var(--ink); }
.migas b { overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.migas .sep { color: #3a3f4d; }
.pagina { max-width: 1240px; padding-block: 28px 120px; padding-left: 28px; padding-right: max(28px, env(safe-area-inset-right, 0px)); }
.solo-movil { display: none; }
.velo-side { display: none; }
@media (max-width: 960px) {
  .side { transform: translateX(-100%); transition: transform .25s cubic-bezier(.2,.8,.2,1); box-shadow: 30px 0 80px rgba(0,0,0,.6); background: rgba(9,10,15,.96); }
  body.menu-abierto .side { transform: none; }
  body.menu-abierto .velo-side { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.5); }
  .principal { margin-left: 0; }
  .solo-movil { display: grid; }
  .top { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .pagina { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-top: 20px; }
}
@media (max-width: 560px) { .oculto-movil { display: none; } .migas a, .migas .sep { display: none; } }

/* encabezados y tarjetas */
.cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.cab h1 { font-size: clamp(30px, 3.8vw, 42px); }
.card { background: var(--surface); backdrop-filter: var(--vidrio); -webkit-backdrop-filter: var(--vidrio); border-radius: var(--r); padding: 22px; border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 20px 40px rgba(0,0,0,.25); min-width: 0; }
.card + .card { margin-top: 14px; }
.card-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.card > h2 + .lugares, .card > h2 + .galeria, .card > h2 + .chat, .card > h2 + .sub + .chat { margin-top: 14px; }
@media (max-width: 560px) { .card { padding: 18px; } }
.bloque { margin-top: 32px; }
.bloque-cab { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.bloque-cab h2 { font-size: 18px; }

/* banner de la app */
.banner-app { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 14px 14px 16px; margin-bottom: 18px; border-radius: 18px; border: 1px solid rgba(155,214,75,.28); background: linear-gradient(110deg, rgba(155,214,75,.12), rgba(255,122,47,.07) 60%, rgba(255,255,255,.02)); box-shadow: 0 0 40px rgba(155,214,75,.08); }
.banner-ic { width: 44px; height: 44px; border-radius: 13px; background: rgba(155,214,75,.15); color: var(--cyan); display: grid; place-items: center; }
.banner-ic svg { width: 22px; height: 22px; }
.banner-app b { display: block; font-family: var(--display); font-size: 15px; }
.banner-app span:not(.banner-ic) { font-size: 13px; color: var(--ink-2); }
@media (max-width: 640px) { .banner-app { grid-template-columns: auto minmax(0, 1fr) auto; } .banner-app .btn { grid-column: 1 / -1; grid-row: 2; } }

/* resumen */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { text-align: left; border: 1px solid var(--line); background: var(--surface); backdrop-filter: var(--vidrio); -webkit-backdrop-filter: var(--vidrio); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; transition: transform .15s, border-color .2s, box-shadow .2s; position: relative; overflow: hidden; }
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(140deg, rgba(255,255,255,.05), transparent 50%); pointer-events: none; }
.tile:hover { transform: translateY(-2px); border-color: var(--line-2); }
.tile-n { font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tile-t { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.tile.on { border-color: rgba(255,122,47,.6); background: rgba(255,122,47,.08); box-shadow: 0 0 30px rgba(255,122,47,.12), inset 0 0 0 1px rgba(255,122,47,.3); }
.tile.on .tile-n { color: var(--accent); text-shadow: 0 0 18px var(--accent-glow); }
.tile.ojo::after { content: ""; position: absolute; top: 16px; right: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent), 0 0 0 4px rgba(255,122,47,.15); animation: pulsa 1.8s ease-in-out infinite; }
@keyframes pulsa { 50% { opacity: .45; } }
@media (max-width: 560px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles .tile:first-child:nth-last-child(odd) { grid-column: 1 / -1; } }

/* carpetas */
.carpetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.carpeta { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--surface); backdrop-filter: var(--vidrio); -webkit-backdrop-filter: var(--vidrio); border-radius: 18px; border: 1px solid var(--line); text-decoration: none; transition: transform .15s, box-shadow .2s, border-color .2s; min-width: 0; }
.carpeta:hover { transform: translateY(-2px); border-color: rgba(155,214,75,.4); box-shadow: 0 0 30px rgba(155,214,75,.1); }
.carpeta b { font-family: var(--display); font-size: 14.5px; font-weight: 600; margin-top: 12px; overflow-wrap: anywhere; }
.carpeta small { color: var(--muted); font-size: 12.5px; }
.carpeta-ic { position: relative; width: 44px; height: 44px; border-radius: 13px; background: rgba(155,214,75,.1); border: 1px solid rgba(155,214,75,.25); color: var(--cyan); display: grid; place-items: center; flex: none; }
.carpeta-ic svg { width: 22px; height: 22px; fill: rgba(155,214,75,.18); stroke: var(--cyan); }
.carpeta-ic .cuenta { position: absolute; top: -7px; right: -9px; }
.carpeta.con-nuevos { border-color: rgba(255,122,47,.45); box-shadow: 0 0 26px rgba(255,122,47,.1); }
.carpeta.con-nuevos .carpeta-ic { background: rgba(255,122,47,.1); border-color: rgba(255,122,47,.35); color: var(--accent); }
.carpeta.con-nuevos .carpeta-ic svg { fill: rgba(255,122,47,.18); stroke: var(--accent); }
.carpeta-ic.grande { width: 64px; height: 64px; border-radius: 18px; }
.carpeta-ic.grande svg { width: 32px; height: 32px; }
.carpeta-cab { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-bottom: 18px; }
.carpeta-cab > .carpeta-ic { flex: 0 0 auto; }
.carpeta-cab > div:not(.carpeta-acc) { flex: 1 1 340px; min-width: 0; }
.carpeta-cab h1 { font-size: clamp(26px, 3.4vw, 38px); overflow-wrap: break-word; word-break: normal; hyphens: none; }
.carpeta-cab .muted { margin: 6px 0 0; }
.carpeta-acc { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex: 0 1 auto; margin-left: auto; }
@media (max-width: 760px) { .carpeta-cab > div:not(.carpeta-acc) { flex-basis: 0; flex-grow: 1; } .carpeta-acc { flex-basis: 100%; justify-content: flex-start; margin-left: 0; } }
.nota-corel { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,122,47,.04); border: 1px dashed rgba(255,122,47,.3); border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; font-size: 13.5px; color: var(--ink-2); }
.nota-corel b { color: var(--ink); }
.nota-corel svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 1px; }

/* tabla de pedidos */
.tabla { background: var(--surface); backdrop-filter: var(--vidrio); -webkit-backdrop-filter: var(--vidrio); border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.tabla-cab, .tabla-fila { display: grid; grid-template-columns: minmax(200px, 2.2fr) minmax(130px, 1.4fr) minmax(130px, 1.3fr) 130px 120px 110px; gap: 14px; align-items: center; padding: 0 18px; }
.tabla.sin-emp .tabla-cab, .tabla.sin-emp .tabla-fila { grid-template-columns: minmax(200px, 2.4fr) minmax(130px, 1.4fr) 130px 120px 110px; }
.tabla-cab { height: 42px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: #5f6678; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.tabla-fila { min-height: 66px; padding-block: 10px; text-decoration: none; border-bottom: 1px solid var(--line); transition: background .12s; position: relative; }
.tabla-fila:last-child { border-bottom: 0; }
.tabla-fila:hover { background: rgba(255,255,255,.035); }
.tabla-fila.nuevo { background: linear-gradient(90deg, rgba(255,122,47,.07), transparent 60%); }
.tabla-fila.nuevo::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.t-ped { display: flex; align-items: center; gap: 12px; min-width: 0; }
.t-ped > span:last-child { min-width: 0; }
.t-ped b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-ped small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.t-ped em { font-style: normal; color: var(--accent); font-weight: 800; }
.escudo-mini { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.06); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: none; font-weight: 800; font-size: 13px; color: var(--muted); }
.escudo-mini img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.t-emp { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; color: var(--ink-2); }
.t-emp svg { width: 16px; height: 16px; flex: none; color: var(--cyan); fill: rgba(155,214,75,.15); }
.t-pre { color: var(--ink-2); font-size: 13px; }
.t-fec { color: var(--muted); font-size: 13px; }
@media (max-width: 1080px) { .tabla-cab { display: none; } .tabla-fila, .tabla.sin-emp .tabla-fila { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 16px; } .t-emp, .t-pre { grid-column: 1; font-size: 12.5px; color: var(--muted); } .t-est { grid-column: 2; grid-row: 1; } .t-pro { grid-column: 1 / -1; } .t-fec { grid-column: 2; grid-row: 2; text-align: right; font-size: 12px; } }
.barra-filtro { display: flex; gap: 10px; margin-bottom: 14px; }
.buscar { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); border-radius: 12px; }
.buscar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,122,47,.14); }
.buscar svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.buscar input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; font-size: 14px; }
.buscar input::placeholder { color: #5f6678; }

/* estado y progreso */
.estado { align-self: flex-start; justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid currentColor; background: color-mix(in srgb, currentColor 10%, transparent); }
.estado::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.e-recibido { color: #c9cfdc; }
.e-diseno { color: var(--azul); }
.e-enviado { color: var(--info); }
.e-cambios { color: var(--warn); }
.e-aprobado { color: var(--ok); }
.e-corel { color: var(--accent); }
.progreso { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; width: 100%; max-width: 120px; }
.progreso i { height: 4px; border-radius: 9px; background: rgba(255,255,255,.08); }
.progreso i.si { background: linear-gradient(90deg, var(--cyan), var(--amarillo)); }
.progreso i.si:has(+ i:not(.si)), .progreso i.si:last-child { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.progreso.alerta i.si:has(+ i:not(.si)) { background: var(--warn); box-shadow: 0 0 8px rgba(255,181,71,.5); }
.ped .progreso { max-width: none; margin: 10px 0 4px; }

/* tarjetas de la empresa */
.grilla-ped { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ped { display: flex; flex-direction: column; background: var(--surface); backdrop-filter: var(--vidrio); -webkit-backdrop-filter: var(--vidrio); border-radius: var(--r); text-decoration: none; border: 1px solid var(--line); overflow: hidden; transition: transform .18s, box-shadow .2s, border-color .2s; }
.ped:hover { transform: translateY(-3px); border-color: rgba(155,214,75,.35); box-shadow: 0 0 34px rgba(155,214,75,.1), 0 24px 40px rgba(0,0,0,.3); }
.ped-arte { position: relative; aspect-ratio: 4 / 3; max-width: 100%; background: radial-gradient(60% 35% at 50% 92%, rgba(155,214,75,.22), transparent 70%), radial-gradient(120% 90% at 50% 100%, #141824, #0c0e14 70%); display: grid; place-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.ped-arte svg { width: 58%; height: auto; max-height: 100%; filter: drop-shadow(0 0 16px rgba(155,214,75,.22)) drop-shadow(0 14px 18px rgba(0,0,0,.5)); }
.punto-nuevo { position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--accent-ink); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; box-shadow: 0 0 16px var(--accent-glow); }
.ped-info { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ped-eq { font-family: var(--display); font-weight: 700; font-size: 16.5px; letter-spacing: -.02em; overflow-wrap: anywhere; margin-top: 8px; }
.ped-meta { font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) { .ped-arte { aspect-ratio: 16 / 9; } .ped-arte svg { width: 36%; } }
@media (prefers-reduced-motion: no-preference) { .ped, .tabla-fila, .carpeta, .tile { animation: aparece .4s backwards; } .tile:nth-child(2) { animation-delay: .04s; } .tile:nth-child(3) { animation-delay: .08s; } .tile:nth-child(4) { animation-delay: .12s; } .tile:nth-child(5) { animation-delay: .16s; } @keyframes aparece { from { opacity: 0; transform: translateY(8px); } } }
.vacio { text-align: center; padding: 56px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); }
.vacio h3 { color: var(--ink); font-size: 22px; margin: 12px 0 6px; }
.vacio p { margin: 0 0 20px; }
.vacio a:not(.btn) { color: var(--accent); font-weight: 700; }
.vacio.chico { padding: 28px; grid-column: 1 / -1; }
.vacio-arte { width: 110px; margin: 0 auto; filter: drop-shadow(0 0 22px rgba(155,214,75,.3)); }
.vacio-arte svg { width: 100%; height: auto; }

/* formulario */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .form-grid { grid-template-columns: minmax(0, 1fr); } .form-vista { order: -1; } }
.form-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.form-col .card + .card { margin-top: 0; }
.vista-fija { position: sticky; top: 82px; }
@media (max-width: 1100px) { .vista-fija { position: static; } }
.vista-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 13.5px; }
.vista-cab b { font-family: var(--display); }
.paso-t { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.paso-t > span { width: 24px; height: 24px; border-radius: 8px; background: rgba(255,122,47,.12); border: 1px solid rgba(255,122,47,.4); color: var(--accent); font-size: 12px; display: grid; place-items: center; }
.paso-t small { font-family: var(--font); font-weight: 600; color: var(--muted); font-size: 12px; letter-spacing: 0; }
.card > .paso-t + .sub { margin-top: -8px; }
.equipo { display: flex; gap: 16px; align-items: center; }
.equipo-campos { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.logo-btn { position: relative; width: 84px; height: 84px; flex: none; border-radius: 18px; background: rgba(255,255,255,.04); border: 1.5px dashed rgba(255,255,255,.2); display: grid; place-items: center; overflow: hidden; cursor: pointer; color: var(--muted); transition: border-color .15s, box-shadow .2s, color .15s; }
.logo-btn:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 20px rgba(255,122,47,.15); }
.logo-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.logo-btn #logoIn { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; width: 100%; height: 100%; justify-content: center; }
.logo-btn svg { width: 20px; height: 20px; }
.logo-btn img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.escenario { position: relative; border-radius: 16px; padding: 30px 14px 16px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(55% 28% at 50% 96%, rgba(155,214,75,.25), transparent 70%), radial-gradient(120% 90% at 50% 100%, #161a26, #0b0d13 75%); }
.escenario::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(155,214,75,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(155,214,75,.06) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(to top, #000, transparent 75%); -webkit-mask-image: linear-gradient(to top, #000, transparent 75%); pointer-events: none; }
.conjunto { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.pieza { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.pieza figcaption { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.prenda { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 18px rgba(155,214,75,.22)) drop-shadow(0 14px 18px rgba(0,0,0,.5)); }
.conjunto-uno .pieza { width: min(280px, 100%); }
.conjunto-uno:has(.pieza-espalda) .pieza { width: min(250px, 47%); }
.conjunto-completo .pieza-camiseta { width: min(200px, 27%); }
.conjunto-completo .pieza-short { width: min(170px, 23%); }
.conjunto-completo .pieza-medias { width: min(110px, 15%); }
@media (max-width: 560px) { .conjunto-completo .pieza-camiseta { width: 47%; } .conjunto-completo .pieza-short { width: 52%; } .conjunto-completo .pieza-medias { width: 34%; } }
.lugares { display: flex; flex-direction: column; }
.lug-grupo + .lug-grupo { margin-top: 8px; }
.lug-prenda { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--cyan); padding: 6px 0; }
.lug { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.lug-n { font-weight: 700; font-size: 13.5px; }
.lug-imgs { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.lug-img { position: relative; width: 44px; height: 44px; border-radius: 11px; background: rgba(255,255,255,.06); border: 1px solid var(--line); display: grid; place-items: center; font-size: 10px; }
.lug-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.lug-x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--danger); color: #fff; font-size: 12px; line-height: 1; display: grid; place-items: center; padding: 0; opacity: 0; transition: opacity .15s; }
.lug-img:hover .lug-x, .lug-x:focus-visible { opacity: 1; }
@media (hover: none) { .lug-x { opacity: 1; } }
.btn-mas { width: 36px; height: 36px; border-radius: 11px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink); transition: background .15s, color .15s, box-shadow .2s, border-color .15s; }
.btn-mas:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 16px var(--accent-glow); }
.btn-mas svg { width: 17px; height: 17px; }
.cargando-btn { animation: pulso 1s infinite; pointer-events: none; }
@keyframes pulso { 50% { opacity: .35; } }
.lug .adjs { display: flex; gap: 8px; flex-wrap: wrap; }
.adjs a { text-decoration: none; }
.adjs .mini { width: 52px; height: 52px; border-radius: 11px; background: rgba(255,255,255,.06); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; font-size: 11px; transition: transform .12s, border-color .15s; }
.adjs a:hover .mini { transform: scale(1.06); border-color: var(--cyan); }
.adjs .mini img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
@media (max-width: 520px) { .lug { grid-template-columns: minmax(0, 1fr) auto; } .lug-imgs, .lug .adjs { grid-column: 1 / -1; grid-row: 2; } .lug-imgs:empty { display: none; } }
.barra-enviar { position: fixed; left: var(--side-w); right: 0; bottom: 0; z-index: 20; padding: 12px max(28px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) 28px; background: rgba(7,8,12,.78); backdrop-filter: var(--vidrio); -webkit-backdrop-filter: var(--vidrio); border-top: 1px solid var(--line); }
.barra-enviar .in { max-width: 1184px; display: flex; align-items: center; gap: 12px; }
.barra-enviar .error { flex: 1; text-align: right; }
@media (max-width: 960px) { .barra-enviar { left: 0; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--accent); animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* detalle */
.det-cab { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-bottom: 20px; }
.det-cab h1 { font-size: clamp(26px, 3.6vw, 40px); overflow-wrap: anywhere; }
.det-acc { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.escudo { width: 68px; height: 68px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; font-weight: 800; font-size: 20px; color: var(--muted); box-shadow: 0 0 24px rgba(155,214,75,.1); }
.escudo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
@media (max-width: 760px) { .det-cab { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; } .escudo { width: 56px; height: 56px; border-radius: 14px; } .det-acc { grid-column: 1 / -1; justify-content: flex-start; } }
.pasos { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pasos li { font-size: 11.5px; font-weight: 700; color: #5f6678; position: relative; padding-top: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .02em; }
.pasos li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 99px; background: rgba(255,255,255,.08); }
.pasos li.hecho::before { background: linear-gradient(90deg, var(--cyan), var(--amarillo)); }
.pasos li.actual::before { background: var(--accent); box-shadow: 0 0 14px var(--accent-glow); }
.pasos li.alerta::before { background: var(--warn); box-shadow: 0 0 14px rgba(255,181,71,.5); }
.pasos li.hecho { color: var(--ink-2); }
.pasos li.actual { color: var(--accent); }
@media (max-width: 520px) { .pasos li { color: transparent !important; } .pasos li.actual { color: var(--accent) !important; overflow: visible; } }
.det-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .det-grid { grid-template-columns: minmax(0, 1fr); } }
.det-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.det-col .card + .card { margin-top: 0; }
.det-col.lado { position: sticky; top: 82px; }
@media (max-width: 1100px) { .det-col.lado { position: static; } }
.acciones { display: flex; flex-direction: column; gap: 16px; }
.subida { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.subida > span { font-size: 12.5px; margin-top: -6px; }
.subida textarea { min-height: 60px; }
.finales { display: flex; flex-direction: column; gap: 4px; }
.finales a { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--accent); }
.finales svg { width: 15px; height: 15px; }
.emp-ficha { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.emp-ficha b, .emp-ficha small { display: block; }
.emp-ficha small { color: var(--muted); }
.aprobar { border: 1px solid rgba(155,140,255,.5); background: linear-gradient(160deg, rgba(155,140,255,.12), rgba(255,255,255,.02)); box-shadow: 0 0 50px rgba(155,140,255,.15); }
.aprobar h2 { font-size: 22px; margin-bottom: 14px; }
.aprobar-img { display: block; border-radius: 14px; overflow: hidden; background: #0b0d13; border: 1px solid var(--line); margin-bottom: 14px; }
.aprobar-img img { display: block; width: 100%; max-height: 560px; object-fit: contain; }
.aprobar .texto { margin-bottom: 14px; }
.cam-box { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-top: 14px; }
.listo { border: 1px solid rgba(61,220,132,.5); background: linear-gradient(160deg, rgba(61,220,132,.1), rgba(255,255,255,.02)); box-shadow: 0 0 40px rgba(61,220,132,.12); }
.listo h2 { display: flex; align-items: center; gap: 8px; color: var(--ok); }
.listo h2 svg { width: 20px; height: 20px; }
.galeria { display: flex; gap: 12px; flex-wrap: wrap; }
.galeria a { width: 160px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.galeria img { width: 160px; height: 160px; object-fit: contain; border-radius: 13px; background: #0b0d13; border: 1px solid var(--line); transition: border-color .15s; }
.galeria a:hover img { border-color: var(--cyan); }
.idea { margin-top: 16px; padding: 14px 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 13px; }
.idea .sobre { color: var(--cyan); }
.chat { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.chat li { max-width: 88%; align-self: flex-start; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; font-size: 13.5px; }
.chat li.yo { align-self: flex-end; background: rgba(255,122,47,.12); border-color: rgba(255,122,47,.25); border-radius: 14px 14px 4px 14px; }
.chat li small { display: block; font-size: 11px; opacity: .6; font-weight: 600; }
.chat-input { display: flex; gap: 8px; margin-top: 12px; }

/* empresas */
.form-emp { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 14px; }
.form-emp .btn { height: 44px; }
.emp { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.emp:first-child { border-top: 0; }
.emp-n { font-weight: 800; text-decoration: none; }
.emp-n:hover { color: var(--accent); }
.emp .muted { font-size: 12.5px; }
.emp.off { opacity: .4; }
@media (max-width: 640px) { .emp { grid-template-columns: auto minmax(0, 1fr); } .emp > .fila { grid-column: 1 / -1; } }
.cred { display: flex; gap: 10px 18px; align-items: center; flex-wrap: wrap; background: rgba(61,220,132,.08); border: 1px solid rgba(61,220,132,.3); border-radius: 12px; padding: 12px 16px; margin-top: 12px; font-size: 13.5px; }
.cred code { font-weight: 800; background: rgba(0,0,0,.35); color: var(--accent); padding: 2px 8px; border-radius: 6px; user-select: all; font-family: ui-monospace, "SF Mono", Consolas, monospace; }

/* ventana de la app */
.modal-fondo { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); opacity: 0; transition: opacity .2s; }
.modal-fondo.abierto { opacity: 1; }
.modal { position: relative; width: min(460px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: linear-gradient(170deg, #141824, #0c0e14); border: 1px solid var(--line-2); border-radius: 24px; padding: 26px 24px 22px; box-shadow: 0 0 60px rgba(155,214,75,.15), 0 30px 80px rgba(0,0,0,.6); transform: translateY(12px) scale(.98); transition: transform .25s cubic-bezier(.2,.9,.25,1.1); }
.modal-fondo.abierto .modal { transform: none; }
.modal h2 { font-size: 22px; margin-top: 6px; }
.modal > p { margin: 6px 0 4px; }
.modal-x { position: absolute; top: 14px; right: 14px; }
.modal-arte { width: 74px; height: 74px; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); display: grid; place-items: center; box-shadow: 0 0 34px rgba(255,122,47,.25); }
.modal-arte svg { height: 50px; width: auto; }
.modal-sec { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.modal-sec > div > b { display: block; font-family: var(--display); font-size: 15px; margin-bottom: 8px; }
.modal-sec .btn { margin-top: 2px; }
.modal-n { width: 28px; height: 28px; border-radius: 9px; background: rgba(155,214,75,.12); border: 1px solid rgba(155,214,75,.4); color: var(--cyan); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.pasos-ios { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.pasos-ios b { color: var(--ink); }
.ic-inline { display: inline-grid; vertical-align: -4px; width: 22px; height: 22px; place-items: center; border-radius: 6px; background: rgba(90,162,255,.15); color: var(--azul); }
.ic-inline svg { width: 15px; height: 15px; }
.modal .error { display: block; margin-top: 12px; }

/* notificaciones */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 60; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: rgba(20,24,36,.95); border: 1px solid var(--line-2); color: var(--ink); border-radius: 12px; padding: 11px 18px; font-size: 13.5px; font-weight: 600; box-shadow: 0 0 30px rgba(255,122,47,.12), 0 14px 36px rgba(0,0,0,.5); backdrop-filter: var(--vidrio); }
.toast.err { border-color: rgba(255,92,108,.6); color: #ffd0d5; }
.notifs { position: fixed; top: calc(74px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); z-index: 70; display: flex; flex-direction: column; gap: 10px; width: min(370px, calc(100vw - 32px)); pointer-events: none; }
.notif { pointer-events: auto; position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 12px 16px 14px; border-radius: 16px; background: rgba(18,21,31,.9); border: 1px solid var(--line-2); backdrop-filter: var(--vidrio); -webkit-backdrop-filter: var(--vidrio); box-shadow: 0 0 40px rgba(155,214,75,.12), 0 20px 50px rgba(0,0,0,.55); cursor: pointer; transition: transform .25s, opacity .25s; }
.notif:hover { transform: translateY(-2px); }
.notif.sale { opacity: 0; transform: translateX(30px); }
.notif-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; }
.notif-t b { font-family: var(--display); font-weight: 600; }
.notif-t span { color: var(--ink-2); overflow-wrap: anywhere; }
.notif-x { border: 0; background: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); padding: 0; }
.notif-x:hover { background: rgba(255,255,255,.08); color: var(--ink); }
.notif-x svg { width: 14px; height: 14px; }
.notif-barra { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); box-shadow: 0 0 10px var(--accent); transform-origin: left; animation: barra 7s linear forwards; }
@keyframes barra { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: no-preference) { .notif { animation: entraN .45s cubic-bezier(.2,.9,.25,1.15); } @keyframes entraN { from { transform: translateX(60px) scale(.96); opacity: 0; } } }
.notif-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.07); color: var(--ink); }
.notif-ic svg { width: 19px; height: 19px; }
.n-nuevo .notif-ic, .notif-ic.n-nuevo { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 16px var(--accent-glow); }
.n-aprobado .notif-ic, .notif-ic.n-aprobado { background: var(--ok); color: #04120a; box-shadow: 0 0 16px rgba(61,220,132,.4); }
.n-cambios .notif-ic, .notif-ic.n-cambios { background: var(--warn); color: #1c1100; box-shadow: 0 0 16px rgba(255,181,71,.4); }
.n-diseno .notif-ic, .notif-ic.n-diseno { background: var(--info); color: #0c0920; box-shadow: 0 0 16px rgba(155,140,255,.45); }
.n-final .notif-ic, .notif-ic.n-final { background: var(--cyan); color: #0d1604; box-shadow: 0 0 16px var(--cyan-glow); }
.n-mensaje .notif-ic, .notif-ic.n-mensaje { background: var(--azul); color: #020d1c; box-shadow: 0 0 16px rgba(90,162,255,.4); }
.n-aprobado .notif-barra { background: var(--ok); box-shadow: 0 0 10px var(--ok); } .n-cambios .notif-barra { background: var(--warn); box-shadow: 0 0 10px var(--warn); } .n-diseno .notif-barra { background: var(--info); box-shadow: 0 0 10px var(--info); } .n-mensaje .notif-barra { background: var(--azul); box-shadow: 0 0 10px var(--azul); } .n-final .notif-barra { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.velo { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .25s; }
.velo.abierto { opacity: 1; }
.panel-av { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(400px, 100vw); background: rgba(12,14,20,.96); backdrop-filter: var(--vidrio); -webkit-backdrop-filter: var(--vidrio); border-left: 1px solid var(--line-2); box-shadow: -30px 0 80px rgba(0,0,0,.6); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px); }
.panel-av.abierto { transform: none; }
.panel-cab { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 10px; }
.panel-cab h2 { font-size: 20px; }
.panel-cuerpo { flex: 1; overflow: auto; padding: 0 10px 12px; }
.panel-sec { display: flex; justify-content: space-between; align-items: center; padding: 14px 8px 6px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: #5f6678; }
.panel-av ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.panel-av li button { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; text-align: left; background: none; border: 0; padding: 11px 10px; border-radius: 13px; position: relative; }
.panel-av li button:hover { background: rgba(255,255,255,.05); }
.panel-av li.nuevo button { background: rgba(255,122,47,.06); }
.panel-av li.nuevo button::after { content: ""; position: absolute; right: 12px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.panel-av li:not(.nuevo) .notif-ic { background: rgba(255,255,255,.07); color: var(--ink-2); box-shadow: none; }
.av-t { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; min-width: 0; padding-right: 16px; }
.av-t span { color: var(--ink-2); overflow-wrap: anywhere; }
.av-t small { color: var(--muted); font-size: 12px; }
.panel-pie { padding: 14px 18px; border-top: 1px solid var(--line); font-weight: 600; font-size: 13.5px; }
.aviso-permiso { margin: 0 18px 6px; text-align: left; border: 1px solid rgba(155,214,75,.35); border-radius: 14px; padding: 13px 15px; background: linear-gradient(120deg, rgba(155,214,75,.12), rgba(255,122,47,.05)); color: var(--ink); display: flex; gap: 12px; align-items: center; }
.aviso-permiso > svg { width: 22px; height: 22px; color: var(--cyan); flex: none; }
.aviso-permiso b { display: block; font-size: 13.5px; }
.aviso-permiso span span { display: block; color: var(--ink-2); font-size: 12.5px; }
.vacio-av { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 60px 30px; color: var(--muted); }
.vacio-av svg { width: 32px; height: 32px; margin-bottom: 6px; color: var(--cyan); }
.vacio-av b { color: var(--ink); font-size: 16px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 36px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.14); position: relative; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.switch input:checked + span::after { transform: translateX(14px); background: var(--accent-ink); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- logos de empresas ---------- */
.logo-emp { width: 40px; height: 40px; border-radius: 11px; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; border: 1px solid var(--line-2); }
.logo-emp img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.logo-emp.vacio-logo { background: rgba(255,255,255,.06); color: var(--muted); font-weight: 800; font-size: 13px; }
.logo-emp.mini { width: 22px; height: 22px; border-radius: 6px; font-size: 9px; }
.logo-emp.mini img { padding: 2px; }
.logo-emp.avatar { width: 36px; height: 36px; }
.side-logo { width: 18px; height: 18px; border-radius: 5px; background: #fff; object-fit: contain; padding: 1px; flex: none; }
.carpeta-ic.con-logo { background: #fff; border-color: var(--line-2); overflow: hidden; }
.carpeta-ic.con-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; border-radius: inherit; }
.carpeta-ic.editable { cursor: pointer; }
.carpeta-ic.editable input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.carpeta-ic .cambiar { position: absolute; right: -6px; bottom: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 0 12px var(--accent-glow); }
.carpeta-ic .cambiar svg { width: 14px; height: 14px; fill: none; stroke: currentColor; }
.emp-logo { position: relative; cursor: pointer; }
.emp-logo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.emp-logo:hover .logo-emp { border-color: var(--accent); box-shadow: 0 0 14px var(--accent-glow); }
.logo-btn.chico { width: 44px; height: 44px; border-radius: 12px; }
.logo-btn.chico #eLogoIn { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 9.5px; font-weight: 700; gap: 1px; }
.logo-btn.chico svg { width: 15px; height: 15px; }
.logo-btn.chico img { width: 100%; height: 100%; object-fit: contain; padding: 3px; background: #fff; }
.form-emp { grid-template-columns: 44px repeat(auto-fit, minmax(170px, 1fr)); }
.notif-ic.con-logo { position: relative; background: #fff !important; overflow: visible; box-shadow: none !important; }
.notif-ic.con-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; border-radius: 11px; }
.notif-ic .mini-ic { position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; border: 2px solid #12151f; background: var(--muted); color: #fff; }
.notif-ic .mini-ic svg { width: 11px; height: 11px; }
.mini-ic.n-nuevo { background: var(--accent); color: var(--accent-ink); } .mini-ic.n-aprobado { background: var(--ok); } .mini-ic.n-cambios { background: var(--warn); } .mini-ic.n-diseno { background: var(--info); } .mini-ic.n-mensaje { background: var(--azul); } .mini-ic.n-final { background: var(--cyan); }

/* ---------- urgente ---------- */
.urgente { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; color: #1c0a00; background: linear-gradient(90deg, var(--amarillo), var(--accent)); box-shadow: 0 0 12px rgba(255,122,47,.35); white-space: nowrap; vertical-align: 2px; }
.btn-urgente { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 14px; border-radius: 13px; border: 1px dashed var(--line-2); background: transparent; color: var(--ink-2); transition: all .15s; }
.btn-urgente svg { width: 22px; height: 22px; flex: none; }
.btn-urgente b { display: block; font-size: 14px; color: var(--ink); }
.btn-urgente small { display: block; font-size: 12px; color: var(--muted); }
.btn-urgente:hover { border-color: var(--accent); }
.btn-urgente.on { border: 1px solid transparent; background: linear-gradient(90deg, rgba(245,197,24,.18), rgba(255,122,47,.22)); box-shadow: 0 0 22px rgba(255,122,47,.25), inset 0 0 0 1px rgba(255,122,47,.6); color: var(--accent); }
.btn-urgente.on small { color: var(--ink-2); }
.resumen-linea { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 6px; }
.chip-res { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.chip-res svg { width: 16px; height: 16px; }
.chip-res b { color: var(--ink); }
.chip-res:hover { border-color: var(--accent); }
.chip-res.urg { color: var(--accent); border-color: rgba(255,122,47,.5); }
.debe { color: var(--warn); font-weight: 700; }
.pago-ok { color: var(--ok); font-weight: 700; }
.titulo-dinamico { width: auto !important; height: auto !important; background: none !important; border: 0 !important; color: inherit !important; font-size: inherit !important; display: inline !important; }

/* ---------- modelo y catálogo ---------- */
.modelo-elegido { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; }
.modelo-elegido img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-2); background: #0b0d13; }
.modelo-elegido b, .modelo-elegido small { display: block; }
.modelo-elegido small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 520px) { .modelo-elegido { grid-template-columns: 64px minmax(0, 1fr); } .modelo-elegido .btn { grid-row: 2; } }
.grilla-mod { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.grilla-mod.grande { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 0; }
.mod { display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .2s, transform .15s; min-width: 0; }
button.mod:hover, .grilla-mod.grande .mod:hover { border-color: rgba(255,122,47,.5); box-shadow: 0 0 24px rgba(255,122,47,.12); transform: translateY(-2px); }
.mod img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 11px; background: #0b0d13; }
.mod b { font-size: 14px; overflow-wrap: anywhere; }
.mod small { color: var(--muted); font-size: 12px; margin-top: -6px; }
.mod .input { height: 38px; font-size: 13.5px; }
.modal.ancho { width: min(760px, 100%); }
.sin-wrap { flex-wrap: nowrap; }
.sin-wrap .input { min-width: 0; }

/* ---------- marcar cambios ---------- */
#zonaMarcas { position: relative; }
#zonaMarcas.marcando { cursor: crosshair; outline: 2px dashed rgba(255,181,71,.6); outline-offset: -2px; }
.pin { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50% 50% 50% 4px; background: var(--warn); color: #1c1100; font-weight: 800; font-size: 13px; display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(0,0,0,.35), 0 0 16px rgba(255,181,71,.7); pointer-events: none; animation: cae .3s cubic-bezier(.2,.9,.3,1.4); }
@keyframes cae { from { transform: translateY(-10px) scale(.6); opacity: 0; } }
.ayuda-marcas { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,181,71,.08); border: 1px solid rgba(255,181,71,.3); font-size: 13.5px; color: var(--ink-2); width: 100%; }
.ayuda-marcas svg { width: 18px; height: 18px; color: var(--warn); flex: none; margin-top: 1px; }
.ayuda-marcas b { color: var(--ink); }
.lista-marcas { margin: 0; padding: 0; list-style: none; counter-reset: m; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.lista-marcas:empty { display: none; }
.lista-marcas li { counter-increment: m; display: flex; gap: 8px; align-items: center; }
.lista-marcas li::before { content: counter(m); width: 26px; height: 26px; border-radius: 50% 50% 50% 4px; background: var(--warn); color: #1c1100; font-weight: 800; font-size: 12px; display: grid; place-items: center; flex: none; }
.lista-marcas.leer li { align-items: flex-start; font-size: 14px; }
.lista-marcas.leer li::before { margin-top: -2px; }
.x-marca { border: 0; background: rgba(255,255,255,.06); width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); flex: none; padding: 0; }
.x-marca:hover { background: rgba(255,92,108,.15); color: var(--danger); }
.x-marca svg { width: 14px; height: 14px; }
.cambios-card { border: 1px solid rgba(255,181,71,.45); background: linear-gradient(160deg, rgba(255,181,71,.09), rgba(255,255,255,.02)); }
.cambios-card h2 { display: flex; align-items: center; gap: 8px; color: var(--warn); margin-bottom: 14px; }
.cambios-card h2 svg { width: 19px; height: 19px; }
.marcas-vista { position: relative; border-radius: 14px; overflow: hidden; background: #0b0d13; border: 1px solid var(--line); margin-bottom: 14px; }
.marcas-vista img { display: block; width: 100%; max-height: 560px; object-fit: contain; }
.cam-box { width: 100%; }

/* ---------- cobro ---------- */
.cobro h2 { display: flex; align-items: center; gap: 8px; }
.cobro h2 svg { width: 18px; height: 18px; color: var(--accent); }
.cobro { display: flex; flex-direction: column; gap: 14px; }
.cobro .card-cab { margin-bottom: 0; }
.cobro-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cobro-nums span { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); min-width: 0; }
.cobro-nums small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.cobro-nums b { display: block; font-family: var(--display); font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cobro-nums .debe b { color: var(--warn); } .cobro-nums .pago-ok b { color: var(--ok); }
.pago-pill { font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor; }
.p-pagado { color: var(--ok); } .p-sena { color: var(--amarillo); } .p-pendiente { color: var(--warn); }
.pagos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pagos li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); font-size: 13.5px; }
.pagos small { display: block; color: var(--muted); font-size: 11.5px; }
.cobro .link { align-self: flex-start; }

/* ---------- compartir y whatsapp ---------- */
.btn.wa { background: #1faa59; border-color: #1faa59; color: #fff; }
.btn.wa:hover { background: #25d366; box-shadow: 0 0 22px rgba(37,211,102,.4); }
.link-comp { display: flex; gap: 8px; }
.link-comp .input { font-size: 13px; }

/* ---------- tablero ---------- */
.tablero { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.columna { display: flex; flex-direction: column; min-height: 320px; border-radius: 18px; background: rgba(255,255,255,.025); border: 1px solid var(--line); scroll-snap-align: start; transition: border-color .15s, background .15s; min-width: 0; }
.columna.sobre-col { border-color: var(--accent); background: rgba(255,122,47,.06); box-shadow: 0 0 30px rgba(255,122,47,.12); }
.columna header { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; font-size: 13.5px; }
.columna header .num { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 800; font-variant-numeric: tabular-nums; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.col-cuerpo { display: flex; flex-direction: column; gap: 8px; padding: 0 10px 12px; flex: 1; }
.col-vacia { margin: 0; padding: 18px 8px; text-align: center; font-size: 12.5px; color: #4d5363; border: 1px dashed var(--line); border-radius: 12px; }
.tarjeta-k { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: rgba(18,21,31,.9); border: 1px solid var(--line-2); cursor: grab; transition: transform .12s, box-shadow .15s, border-color .15s; }
.tarjeta-k:hover { border-color: rgba(255,255,255,.25); }
.tarjeta-k.arrastrando { opacity: .45; transform: rotate(2deg); }
.tarjeta-k.urg { border-color: rgba(255,122,47,.55); box-shadow: 0 0 18px rgba(255,122,47,.15); }
.tarjeta-k.nuevo { box-shadow: inset 3px 0 0 var(--accent); }
.tk-cab { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tk-emp { font-size: 12px; color: var(--muted); font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-eq { font-family: var(--display); font-weight: 600; font-size: 14.5px; text-decoration: none; overflow-wrap: anywhere; }
.tk-eq:hover { color: var(--accent); }
.tk-meta { font-size: 12px; color: var(--muted); }
.txt-warn { color: var(--warn); }
.tk-pie { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 2px; }
.mover { height: 28px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--ink-2); font-size: 12px; padding: 0 6px; max-width: 120px; }
.mover option { background: var(--solido); }
@media (max-width: 760px) { .tablero { grid-template-columns: repeat(5, 82%); } }

/* ---------- estadísticas ---------- */
.tiles.estat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .tiles.estat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile-n.chica { font-size: 22px; }
.alerta-tile .tile-n { color: var(--warn); }
.grafico { position: relative; }
.grafico svg { display: block; width: 100%; height: auto; overflow: visible; }
.g-linea { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.g-base { stroke: rgba(255,255,255,.18); stroke-width: 1; }
.g-txt { fill: var(--muted); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.g-rect { fill: rgba(255,122,47,.55); transition: fill .15s; }
.g-rect.actual { fill: var(--accent); }
.g-barra.hover .g-rect { fill: #ff9a5c; }
.g-tip { position: absolute; transform: translate(-50%, -100%); padding: 6px 10px; border-radius: 8px; background: #1a1e2b; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; pointer-events: none; white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tabla.rank .tabla-cab, .tabla.rank .tabla-fila { grid-template-columns: minmax(200px, 2fr) 90px minmax(120px, 1fr) minmax(120px, 1fr) 100px; }
.num-t { font-variant-numeric: tabular-nums; font-weight: 700; }
@media (max-width: 1080px) { .tabla.rank .tabla-fila { grid-template-columns: minmax(0, 1fr) auto; } .tabla.rank .num-t { grid-column: auto; font-size: 13px; } .tabla.rank .t-fec { display: none; } }

.fila-pago .input { flex: 1 1 110px; min-width: 0; }
.fila-pago .btn { flex: 1 0 100%; }
.carpeta.con-nuevos .carpeta-ic.con-logo { background: #fff; border-color: rgba(255,122,47,.6); }

/* ---------- pantalla taller (televisor / monitor) ---------- */
body.modo-pantalla .side, body.modo-pantalla .top, body.modo-pantalla .notifs, body.modo-pantalla .velo-side { display: none !important; }
body.modo-pantalla .principal { margin-left: 0; }
body.modo-pantalla .pagina { max-width: none; padding: 0; }
.pt { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: clamp(10px, 1.2vw, 18px); padding: clamp(12px, 1.6vw, 26px) clamp(14px, 1.8vw, 30px);
  background: radial-gradient(1100px 600px at 90% -10%, rgba(255,122,47,.13), transparent 60%), radial-gradient(900px 600px at -10% 110%, rgba(155,214,75,.10), transparent 60%), var(--bg); overflow: hidden; }
.pt-cab { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 22px); }
.pt-marca { display: flex; align-items: center; gap: 12px; }
.pt-marca b { display: block; font-family: var(--marca); color: var(--accent); font-size: clamp(18px, 1.7vw, 28px); line-height: 1.1; text-shadow: 0 0 18px rgba(255,122,47,.3); }
.pt-marca small { display: block; color: var(--muted); font-weight: 700; font-size: clamp(11px, .85vw, 14px); letter-spacing: .14em; text-transform: uppercase; }
.pt-marca .logo-cuadro { width: clamp(40px, 3.2vw, 56px); height: clamp(40px, 3.2vw, 56px); }
.pt-marca .logo-cuadro svg { height: 70%; }
.pt-vivo { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,92,108,.45); background: rgba(255,92,108,.1); color: #ff8b97; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.pt-vivo i { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 10px var(--danger); animation: pulsa 1.4s ease-in-out infinite; }
.pt-reloj { margin-left: auto; text-align: right; }
.pt-reloj b { display: block; font-family: var(--display); font-size: clamp(26px, 2.6vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.pt-reloj small { color: var(--muted); font-weight: 600; font-size: clamp(11px, .85vw, 14px); }
.pt-acc { display: flex; gap: 8px; align-items: center; }
.pt-tog { height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: 13px; white-space: nowrap; }
.pt-tog { display: inline-flex; align-items: center; gap: 8px; }
.pt-tog i { width: 8px; height: 8px; border-radius: 50%; background: #3a3f4d; }
.pt-tog.on { color: var(--ink); border-color: rgba(155,214,75,.45); background: rgba(155,214,75,.1); }
.pt-tog.on i { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.pt-num { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(8px, .9vw, 14px); }
.pt-n { position: relative; padding: clamp(10px, 1vw, 16px) clamp(12px, 1.1vw, 18px); border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.pt-n b { font-family: var(--display); font-size: clamp(26px, 2.8vw, 50px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pt-n span { font-size: clamp(11px, .85vw, 14px); font-weight: 700; color: var(--muted); }
.pt-n::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: currentColor; opacity: .9; }
.pt-n.n-recibido { color: #c9cfdc; } .pt-n.n-cambios { color: var(--warn); } .pt-n.n-diseno { color: var(--azul); } .pt-n.n-enviado { color: var(--info); }
.pt-n.n-aprobado { color: var(--ok); } .pt-n.n-urgente { color: var(--accent); } .pt-n.n-corel { color: var(--cyan); }
.pt-n b { color: var(--ink); } .pt-n.ojo b { color: currentColor; text-shadow: 0 0 20px currentColor; }
.pt-n.ojo { border-color: color-mix(in srgb, currentColor 45%, transparent); background: color-mix(in srgb, currentColor 8%, transparent); }
.pt-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 22vw, 420px); gap: clamp(10px, 1.2vw, 18px); min-height: 0; }
.pt-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1vw, 16px); min-height: 0; }
.pt-col { display: flex; flex-direction: column; min-height: 0; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.025); overflow: hidden; }
.pt-col header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: clamp(12px, 1vw, 16px) clamp(14px, 1.1vw, 18px); border-bottom: 1px solid var(--line); border-top: 3px solid var(--col, #c9cfdc); }
.pt-col header b { display: block; font-family: var(--display); font-size: clamp(15px, 1.25vw, 22px); letter-spacing: -.02em; }
.pt-col header small { color: var(--muted); font-size: clamp(11px, .8vw, 13px); font-weight: 600; }
.pt-cuenta { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: clamp(17px, 1.4vw, 24px); background: color-mix(in srgb, var(--col) 16%, transparent); color: var(--col); }
.pt-col.c-hacer { --col: var(--accent); } .pt-col.c-diseno { --col: var(--azul); } .pt-col.c-enviado { --col: var(--info); } .pt-col.c-aprobado { --col: var(--ok); }
.pt-lista { flex: 1; min-height: 0; overflow: hidden; padding: clamp(8px, .8vw, 12px); display: flex; flex-direction: column; gap: clamp(8px, .7vw, 12px); }
.pt-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: clamp(10px, .9vw, 14px); border-radius: 15px; border: 1px solid var(--line); background: rgba(18,21,31,.85); text-decoration: none; flex: none; }
.pt-card:hover { border-color: var(--line-2); }
.pt-card.urg { border-color: rgba(255,122,47,.6); box-shadow: 0 0 24px rgba(255,122,47,.18), inset 3px 0 0 var(--accent); }
.pt-card.cam { border-color: rgba(255,181,71,.5); box-shadow: inset 3px 0 0 var(--warn); }
.pt-logo.logo-emp { width: clamp(44px, 3.6vw, 64px); height: clamp(44px, 3.6vw, 64px); border-radius: 13px; font-size: clamp(13px, 1vw, 18px); }
.pt-card-t { min-width: 0; }
.pt-card-t small { display: block; color: var(--muted); font-weight: 700; font-size: clamp(11px, .8vw, 13px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-card-t b { display: block; font-family: var(--display); font-size: clamp(15px, 1.25vw, 22px); letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.pt-card-t span { display: block; color: var(--ink-2); font-size: clamp(12px, .85vw, 14px); }
.pt-card-d { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pt-card-d em { margin-left: auto; font-style: normal; color: var(--muted); font-size: clamp(11px, .8vw, 13px); font-weight: 600; }
.pt-tag { display: inline-flex; align-items: center; gap: 4px; font-size: clamp(10px, .75vw, 12px); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.t-urg { color: #1c0a00; background: linear-gradient(90deg, var(--amarillo), var(--accent)); box-shadow: 0 0 12px rgba(255,122,47,.4); }
.t-cam { color: #1f1300; background: var(--warn); }
.t-nue { color: var(--accent); border: 1px solid rgba(255,122,47,.5); animation: pulsa 1.8s ease-in-out infinite; }
.pt-vacio { color: #5f6678; text-align: center; padding: 24px 8px; margin: 0; font-weight: 600; }
.pt-feed { display: flex; flex-direction: column; min-height: 0; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.025); overflow: hidden; }
.pt-feed h2 { padding: clamp(12px, 1vw, 16px) clamp(14px, 1.1vw, 18px); border-bottom: 1px solid var(--line); font-size: clamp(15px, 1.15vw, 20px); }
.pt-feed ol { list-style: none; margin: 0; padding: 6px clamp(10px, .9vw, 14px); overflow: hidden; flex: 1; }
.pt-feed li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pt-feed li:first-child { animation: aparece .5s backwards; }
.pt-feed li b { display: block; font-size: clamp(12px, .9vw, 15px); }
.pt-feed li span { display: block; color: var(--ink-2); font-size: clamp(12px, .8vw, 13.5px); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pt-feed li small { color: var(--muted); font-size: 11.5px; }
.pt-f-logo { width: 36px; height: 36px; border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.pt-f-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.pt-f-logo.ic { background: rgba(255,255,255,.06); color: var(--ink-2); }
.pt-f-logo.ic svg { width: 18px; height: 18px; }
.pt-feed li.n-nuevo b { color: var(--accent); } .pt-feed li.n-cambios b { color: var(--warn); } .pt-feed li.n-aprobado b { color: var(--ok); } .pt-feed li.n-mensaje b { color: var(--azul); }
/* inicio (un toque para activar sonido y pantalla completa) */
.pt-inicio { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; text-align: center; padding: 24px; background: rgba(7,8,12,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pt-inicio > div { max-width: 460px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pt-inicio > div { max-width: 560px; }
.pt-inicio h2 { font-size: clamp(26px, 2.6vw, 40px); }
.pt-inicio p { color: var(--ink-2); margin: 0 0 6px; }
.pt-link-monitor { width: min(100%, 540px); margin-top: 4px; text-align: left; }
.pt-link-monitor label { display: block; margin-bottom: 8px; font-weight: 700; }
.pt-link-monitor .fila { gap: 8px; }
.pt-link-monitor input { min-width: 0; flex: 1; }
.pt-link-monitor small { display: block; margin-top: 8px; color: var(--ink-2); }
.pt-inicio-ic { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: rgba(255,122,47,.12); border: 1px solid rgba(255,122,47,.4); color: var(--accent); box-shadow: 0 0 40px var(--accent-glow); }
.pt-inicio-ic svg { width: 36px; height: 36px; }
/* el aviso grande */
.llamado { --c: var(--accent); position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: clamp(16px, 3vw, 60px); cursor: pointer;
  background: radial-gradient(70% 60% at 50% 40%, color-mix(in srgb, var(--c) 26%, transparent), transparent 70%), rgba(5,6,10,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: ll-entra .55s cubic-bezier(.2,.9,.25,1.1); }
.llamado.sale { opacity: 0; transform: scale(1.03); transition: opacity .45s, transform .45s; }
@keyframes ll-entra { from { opacity: 0; transform: scale(.94); } }
.llamado.l-cambios { --c: var(--warn); } .llamado.l-aprobado { --c: var(--ok); } .llamado.l-mensaje { --c: var(--azul); } .llamado.l-diseno, .llamado.l-estado { --c: var(--info); } .llamado.l-final { --c: var(--cyan); }
.ll-in { position: relative; width: min(1200px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(12px, 2vh, 26px); padding: clamp(22px, 3vw, 48px); border-radius: 32px; border: 2px solid color-mix(in srgb, var(--c) 60%, transparent); background: rgba(14,16,24,.75); box-shadow: 0 0 120px color-mix(in srgb, var(--c) 30%, transparent); overflow: hidden; }
.ll-tipo { margin: 0; display: inline-flex; align-items: center; gap: 14px; padding: 10px 26px; border-radius: 999px; background: var(--c); color: #0b0b0b; font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2.6vw, 44px); letter-spacing: .02em; text-transform: uppercase; box-shadow: 0 0 50px color-mix(in srgb, var(--c) 60%, transparent); animation: ll-late 1.2s ease-in-out 3; }
.ll-tipo svg { width: 1em; height: 1em; }
@keyframes ll-late { 50% { transform: scale(1.06); } }
.ll-centro { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.4vw, 40px); max-width: 100%; }
.ll-logo.logo-emp { width: clamp(110px, 13vw, 220px); height: clamp(110px, 13vw, 220px); border-radius: 28px; font-size: clamp(36px, 4vw, 70px); box-shadow: 0 0 60px color-mix(in srgb, var(--c) 35%, transparent); border: 3px solid color-mix(in srgb, var(--c) 70%, transparent); }
.ll-logo.logo-emp img { padding: 10%; }
.ll-txt { text-align: left; min-width: 0; }
.ll-txt small { display: block; color: var(--ink-2); font-weight: 700; font-size: clamp(16px, 1.8vw, 30px); }
.ll-txt h2 { font-size: clamp(34px, 5.4vw, 96px); line-height: 1; letter-spacing: -.045em; overflow-wrap: anywhere; }
.ll-txt p { margin: 10px 0 0; color: var(--ink-2); font-size: clamp(15px, 1.6vw, 26px); font-weight: 600; }
.ll-prendas { display: flex; align-items: flex-end; justify-content: center; gap: clamp(10px, 1.6vw, 26px); height: clamp(90px, 20vh, 220px); }
.ll-prendas svg { height: 100%; width: auto; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--c) 40%, transparent)); }
.ll-texto { margin: 0; color: var(--ink-2); font-size: clamp(14px, 1.3vw, 22px); max-width: 900px; }
.ll-hora { position: absolute; top: 18px; right: 24px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.ll-barra { position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: var(--c); transform-origin: left; animation: ll-tiempo 10s linear forwards; }
@keyframes ll-tiempo { to { transform: scaleX(0); } }
@media (max-width: 1100px) {
  .pt { position: absolute; bottom: auto; min-height: 100%; overflow: visible; grid-template-rows: auto; }
  .pt-cuerpo, .pt-cols { min-height: auto; }
  .pt-cab { flex-wrap: wrap; }
  .pt-num { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pt-cuerpo, .pt-cols { grid-template-columns: minmax(0, 1fr); }
  .pt-col, .pt-feed { min-height: auto; }
  .pt-lista { flex: none; max-height: 70vh; overflow-y: auto; }
  .pt-feed ol { flex: none; max-height: 60vh; overflow-y: auto; }
  .llamado { position: fixed; }
  .ll-centro { flex-direction: column; } .ll-txt { text-align: center; }
}
@media (max-width: 560px) { .pt-num { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pt-vivo { display: none; } .pt-acc { width: 100%; } .pt-reloj { margin-left: auto; } }

/* ---------- color de cada empresa ---------- */
.colores { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.color-op { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); background: var(--emp); padding: 0; cursor: pointer; transition: transform .12s, box-shadow .15s; }
.color-op:hover { transform: scale(1.12); }
.color-op.on { border-color: #fff; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--emp), 0 0 14px var(--emp); }
.color-op.otro { display: grid; place-items: center; overflow: hidden; color: var(--ink-2); font-weight: 800; font-size: 15px; background: conic-gradient(#ff5c6c, #f5c518, #9bd64b, #2fd4c4, #5aa2ff, #c86bff, #ff5c6c); }
.color-op.otro.on { background: var(--emp); color: transparent; }
.color-op.otro input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.color-carpeta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.color-carpeta > span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.form-emp .form-color { grid-column: 1 / -1; margin-top: 2px; }
.muestra-color { position: relative; width: 32px; height: 32px; border-radius: 9px; background: var(--emp); border: 2px solid rgba(255,255,255,.2); cursor: pointer; overflow: hidden; flex: none; }
.muestra-color input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.muestra-color:hover { box-shadow: 0 0 12px var(--emp); }
/* menú lateral */
.side-carpetas a { position: relative; }
.pto-emp { width: 4px; align-self: stretch; border-radius: 4px; background: var(--emp); flex: none; margin: 2px -4px 2px -2px; box-shadow: 0 0 8px color-mix(in srgb, var(--emp) 60%, transparent); }
.side-carpetas a[style] svg, .side-carpetas a[style]:hover svg, .side-carpetas a[style].on svg { color: var(--emp); }
.side-carpetas a[style].on { background: linear-gradient(90deg, color-mix(in srgb, var(--emp) 18%, transparent), transparent); box-shadow: none; }
/* carpetas del inicio */
.carpeta[style] { background: linear-gradient(155deg, color-mix(in srgb, var(--emp) 17%, transparent), transparent 58%), var(--surface); border-color: color-mix(in srgb, var(--emp) 30%, transparent); box-shadow: inset 0 3px 0 var(--emp); }
.carpeta[style]:hover { border-color: color-mix(in srgb, var(--emp) 65%, transparent); box-shadow: inset 0 3px 0 var(--emp), 0 0 30px color-mix(in srgb, var(--emp) 22%, transparent); }
.carpeta[style] .carpeta-ic:not(.con-logo), .carpeta-cab[style] .carpeta-ic:not(.con-logo) { background: color-mix(in srgb, var(--emp) 14%, transparent); border-color: color-mix(in srgb, var(--emp) 50%, transparent); color: var(--emp); }
.carpeta[style] .carpeta-ic:not(.con-logo) svg, .carpeta-cab[style] .carpeta-ic:not(.con-logo) svg { fill: color-mix(in srgb, var(--emp) 22%, transparent); stroke: var(--emp); }
.carpeta[style] .carpeta-ic.con-logo, .carpeta-cab[style] .carpeta-ic.con-logo { border: 2px solid var(--emp); }
.carpeta.con-nuevos[style] { border-color: color-mix(in srgb, var(--emp) 70%, transparent); }
.carpeta-cab[style] h1 { text-decoration: underline; text-decoration-color: var(--emp); text-decoration-thickness: 4px; text-underline-offset: 8px; }
/* listas, tablero, ficha */
.chip-emp { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 3px 10px 3px 3px; border-radius: 999px; background: color-mix(in srgb, var(--emp) 13%, transparent); border: 1px solid color-mix(in srgb, var(--emp) 45%, transparent); color: var(--ink); font-size: 12.5px; }
.chip-emp > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-emp .logo-emp.mini { border-radius: 50%; }
.chip-emp .logo-emp.vacio-logo { background: var(--emp); color: #0b0b0b; border: 0; }
.tarjeta-k[style] { border-top: 3px solid var(--emp); }
.tarjeta-k[style] .tk-emp { color: var(--emp); font-weight: 800; }
.emp[style] .emp-logo .logo-emp { border: 2px solid var(--emp); }
.emp[style] .emp-n { text-decoration: underline; text-decoration-color: var(--emp); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.emp-ficha[style] .logo-emp { border: 2px solid var(--emp); }
.notif.con-emp { border-left: 4px solid var(--emp); }
/* pantalla taller */
.pt-card[style] { border-left: 6px solid var(--emp); background: linear-gradient(100deg, color-mix(in srgb, var(--emp) 14%, transparent), transparent 55%), rgba(18,21,31,.85); }
.pt-card[style] .pt-card-t small { color: var(--emp); }
.pt-card.urg[style] { box-shadow: 0 0 24px rgba(255,122,47,.2); border-color: rgba(255,122,47,.6); border-left-color: var(--emp); }
.pt-card.cam[style] { box-shadow: 0 0 18px rgba(255,181,71,.12); border-color: rgba(255,181,71,.5); border-left-color: var(--emp); }
.pt-card[style] .pt-logo.vacio-logo, .llamado[style] .ll-logo.vacio-logo { background: var(--emp); color: #0b0b0b; border-color: var(--emp); }
.pt-feed li[style] .pt-f-logo { box-shadow: 0 0 0 2px var(--emp); }
.llamado[style] .ll-logo.logo-emp { border-color: var(--emp); box-shadow: 0 0 60px color-mix(in srgb, var(--emp) 45%, transparent); }
.llamado[style] .ll-txt small { display: inline-block; padding: 4px 16px; border-radius: 999px; background: color-mix(in srgb, var(--emp) 20%, transparent); border: 2px solid var(--emp); color: var(--ink); margin-bottom: 8px; }

/* ---------- ajustes de la pantalla ---------- */
.modal-aj { width: min(560px, 100%); }
.aj-sec { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.aj-sec > b { font-family: var(--display); font-size: 15px; }
.aj-sec .btn { align-self: flex-start; }
.aj-rangos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.aj-rangos label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.aj-rangos em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.aj-rangos input { width: 100%; accent-color: var(--accent); }
.aj-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.aj-fila .seg.chico { margin-top: 0; }
.aj-ej { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--ink); font-size: 13.5px; font-style: italic; }
.aj-nota { margin: 0; font-size: 12.5px; color: var(--ink-2); background: rgba(90,162,255,.08); border: 1px solid rgba(90,162,255,.3); border-radius: 12px; padding: 10px 12px; }
.aj-nota.ok { display: flex; gap: 8px; align-items: center; background: rgba(61,220,132,.08); border-color: rgba(61,220,132,.3); color: var(--ok); font-weight: 700; }
.aj-nota svg { width: 16px; height: 16px; flex: none; }
.aj-sonidos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.aj-sonidos button { height: 40px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 700; font-size: 12.5px; color: var(--ink-2); }
.aj-sonidos button.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
.aj-pie { margin-top: 22px; justify-content: space-between; }
@media (max-width: 520px) { .aj-rangos { grid-template-columns: minmax(0, 1fr); } }

/* ---------- vendedores ---------- */
.form-vend { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ped-vend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ped-vend svg { width: 14px; height: 14px; color: var(--cyan); }

/* ---------- conectar CorelDRAW ---------- */
.estado-corel { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-weight: 700; font-size: 13px; }
.estado-corel i { width: 9px; height: 9px; border-radius: 50%; background: #3a3f4d; }
.estado-corel.si { color: var(--ok); border-color: rgba(61,220,132,.4); background: rgba(61,220,132,.07); }
.estado-corel.si i { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.corel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.corel-grid .card + .card { margin-top: 0; }
@media (max-width: 1100px) { .corel-grid { grid-template-columns: minmax(0, 1fr); } }
.corel-barra { display: flex; align-items: stretch; gap: 4px; padding: 6px; margin: 14px 0 18px; border-radius: 12px; background: linear-gradient(#e9eaee, #d9dbe1); border: 1px solid #b9bcc6; box-shadow: 0 10px 30px rgba(0,0,0,.35); overflow-x: auto; }
.cb-marca { display: grid; place-items: center; width: 34px; flex: none; border-right: 1px solid #b9bcc6; margin-right: 4px; }
.cb-marca svg { height: 26px; width: auto; }
.cb-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 86px; padding: 6px 8px; border-radius: 8px; color: #23252b; text-align: center; flex: 1; }
.cb-btn:first-of-type { background: rgba(255,122,47,.16); box-shadow: inset 0 0 0 1px rgba(255,122,47,.5); }
.cb-btn svg { width: 22px; height: 22px; color: #1b1d22; }
.cb-btn small { font-size: 11px; font-weight: 700; line-height: 1.15; }
.corel-funcs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.corel-funcs li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
.cf-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,122,47,.1); border: 1px solid rgba(255,122,47,.35); color: var(--accent); }
.cf-ic svg { width: 19px; height: 19px; }
.corel-funcs b { font-family: var(--display); font-size: 14.5px; }
.corel-funcs p { margin: 2px 0 0; color: var(--ink-2); font-size: 13.5px; }
.pasos-corel { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.pasos-corel li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
.pc-n { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: var(--accent); background: rgba(255,122,47,.12); border: 1px solid rgba(255,122,47,.4); }
.pasos-corel b { font-family: var(--display); font-size: 15px; }
.pasos-corel p { margin: 4px 0 10px; color: var(--ink-2); font-size: 13.5px; }
.pasos-corel code { background: rgba(0,0,0,.35); color: var(--accent); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; overflow-wrap: anywhere; }
kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: rgba(255,255,255,.06); font: 700 12px var(--font); text-align: center; color: var(--ink); }
.clave-corel code { font-size: 12.5px; overflow-wrap: anywhere; }
.corel-grid .nota-corel { margin: 18px 0 0; }

/* ---------- pantalla taller limpia (v2) ---------- */
.pt-cab { position: relative; justify-content: space-between; }
.pt-marca small { display: flex; align-items: center; gap: 8px; }
.pt-pulso { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 10px var(--danger); animation: pulsa 1.4s ease-in-out infinite; flex: none; }
/* hora con los colores del logo */
.pt-reloj { margin-left: auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pt-hora { display: flex; align-items: baseline; font-family: var(--display); font-weight: 800; font-size: calc(clamp(40px, 4.4vw, 84px) * var(--pt-zoom, 1)); line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #8dc63f 0%, #c8d52a 30%, #f2c31b 55%, #ef6a22 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(239,106,34,.28)) drop-shadow(0 0 40px rgba(141,198,63,.12)); }
.pt-hora .h-sep { margin: 0 .05em; color: #e4c71f; -webkit-text-fill-color: #e4c71f; animation: h-late 2s steps(1) infinite; }
@keyframes h-late { 50% { opacity: .25; } }
.pt-hora .h-seg { font-size: .42em; margin-left: .18em; letter-spacing: -.02em; }
.pt-hora .h-ap { font-size: .3em; margin-left: .3em; font-weight: 700; letter-spacing: .02em; -webkit-text-fill-color: #f2c31b; }
.pt-reloj small { font-size: calc(clamp(12px, .95vw, 16px) * var(--pt-zoom, 1)); font-weight: 700; color: var(--ink-2); letter-spacing: .02em; }
/* botón de configuración: se ve solo al mover el mouse */
.pt.activo .pt-reloj { transition: margin .25s; }
.pt-reloj { transition: margin .25s; }
.pt:not(.activo) { cursor: none; }
.pt:not(.activo) .llamado { cursor: none; }
/* tamaño del texto */
.pt-card, .pt-col header, .pt-n, .pt-feed li, .pt-feed h2, .pt-marca, .pt-vacio { zoom: var(--pt-zoom, 1); }
/* mostrar u ocultar partes */
.pt.sin-num .pt-num { display: none; }
.pt.sin-num { grid-template-rows: auto minmax(0, 1fr); }
.pt.sin-feed .pt-feed { display: none; }
.pt.sin-feed .pt-cuerpo { grid-template-columns: minmax(0, 1fr); }
.pt-cols { grid-template-columns: repeat(var(--n-cols, 4), minmax(0, 1fr)); }
@media (max-width: 1100px) { .pt-cols { grid-template-columns: minmax(0, 1fr); } .pt-hora { font-size: 40px; } }
.pt-inicio-ic svg { width: auto; height: 44px; }
.pt-inicio-ic { background: rgba(255,255,255,.04); border-color: var(--line-2); }
@media (max-width: 560px) { .pt-link-monitor .fila { align-items: stretch; flex-direction: column; } .pt-link-monitor .btn { justify-content: center; } }

/* ---------- ventana de configuración ---------- */
.modal.modal-aj { width: min(640px, 100%); padding: 0; display: flex; flex-direction: column; height: min(780px, calc(100vh - 40px)); max-height: calc(100vh - 40px); overflow: hidden; }
.aj-cab { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 22px 22px 16px; }
.aj-cab h2 { font-size: 22px; margin: 0; }
.aj-cab p { margin: 2px 0 0; font-size: 12.5px; }
.aj-cab .logo-cuadro svg { height: 26px; }
.aj-tabs { margin: 0 22px; display: grid; grid-template-columns: repeat(3, 1fr); }
.aj-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.aj-tabs button svg { width: 17px; height: 17px; }
.aj-tabs button.on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 18px var(--accent-glow); }
.aj-cuerpo { overflow-y: auto; padding: 6px 22px 18px; flex: 1; min-height: 0; scrollbar-width: thin; scrollbar-color: #2a2f3c transparent; }
.aj-grupo { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.aj-grupo:last-child { border-bottom: 0; }
.aj-grupo h3 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 6px; font-family: var(--font); }
.aj-grupo > .btn { align-self: flex-start; margin-top: 8px; }
.aj-grupo .campo { margin: 6px 0; }
.aj-sw { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; cursor: pointer; }
.aj-sw span, .aj-fila > span { display: flex; flex-direction: column; min-width: 0; }
.aj-sw b, .aj-fila b, .aj-rango b { font-size: 14px; font-weight: 700; color: var(--ink); }
.aj-sw small, .aj-fila small { font-size: 12px; color: var(--muted); font-weight: 500; }
.aj-sw input { position: absolute; opacity: 0; pointer-events: none; }
.aj-sw i { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #2a2f3c; flex: none; transition: background .2s, box-shadow .2s; }
.aj-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.aj-sw input:checked + i { background: var(--ok); box-shadow: 0 0 14px rgba(61,220,132,.35); }
.aj-sw input:checked + i::after { transform: translateX(20px); }
.aj-sw input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.aj-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 9px 0; flex-wrap: wrap; }
.aj-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.aj-chips button { height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--ink-2); font-weight: 700; font-size: 12.5px; transition: background .15s, color .15s, border-color .15s; }
.aj-chips button:hover { color: var(--ink); border-color: rgba(255,255,255,.28); }
.aj-chips button.on { background: rgba(255,122,47,.16); border-color: var(--accent); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.aj-rango { display: flex; flex-direction: column; gap: 8px; padding: 9px 0; }
.aj-rango > span { display: flex; justify-content: space-between; }
.aj-rango em { font-style: normal; color: var(--muted); font-weight: 700; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.aj-rango input { width: 100%; accent-color: var(--accent); }
.aj-rangos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aj-acciones { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.aj-acciones .btn { margin: 0; }
.aj-pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: rgba(0,0,0,.25); flex-wrap: wrap; }
.modal-aj.voz-off [data-panel="voz"] .aj-grupo > *:not(h3):not(.aj-sw), .modal-aj.voz-off [data-panel="voz"] .aj-grupo:nth-child(2) { opacity: .4; pointer-events: none; }
.modal-aj.son-off #ajSon { opacity: .4; pointer-events: none; }
@media (max-width: 560px) { .aj-rangos { grid-template-columns: 1fr; } .aj-chips { justify-content: flex-start; } .aj-tabs { margin: 0 16px; } .aj-cuerpo, .aj-cab, .aj-pie { padding-left: 16px; padding-right: 16px; } }

/* ---------- planilla semanal ---------- */
.pl-barra { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(300px, 1.4fr) minmax(260px, 1.1fr); gap: 18px; align-items: start; margin-bottom: 16px; }
@media (max-width: 1100px) { .pl-barra { grid-template-columns: minmax(0, 1fr); } }
.pl-nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; }
.pl-nav b { font-family: var(--display); font-size: 15px; text-align: center; }
.pl-nav .link { grid-column: 1 / -1; justify-self: center; }
.pl-nav .ic-btn:disabled { opacity: .35; cursor: default; }
.pl-base small { display: block; margin-top: 6px; font-size: 12px; }
.planilla .sin-wrap { flex-wrap: nowrap; }
.pl-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pl-tabla-card .card-cab { flex-wrap: wrap; }
.pl-grid .card + .card { margin-top: 0; }
@media (max-width: 1360px) { .pl-grid { grid-template-columns: minmax(0, 1fr); } }
.pl-tabla { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pl-f { display: grid; grid-template-columns: 34px minmax(140px, 1.4fr) minmax(120px, 1.2fr) 92px 118px; gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); }
.pl-f:first-child { border-top: 0; }
.pl-cab { background: rgba(245,197,24,.12); font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--amarillo); }
.pl-f.sin { background: rgba(255,181,71,.06); }
.pl-f.sin .pl-precio { border-color: rgba(255,181,71,.5); }
.pl-n { color: var(--muted); font-weight: 800; text-align: center; }
.pl-eq a { display: block; font-weight: 800; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-eq a:hover { color: var(--accent); }
.pl-eq small { display: block; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-fec { color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.der { text-align: right; }
.input.chico { height: 36px; font-size: 13.5px; padding: 0 10px; border-radius: 9px; }
.pl-precio { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.pl-total { background: rgba(255,122,47,.08); font-family: var(--display); font-weight: 800; font-size: 15px; }
.pl-total .der { color: var(--accent); font-size: 18px; }
.pl-pagos { display: flex; gap: 10px 18px; align-items: center; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; color: var(--ink-2); }
.pl-pagos .btn { margin-left: auto; }
.pl-img { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line-2); margin-bottom: 14px; min-height: 120px; display: grid; place-items: center; }
.pl-img img { display: block; width: 100%; height: auto; }
.pl-img .cargando, .pl-img .muted { color: #6b6e75; }
.pl-vista textarea { min-height: 70px; }
.pl-vista .fila { margin-top: 12px; }
@media (max-width: 760px) {
  .pl-cab { display: none; }
  .pl-f { grid-template-columns: 28px minmax(0, 1fr) 120px; }
  .pl-f > span:nth-child(3) { grid-column: 2 / -1; grid-row: 2; }
  .pl-f > .pl-fec { display: none; }
  .pl-total { grid-template-columns: minmax(0, 1fr) auto; } .pl-total > span:empty { display: none; }
}


/* ---------- teléfonos y tablets (iPhone, iPad, Android) ---------- */
/* alto real de la pantalla (sin la barra del navegador) */
.login { min-height: 100dvh; }
.shell { min-height: 100dvh; }
.modal { max-height: calc(100dvh - 40px); }
.modal.modal-aj { height: min(780px, calc(100dvh - 40px)); max-height: calc(100dvh - 40px); }
button, a, select, label, input, textarea, [role="button"] { touch-action: manipulation; }
@media (pointer: coarse) {
  /* iPhone agranda la pantalla al tocar un campo con letra menor a 16 px */
  input, select, textarea, .input, .input.chico, .buscar input { font-size: 16px !important; }
  /* botones cómodos para el dedo */
  .color-op { width: 34px; height: 34px; }
  .colores { gap: 8px; }
  .mover { height: 36px; font-size: 13px; }
  .link { padding: 8px 0; }
  .btn.chico { height: 38px; }
  .lug-x { width: 26px; height: 26px; top: -9px; right: -9px; }
  .ic-btn { width: 44px; height: 44px; }
  .seg button { height: 42px; }
  .seg.chico button { height: 38px; }
  /* sin efectos de "pasar el mouse" que quedan pegados al tocar */
  .ped:hover, .carpeta:hover, .tile:hover, .notif:hover { transform: none; }
}
/* menú del teléfono: todo el panel se desliza, así se ven todas las carpetas */
@media (max-width: 960px) {
  .side { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .side-nav { flex: none; overflow: visible; }
  .side-pie { margin-top: 12px; }
}
@media (max-width: 960px) and (max-height: 600px) { .side-marca { padding-bottom: 10px; } }

/* maqueta del docker de Corel */
.dk { width: min(300px, 100%); margin: 14px auto 18px; border-radius: 10px; overflow: hidden; border: 1px solid #3a3f4d; box-shadow: 0 18px 40px rgba(0,0,0,.45); font-family: "Segoe UI", var(--font); }
.dk-tit { display: flex; justify-content: space-between; padding: 6px 10px; background: #e4e5e9; color: #23252b; font-size: 12px; font-weight: 600; }
.dk-cuerpo { background: #0f1117; padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.dk-cab { display: flex; align-items: center; gap: 8px; }
.dk-cab b { display: block; color: #ff7a2f; font-size: 15px; line-height: 1.1; }
.dk-cab small { color: #7d8497; font-size: 10.5px; }
.dk-cab > div { flex: 1; }
.dk-marca svg { height: 30px; width: auto; display: block; }
.dk-ic { width: 26px; height: 26px; border-radius: 7px; background: #1d212b; border: 1px solid #2a2f3c; display: grid; place-items: center; color: #eef1f7; font-size: 13px; }
.dk-ok { margin: 0; color: #3ddc84; font-size: 11px; }
.dk-busca { border: 1px solid #2a2f3c; background: #171a22; border-radius: 6px; padding: 5px 8px; color: #5f6678; font-size: 11.5px; }
.dk-ped { display: grid; grid-template-columns: 4px 1fr; gap: 9px; padding: 8px; border-radius: 9px; background: #171a22; border: 1px solid #2a2f3c; }
.dk-ped > i { border-radius: 2px; background: var(--emp); }
.dk-ped small { color: #7d8497; font-weight: 700; font-size: 10.5px; }
.dk-ped u { text-decoration: none; background: #f5c518; color: #14100c; border-radius: 4px; padding: 0 5px; font-size: 9px; margin-left: 4px; }
.dk-ped u.c { background: #ffb547; } .dk-ped u.a { background: #3ddc84; }
.dk-ped b { display: block; color: #eef1f7; font-size: 13px; }
.dk-ped span, .dk-ped em { display: block; color: #b6bccb; font-size: 10.5px; font-style: normal; }
.dk-ped em { color: #7d8497; }
.dk-sel .dk-ped { border-color: #ff7a2f; background: #2a1d14; }
.dk-btn { text-align: center; padding: 7px; border-radius: 8px; background: #1d212b; border: 1px solid #2a2f3c; color: #eef1f7; font-size: 12px; font-weight: 600; }
.dk-btn.pri { background: #ff7a2f; border-color: #ff7a2f; color: #14100c; }
.dk-pie { margin: 2px 0 0; color: #7d8497; font-size: 10px; }

/* ---------- diseñadores del taller ---------- */
.chip-dis { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--dis) 14%, transparent); border: 1px solid color-mix(in srgb, var(--dis) 50%, transparent); white-space: nowrap; }
.chip-dis i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; background: var(--dis); color: #0b0b0b; }
.chip-dis.mio { box-shadow: 0 0 14px color-mix(in srgb, var(--dis) 40%, transparent); }
.dis-txt { color: var(--dis); font-weight: 700; }
.tk-dis { display: flex; margin-top: 2px; }
.tk-tomar { height: 30px; border-color: rgba(255,122,47,.5); color: var(--accent); }
.tk-tomar:hover { background: var(--accent); color: var(--accent-ink); }
.asignar { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 6px 0 12px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); }
.asignar svg { width: 16px; height: 16px; color: var(--accent); }
.asignar select { background: transparent; border: 0; color: var(--ink); font-weight: 700; font-size: 13px; height: 36px; padding: 0 4px; }
.asignar select option { background: var(--solido); }
.pt-dis { display: inline-flex !important; align-items: center; gap: 6px; margin-top: 6px; font-size: clamp(11px, .85vw, 14px) !important; font-weight: 800; color: var(--ink) !important; }
.pt-dis i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; background: var(--dis); color: #0b0b0b; }
.dis-av { background: var(--dis); color: #0b0b0b; border: 0; }
.dis-num { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.dis-num b { color: var(--ink); font-family: var(--display); }

/* ---------- fecha prometida y atrasos ---------- */
.plazo { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid currentColor; }
.plazo svg { width: 13px; height: 13px; }
.pl-ok { color: var(--ink-2); border-color: var(--line-2); }
.pl-vence { color: var(--amarillo); background: rgba(245,197,24,.1); }
.pl-atrasado { color: #ff8b97; background: rgba(255,92,108,.12); box-shadow: 0 0 14px rgba(255,92,108,.2); animation: pulsa 2s ease-in-out infinite; }
.t-est { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tk-plazo { display: flex; }
.t-atrasado { color: #fff; background: var(--danger); box-shadow: 0 0 14px rgba(255,92,108,.5); }
.t-vence { color: #1f1500; background: var(--amarillo); }
.chip-res.atr { border-color: rgba(255,92,108,.6); color: #ff8b97; background: rgba(255,92,108,.08); }
.chip-res.venc { border-color: rgba(245,197,24,.5); color: var(--amarillo); }
.campo input[type="date"] { color-scheme: dark; }

/* ---------- notas internas ---------- */
.chat li.nota { align-self: stretch; max-width: 100%; background: rgba(245,197,24,.08); border: 1px dashed rgba(245,197,24,.5); border-radius: 12px; }
.chat li.nota small { color: var(--amarillo); opacity: 1; }
.nota-tog { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.nota-tog em { font-style: normal; }
.nota-tog small { color: var(--muted); font-weight: 600; }
.nota-tog input { position: absolute; opacity: 0; pointer-events: none; }
.nota-tog > span { width: 38px; height: 22px; border-radius: 999px; background: #2a2f3c; position: relative; flex: none; transition: background .2s; }
.nota-tog > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.nota-tog input:checked + span { background: var(--amarillo); }
.nota-tog input:checked + span::after { transform: translateX(16px); }
.nota-tog input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chat-input.es-nota .input { border-color: rgba(245,197,24,.6); background: rgba(245,197,24,.06); }

/* ---------- comparar versiones ---------- */
.modal.modal-comp { width: min(1100px, 100%); }
.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
@media (max-width: 760px) { .comp-grid { grid-template-columns: 1fr; } }
.comp-lado { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.comp-img { position: relative; border-radius: 12px; overflow: hidden; background: #0b0d13; border: 1px solid var(--line); }
.comp-img img { display: block; width: 100%; height: auto; }
.comp-cambios { background: rgba(255,181,71,.07); border: 1px solid rgba(255,181,71,.35); border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.comp-cambios b { color: var(--warn); }
.comp-cambios ol { margin: 6px 0 0; padding-left: 20px; }
.comp-cambios p { margin: 6px 0 0; color: var(--ink-2); }
.comp-nota { margin: 0; font-size: 13px; color: var(--ink-2); font-style: italic; }

/* ---------- historial de planillas ---------- */
.pl-hist { margin-top: 16px; }
.pl-hist .card-cab { flex-wrap: wrap; }
.pl-hist-lista { display: flex; flex-direction: column; }
.pl-h { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.pl-h:first-child { border-top: 0; }
.pl-h-sem b { display: block; }
.pl-h-sem small { color: var(--muted); font-size: 12px; }
.pl-h-tot { font-family: var(--display); font-variant-numeric: tabular-nums; }
.pl-h.enviada .pl-h-tot { color: var(--accent); }
@media (max-width: 760px) { .pl-h { grid-template-columns: minmax(0, 1fr) auto; } .pl-h .pago-pill { justify-self: start; } }

/* ---------- ajustes del taller ---------- */
.aj-linea { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: default; }
.aj-linea > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aj-linea b { font-size: 14px; }
.aj-linea small { color: var(--muted); font-size: 12.5px; }
.aj-linea + .fila { margin-top: 14px; }
.aj-num { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 700; flex: none; }
.aj-num .input { width: 76px; text-align: center; }
label.aj-linea { cursor: pointer; }
.switch-g { position: relative; flex: none; }
.switch-g input { position: absolute; opacity: 0; pointer-events: none; }
.switch-g i { display: block; width: 46px; height: 26px; border-radius: 999px; background: #2a2f3c; position: relative; transition: background .2s, box-shadow .2s; }
.switch-g i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch-g input:checked + i { background: var(--ok); box-shadow: 0 0 14px rgba(61,220,132,.35); }
.switch-g input:checked + i::after { transform: translateX(20px); }
.switch-g input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- copias de seguridad ---------- */
.respaldo h2 { display: flex; align-items: center; gap: 8px; }
.respaldo h2 svg { width: 18px; height: 18px; color: var(--accent); }
.rsp-estado { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; margin-bottom: 10px; border: 1px solid; }
.rsp-estado.ok { border-color: rgba(61,220,132,.4); background: rgba(61,220,132,.07); }
.rsp-estado.ok b { color: var(--ok); }
.rsp-estado.viejo { border-color: rgba(245,197,24,.4); background: rgba(245,197,24,.06); }
.rsp-estado.viejo b { color: var(--amarillo); }
.rsp-estado small { color: var(--ink-2); }
.respaldo code { background: rgba(0,0,0,.35); color: var(--ink-2); padding: 1px 6px; border-radius: 6px; font-size: 12px; overflow-wrap: anywhere; }
.rsp-lista { list-style: none; margin: 14px 0 0; padding: 0; }
.rsp-lista li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.rsp-lista li span { flex: 1; }
.rsp-lista small { color: var(--muted); }

/* ---------- equipo en la pantalla taller ---------- */
.pt-equipo { padding: clamp(10px, .9vw, 14px) clamp(12px, 1vw, 16px); border-bottom: 1px solid var(--line); }
.pt-equipo h2 { padding: 0 0 8px !important; border: 0 !important; font-size: clamp(14px, 1.05vw, 18px) !important; }
.pt-equipo ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pt-equipo li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px; align-items: center; }
.eq-pos { font-family: var(--display); font-weight: 800; color: var(--muted); width: 16px; text-align: center; }
.pt-equipo li:first-child .eq-pos { color: var(--amarillo); }
.eq-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--dis); color: #0b0b0b; font-weight: 800; font-size: 12px; }
.pt-equipo li b { display: block; font-size: clamp(12px, .95vw, 15px); }
.pt-equipo li small { display: block; color: var(--ink-2); font-size: clamp(10.5px, .78vw, 12.5px); }
.pt-equipo li small em { color: #ff8b97; font-style: normal; font-weight: 800; }
.pt-equipo li i { display: block; height: 4px; border-radius: 4px; background: var(--dis); margin-top: 4px; min-width: 4px; box-shadow: 0 0 10px color-mix(in srgb, var(--dis) 50%, transparent); }

/* planilla: resumen semanal por cliente */
.pl-clientes { margin-bottom: 16px; }
.pl-clientes .sub { margin: -4px 0 10px; }
.pl-cli-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.pl-cli { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n t" "n p"; gap: 4px 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--borde, rgba(255,255,255,.08)); border-left: 4px solid var(--emp, #ff7a2f); background: rgba(255,255,255,.02); color: inherit; font: inherit; cursor: pointer; min-width: 0; }
.pl-cli:hover { background: rgba(255,255,255,.05); }
.pl-cli.act { background: color-mix(in srgb, var(--emp, #ff7a2f) 14%, transparent); border-color: var(--emp, #ff7a2f); }
.pl-cli.vacia { opacity: .55; }
.pl-cli-n { grid-area: n; display: flex; flex-direction: column; min-width: 0; }
.pl-cli-n b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-cli-n small { color: var(--muted, #9aa0ad); font-size: 12px; }
.pl-cli-n .punto { display: none; }
.pl-cli-t { grid-area: t; text-align: right; white-space: nowrap; }
.pl-cli .pago-pill { grid-area: p; justify-self: end; font-size: 11px; }
.pago-pill.p-sin { background: rgba(255,122,47,.15); color: #ff9a5c; }
.pago-pill.p-nada { background: rgba(255,255,255,.06); color: var(--muted, #9aa0ad); }
