﻿
/* El portal conserva los tokens del Taller para reutilizar su estructura.
   Su identidad, recursos y datos pertenecen a Potenciaclick. */
:root {
  --paper: #101216;
  --paper-2: #1b2330;
  --ink: #f6f8fc;
  --navy: #101216;
  --copper: #2563eb;
  --copper-soft: #93b4ff;
  --copper-hover: #1d4ed8;
  --line: #37414f;
  --ok: #9cdbb5;
  --warn: #eac88a;
  --bad: #ffa9ac;
  --muted: #c6cfda;
  --card: #151b24;
  --on-acc: #ffffff;
  --radius-btn: 7px;
  --radius-compact: 16px;
  --radius-card: 24px;
  --pc-body-font: var(--font-inter, "Inter"), Arial, sans-serif;
  --pc-heading-font: var(--font-inter-tight, "Inter Tight"), var(--font-inter, "Inter"), Arial, sans-serif;
}

@theme inline {
  --color-paper: var(--paper);
  --color-paper-2: var(--paper-2);
  --color-ink: var(--ink);
  --color-navy: var(--navy);
  --color-copper: var(--copper);
  --color-copper-soft: var(--copper-soft);
  --color-line: var(--line);
  --color-ok: var(--ok);
  --color-warn: var(--warn);
  --color-bad: var(--bad);
  --color-muted: var(--muted);
  --color-card: var(--card);
  --color-on-acc: var(--on-acc);
  --font-sans: var(--pc-body-font);
  --font-serif: var(--pc-heading-font);
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI", monospace;
}

* { box-sizing: border-box; }
html, body {
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  color-scheme: dark;
  accent-color: var(--copper);
}
body { margin: 0; font-family: var(--pc-body-font); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .serif { font-family: var(--pc-heading-font); letter-spacing: -.025em; line-height: 1.2; }
button, input, select, textarea { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
button:not(:disabled), select, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
input, textarea, select { min-width: 0; color: inherit; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #98a6b9; opacity: 1; }
::selection { background: #2563eb; color: #ffffff; }
:is(button, a, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--copper-soft);
  outline-offset: 3px;
}

/* Botones y campos reutilizados del espacio de clientes. */
.btn, .pa-boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius-btn);
  padding: .6rem .9rem; color: var(--ink); background: var(--card);
  font-size: .875rem; font-weight: 500; line-height: 1.35; text-align: center; text-decoration: none;
  transition: border-color .12s ease, background-color .12s ease;
}
.btn:hover, .pa-boton:hover { border-color: #738196; background: var(--paper-2); }
.pa-boton-principal, .pa-boton.bg-copper, :is(button, a).bg-copper { border-color: var(--copper); background: var(--copper); color: var(--on-acc); }
.pa-boton-principal:hover, .pa-boton.bg-copper:hover, :is(button, a).bg-copper:hover { border-color: var(--copper-hover); background: var(--copper-hover); }
.pa-boton-suave, .btn-secondary { background: transparent; }
.pa-boton-suave:hover { background: var(--paper-2); }
.pa-boton-peligro { color: var(--bad); }
.pa-campo, .pa-input, .pc-field:is(input, textarea, select), .pc-field :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
  width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--paper); padding: .65rem .75rem; color: var(--ink); font-size: .875rem;
}
textarea.pa-campo, textarea.pc-field, .pc-field textarea { min-height: 112px; }
.pa-campo:focus, .pc-field :is(input, textarea, select):focus { border-color: var(--copper-soft); }
.pa-campo[aria-invalid="true"], .pc-field [aria-invalid="true"] { border-color: var(--bad); }
.pa-etiqueta, .pc-field { display: grid; min-width: 0; gap: .4rem; font-size: .875rem; }
.pc-field > span:first-child, .pc-field > label { font-weight: 500; }
.pc-field small { color: var(--muted); font-size: .75rem; }
.pc-field input[type="file"] { padding: .5rem; }
.pc-field input::file-selector-button { margin-right: .7rem; padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 5px; background: var(--paper-2); color: var(--ink); cursor: pointer; }
.pc-field :is(input[type="checkbox"], input[type="radio"]) { width: 18px; height: 18px; }
.pa-kicker { margin: 0; color: var(--copper-soft); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.pa-badge { display: inline-flex; align-items: center; width: fit-content; border: 1px solid var(--line); border-radius: 5px; padding: .2rem .5rem; font-size: .75rem; color: var(--muted); }
.pa-segmentos { display: inline-flex; flex-wrap: wrap; gap: .25rem; border: 1px solid var(--line); border-radius: 8px; padding: .2rem; }
.pa-segmentos button { min-height: 40px; border-radius: 5px; padding: .5rem .8rem; font-size: .875rem; }
.pa-segmentos button[aria-pressed="true"], .pa-segmentos button[aria-selected="true"] { background: var(--copper); color: white; }

/* Mismo ancho compacto y navegación horizontal que la app de referencia. */
.pc-shell { width: calc(100% - 32px); max-width: 48rem; min-width: 0; margin-inline: auto; }
.pc-header { background: var(--card); border-bottom: 1px solid var(--line); }
.pc-header > .pc-shell { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.5rem; padding-block: 1rem .6rem; }
.pc-header .pc-brand { display: flex; align-items: center; gap: .8rem; min-width: 0; text-decoration: none; }
.pc-logo { width: 188px; height: auto; }
.pc-header-title { color: var(--muted); border-left: 1px solid var(--line); padding-left: .8rem; font-size: .75rem; }
.pc-header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.pc-header-actions .pa-boton { min-height: 36px; padding: .4rem .65rem; font-size: .75rem; }
.pc-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1rem; min-width: 0; }
.pc-header .pc-tabs { flex-basis: 100%; }
.pc-tabs :is(a, button) {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 44px; padding: .4rem 0; border: 0; border-bottom: 2px solid transparent;
  background: transparent; color: var(--muted); font-size: .875rem; white-space: nowrap; text-decoration: none;
}
.pc-tabs :is(a, button):hover { color: var(--ink); }
.pc-tabs [aria-current="page"], .pc-tabs [aria-selected="true"], .pc-tabs .is-active { border-bottom-color: var(--copper-soft); color: var(--ink); }
main.pc-shell { padding-block: 1.5rem 3rem; }
.pa-pagina, .pc-page { display: grid; gap: 1.5rem; min-width: 0; }
.pc-page-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.25rem; }
.pc-page-heading h1 { margin: .2rem 0 0; font-size: clamp(1.65rem, 4vw, 2.2rem); font-weight: 700; }
.pc-page-heading p { margin: .55rem 0 0; color: var(--muted); font-size: .875rem; max-width: 52ch; }
.pc-page-heading > div { min-width: 0; }
.pc-page-heading .pa-boton { flex-shrink: 0; }
.pa-panel, .pc-panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.pc-panel { padding: 1.15rem; }
.pc-panel h2 { margin: 0; font-size: 1.1rem; font-weight: 600; }
.pc-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: 1rem; }
.pc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; min-width: 0; }
.pc-grid > * { min-width: 0; }
.pc-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pc-grid--full { grid-column: 1 / -1; }
.pc-summary { padding: .9rem 1rem; }
.pc-summary strong { display: block; margin-top: .3rem; font-family: var(--pc-heading-font); font-size: 1.8rem; line-height: 1.2; }
.pc-summary span { color: var(--muted); font-size: .75rem; }
.pc-list { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.pc-task { display: grid; gap: .8rem; min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.pc-task-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .5rem .8rem; }
.pc-task h3 { margin: 0; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.pc-task p { margin: 0; color: var(--muted); font-size: .875rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.pc-task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; color: var(--muted); font-size: .75rem; }
.pc-task-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pc-task-actions .pa-boton { min-height: 40px; padding: .5rem .7rem; font-size: .8rem; }
.pc-task a:not(.pa-boton) { color: var(--copper-soft); text-underline-offset: 3px; overflow-wrap: anywhere; }
.pc-checklist { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; background: var(--paper); }
.pc-checklist h3 { font-size: 1rem; font-weight: 600; }
.pc-checklist-progress { display: block; width: 100%; height: 6px; margin-top: .6rem; overflow: hidden; border: 0; border-radius: 3px; background: var(--paper-2); }
.pc-checklist-progress::-webkit-progress-bar { background: var(--paper-2); }
.pc-checklist-progress::-webkit-progress-value { background: var(--copper); border-radius: 3px; }
.pc-checklist-progress::-moz-progress-bar { background: var(--copper); border-radius: 3px; }
.pc-checklist-item { display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.pc-checklist-item input { width: 18px; height: 18px; flex-shrink: 0; }
.pc-checklist-item > span:first-of-type { min-width: 0; overflow-wrap: anywhere; }
.pc-checklist-item[data-hecho="true"] { border-color: #385588; background: #18243a; }
.pc-checklist-item:has(input:disabled) { cursor: default; }
.pc-checklist-state { margin-left: auto; color: var(--muted); font-size: .7rem; }
.pc-checklist-item[data-hecho="true"] .pc-checklist-state { color: var(--ok); }
.pc-material-options { display: flex; flex-wrap: wrap; gap: .5rem .85rem; }
.pc-material-options label { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; cursor: pointer; }
.pc-material-options input { width: 18px; height: 18px; }
.pc-media { max-height: 380px; object-fit: contain; background: var(--paper); border-radius: 7px; }
.pc-status { display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; width: fit-content; padding: .18rem .45rem; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: .7rem; font-weight: 500; white-space: nowrap; }
.pc-status--pending, .pc-status[data-status="pendiente"] { color: var(--warn); border-color: #68573c; background: #30291f; }
.pc-status--progress, .pc-status[data-status="en_curso"], .pc-status[data-status="en_progreso"] { color: var(--copper-soft); border-color: #385588; background: #1b2b46; }
.pc-status--review, .pc-status[data-status="en_revision"] { color: #d6c1ff; border-color: #665480; background: #2a2335; }
.pc-status--done, .pc-status[data-status="completada"] { color: var(--ok); border-color: #3b6350; background: #1b3027; }
.pc-status--overdue { color: var(--bad); border-color: #765154; background: #352427; }
.pc-empty { padding: 1.75rem 1rem; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: .875rem; text-align: center; }
.pc-empty strong { display: block; margin-bottom: .3rem; color: var(--ink); font-weight: 500; }
.pc-empty p { margin: .4rem auto 0; max-width: 42ch; }
.pc-error, .pa-error { border: 1px solid #765154; border-radius: 7px; background: #302025; padding: .85rem 1rem; color: var(--bad); font-size: .875rem; overflow-wrap: anywhere; }
.pc-notice { border: 1px solid #385588; border-radius: 7px; background: #18243a; padding: .8rem 1rem; color: var(--muted); font-size: .8rem; }
.pc-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.pc-footer { border-top: 1px solid var(--line); padding-block: 1rem; color: var(--muted); font-size: .72rem; }
.pc-footer .pc-shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

/* Diálogos nativos: foco y backdrop los gestiona el propio navegador. */
.pc-modal, .pa-dialogo {
  width: min(620px, calc(100% - 24px)); max-height: calc(100dvh - 32px); margin: auto;
  overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 0;
  background: var(--card); color: var(--ink); box-shadow: 0 24px 100px #0008;
}
.pc-modal::backdrop, .pa-dialogo::backdrop { background: #07090ed9; }
.pc-modal[open] { display: grid; gap: 0; }
.pc-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.pc-modal-header h2 { margin: .2rem 0; font-size: 1.2rem; }
.pc-modal-header > button { flex-shrink: 0; min-height: 36px; min-width: 36px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.pc-modal-body, .pc-modal form { display: grid; gap: 1rem; padding: 1.2rem; }
.pc-modal-body form { padding: 0; }
.pc-modal-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; padding-top: .5rem; }
.pc-modal-helper { margin: 0; color: var(--muted); font-size: .8rem; }

/* Calendario mensual sin ancho mínimo: también funciona en 320px. */
.pc-calendar-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: .9rem; }
.pc-calendar-toolbar h2 { text-transform: capitalize; }
.pc-calendar-toolbar > div { display: flex; gap: .4rem; }
.pc-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; }
.pc-calendar-label { padding: .25rem 0; color: var(--muted); font-size: .7rem; text-align: center; }
.pc-calendar-day { display: flex; flex-direction: column; gap: .25rem; min-width: 0; min-height: 88px; border: 1px solid var(--line); border-radius: 7px; padding: .45rem; background: var(--paper); text-align: left; }
.pc-calendar-day:hover { border-color: #738196; }
.pc-calendar-day[aria-current="date"] { border-color: var(--copper-soft); }
.pc-calendar-day[aria-pressed="true"], .pc-calendar-day.is-selected { border-color: var(--copper); background: #1b2b46; }
.pc-calendar-day.is-outside { opacity: .4; }
.pc-calendar-number { font-size: .75rem; font-weight: 600; }
.pc-calendar-item { display: block; overflow: hidden; border-radius: 3px; padding: .08rem .2rem; background: #263a60; color: #d8e4ff; font-size: .6rem; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.pc-calendar-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--copper-soft); }

@media (max-width: 640px) {
  .pc-grid { grid-template-columns: minmax(0, 1fr); }
  .pc-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .pc-summary { padding: .75rem .65rem; }
  .pc-summary strong { font-size: 1.5rem; }
  .pc-summary span { font-size: .68rem; }
  .pc-header > .pc-shell { gap: .55rem; padding-top: .85rem; }
  .pc-header-title { display: none; }
  .pc-logo { width: 170px; }
  .pc-tabs { gap: .1rem .9rem; }
  .pc-tabs :is(a, button) { font-size: .8rem; }
  main.pc-shell { padding-top: 1.1rem; }
  .pc-panel { padding: .9rem; }
  .pc-calendar-day { min-height: 60px; padding: .3rem; }
  .pc-calendar-grid { gap: .2rem; }
  .pc-calendar-item { padding: .08rem; font-size: .53rem; }
  .pc-modal-header { padding: .85rem 1rem; }
  .pc-modal-body, .pc-modal form { padding: 1rem; }
  .pc-modal-body form { padding: 0; }
}
@media (max-width: 360px) {
  .pc-shell { width: calc(100% - 24px); }
  .pc-logo { width: 145px; }
  .pc-header-actions { gap: .3rem; }
  .pc-header-actions .pa-boton { padding: .4rem .5rem; font-size: .7rem; }
  .pc-tabs { gap: .1rem .75rem; }
  .pc-tabs :is(a, button) { font-size: .75rem; }
  .pc-task { padding: .8rem; }
  .pc-panel { padding: .75rem; }
  .pc-calendar-day { min-height: 52px; padding: .2rem; }
  .pc-calendar-number { font-size: .68rem; }
  .pc-calendar-label { font-size: .6rem; }
  .pc-summary strong { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}

.stack { display: grid; gap: 1.25rem; }
.stack-sm { display: grid; gap: .75rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; }
label.pa-boton { cursor: pointer; }
.pc-check-linea { display: flex; align-items: flex-start; gap: .55rem; margin-top: .75rem; min-height: 44px; }
.pc-check-linea input { width: 18px; height: 18px; margin-top: .15rem; flex: none; }
.pc-cola-acciones { padding: 0 .75rem .75rem; }
.between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .8rem; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.soft { color: var(--copper-soft); }
.warn { color: var(--warn); }
.w-full { width: 100%; }
.left { text-align: left; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.sr-only:focus { position: static; width: auto; height: auto; margin: 0; clip: auto; padding: .75rem; }
.wordmark { color: var(--ink); font-size: 1.45rem; font-weight: 750; letter-spacing: -.045em; line-height: 1; text-decoration: none; }
.pc-task { width: 100%; text-align: left; cursor: pointer; }
.pc-task:hover { border-color: #738196; }
.pc-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pc-cal-head { padding: .5rem 0; color: var(--muted); font-size: .7rem; text-align: center; text-transform: uppercase; }
.pc-cal-day { min-height: 4.2rem; min-width: 0; border: 0; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--card); color: inherit; text-align: left; padding: .25rem; }
.pc-cal-day.is-out { background: var(--paper); opacity: .55; }
.pc-cal-day.is-on { box-shadow: inset 0 0 0 1px var(--copper); }
.pc-cal-num { display: inline-flex; width: 1.5rem; height: 1.5rem; align-items: center; justify-content: center; border-radius: 999px; font-size: .75rem; font-weight: 650; }
.pc-cal-num.is-today { background: var(--copper); color: white; }
.pc-cal-item { margin: .1rem 0 0; overflow: hidden; color: var(--copper-soft); font-size: .62rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.pc-overlay { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: #07090ed9; padding: 1rem; }
.pc-overlay .pc-modal { position: relative; width: min(620px, 100%); max-height: calc(100dvh - 32px); overflow: auto; }
details summary { cursor: pointer; }
.pc-guion-fila { display: grid; gap: .55rem; }
.pc-guion-fila .pa-boton { justify-self: start; }
[hidden] { display: none !important; }
body[data-acceso="cliente"] .pc-notice { display: none !important; }
body.pc-bloqueado { overflow: hidden; }
.pa-segmentos button { border: 0; background: transparent; color: var(--muted); }
.pa-segmentos button[aria-pressed="true"] { color: #fff; }
.pc-cuenta { color: var(--muted); font-size: .85em; font-weight: 500; }
.pa-segmentos button[aria-pressed="true"] .pc-cuenta { color: #dbe6ff; }
.pc-contador { display: inline-flex; align-items: center; justify-content: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .35rem; border-radius: 999px; background: var(--copper); color: #fff; font-size: .68rem; font-weight: 700; line-height: 1; }
.pc-selector select { min-height: 36px; max-width: 13rem; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); padding: .35rem .6rem; font-size: .8rem; }
.pc-sync { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.pc-sync[data-estado="guardando"] { color: var(--copper-soft); }
.pc-sync:is([data-estado="sin-conexion"], [data-estado="sesion"], [data-estado="error"]) { color: var(--warn); }
.pc-previa { border-bottom: 1px solid #665480; background: #2a2335; color: #e7dcff; font-size: .82rem; }
.pc-previa .pc-shell { padding-block: .55rem; }
.pc-previa .pa-boton { min-height: 36px; padding: .35rem .7rem; font-size: .78rem; }
.pc-callout { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem 1rem; border: 1px solid #385588; border-radius: 10px; background: #18243a; padding: .9rem 1rem; font-size: .875rem; }
.pc-callout p { margin: 0; }
.pc-callout p + p { margin-top: .35rem; }
.pc-callout > div { flex: 1 1 18rem; min-width: 0; }
.pc-callout--warn { border-color: #68573c; background: #2b2519; }
.pc-callout--warn strong { color: var(--warn); }
.pc-callout--ok { border-color: #3b6350; background: #1b3027; }
.pc-callout--ok strong { color: var(--ok); }
.pc-pasos { display: grid; gap: .35rem; margin: .5rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.pc-fila { display: flex; align-items: center; gap: .85rem; width: 100%; min-height: 56px; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: inherit; text-align: left; }
.pc-fila:hover { border-color: #738196; }
.pc-fila .grow { display: grid; gap: .1rem; }
.pc-fila strong { font-weight: 600; overflow-wrap: anywhere; }
.pc-fila .muted { font-size: .78rem; }
.pc-fila-accion { color: var(--copper-soft); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.pc-etiqueta { flex-shrink: 0; min-width: 4.8rem; padding: .2rem .45rem; border-radius: 5px; background: var(--paper-2); color: var(--muted); font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.pc-etiqueta[data-tipo="Guion"] { background: #1b2b46; color: var(--copper-soft); }
.pc-etiqueta[data-tipo="Tarea"] { background: #2a2335; color: #d6c1ff; }
.pc-etiqueta[data-tipo="Nota"] { background: #1b3027; color: var(--ok); }
.pc-etiqueta[data-tipo="Atrasada"] { background: #352427; color: var(--bad); }
.pc-agenda { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.pc-agenda-dia { display: grid; place-items: center; flex-shrink: 0; width: 2.8rem; line-height: 1.15; }
.pc-agenda-dia strong { font-size: 1.15rem; }
.pc-agenda-dia span { color: var(--muted); font-size: .65rem; text-transform: uppercase; }
.pc-cliente { gap: .55rem; }
.pc-avance { display: grid; gap: .5rem; padding: 1rem 1.15rem; }
.pc-extracto { font-size: .82rem; }
.pc-task-head > .muted { font-size: .8rem; }
.pc-modal-footer--partido { justify-content: space-between; align-items: center; }
.pc-modal--ancho, .pc-overlay .pc-modal.pc-modal--ancho { width: min(760px, 100%); }
.pc-summary-titulo { display: flex; align-items: center; gap: .4rem; min-height: 44px; font-family: var(--pc-heading-font); font-size: 1.15rem; font-weight: 600; }
.pc-buscar { flex: 1 1 14rem; max-width: 20rem; }
.pc-cal-marco { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.pc-cal-marco > .pc-cal:first-child { border-bottom: 1px solid var(--line); background: var(--card); }
.pc-cal-item[data-tipo="guion"] { color: var(--copper-soft); }
.pc-cal-item[data-tipo="tarea"] { color: #d6c1ff; }
.pc-cal-item[data-tipo="fecha"] { color: var(--ok); }
.pc-enlace { display: grid; gap: .55rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.pc-enlace input { color: var(--copper-soft); font-size: .78rem; }
.pc-enlace-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pc-nota-titulo { font-size: 1.15rem; font-weight: 600; }
.pc-nota-texto { min-height: 14rem; line-height: 1.6; }

.pc-guion { display: flex; align-items: stretch; gap: .5rem; }
.pc-guion-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: .9rem; padding: .95rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: inherit; text-align: left; }
.pc-guion-main:hover { border-color: #738196; }
.pc-guion[data-estado="ajustes"] .pc-guion-main { border-color: #68573c; }
.pc-guion[data-estado="enviado"] .pc-guion-main { border-color: #665480; }
.pc-guion[data-estado="aprobado"] .pc-guion-main { opacity: .8; }
.pc-guion-num { display: grid; place-items: center; flex-shrink: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--paper-2); font-family: var(--pc-heading-font); font-weight: 700; }
.pc-guion[data-estado="ajustes"] .pc-guion-num { background: #30291f; color: var(--warn); }
.pc-guion[data-estado="enviado"] .pc-guion-num { background: #2a2335; color: #d6c1ff; }
.pc-guion[data-estado="aprobado"] .pc-guion-num { background: #1b3027; color: var(--ok); }
.pc-guion-info { flex: 1; min-width: 0; display: grid; gap: .25rem; }
.pc-guion-info strong { font-size: 1rem; overflow-wrap: anywhere; }
.pc-guion-info > .muted { display: -webkit-box; overflow: hidden; font-size: .82rem; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pc-guion-nota { color: var(--warn); font-size: .82rem; }
.pc-guion-cta { flex-shrink: 0; pointer-events: none; }
.pc-orden { display: flex; flex-direction: column; gap: .3rem; }
.pc-orden button { flex: 1; min-width: 44px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); color: var(--muted); }
.pc-orden button:hover:not(:disabled) { border-color: #738196; color: var(--ink); }
.pc-guion-texto { max-height: 18rem; overflow: auto; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: .95rem; }
.pc-status[data-status="g-por_grabar"] { color: var(--warn); border-color: #68573c; background: #30291f; }
.pc-status[data-status="g-ajustes"] { color: var(--bad); border-color: #765154; background: #352427; }
.pc-status[data-status="g-enviado"] { color: #d6c1ff; border-color: #665480; background: #2a2335; }
.pc-status[data-status="g-aprobado"] { color: var(--ok); border-color: #3b6350; background: #1b3027; }
.pc-pedidos { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.pc-pedidos li { display: flex; align-items: center; gap: .65rem; min-height: 44px; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: .875rem; }
.pc-pedidos li[data-hecho="true"] { border-color: #3b6350; background: #18271f; }
.pc-check { display: grid; place-items: center; flex-shrink: 0; width: 1.35rem; height: 1.35rem; border: 2px solid #738196; border-radius: 50%; color: #0f1a14; font-size: .78rem; font-weight: 800; }
.pc-pedidos li[data-hecho="true"] .pc-check { border-color: var(--ok); background: var(--ok); }
.pc-pedido-tipo { color: var(--muted); font-size: .7rem; }
.pc-indicaciones { margin: 0; padding: .65rem .75rem; border-left: 3px solid var(--copper); border-radius: 0 7px 7px 0; background: #18243a; color: var(--muted); font-size: .82rem; }
.pc-fieldset { margin: 0; padding: .9rem; border: 1px solid var(--line); border-radius: 10px; }
.pc-fieldset legend { padding: 0 .35rem; font-size: .875rem; font-weight: 600; }
.pc-pedido-fila { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 44px; gap: .45rem; }
.pc-pedido-fila :is(select, input) { min-height: 44px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); padding: .5rem .65rem; }
.pc-pedido-fila .pa-boton { padding: 0; }
.pc-archivos { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.pc-archivo { display: grid; gap: .5rem; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.pc-archivo-cabeza { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; }
.pc-archivo-cabeza .grow { display: grid; min-width: 9rem; }
.pc-archivo-cabeza strong { font-size: .85rem; font-weight: 600; overflow-wrap: anywhere; }
.pc-archivo-cabeza .muted { font-size: .72rem; }
.pc-archivo-cabeza .pa-boton { min-height: 36px; padding: .35rem .65rem; font-size: .78rem; }
.pc-archivo-icono { display: grid; place-items: center; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 7px; background: var(--paper-2); color: var(--copper-soft); }
.pc-archivo-media:empty { display: none; }
.pc-archivo-media audio { width: 100%; height: 40px; }
.pc-archivo-media :is(img, video) { max-height: 260px; border-radius: 7px; background: #000; }
.pc-lejos { margin: 0; color: var(--muted); font-size: .75rem; }
.pc-confirmar { gap: .4rem; font-size: .8rem; }

.pc-avisos { position: fixed; left: 50%; bottom: 1rem; z-index: 90; display: grid; gap: .5rem; width: min(26rem, calc(100% - 2rem)); transform: translateX(-50%); pointer-events: none; }
.pc-aviso { padding: .75rem 1rem; border: 1px solid #385588; border-radius: 10px; background: #18243a; color: var(--ink); font-size: .85rem; box-shadow: 0 12px 40px #0009; animation: pc-entra .2s ease-out; transition: opacity .3s, transform .3s; }
.pc-aviso--ok { border-color: #3b6350; background: #1b3027; }
.pc-aviso--warn { border-color: #68573c; background: #30291f; }
.pc-aviso--error { border-color: #765154; background: #352427; }
.pc-aviso.is-saliendo { opacity: 0; transform: translateY(6px); }
@keyframes pc-entra { from { opacity: 0; transform: translateY(8px); } }

.pc-tele { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: #0c0e12; color: #f6f8fc; }
.pc-tele:focus { outline: none; }
.pc-tele-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .75rem 1rem; border-bottom: 1px solid #37414f; background: #151b24; }
.pc-tele-titulo { flex: 1; min-width: 10rem; }
.pc-tele-titulo h1 { margin: 0; font-size: 1.1rem; }
.pc-tele-herr { display: flex; gap: .3rem; }
.pc-tele-herr button { min-width: 44px; min-height: 40px; padding: .3rem .6rem; border: 1px solid #37414f; border-radius: 7px; background: #101216; color: inherit; font-size: .8rem; }
.pc-tele-herr button[aria-pressed="true"] { border-color: var(--copper); background: #1b2b46; }
.pc-tele-estado { display: flex; align-items: center; gap: .6rem; min-height: 40px; padding: .4rem 1rem; border-bottom: 1px solid #262e3a; background: #11161e; color: var(--muted); font-size: .82rem; }
.pc-tele-estado #estado-grabacion { flex: 1; }
.pc-tele-estado:has(#estado-grabacion:empty) { display: none; }
.pc-tele[data-grabando="true"] .pc-tele-estado { background: #2a1517; color: #ffd6d8; }
.pc-cron { margin: 0; color: #ff8a90; font-size: 1.05rem; font-variant-numeric: tabular-nums; font-weight: 700; }
.pc-tele-cuerpo { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); }
.pc-guion-lectura { min-height: 0; overflow: auto; padding: 2rem 1.5rem 40vh; }
.pc-guion-lectura > * { max-width: 40rem; margin-inline: auto; }
.pc-guion-lectura .pc-callout { margin-bottom: 1.5rem; }
.pc-guion-grande p { margin: 0 0 1em; font-weight: 560; letter-spacing: -.015em; line-height: 1.5; overflow-wrap: anywhere; }
.pc-tele-material { min-height: 0; overflow: auto; display: grid; align-content: start; gap: .8rem; padding: 1rem; border-left: 1px solid #37414f; background: #12171f; }
.pc-tele-material h2 { margin: 0; font-size: 1rem; }
.pc-tele-material h3 { margin: .4rem 0 0; font-size: .9rem; }
.pc-tele-pie { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); border-top: 1px solid #37414f; background: #151b24; }
.pc-tele-pie > p { margin: 0; }
.pc-tele-acciones { display: flex; flex: 1; flex-wrap: wrap; gap: .6rem; }
.pc-boton-grande { min-height: 52px; padding-inline: 1.1rem; font-size: .95rem; font-weight: 600; }
.pc-tele-pie label.pa-boton { cursor: pointer; }
.pc-boton-detener { border-color: #ff5d66; background: #ff5d66; color: #fff; }
.pc-boton-detener:hover { border-color: #ff7d84; background: #ff7d84; }
.pc-boton-enviar { margin-left: auto; border-color: #2f9e64; background: #2f9e64; color: #fff; }
.pc-boton-enviar:hover:not(:disabled) { border-color: #37b573; background: #37b573; }
.pc-rec-dot { width: .6rem; height: .6rem; border-radius: 50%; background: #ff5d66; }
.pa-boton-principal .pc-rec-dot { background: #fff; }
#punto-rec { display: inline-block; flex-shrink: 0; width: .7rem; height: .7rem; border-radius: 50%; background: #ff5d66; animation: pc-latido 1s ease-in-out infinite; }
@keyframes pc-latido { 50% { opacity: .35; } }
.pc-confirmar-envio { min-width: 14rem; font-size: .88rem; }

@media (max-width: 760px) {
  .pc-header .pc-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .pc-header .pc-tabs::-webkit-scrollbar { display: none; }
  .pc-tele-cuerpo { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .pc-tele-material { max-height: 28vh; gap: .5rem; padding: .7rem .75rem; border-top: 1px solid #37414f; border-left: 0; }
  .pc-tele-material h2 { font-size: .9rem; }
  .pc-tele .pc-pedidos li { min-height: 36px; padding: .3rem .6rem; font-size: .82rem; }
  .pc-tele .pc-check { width: 1.15rem; height: 1.15rem; }
  .pc-guion-lectura { padding: 1.25rem 1rem 30vh; }
  .pc-tele-bar { gap: .5rem; padding: .5rem .75rem; }
  .pc-tele-bar > .pa-boton { min-height: 40px; padding: .35rem .6rem; }
  .pc-tele-titulo { min-width: 0; }
  .pc-tele-titulo h1 { font-size: 1rem; }
  .pc-tele-herr button { min-height: 36px; }
  .pc-tele-estado { min-height: 34px; padding-block: .3rem; font-size: .75rem; }
  .pc-boton-grande { min-height: 48px; }
  .pc-tele-pie { padding-inline: .75rem; }
  .pc-tele-acciones { width: 100%; }
  .pc-tele-acciones > * { flex: 1 1 auto; }
  .pc-boton-enviar { width: 100%; margin-left: 0; }
  .pc-guion-main { flex-wrap: wrap; gap: .7rem; padding: .85rem; }
  .pc-guion-info { flex-basis: calc(100% - 3.2rem); }
  .pc-guion-cta { width: 100%; }
  .pc-pedido-fila { grid-template-columns: 6.8rem minmax(0, 1fr) 44px; }
  .pc-etiqueta { min-width: 0; }
  .pc-fila-accion { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #punto-rec { animation: none; }
  .pc-aviso { animation: none; }
}
.pc-atencion { display: flex; align-items: center; gap: .5rem; }
.pc-atencion .pc-fila { flex: 1; }
.pc-tema h3, .pc-tema-titulo { margin: 0; font-size: 1rem; }
.pc-task-main { display: grid; gap: .55rem; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.pc-progreso { position: fixed; left: 50%; bottom: 4.5rem; z-index: 80; width: min(24rem, calc(100% - 2rem)); padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); transform: translateX(-50%); }
.pc-progreso p { margin: 0 0 .4rem; font-size: .85rem; }
.pc-progreso progress { width: 100%; }
