/* ==========================================================================
   Portal de soporte CODE (clientes) — mobile-first.
   Usa los tokens de tokens.css (claro por defecto, oscuro con [data-theme="dark"]).
   ========================================================================== */

.pt-body {
  min-height: 100vh;
  background: var(--bg);
  background-image: radial-gradient(900px 480px at 100% -10%, color-mix(in srgb, var(--brand-teal) 10%, transparent), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, color-mix(in srgb, var(--brand-navy) 6%, transparent), transparent 60%);
  background-attachment: fixed;
}
.pt-boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--ink-3);
  font-size: 13px;
}
.pt-logo-dark,
.pt-login-mark.pt-logo-dark {
  display: none;
}
[data-theme="dark"] .pt-logo-light {
  display: none;
}
[data-theme="dark"] .pt-logo-dark {
  display: block;
}
.is-hidden {
  visibility: hidden;
  pointer-events: none;
}
.pt-fatal,
.pt-error {
  max-width: 520px;
  margin: 12vh auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.pt-error {
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  margin: 24px auto;
}
.pt-error > svg {
  color: var(--danger);
  flex-shrink: 0;
}
.pt-error p {
  color: var(--ink-3);
  margin: 4px 0 12px;
}

/* ---------- Encabezado ---------- */
.pt-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.pt-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.pt-top-in {
  max-width: 1120px;
  margin: 0 auto;
  height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.pt-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none !important;
  flex-shrink: 0;
}
.pt-logo {
  height: 30px;
  width: auto;
}
.pt-brand-sep {
  width: 1px;
  height: 22px;
  background: var(--line-2);
}
.pt-brand-txt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.pt-nav {
  display: none;
  gap: 4px;
  margin-left: 12px;
}
.pt-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none !important;
  transition: background var(--t), color var(--t);
}
.pt-nav a:hover {
  color: var(--ink);
  background: var(--surface-3);
}
.pt-nav a.is-active {
  color: var(--accent-ink);
  background: var(--accent-soft);
}
.pt-top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pt-top-cta span {
  display: none;
}
.pt-top-cta {
  padding: 0 10px;
}
.pt-user {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 8px 0 5px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  transition: border-color var(--t), box-shadow var(--t);
}
.pt-user:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.pt-user-txt {
  display: none;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
  max-width: 180px;
}
.pt-user-txt b {
  font-size: 12.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pt-user-txt small {
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pt-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-contrast);
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-navy));
}
.pt-avatar.sm {
  width: 30px;
  height: 30px;
  font-size: 10.5px;
}
.pt-avatar.lg {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 18px;
}
.pt-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
@media (min-width: 720px) {
  .pt-top-in {
    padding: 0 24px;
    height: 70px;
  }
  .pt-nav {
    display: flex;
  }
  .pt-top-cta {
    padding: 0 14px;
  }
  .pt-top-cta span {
    display: inline;
  }
}
@media (min-width: 1000px) {
  .pt-user-txt {
    display: flex;
  }
}
@media (max-width: 420px) {
  .pt-brand-sep,
  .pt-brand-txt {
    display: none;
  }
}

/* ---------- Contenido y pie ---------- */
.pt-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}
@media (min-width: 720px) {
  .pt-main {
    padding: 30px 24px 56px;
  }
}
.pt-foot {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.pt-foot-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 16px 90px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.pt-foot-help {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-2);
}
.pt-foot-help > svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}
.pt-foot-help b {
  display: block;
  color: var(--ink);
}
.pt-foot-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: space-between;
}
@media (min-width: 720px) {
  .pt-foot-in {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
  }
  .pt-foot-brand {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
  }
}
.pt-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 50;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent-contrast);
  background: var(--success);
  box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--success) 70%, transparent);
  text-decoration: none !important;
  transition: transform 0.25s var(--ease-out);
}
.pt-fab:hover {
  transform: scale(1.06);
}
@media (min-width: 720px) {
  .pt-fab {
    display: none;
  }
}

/* ---------- Piezas comunes ---------- */
.pt-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 14px;
  text-decoration: none !important;
  transition: color var(--t), gap var(--t);
}
.pt-back:hover {
  color: var(--accent-ink);
  gap: 9px;
}
.pt-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.pt-chip-btn span {
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pt-cat-pick {
  --cc: var(--accent);
  color: var(--cc);
  background: color-mix(in srgb, var(--cc) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--cc) 34%, transparent);
  cursor: pointer;
  transition: background var(--t), border-color var(--t);
}
.pt-cat-pick:hover {
  background: color-mix(in srgb, var(--cc) 18%, var(--surface));
}
.pt-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 7px;
  background: var(--surface-3);
  color: var(--ink-2);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pt-num.lg {
  font-size: 13px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  cursor: copy;
}
.pt-pill {
  --c: var(--neutral);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, transparent);
}
.pt-pill.is-nuevo {
  --c: var(--info);
}
.pt-pill.is-abierto {
  --c: var(--ws-personal);
}
.pt-pill.is-en_progreso {
  --c: var(--brand-teal);
}
.pt-pill.is-esperando_cliente {
  --c: var(--warning);
}
.pt-pill.is-resuelto {
  --c: var(--success);
}
.pt-pill.is-cerrado {
  --c: var(--neutral);
}
.pt-banner {
  --c: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  background: color-mix(in srgb, var(--c) 9%, var(--surface));
  color: var(--ink);
  text-decoration: none !important;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
a.pt-banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.pt-banner > svg:first-child {
  color: var(--c);
  flex-shrink: 0;
}
.pt-banner > div {
  flex: 1;
  min-width: 0;
}
.pt-banner b {
  display: block;
  font-size: 14px;
}
.pt-banner span {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
}
.pt-banner.is-warn {
  --c: var(--warning);
}
.pt-banner.is-info {
  --c: var(--info);
}
.pt-banner.is-ok {
  --c: var(--success);
}
.pt-banner.is-urgent {
  --c: var(--danger);
}

/* ---------- Acceso ---------- */
.pt-login {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: radial-gradient(900px 620px at 72% -8%, rgba(57, 147, 158, 0.2), transparent 60%),
    linear-gradient(165deg, #0e3250 0%, #0a1f31 52%, #060f18 100%);
}
.pt-login-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* Circuito animado estilo codesignhn.com: señal que fluye + nodos que laten */
.pt-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 86% 80% at 60% 36%, #000 12%, transparent 80%);
  mask-image: radial-gradient(ellipse 86% 80% at 60% 36%, #000 12%, transparent 80%);
}
.pt-circuit .pt-c-traces use {
  fill: none;
  stroke: rgba(57, 147, 158, 0.3);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pt-circuit .flow {
  fill: none;
  stroke: #7ef0c8;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 6 94;
  filter: drop-shadow(0 0 5px rgba(126, 240, 200, 0.7));
  animation: pt-flow 7s linear infinite;
}
@keyframes pt-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -100; }
}
.pt-circuit .node {
  fill: #39939e;
  transform-box: fill-box;
  transform-origin: center;
  animation: pt-pulse 3.4s ease-in-out infinite;
}
.pt-circuit .node.hot {
  fill: #7ef0c8;
  filter: drop-shadow(0 0 5px rgba(126, 240, 200, 0.75));
}
.pt-circuit .node:nth-child(2n) { animation-delay: -1.1s; }
.pt-circuit .node:nth-child(3n) { animation-delay: -2.3s; }
.pt-circuit .node:nth-child(4n) { animation-delay: -0.6s; }
@keyframes pt-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .pt-circuit .flow { animation: none; stroke-dasharray: none; opacity: 0.55; }
  .pt-circuit .node { animation: none; opacity: 0.85; }
}
.pt-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}
.pt-blob.b1 {
  width: 460px;
  height: 460px;
  left: -120px;
  top: -140px;
  background: color-mix(in srgb, var(--brand-teal) 75%, transparent);
}
.pt-blob.b2 {
  width: 380px;
  height: 380px;
  right: -100px;
  bottom: -80px;
  background: color-mix(in srgb, var(--brand-teal) 55%, transparent);
}
.pt-blob.b3 {
  width: 260px;
  height: 260px;
  right: 28%;
  top: 30%;
  background: color-mix(in srgb, var(--brand-teal) 40%, transparent);
  opacity: 0.35;
}
.pt-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(color-mix(in srgb, var(--sb-ink) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--sb-ink) 6%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 40%, var(--ink) 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, var(--ink) 20%, transparent 75%);
}
.pt-login-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 16px;
  display: grid;
  align-items: center;
  gap: 40px;
}
.pt-login-side {
  display: none;
  color: var(--sb-ink);
}
.pt-login-logo {
  height: 46px;
  width: auto;
  margin-bottom: 34px;
}
.pt-login-side h1 {
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--accent-contrast);
}
.pt-login-side h1 em {
  font-style: normal;
  color: color-mix(in srgb, var(--brand-teal) 70%, var(--accent-contrast));
}
.pt-login-side > p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--sb-ink-2);
  max-width: 44ch;
}
.pt-login-points {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pt-login-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.pt-login-points li span {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: color-mix(in srgb, var(--brand-teal) 60%, var(--accent-contrast));
  background: color-mix(in srgb, var(--accent-contrast) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-contrast) 12%, transparent);
}
.pt-login-points b {
  display: block;
  color: var(--accent-contrast);
  font-size: 14.5px;
}
.pt-login-points small {
  color: var(--sb-ink-2);
  font-size: 13px;
}
.pt-login-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 28px 22px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pt-login-mark {
  height: 38px;
  width: auto;
  align-self: flex-start;
  margin-bottom: 4px;
}
.pt-eyebrow {
  color: var(--accent-ink);
}
.pt-login-card h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-top: -6px;
}
.pt-lead {
  color: var(--ink-3);
  font-size: 14px;
  margin-top: -6px;
}
.pt-login-card .input {
  height: 48px;
  font-size: 15px;
  border-radius: 13px;
}
.pt-pass {
  position: relative;
}
.pt-pass .input {
  padding-right: 46px;
}
.pt-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
}
.pt-eye:hover {
  background: var(--surface-3);
  color: var(--ink);
}
.pt-login-btn {
  margin-top: 4px;
}
.pt-login-help {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
}
.pt-login-help svg {
  color: var(--success);
}
.pt-login-foot {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 16px 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sb-ink-3);
}
@media (min-width: 960px) {
  .pt-login-wrap {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    padding: 48px 32px;
  }
  .pt-login-side {
    display: block;
  }
  .pt-login-card {
    padding: 36px 34px;
  }
  .pt-login-mark {
    display: none !important;
  }
}

/* ---------- Inicio ---------- */
.pt-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 22px;
  padding: 24px 20px;
  border-radius: 26px;
  color: var(--sb-ink);
  background: linear-gradient(140deg, var(--brand-navy) 0%, var(--brand-navy-2) 60%, color-mix(in srgb, var(--brand-teal) 35%, var(--brand-navy-2)) 100%);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.pt-hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pt-hero-deco span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--sb-ink) 14%, transparent);
}
.pt-hero-deco span:nth-child(1) {
  width: 420px;
  height: 420px;
  right: -140px;
  top: -200px;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand-teal) 32%, transparent), transparent 70%);
  border: 0;
}
.pt-hero-deco span:nth-child(2) {
  width: 300px;
  height: 300px;
  right: -60px;
  top: -110px;
}
.pt-hero-deco span:nth-child(3) {
  width: 180px;
  height: 180px;
  left: 40%;
  bottom: -110px;
}
.pt-hero-text {
  position: relative;
}
.pt-hero .pt-chip {
  color: var(--accent-contrast);
  background: color-mix(in srgb, var(--accent-contrast) 10%, transparent);
  border-color: color-mix(in srgb, var(--accent-contrast) 18%, transparent);
}
.pt-hero h1 {
  margin-top: 14px;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--accent-contrast);
}
.pt-wave {
  display: inline-block;
}
.pt-hero p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--sb-ink-2);
  max-width: 56ch;
}
.pt-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.pt-cta {
  --h: 54px;
  padding: 0 22px;
  font-size: 16px;
  border-radius: 15px;
  background: var(--brand-teal);
  box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--brand-teal) 85%, transparent);
  overflow: hidden;
}
.pt-cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--accent-contrast) 30%, transparent), transparent);
  transform: skewX(-20deg);
  animation: pt-shine 4.5s ease-in-out infinite 1.5s;
}
@keyframes pt-shine {
  0%,
  70% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}
.pt-cta-arrow {
  transition: transform 0.25s var(--ease-out);
}
.pt-cta:hover .pt-cta-arrow {
  transform: translateX(4px);
}
.pt-hero-wa {
  --h: 54px;
  color: var(--accent-contrast);
  background: color-mix(in srgb, var(--accent-contrast) 8%, transparent);
}
.pt-hero-wa:hover {
  color: var(--accent-contrast);
  background: color-mix(in srgb, var(--accent-contrast) 16%, transparent);
}
.pt-hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-self: end;
}
.pt-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  color: var(--sb-ink);
  background: color-mix(in srgb, var(--accent-contrast) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-contrast) 12%, transparent);
  text-decoration: none !important;
  transition: background var(--t), transform 0.25s var(--ease-out);
}
.pt-stat:hover {
  background: color-mix(in srgb, var(--accent-contrast) 12%, transparent);
  transform: translateY(-2px);
}
.pt-stat strong {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  color: var(--accent-contrast);
}
.pt-stat small {
  font-size: 11.5px;
  line-height: 1.25;
  color: var(--sb-ink-2);
}
.pt-stat-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.pt-stat-ico.is-open {
  color: color-mix(in srgb, var(--brand-teal) 60%, var(--accent-contrast));
  background: color-mix(in srgb, var(--brand-teal) 25%, transparent);
}
.pt-stat-ico.is-wait {
  color: color-mix(in srgb, var(--warning) 70%, var(--accent-contrast));
  background: color-mix(in srgb, var(--warning) 25%, transparent);
}
.pt-stat-ico.is-done {
  color: color-mix(in srgb, var(--success) 70%, var(--accent-contrast));
  background: color-mix(in srgb, var(--success) 25%, transparent);
}
@media (min-width: 860px) {
  .pt-hero {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    padding: 36px 36px;
    align-items: center;
  }
  .pt-hero h1 {
    font-size: 38px;
  }
  .pt-hero-stats {
    grid-template-columns: 1fr;
  }
  .pt-stat {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
  }
  .pt-stat-ico {
    margin: 0;
  }
  .pt-stat small {
    order: 3;
    font-size: 12.5px;
  }
}
.pt-section {
  margin-top: 30px;
}
.pt-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.pt-sec-head h2 {
  font-size: 21px;
  letter-spacing: -0.02em;
}
.pt-sec-head p {
  color: var(--ink-3);
  font-size: 13.5px;
  margin-top: 2px;
}
.pt-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 720px) {
  .pt-cats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}
.pt-cat {
  --cc: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  color: var(--ink);
  text-decoration: none !important;
  transform-style: preserve-3d;
  transition: border-color var(--t), box-shadow 0.35s var(--ease-out);
  min-width: 0;
}
.pt-cat:hover {
  border-color: color-mix(in srgb, var(--cc) 42%, transparent);
  box-shadow: var(--shadow);
}
.pt-cat-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--cc);
  background: color-mix(in srgb, var(--cc) 14%, var(--surface));
  transition: transform 0.35s var(--ease-out), background var(--t), color var(--t);
}
.pt-cat:hover .pt-cat-ico {
  transform: scale(1.08) rotate(-4deg);
  background: var(--cc);
  color: #fff;
}
.pt-cat-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pt-cat-txt b {
  font-size: 14px;
  line-height: 1.3;
}
.pt-cat-txt small {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.35;
}
.pt-cat-go {
  position: absolute;
  top: 16px;
  right: 14px;
  color: var(--ink-4);
  transition: transform 0.3s var(--ease-out), color var(--t);
}
.pt-cat:hover .pt-cat-go {
  color: var(--accent-ink);
  transform: translateX(3px);
}
.pt-seg {
  flex-shrink: 0;
}
.pt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pt-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none !important;
  transition: border-color var(--t), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.pt-item:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.pt-item.is-unread {
  border-color: var(--accent-line);
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}
.pt-item.is-waiting {
  border-color: color-mix(in srgb, var(--warning) 40%, transparent);
}
.pt-item-ico {
  --c: var(--accent);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
}
.pt-item-ico.is-resuelto,
.pt-item-ico.is-cerrado {
  --c: var(--success);
}
.pt-item-ico.is-esperando_cliente {
  --c: var(--warning);
}
.pt-item-ico.is-nuevo {
  --c: var(--info);
}
.pt-item-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pt-item-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pt-item-title {
  font-size: 15px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pt-item-main small {
  font-size: 12.5px;
  color: var(--ink-3);
}
.pt-new {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-contrast);
  background: var(--accent);
  animation: pt-glow 2.2s ease-in-out infinite;
}
@keyframes pt-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--accent-line);
  }
  50% {
    box-shadow: 0 0 0 5px transparent;
  }
}
.pt-item-go {
  color: var(--ink-4);
  flex-shrink: 0;
}
.pt-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 38px 20px;
  border-radius: 22px;
  border: 1px dashed var(--line-2);
  background: var(--surface);
}
.pt-empty-ico {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  color: var(--accent-ink);
  background: var(--accent-soft);
}
.pt-empty h3 {
  font-size: 17px;
}
.pt-empty p {
  color: var(--ink-3);
  font-size: 13.5px;
  max-width: 44ch;
  margin-bottom: 8px;
}

/* ---------- Asistente "Reportar un problema" ---------- */
.pt-wiz {
  max-width: 820px;
  margin: 0 auto;
}
.pt-wiz-head h1 {
  font-size: 28px;
  letter-spacing: -0.03em;
}
.pt-wiz-head > p {
  color: var(--ink-3);
  margin-top: 6px;
}
.pt-steps {
  position: relative;
  list-style: none;
  margin: 24px 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.pt-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  text-align: center;
}
.pt-step-dot {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 2px solid var(--line-2);
  color: var(--ink-3);
  transition: background 0.35s, border-color 0.35s, color 0.35s, box-shadow 0.35s;
}
/* Número y check ocupan la misma celda: se intercambian (nunca se enciman). */
.pt-step-num,
.pt-step-check {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.pt-step-num {
  font-size: 13px;
  font-weight: 700;
}
.pt-step-check {
  opacity: 0;
  transform: scale(0.4);
  color: var(--accent-contrast);
}
.pt-step-label {
  max-width: 12ch;
  line-height: 1.25;
}
.pt-step.is-current {
  color: var(--ink);
}
.pt-step.is-current .pt-step-dot {
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.pt-step.is-done {
  color: var(--ink-2);
}
.pt-step.is-done .pt-step-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}
.pt-step.is-done .pt-step-num {
  opacity: 0;
  transform: scale(0.4);
}
.pt-step.is-done .pt-step-check {
  opacity: 1;
  transform: scale(1);
}
.pt-steps-track {
  position: absolute;
  left: 16.66%;
  right: 16.66%;
  top: 16px;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
}
.pt-steps-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--success) 55%, var(--accent)));
}
.pt-wiz-card {
  overflow: hidden;
  border-radius: 24px;
  scroll-margin-top: 90px;
}
.pt-stage {
  padding: 22px 18px 6px;
}
@media (min-width: 720px) {
  .pt-stage {
    padding: 30px 30px 10px;
  }
}
.pt-panel-title {
  font-size: 20px;
  letter-spacing: -0.02em;
}
.pt-panel-sub {
  color: var(--ink-3);
  font-size: 13.5px;
  margin-top: 4px;
}
.pt-panel-cat {
  margin-bottom: 12px;
}
.pt-opts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 16px;
}
@media (min-width: 560px) {
  .pt-opts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
.pt-opt {
  --cc: var(--accent);
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--t), background var(--t), box-shadow var(--t), transform 0.18s var(--ease-out);
}
@media (hover: hover) {
  .pt-opt:hover {
    border-color: color-mix(in srgb, var(--cc) 48%, transparent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }
  .pt-opt:hover .pt-opt-ico {
    transform: scale(1.07) rotate(-4deg);
  }
}
.pt-opt:active {
  transform: translateY(0) scale(0.985);
}
.pt-opt.is-on {
  border-color: var(--cc);
  background: color-mix(in srgb, var(--cc) 7%, var(--surface));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cc) 16%, transparent);
}
.pt-opt-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--cc);
  background: color-mix(in srgb, var(--cc) 13%, var(--surface));
  transition: transform 0.35s var(--ease-out), background var(--t), color var(--t);
}
.pt-opt.is-on .pt-opt-ico {
  background: var(--cc);
  color: #fff;
}
.pt-opt-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-right: 22px;
}
.pt-opt-txt b {
  font-size: 14px;
  line-height: 1.3;
}
.pt-opt-txt small {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.35;
}
.pt-opt-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--cc);
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pt-opt.is-on .pt-opt-check {
  transform: scale(1);
}
.pt-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 16px;
}
.pt-form .field > label {
  font-size: 13.5px;
  color: var(--ink);
}
.input-lg {
  height: 50px;
  font-size: 16px;
  border-radius: 13px;
}
.pt-form .textarea {
  font-size: 15px;
  min-height: 150px;
  border-radius: 13px;
}
.pt-form .select {
  height: 48px;
  font-size: 15px;
  border-radius: 13px;
}
.pt-hintline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-3);
}
.pt-hintline span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pt-counter {
  font-family: var(--font-mono);
  font-size: 11px;
}
.pt-counter.is-ok {
  color: var(--success);
}
.pt-urg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 720px) {
  .pt-urg {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.pt-urg-opt {
  --c: var(--neutral);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  text-align: left;
  color: var(--ink);
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.pt-urg-opt.is-media {
  --c: var(--info);
}
.pt-urg-opt.is-alta {
  --c: var(--ws-tecnico);
}
.pt-urg-opt.is-urgente {
  --c: var(--danger);
}
.pt-urg-opt:hover {
  border-color: color-mix(in srgb, var(--c) 45%, transparent);
}
.pt-urg-opt.is-on {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 8%, var(--surface));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 14%, transparent);
}
.pt-urg-check {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--c);
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pt-urg-opt.is-on .pt-urg-check {
  transform: scale(1);
}
.pt-urg-ico {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, transparent);
  margin-bottom: 4px;
}
.pt-urg-opt b {
  font-size: 13.5px;
  line-height: 1.25;
}
.pt-urg-opt small {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.35;
}
.pt-urg-opt em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 6px;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--c);
}
.pt-urg-tag {
  --c: var(--neutral);
  font-weight: 700;
  color: var(--c);
}
.pt-urg-tag.is-media {
  --c: var(--info);
}
.pt-urg-tag.is-alta {
  --c: var(--ws-tecnico);
}
.pt-urg-tag.is-urgente {
  --c: var(--danger);
}
.pt-drop {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 18px;
  border-radius: 20px;
  border: 2px dashed var(--line-2);
  background: var(--surface-2);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease-out);
}
.pt-drop:hover,
.pt-drop:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.pt-drop.is-over {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.01);
}
.pt-drop-ico {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.pt-drop b {
  font-size: 15px;
}
.pt-drop small {
  font-size: 12px;
  color: var(--ink-3);
}
.pt-drop-desk {
  display: none;
}
.pt-drop-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}
@media (hover: hover) and (min-width: 720px) {
  .pt-drop-desk {
    display: block;
  }
  .pt-drop-mob,
  [data-pick-camera] {
    display: none !important;
  }
}
.pt-review {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.pt-review-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 8px;
}
.pt-review-head svg {
  color: var(--accent);
}
.pt-review dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 6px 12px;
  margin: 0;
  font-size: 13px;
}
.pt-review dt {
  color: var(--ink-3);
}
.pt-review dd {
  margin: 0;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pt-review dd svg {
  display: inline;
  vertical-align: -2px;
}
.pt-wiz-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 18px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
@media (min-width: 720px) {
  .pt-wiz-foot {
    padding: 18px 30px 22px;
  }
}
.pt-step-count {
  font-size: 12px;
  color: var(--ink-3);
  display: none;
}
@media (min-width: 560px) {
  .pt-step-count {
    display: inline;
  }
}
.pt-wiz-foot .btn-lg {
  min-width: 150px;
}
.pt-send {
  background: var(--success) !important;
  box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--success) 80%, transparent);
}
.is-hidden-soft {
  opacity: 0.45;
}

/* ---------- Éxito ---------- */
.pt-success-card {
  border-radius: 28px;
}
.pt-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 36px 20px 30px;
}
.pt-check-wrap {
  position: relative;
  width: 120px;
  height: 120px;
}
.pt-check {
  width: 120px;
  height: 120px;
}
.pt-check-ring {
  fill: none;
  stroke: var(--success);
  stroke-width: 3;
  opacity: 0;
}
.pt-check-c {
  fill: color-mix(in srgb, var(--success) 10%, transparent);
  stroke: var(--success);
  stroke-width: 5;
}
.pt-check-p {
  fill: none;
  stroke: var(--success);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pt-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pt-confetti i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4px;
  border-radius: 2px;
  opacity: 0;
}
.pt-confetti i.c0 {
  background: var(--brand-teal);
}
.pt-confetti i.c1 {
  background: var(--ws-tecnico);
  border-radius: 50%;
}
.pt-confetti i.c2 {
  background: var(--ws-hanil);
}
.pt-confetti i.c3 {
  background: var(--ws-personal);
  border-radius: 50%;
}
.pt-confetti i.c4 {
  background: var(--success);
}
.pt-confetti i.c5 {
  background: var(--info);
}
.pt-success h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
}
.pt-ticket-no {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 22px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px dashed var(--line-2);
}
.pt-ticket-no span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pt-ticket-no b {
  font-family: var(--font-mono);
  font-size: 30px;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
}
.pt-expect {
  max-width: 48ch;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}
.pt-success .pt-banner {
  max-width: 480px;
  text-align: left;
  margin: 0;
}
.pt-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

/* ---------- Detalle de solicitud ---------- */
.pt-detail {
  max-width: 860px;
  margin: 0 auto;
}
.pt-dhead {
  margin-bottom: 16px;
}
.pt-dhead-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pt-dhead h1 {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 12px;
}
.pt-dhead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-3);
}
.pt-dhead-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pt-progress {
  padding: 22px 16px 18px;
  margin-bottom: 14px;
  border-radius: 22px;
}
.pt-stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.pt-stepper-track {
  position: absolute;
  left: 16.66%;
  right: 16.66%;
  top: 19px;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
}
.pt-stepper-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--success));
}
.pt-sstep {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  color: var(--ink-3);
}
.pt-sstep-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 2px solid var(--line-2);
  color: var(--ink-4);
}
.pt-sstep b {
  font-size: 13px;
}
.pt-sstep small {
  font-size: 11.5px;
  line-height: 1.3;
  max-width: 16ch;
  min-height: 15px;
}
.pt-sstep.is-done .pt-sstep-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}
.pt-sstep.is-done b,
.pt-sstep.is-current b {
  color: var(--ink);
}
.pt-sstep.is-current .pt-sstep-dot {
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 6px var(--accent-soft);
  animation: pt-ring 2.4s ease-in-out infinite;
}
.pt-sstep.is-current.is-done .pt-sstep-dot {
  background: var(--success);
  border-color: var(--success);
  color: var(--accent-contrast);
  box-shadow: 0 0 0 6px var(--success-soft);
  animation: none;
}
@keyframes pt-ring {
  0%,
  100% {
    box-shadow: 0 0 0 6px var(--accent-soft);
  }
  50% {
    box-shadow: 0 0 0 10px transparent;
  }
}
.pt-conv {
  border-radius: 22px;
  margin-bottom: 14px;
}
.pt-conv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 0;
}
.pt-conv-head h2 {
  font-size: 17px;
}
.pt-thread {
  padding: 16px;
}
@media (min-width: 720px) {
  .pt-thread {
    padding: 18px 22px 22px;
  }
}
.msg-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.msg.me .msg-col {
  align-items: flex-end;
}
.msg-meta b {
  color: var(--ink-2);
  font-weight: 600;
}
.msg-bubble {
  font-size: 14.5px;
  line-height: 1.55;
}
.msg-bubble a {
  word-break: break-all;
}
.msg.pt-support .msg-bubble {
  background: var(--surface);
  border-color: var(--line-2);
  box-shadow: var(--shadow-xs);
}
.msg.system span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: center;
  line-height: 1.4;
}
.msg.system em {
  font-style: normal;
  opacity: 0.7;
}
@media (max-width: 560px) {
  .msg {
    max-width: 100%;
  }
}
.pt-thumb {
  display: block;
  width: 150px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.pt-thumb:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.pt-thumb img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  background: var(--surface-3);
}
.pt-thumb span {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  font-size: 11.5px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pt-reply {
  border-radius: 22px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.pt-reply:focus-within {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.pt-reply.is-waiting {
  border-color: color-mix(in srgb, var(--warning) 45%, transparent);
}
.pt-reply-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 0;
  font-size: 14px;
}
.pt-reply-head svg {
  color: var(--accent);
}
.pt-reply-body {
  position: relative;
  padding: 8px 16px 6px;
}
.pt-reply-text {
  width: 100%;
  min-height: 84px;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}
.pt-reply-text::placeholder {
  color: var(--ink-4);
}
.pt-reply-over {
  position: absolute;
  inset: 4px 10px;
  display: none;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 2px dashed var(--accent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  color: var(--accent-ink);
  pointer-events: none;
}
.pt-reply-body.is-over .pt-reply-over {
  display: grid;
}
.pt-reply-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 12px 10px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.pt-only-mobile {
  display: inline-flex;
}
@media (hover: hover) and (min-width: 720px) {
  .pt-only-mobile {
    display: none;
  }
}
.pt-closed {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px;
  border-radius: 22px;
  color: var(--ink-2);
}
.pt-closed > svg {
  color: var(--ink-3);
}
.pt-closed > div {
  flex: 1 1 240px;
}
.pt-closed b {
  display: block;
  color: var(--ink);
}
.pt-closed span {
  font-size: 13px;
}
.pt-rate {
  border-radius: 22px;
  margin-bottom: 14px;
  padding: 20px 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ws-hanil) 10%, var(--surface)), var(--surface) 60%);
}
.pt-rate-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.pt-rate-q b {
  display: block;
  font-size: 17px;
  font-family: var(--font-display);
}
.pt-rate-q span {
  font-size: 13px;
  color: var(--ink-3);
}
.pt-stars {
  display: flex;
  gap: 4px;
}
.pt-stars button,
.pt-stars span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: var(--line-2);
  transition: color 0.15s, background 0.15s;
}
.pt-stars button:hover {
  background: color-mix(in srgb, var(--ws-hanil) 10%, transparent);
}
.pt-stars .on {
  color: var(--ws-hanil);
}
.pt-stars .on svg {
  fill: currentColor;
}
.pt-stars.is-static span {
  width: 30px;
  height: 30px;
}
.pt-rate-label {
  min-height: 20px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ws-hanil);
}
.pt-rate-form .textarea {
  max-width: 520px;
  min-height: 70px;
}
.pt-rate-done {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.pt-rate-done > div:nth-child(2) {
  flex: 1 1 200px;
}
.pt-rate-done b {
  display: block;
}
.pt-rate-done span {
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- Mi cuenta ---------- */
.pt-narrow {
  max-width: 900px;
  margin: 0 auto;
}
.pt-page-head {
  margin-bottom: 18px;
}
.pt-page-head h1 {
  font-size: 28px;
  letter-spacing: -0.03em;
}
.pt-page-head p {
  color: var(--ink-3);
  margin-top: 4px;
}
.pt-account-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 820px) {
  .pt-account-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
}
.pt-account-card {
  padding: 22px 20px;
  border-radius: 22px;
}
.pt-account-id {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pt-account-id b {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
}
.pt-account-id span {
  font-size: 12.5px;
  color: var(--ink-3);
}
.pt-kv {
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pt-kv dt {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-3);
}
.pt-kv dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.pt-muted-note {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}
.pt-muted-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.pt-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  margin-bottom: 16px;
}
.pt-card-title svg {
  color: var(--accent);
}
.pt-pass-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pt-pass-form .input {
  height: 46px;
}
.pt-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.pt-meter-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: 120px;
  flex-shrink: 0;
}
.pt-meter-bar i {
  height: 5px;
  border-radius: 3px;
  background: var(--surface-3);
  transition: background 0.3s;
}
.pt-meter small {
  font-size: 12px;
  color: var(--ink-3);
}
.pt-meter[data-level="danger"] i.on {
  background: var(--danger);
}
.pt-meter[data-level="warning"] i.on {
  background: var(--warning);
}
.pt-meter[data-level="info"] i.on {
  background: var(--info);
}
.pt-meter[data-level="success"] i.on {
  background: var(--success);
}

/* ---------- Selector de archivos y visor (compartido con el panel Técnico) ---------- */
.fp-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.fp-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 30px 6px 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
}
.fp-item img,
.fp-ico {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.fp-ico {
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.fp-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.fp-meta b {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-meta small {
  font-size: 11px;
  color: var(--ink-3);
}
.fp-x {
  position: absolute;
  top: 50%;
  right: 6px;
  margin-top: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  background: var(--surface-3);
}
.fp-x:hover {
  background: var(--danger);
  color: var(--accent-contrast);
}
.lb {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 20px;
}
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--brand-navy-2) 88%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lb-fig {
  position: relative;
  margin: 0;
  max-width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.lb-fig img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.lb-fig figcaption {
  color: var(--sb-ink);
  font-size: 13px;
}
.lb-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
}
.lb-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--sb-ink);
  background: color-mix(in srgb, var(--sb-ink) 14%, transparent);
  text-decoration: none !important;
}
.lb-btn:hover {
  background: color-mix(in srgb, var(--sb-ink) 26%, transparent);
}

/* ---------- Tema oscuro: ajustes finos ---------- */
[data-theme="dark"] .pt-body {
  background-image: radial-gradient(900px 480px at 100% -10%, color-mix(in srgb, var(--brand-teal) 12%, transparent), transparent 60%);
}
[data-theme="dark"] .pt-login-card {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}
[data-theme="dark"] .pt-hero {
  border: 1px solid var(--line);
}
[data-theme="dark"] .pt-step.is-done .pt-step-dot,
[data-theme="dark"] .pt-sstep.is-done .pt-sstep-dot {
  color: var(--primary-ink);
}

/* ---------- Respeto por "reducir movimiento" (los helpers GSAP ya lo respetan en JS) ---------- */
@media (prefers-reduced-motion: reduce) {
  .pt-opt,
  .pt-opt-ico,
  .pt-cat-ico,
  .pt-opt-check,
  .pt-urg-check,
  .pt-step-dot,
  .pt-step-num,
  .pt-step-check,
  .pt-steps-fill {
    transition: none !important;
  }
  .pt-opt:hover,
  .pt-opt:active,
  .pt-cat:hover .pt-cat-ico,
  .pt-opt:hover .pt-opt-ico {
    transform: none !important;
  }
}

/* Bienvenida animada al entrar al Centro de Soporte */
.pt-welcome {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: calc(100vw - 32px);
  padding: 13px 14px 13px 15px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0e3250, #0a1f31);
  border: 1px solid color-mix(in srgb, var(--brand-teal) 45%, transparent);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .6), 0 0 32px -12px rgba(57, 147, 158, .55);
  color: #eaf3fb;
  cursor: pointer;
}
.pt-welcome-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand-teal) 24%, transparent);
  color: #7ef0c8;
  flex: none;
}
.pt-welcome-txt b { display: block; font-size: 14.5px; font-weight: 700; }
.pt-welcome-txt span { display: block; font-size: 12.5px; opacity: .78; margin-top: 2px; }
.pt-welcome-x {
  background: none;
  border: 0;
  color: inherit;
  opacity: .6;
  cursor: pointer;
  padding: 4px;
  margin-left: 2px;
  flex: none;
}
.pt-welcome-x:hover { opacity: 1; }
