@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');.fd-root { min-height:100vh; background:var(--fd-bg); color:var(--fd-text); font-family:'Inter', var(--font-body); display:flex; flex-direction:column; }

/* Header */
.fd-header { display:flex; align-items:center; justify-content:space-between; padding:0 clamp(20px,5vw,60px); height:60px; background:#fff; border-bottom:1px solid var(--fd-border); position:sticky; top:0; z-index:10; box-shadow:0 1px 4px rgba(0,0,0,.05); }
.fd-logo { display:flex; align-items:center; gap:12px; }
.fd-logo-icon { width:36px; height:40px; border-radius:9px; background:var(--fd-accent); color:#fff; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.fd-logo-name { display:block; font-size:14px; font-weight:700; color:var(--fd-text); }
.fd-logo-org { display:block; font-size:10px; color:var(--fd-muted); text-transform:uppercase; letter-spacing:.6px; }
.fd-agent-link { font-size:13px; color:var(--fd-accent); font-weight:500; }
.fd-agent-link:hover { text-decoration:underline; }

/* Page wrapper — centra el contenido con max-width */
.fd-page-wrap { width:100%; max-width:1200px; margin:0 auto; padding:0 clamp(20px,5vw,60px); flex:1; }

/* Hero */
.fd-hero { padding:52px 0 36px; }
.fd-hero-badge { display:inline-flex; align-items:center; padding:5px 14px; border-radius:20px; background:var(--fd-accent-lt); color:var(--fd-accent); font-size:12px; font-weight:600; letter-spacing:.3px; margin-bottom:18px; border:1px solid rgba(0,133,202,.15); }
.fd-hero-title { font-family:var(--font-body); font-size:clamp(30px,4vw,52px); font-weight:700; line-height:1.2; letter-spacing:-.5px; margin-bottom:14px; color:var(--fd-text); }
.fd-hero-title em { font-style:normal; color:var(--fd-accent); }
.fd-hero-sub { font-size:clamp(14px,1.5vw,16px); color:var(--fd-muted); line-height:1.75; max-width:560px; }

/* Main layout — 2 columnas en desktop, 1 en móvil */
.fd-main { display:grid; grid-template-columns:1fr 300px; gap:28px; padding-bottom:60px; align-items:start; }
@media(max-width:900px) { .fd-main { grid-template-columns:1fr; } .fd-aside { display:none; } }

/* Form */
.fd-form { background:#fff; border-radius:var(--radius); border:1px solid var(--fd-border); box-shadow:0 2px 12px rgba(0,0,0,.04); overflow:hidden; }
.fd-form-header { padding:20px 24px 16px; }
.fd-form-header h2 { font-size:17px; font-weight:700; color:var(--fd-text); margin-bottom:3px; }
.fd-form-header p { font-size:12px; color:var(--fd-muted); }
.fd-req { color:var(--fd-danger); }
.fd-section { padding:20px 28px 0; }
.fd-section-title { font-size:10px; font-weight:700; letter-spacing:.8px; text-transform:uppercase; color:var(--fd-muted); margin-bottom:16px; }
.fd-optional { font-weight:400; text-transform:none; letter-spacing:0; font-size:11px; }
.fd-row2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media(max-width:540px) { .fd-row2 { grid-template-columns:1fr; } }
/* ── Campos con label en borde (DS FUNIBER) ─────────── */
.fd-field { display:flex; flex-direction:column; gap:6px; position:relative; }
.fd-field > span { font-size:13px; font-weight:500; color:var(--fd-text); }

.fd-input {
  height:40px;
  padding:0 12px;
  border:1.5px solid var(--fd-border);
  border-radius:var(--radius-sm);
  font-size:13px;
  background:#fff;
  color:var(--fd-text);
  outline:none;
  transition:border-color .15s, box-shadow .15s;
  width:100%;
}
.fd-input:focus { border-color:var(--fd-accent); box-shadow:0 0 0 3px rgba(0,133,202,.08); }
.fd-input::placeholder { color:#B8BEC9; }
.fd-textarea { padding:10px 12px; border:1.5px solid var(--fd-border); border-radius:var(--radius-sm); font-size:13px; background:#fff; color:var(--fd-text); outline:none; resize:vertical; transition:border-color .15s, box-shadow .15s; width:100%; line-height:1.6; }
.fd-textarea:focus { border-color:var(--fd-accent); box-shadow:0 0 0 3px rgba(0,133,202,.1); }
.fd-textarea::placeholder { color:#B8BEC9; }
.fd-hint { font-size:11px; color:var(--fd-muted); }
.fd-error { margin:14px 28px 0; padding:11px 15px; background:#FEF2F2; border:1px solid #FCA5A5; border-radius:var(--radius-sm); color:var(--fd-danger); font-size:13px; }

/* Priorities */
.fd-priorities { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
@media(max-width:520px) { .fd-priorities { grid-template-columns:repeat(2,1fr); } }
.fd-priority-btn { padding:10px; border-radius:var(--radius-sm); border:1.5px solid var(--fd-border); background:#fff; text-align:left; cursor:pointer; transition:all .15s; }
.fd-prio-label { display:block; font-size:13px; font-weight:700; margin-bottom:2px; }
.fd-prio-desc { display:block; font-size:11px; color:var(--fd-muted); }
.fd-priority-btn.active.prio-low    { border-color:#15803D; background:#F0FDF4; }
.fd-priority-btn.active.prio-medium { border-color:#B45309; background:#FFFBEB; }
.fd-priority-btn.active.prio-high   { border-color:var(--una-blue); background:var(--fd-accent-lt); }
.fd-priority-btn.active.prio-critical { border-color:#B91C1C; background:#FEF2F2; }
.prio-low .fd-prio-label    { color:#15803D; }
.prio-medium .fd-prio-label { color:#B45309; }
.prio-high .fd-prio-label   { color:var(--una-blue); }
.prio-critical .fd-prio-label { color:#B91C1C; }

/* Tags */
.fd-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.fd-tag { display:inline-flex; align-items:center; gap:4px; padding:3px 10px; background:var(--fd-accent-lt); color:var(--fd-accent); border-radius:20px; font-size:12px; font-weight:500; border:1px solid rgba(0,133,202,.2); }
.fd-tag button { background:none; border:none; color:inherit; cursor:pointer; font-size:14px; line-height:1; padding:0; }

/* Submit */
.fd-submit { display:flex; align-items:center; justify-content:center; gap:8px; width:calc(100% - 56px); margin:24px 28px 28px; height:36px; background:var(--fd-accent); color:#fff; border-radius:var(--radius-sm); font-size:13px; font-weight:600; cursor:pointer; transition:background .15s; border:none; text-transform:uppercase; letter-spacing:.5px; }
.fd-submit:hover:not(:disabled) { background:var(--fd-accent-h); }
.fd-submit:disabled { opacity:.6; cursor:not-allowed; }
.fd-spinner { width:16px; height:16px; border:2px solid rgba(255,255,255,.3); border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin { to{transform:rotate(360deg);} }

/* Aside */
.fd-aside { display:flex; flex-direction:column; gap:14px; position:sticky; top:76px; }
.fd-aside-card { background:#fff; border-radius:var(--radius); padding:20px 22px; border:1px solid var(--fd-border); }
.fd-aside-card h3 { font-size:14px; font-weight:700; color:var(--fd-text); margin-bottom:12px; }
.fd-aside-card p { font-size:13px; color:var(--fd-muted); line-height:1.65; }
.fd-steps { padding-left:18px; display:flex; flex-direction:column; gap:9px; }
.fd-steps li { font-size:13px; color:var(--fd-muted); line-height:1.55; }
.fd-steps strong { color:var(--fd-text); }
.fd-sla-list { display:flex; flex-direction:column; gap:9px; }
.fd-sla-row { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--fd-text); }
.fd-sla-row span:last-child { margin-left:auto; font-weight:700; }
.fd-sla-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.fd-sla-dot.critical { background:#B91C1C; }
.fd-sla-dot.high     { background:var(--una-blue); }
.fd-sla-dot.medium   { background:#B45309; }
.fd-sla-dot.low      { background:#15803D; }
.fd-track-form { display:flex; gap:8px; margin-top:12px; }
.fd-track-btn { padding:0 8px; height:36px; background:var(--fd-accent); color:#fff; border-radius:var(--radius-sm); font-size:12px; font-weight:600; white-space:nowrap; flex-shrink:0; cursor:pointer; border:none; text-transform:uppercase; letter-spacing:.5px; }

/* Success */
.fd-success { max-width:480px; margin:72px auto; text-align:center; padding:0 24px; }
.fd-success-icon { width:64px; height:64px; border-radius:50%; background:var(--fd-accent-lt); color:var(--fd-accent); font-size:28px; display:flex; align-items:center; justify-content:center; margin:0 auto 20px; border:2px solid rgba(0,133,202,.2); }
.fd-success h1 { font-size:26px; font-weight:700; margin-bottom:12px; letter-spacing:-.3px; }
.fd-success p { color:var(--fd-muted); font-size:15px; margin-bottom:18px; }
.fd-ref-box { display:inline-block; padding:12px 32px; background:#fff; border:2px dashed var(--fd-border); border-radius:var(--radius); font-family:monospace; font-size:22px; font-weight:700; letter-spacing:3px; color:var(--fd-accent); margin-bottom:18px; }
.fd-success-sub { font-size:13px; color:var(--fd-muted); }
.fd-success-actions { display:flex; gap:10px; justify-content:center; margin-top:24px; flex-wrap:wrap; }
.fd-btn-primary { height:36px; padding:0 8px; background:var(--fd-accent); color:#fff; border-radius:var(--radius-sm); font-size:13px; font-weight:600; border:none; cursor:pointer; }
.fd-btn-ghost { height:36px; padding:0 8px; background:transparent; color:var(--fd-text); border:1.5px solid var(--fd-border); border-radius:var(--radius-sm); font-size:13px; cursor:pointer; }

/* Footer */
.fd-footer { text-align:center; padding:20px; font-size:12px; color:var(--fd-muted); border-top:1px solid var(--fd-border); }

/* Track page */
.fd-track-wrapper { max-width:620px; margin:60px auto; padding:0 24px; }
.fd-track-loading,.fd-track-error { text-align:center; padding:40px; color:var(--fd-muted); }
.fd-track-error h2 { font-size:22px; margin-bottom:8px; color:var(--fd-text); }
.fd-ticket-card { background:#fff; border-radius:var(--radius); box-shadow:var(--shadow); padding:30px; border:1px solid var(--fd-border); }
.fd-tc-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; flex-wrap:wrap; gap:8px; }
.fd-tc-ref { font-family:monospace; font-size:12px; font-weight:700; color:var(--fd-muted); margin-right:8px; }
.fd-tc-status { padding:3px 10px; border-radius:20px; font-size:11px; font-weight:600; }
.fd-tc-prio { font-size:12px; color:var(--fd-muted); }
.fd-tc-title { font-size:20px; font-weight:700; margin-bottom:10px; letter-spacing:-.2px; }
.fd-tc-desc { font-size:14px; color:var(--fd-muted); line-height:1.7; margin-bottom:18px; }
.fd-tc-meta { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; padding:16px 0; border-top:1px solid var(--fd-border); border-bottom:1px solid var(--fd-border); margin-bottom:14px; }
.fd-tc-meta div { display:flex; flex-direction:column; gap:3px; }
.fd-tc-meta span { font-size:10px; text-transform:uppercase; letter-spacing:.4px; color:var(--fd-muted); }
.fd-tc-meta strong { font-size:14px; color:var(--fd-text); }
.fd-tc-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.fd-tc-resolved { margin-top:16px; padding:11px 15px; background:#F0FDF4; border:1px solid #86EFAC; border-radius:var(--radius-sm); color:#15803D; font-size:13px; font-weight:500; }

/* Device info panel */
.fd-device-panel { margin:20px 28px 0; padding:14px 16px; background:var(--fd-accent-lt); border:1px solid rgba(0,133,202,.2); border-radius:var(--radius-sm); }
.fd-device-title { font-size:11px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; color:var(--fd-accent); margin-bottom:10px; display:flex; align-items:center; gap:6px; }
.fd-device-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px,1fr)); gap:6px; }
.fd-device-item { display:flex; flex-direction:column; gap:1px; }
.fd-device-label { font-size:10px; font-weight:600; color:var(--fd-muted); letter-spacing:.3px; text-transform:uppercase; }
.fd-device-val { font-size:12px; color:var(--fd-text); font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fd-device-val.loading { color:var(--fd-muted); font-style:italic; }
.fd-device-note { font-size:11px; color:var(--fd-muted); margin-top:8px; padding-top:8px; border-top:1px solid rgba(0,133,202,.15); }

/* Device panel */
.fd-device-panel { margin:16px 28px 0; padding:14px 16px; background:var(--fd-accent-lt); border:1px solid rgba(0,133,202,.2); border-radius:var(--radius-sm); }
.fd-device-panel.fd-device-agent { background:#F0FDF4; border-color:rgba(21,128,61,.25); }
.fd-device-title { font-size:11px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; color:var(--fd-accent); margin-bottom:12px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.fd-device-panel.fd-device-agent .fd-device-title { color:#15803D; }
.fd-device-badge-ok   { font-size:10px; font-weight:600; padding:2px 8px; background:#DCFCE7; color:#15803D; border-radius:10px; border:1px solid #86EFAC; text-transform:none; letter-spacing:0; }
.fd-device-badge-warn { font-size:10px; font-weight:600; padding:2px 8px; background:#FEF9C3; color:#854D0E; border-radius:10px; border:1px solid #FDE047; text-transform:none; letter-spacing:0; }
.fd-device-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(180px,1fr)); gap:10px; }
.fd-device-item { display:flex; flex-direction:column; gap:2px; }
.fd-device-label { font-size:10px; font-weight:600; color:var(--fd-muted); letter-spacing:.3px; text-transform:uppercase; }
.fd-device-val { font-size:12px; color:var(--fd-text); font-weight:500; }
.fd-device-val.loading { color:var(--fd-muted); font-style:italic; }
.fd-device-val.empty   { color:#B8BEC9; }
.fd-device-val.highlight { font-size:13px; font-weight:700; color:var(--fd-accent); font-family:monospace; }
.fd-device-panel.fd-device-agent .fd-device-val.highlight { color:#15803D; }
.fd-device-note { font-size:11px; color:var(--fd-muted); margin-top:10px; padding-top:10px; border-top:1px solid rgba(0,133,202,.15); line-height:1.6; }

/* ===== TRACK DETAIL ===== */
.fd-track-wrapper { max-width:900px; margin:0 auto; padding:40px 24px 60px; }
.fd-track-loading { display:flex; align-items:center; justify-content:center; padding:80px 0; }
.fd-track-error { text-align:center; padding:60px 0; }
.fd-track-error h2 { font-size:22px; font-weight:700; margin-bottom:16px; }
.fd-track-error p { color:var(--fd-muted); font-size:14px; }

.fd-track-detail { display:flex; flex-direction:column; gap:24px; }

.fd-track-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.fd-track-head-left { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }

/* Timeline */
.fd-timeline-wrap { background:#fff; border:1px solid var(--fd-border); border-radius:var(--radius); padding:24px 28px; }
.fd-timeline-title { font-size:13px; font-weight:700; color:var(--fd-text); margin-bottom:20px; }
.fd-timeline { display:flex; flex-direction:column; gap:0; }
.fd-timeline-item { display:flex; gap:16px; }
.fd-timeline-left { display:flex; flex-direction:column; align-items:center; width:32px; flex-shrink:0; }
.fd-tl-dot { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; border:2px solid var(--fd-border); background:#fff; color:var(--fd-muted); font-weight:700; }
.fd-tl-dot.done    { background:var(--fd-accent); border-color:var(--fd-accent); color:#fff; font-size:13px; }
.fd-tl-dot.current { background:var(--fd-accent-lt); border-color:var(--fd-accent); color:var(--fd-accent); font-size:16px; }
.fd-tl-dot.pending { background:#F9FAFB; border-color:#E5E7EB; color:#D1D5DB; }
.fd-tl-line { width:2px; flex:1; min-height:20px; background:var(--fd-border); margin:2px 0; }
.fd-tl-line.done { background:var(--fd-accent); }
.fd-timeline-right { padding:4px 0 24px; }
.fd-tl-label { font-size:14px; font-weight:600; color:var(--fd-text); }
.fd-tl-label.current { color:var(--fd-accent); }
.fd-tl-label.pending { color:#9CA3AF; }
.fd-tl-desc { font-size:12px; color:var(--fd-muted); margin-top:2px; }

/* Meta grid */
.fd-track-meta { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:16px; background:#fff; border:1px solid var(--fd-border); border-radius:var(--radius); padding:20px 24px; }
.fd-track-meta > div { display:flex; flex-direction:column; gap:3px; }
.fd-tc-meta-label { font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:.5px; color:var(--fd-muted); }
.fd-track-meta strong { font-size:13px; color:var(--fd-text); }

/* Comentarios públicos */
.fd-comments-section { background:#fff; border:1px solid var(--fd-border); border-radius:var(--radius); overflow:hidden; }
.fd-comments-title { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:700; padding:18px 24px; border-bottom:1px solid var(--fd-border); }
.fd-comments-count { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; background:var(--fd-accent-lt); color:var(--fd-accent); border-radius:50%; font-size:11px; font-weight:700; }
.fd-comments-empty { padding:32px 24px; text-align:center; color:var(--fd-muted); font-size:13px; line-height:1.6; }
.fd-comments-list { display:flex; flex-direction:column; }
.fd-comment-public { display:flex; gap:12px; padding:16px 24px; border-bottom:1px solid var(--fd-border); }
.fd-comment-public:last-child { border-bottom:none; }
.fd-comment-pub-avatar { width:36px; height:40px; border-radius:50%; background:var(--fd-accent); color:#fff; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; flex-shrink:0; }
.fd-comment-pub-body { flex:1; }
.fd-comment-pub-header { display:flex; align-items:center; gap:8px; margin-bottom:6px; flex-wrap:wrap; }
.fd-comment-pub-author { font-size:13px; font-weight:600; color:var(--fd-text); }
.fd-comment-pub-role { font-size:11px; padding:1px 7px; background:var(--fd-accent-lt); color:var(--fd-accent); border-radius:10px; font-weight:500; }
.fd-comment-pub-time { font-size:11px; color:var(--fd-muted); margin-left:auto; }
.fd-comment-pub-text { font-size:13px; color:var(--fd-text); line-height:1.65; }

/* Resuelto */
.fd-track-resolved { padding:16px 20px; background:#F0FDF4; border:1px solid #86EFAC; border-radius:var(--radius); font-size:13px; color:#15803D; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.fd-track-resolved-link { font-weight:600; color:#15803D; text-decoration:underline; }
/* ===== TIMELINE HORIZONTAL ===== */
.fd-timeline-wrap { background:#fff; border:1px solid var(--fd-border); border-radius:var(--radius); padding:24px 28px; }
.fd-timeline-title { font-size:13px; font-weight:700; color:var(--fd-text); margin-bottom:24px; }

.fd-timeline {
  display: flex;
  align-items: flex-start;
  position: relative;
}

.fd-timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  min-width: 0;
}

/* Línea entre puntos */
.fd-timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--fd-border);
  z-index: 0;
}
.fd-timeline-item.done:not(:last-child)::after,
.fd-timeline-item.current:not(:last-child)::after {
  background: var(--fd-accent);
}

/* Ocultar elementos de la estructura vertical antigua */
.fd-timeline-left { display: none; }
.fd-tl-line       { display: none; }

.fd-tl-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  border: 2px solid var(--fd-border);
  background: #fff; color: #D1D5DB;
  position: relative; z-index: 1;
  margin-bottom: 10px; flex-shrink: 0;
}
.fd-tl-dot.done    { background: var(--fd-accent); border-color: var(--fd-accent); color: #fff; }
.fd-tl-dot.current { background: var(--una-blue-lt); border-color: var(--fd-accent); color: var(--fd-accent); font-size: 16px; }
.fd-tl-dot.pending { background: #F9FAFB; border-color: #E5E7EB; color: #D1D5DB; }

.fd-timeline-right { text-align: center; padding: 0 4px; width: 100%; }
.fd-tl-label { font-size: 12px; font-weight: 600; color: var(--fd-text); }
.fd-tl-label.current { color: var(--fd-accent); }
.fd-tl-label.pending { color: #9CA3AF; font-weight: 400; }
.fd-tl-desc { font-size: 11px; color: var(--fd-muted); margin-top: 2px; line-height: 1.4; }

@media(max-width:500px) {
  .fd-tl-dot { width:26px; height:26px; font-size:11px; }
  .fd-tl-label { font-size:10px; }
  .fd-tl-desc { display:none; }
}

/* ── Layout dos cards ─────────────────────────────────── */
.fd-two-col {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  flex: 1;
  padding: 24px clamp(16px, 4vw, 48px);
  align-items: stretch;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 860px) {
  .fd-two-col { grid-template-columns: 1fr; }
  .fd-col-left  { order: 2; display: none; }
  .fd-col-right { order: 1; }
}

@media (max-width: 600px) {
  /* Cards de impacto: 2 columnas en móvil en vez de 4 */
  .fd-impact-grid  { grid-template-columns: repeat(2, 1fr) !important; }
  /* Cards de AI suggestion: 1 columna */
  .fd-ai-grid      { grid-template-columns: 1fr !important; }
  /* Formulario — padding reducido */
  .fd-card-main    { border-radius: 0 !important; }
  .fd-form-section { padding: 16px !important; }
  /* Textarea y inputs — evitar overflow */
  .fd-textarea, .fd-input { font-size: 16px !important; } /* evita zoom en iOS */
  /* Padding general del formulario */
  .fd-form-header  { padding: 14px 16px !important; }
}

.fd-card {
  background: #ffffff;
  border-radius: 12px;
  border: none;
  overflow: hidden;
}

.fd-card-side {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: 'Inter', sans-serif;
}

.fd-card-main {
  /* sin padding — el form ya lo gestiona internamente */
}

.fd-side-title {
  font-family: var(--font-body);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.3px;
  margin-bottom: 10px;
  color: var(--fd-text);
}

.fd-side-section {
  padding: 20px 0 14px;
  border-top: 1px solid var(--fd-border);
  margin-top: 0;
}

.fd-side-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--fd-muted);
  margin-bottom: 10px;
}

/* Summary fields en SuccessView */
.fd-summary-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fd-summary-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--fd-muted);
}
.fd-summary-value {
  font-size: 14px;
  color: var(--fd-text);
  font-weight: 500;
}

/* ── AppBar DS FUNIBER ───────────────────────────────── */
.fd-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 48px);
  height: 56px;
  background: #ffffff;
  border-bottom: 2px solid var(--una-blue);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

/* ── Columna izquierda dos cards ─────────────────────── */
.fd-col-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: stretch;
}

.fd-col-left .fd-card:last-child {
  flex: 1;
}

.fd-two-col-track {
  align-items: start;
}

.fd-two-col-track .fd-card {
  height: fit-content;
}

/* Botón outlined DS FUNIBER */
.fd-btn-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 8px;
  border: 1.5px solid #0277BD;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #0277BD;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.fd-btn-outlined:hover { background: #E1F5FE; }
.fd-btn-outlined:active { background: #B3E5FC; }


/* ── Outlined inputs con label en borde (DS FUNIBER) ─── */
.fd-float-wrap {
  position: relative;
  margin-top: 0;
}

.fd-float-label {
  position: absolute;
  left: 10px;
  top: -8px;
  font-size: 11px;
  font-weight: 400;
  color: #9E9E9E;
  pointer-events: none;
  background: #fff;
  padding: 0 3px;
  white-space: nowrap;
  line-height: 1;
}

.fd-float-wrap:focus-within .fd-float-label {
  color: #9E9E9E;
}

.fd-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

/* Ocultar texto secundario del dropbar en móvil */
@media (max-width: 600px) {
  .fd-dropbar-hint { display: none; }
}
.bd-root { display:flex; flex-direction:column; min-height:100vh; background:var(--bd-bg); color:var(--bd-text); font-family:'Inter',var(--font-body); }
.bd-body { display:flex; flex:1; min-height:0; }

/* ---- SIDEBAR ---- */
.bd-sidebar { width:220px; background:#fff; border-right:1px solid var(--bd-border); display:flex; flex-direction:column; flex-shrink:0; height:calc(100vh - 56px); overflow-y:auto; position:sticky; top:56px; box-shadow:1px 0 0 var(--bd-border); }
.bd-sidebar-logo { padding:18px 16px 14px; border-bottom:1px solid var(--bd-border); display:flex; align-items:center; gap:10px; }
.bd-sidebar-icon { width:34px; height:34px; border-radius:9px; background:var(--bd-accent); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.bd-sidebar-title { font-size:14px; font-weight:700; color:var(--bd-text); }
.bd-sidebar-org { font-size:10px; color:var(--bd-muted); letter-spacing:.3px; }
.bd-nav { flex:1; padding:8px 0; }
.bd-nav-item { display:flex; align-items:center; gap:9px; padding:9px 16px; font-size:13px; color:var(--bd-muted); cursor:pointer; text-decoration:none; transition:all .12s; border-left:2px solid transparent; margin:1px 0; }
.bd-nav-item:hover { color:var(--bd-text); background:#F3F4F6; }
.bd-nav-item.active { color:var(--bd-accent); background:#E8F0FE; border-left-color:var(--bd-accent); font-weight:500; }
.bd-nav-sep { height:1px; background:var(--bd-border); margin:6px 14px; }
.bd-sidebar-user { padding:12px 16px; border-top:1px solid var(--bd-border); display:flex; align-items:center; gap:10px; background:#FAFAFA; }
.bd-user-avatar { width:32px; height:32px; border-radius:50%; background:var(--bd-accent); display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; color:#fff; flex-shrink:0; }
.bd-user-name { font-size:12px; font-weight:600; color:var(--bd-text); }
.bd-user-role { font-size:10px; color:var(--bd-muted); }
.bd-logout-btn { margin-left:auto; background:none; color:var(--bd-muted); font-size:11px; border:none; cursor:pointer; padding:4px; }
.bd-logout-btn:hover { color:var(--bd-danger); }

/* ---- MAIN ---- */
.bd-main { flex:1; display:flex; flex-direction:column; overflow-y:auto; min-width:0; }
.bd-appbar { height:56px; background:#fff; border-bottom:2px solid var(--una-blue); display:flex; align-items:center; justify-content:space-between; padding:0 24px; flex-shrink:0; position:sticky; top:0; z-index:100; }
.bd-topbar { display:flex; align-items:center; justify-content:space-between; padding:16px 24px 0; }
.bd-topbar-title { font-size:15px; font-weight:400; color:var(--bd-text); }
.bd-topbar-actions { display:flex; gap:8px; align-items:center; }
.bd-content { flex:1; overflow-y:auto; padding:24px; }

/* ---- STATS ---- */
.bd-stats { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; margin-bottom:24px; }
@media(max-width:1100px){ .bd-stats{ grid-template-columns:repeat(3,1fr); } }
.bd-stat { background:#fff; border:none; border-radius:var(--radius); padding:16px 18px; transition:box-shadow .15s; box-shadow:var(--shadow); }
.bd-stat:hover { box-shadow:var(--shadow-md); }
.bd-stat-label { font-size:11px; font-weight:600; letter-spacing:.4px; color:var(--bd-muted); text-transform:uppercase; margin-bottom:8px; }
.bd-stat-val { font-size:26px; font-weight:700; color:var(--bd-accent); }

/* ---- TABLE ---- */
.bd-table-wrap { background:#fff; border:none; border-radius:var(--radius); overflow:hidden; }
.bd-table-header { padding:14px 18px; border-bottom:1px solid var(--bd-border); display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#FAFAFA; }
.bd-table-title { font-size:13px; font-weight:600; flex:1; color:var(--bd-text); }
.bd-search { height:34px; padding:0 12px; background:#fff; border:1px solid var(--bd-border); border-radius:var(--radius-sm); color:var(--bd-text); font-size:13px; outline:none; width:200px; }
.bd-search:focus { border-color:var(--bd-accent); box-shadow:0 0 0 3px var(--una-blue-lt); }
.bd-select { height:34px; padding:0 10px; background:#fff; border:1px solid var(--bd-border); border-radius:var(--radius-sm); color:var(--bd-text); font-size:12px; outline:none; }
table { width:100%; border-collapse:collapse; }
th { padding:10px 16px; text-align:left; font-size:11px; font-weight:600; letter-spacing:.4px; text-transform:uppercase; color:var(--bd-muted); border-bottom:1px solid var(--bd-border); background:#FAFAFA; white-space:nowrap; }
td { padding:0 16px; height:48px; font-size:13px; border-bottom:1px solid #F3F4F6; color:var(--bd-text); vertical-align:middle; }
tr:last-child td { border-bottom:none; }
tr:hover td { background:#F9FAFB; }
tr { cursor:pointer; }
.bd-ticket-title { font-weight:500; max-width:280px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bd-ticket-ref { font-family:monospace; font-size:11px; color:var(--bd-muted); }
.bd-empty { text-align:center; padding:48px; color:var(--bd-muted); font-size:14px; }

/* ---- BADGES ---- */
/* ---- CHIPS / BADGES — sistema unificado ---- */
.bd-badge { display:inline-flex; align-items:center; gap:4px; height:20px; padding:0 7px; border-radius:20px; font-size:11px; font-weight:600; white-space:nowrap; flex-shrink:0; box-sizing:border-box; }
.bd-level { display:inline-flex; align-items:center; justify-content:center; height:20px; padding:0 7px; border-radius:20px; font-size:11px; font-weight:600; white-space:nowrap; flex-shrink:0; box-sizing:border-box; }

/* ---- BUTTONS ---- */
.bd-btn { display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 8px; border-radius:var(--radius-sm); font-size:12px; font-weight:600; cursor:pointer; transition:all .12s; border:none; }
.bd-btn:hover:not(:disabled) { filter:brightness(.95); transform:translateY(-1px); box-shadow:0 2px 8px rgba(0,0,0,.1); }
.bd-btn:disabled { opacity:.5; cursor:not-allowed; }
.bd-btn-primary { background:var(--bd-accent); color:#fff; }
.bd-btn-danger  { background:#FEF2F2; color:#B91C1C; border:1px solid #FECACA; }
.bd-btn-success { background:#F0FDF4; color:#15803D; border:1px solid #86EFAC; }
.bd-btn-ghost   { background:#fff; color:var(--bd-accent); border:1px solid var(--bd-accent); }
.bd-btn-warning { background:#FFFBEB; color:#B45309; border:1px solid #FDE68A; }

/* ---- TICKET DETAIL ---- */
.bd-detail { display:grid; grid-template-columns:1fr 300px; gap:20px; }
@media(max-width:900px){ .bd-detail{ grid-template-columns:1fr; } }
.bd-detail-main { display:flex; flex-direction:column; gap:16px; }
.bd-card { background:#fff; border:none; border-radius:var(--radius); box-shadow:var(--shadow); }
.bd-card-header { padding:14px 18px; border-bottom:1px solid var(--bd-border); display:flex; align-items:center; justify-content:space-between; gap:12px; background:#FAFAFA; border-radius:var(--radius) var(--radius) 0 0; }
.bd-card-title { font-size:13px; font-weight:600; color:var(--bd-text); }
.bd-card-body { padding:18px; }
.bd-field-label { font-size:10px; font-weight:600; letter-spacing:.5px; text-transform:uppercase; color:var(--bd-muted); margin-bottom:4px; }

/* ---- ESCALATION PATH ---- */
.bd-level-path { display:flex; align-items:center; gap:6px; }
.bd-level-node { display:flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:50%; font-size:11px; font-weight:700; border:2px solid; transition:all .15s; }
.bd-level-line { flex:1; height:2px; }

/* ---- COMMENTS ---- */
.bd-comment-input { flex:1; padding:10px 14px; background:#F9FAFB; border:1.5px solid var(--bd-border); border-radius:var(--radius-sm); color:var(--bd-text); font-size:13px; outline:none; resize:none; min-height:120px; width:100%; line-height:1.6; }
.bd-comment-input:focus { border-color:var(--bd-accent); background:#fff; box-shadow:0 0 0 3px var(--una-blue-lt); }
.bd-comment-input::placeholder { color:#B0B7C3; }

/* ---- LOGIN ---- */
.bd-login-root { min-height:100vh; background:var(--bd-bg); display:flex; align-items:center; justify-content:center; padding:20px; }
.bd-login-card { background:#fff; border:1px solid var(--bd-border); border-radius:16px; padding:40px 36px; width:100%; max-width:400px; box-shadow:var(--shadow-md); }

/* ---- AGENTS ---- */
.bd-agents-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px; }
.bd-agent-card { background:#fff; border:1px solid var(--bd-border); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow); }
.bd-agent-head { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.bd-agent-avatar { width:44px; height:40px; border-radius:50%; background:var(--bd-accent); display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; flex-shrink:0; position:relative; color:#fff; }
.bd-agent-status { position:absolute; bottom:0; right:0; width:12px; height:12px; border-radius:50%; border:2px solid #fff; }
.bd-agent-name { font-size:14px; font-weight:600; color:var(--bd-text); }
.bd-agent-role { font-size:11px; color:var(--bd-muted); }
.bd-agent-stats { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.bd-agent-stat { padding:8px 12px; background:#F9FAFB; border-radius:var(--radius-sm); border:1px solid var(--bd-border); }
.bd-agent-stat-label { font-size:10px; color:var(--bd-muted); }
.bd-agent-stat-val { font-size:13px; font-weight:600; margin-top:2px; color:var(--bd-text); }

/* ---- DEVICE GRID ---- */
.bd-device-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.bd-device-item { display:flex; flex-direction:column; gap:3px; }

/* ---- LOADING ---- */
.bd-loading { display:flex; align-items:center; justify-content:center; height:200px; color:var(--bd-muted); font-size:13px; gap:10px; }
.bd-spinner-sm { width:16px; height:16px; border:2px solid #E5E7EB; border-top-color:var(--bd-accent); border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin { to{transform:rotate(360deg);} }


/* ── Página ─────────────────────────────────────────── */

.hd-login-page {
  font-family: 'Inter', sans-serif;
  background-color: #F0F2F5;
  background-image: url('/bg-login.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 16px;
  color-scheme: light;
}

/* ── Card ────────────────────────────────────────────── */

.hd-login-card {
  background-color: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 720px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  color-scheme: light;
}

/* ── Lado izquierdo ──────────────────────────────────── */

.hd-login-left {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  background-color: #ffffff;
  padding-bottom: 48px;
}

.hd-login-icon {
  width: 48px;
  height: 48px;
  background-color: var(--una-blue-lt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.hd-login-service-name {
  font-size: 22px;
  font-weight: 400;
  color: #212121;
  line-height: 32px;
}

.hd-login-service-desc {
  font-size: 14px;
  font-weight: 400;
  color: #9E9E9E;
  line-height: 20px;
}

/* ── Lado derecho ────────────────────────────────────── */

.hd-login-right {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: #ffffff;
  padding-bottom: 48px;
}

.hd-login-title {
  font-size: 22px;
  font-weight: 400;
  color: #212121;
  line-height: 32px;
  margin-bottom: 4px;
}

.hd-login-subtitle {
  font-size: 13px;
  font-weight: 400;
  color: #9E9E9E;
  line-height: 20px;
  margin-bottom: 12px;
}

/* ── Input + botón ───────────────────────────────────── */

.hd-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #E0E0E0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  color-scheme: light;
  transition: border-color 0.15s;
}

.hd-input-wrap:focus-within { border-color: var(--una-blue); }

.hd-input-wrap.error        { border-color: #E57373; }

.hd-input-wrap input {
  flex: 1;
  min-width: 0;
  border: none !important;
  outline: none !important;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  background-color: #ffffff !important;
  color: #424242 !important;
  -webkit-text-fill-color: #424242 !important;
  box-shadow: none !important;
  color-scheme: light;
}

.hd-input-wrap input::placeholder {
  color: #BDBDBD !important;
  -webkit-text-fill-color: #BDBDBD !important;
  opacity: 1;
}

.hd-btn-eye {
  flex-shrink: 0;
  width: 40px;
  background-color: #ffffff !important;
  border: none !important;
  border-left: 1px solid #EEEEEE !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9E9E9E;
}

.hd-btn-eye:hover { color: var(--una-blue); }

.hd-btn-arrow {
  flex-shrink: 0;
  width: 48px;
  background-color: var(--una-blue-h) !important;
  border: none !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}

.hd-btn-arrow:hover:not(:disabled) { background-color: var(--una-blue-h) !important; }

.hd-btn-arrow:disabled { opacity: 0.7; cursor: not-allowed; }

/* ── Error inline ────────────────────────────────────── */

.hd-field-error {
  font-size: 12px;
  font-weight: 400;
  color: #D32F2F;
  margin-top: 5px;
}

/* ── Chip de usuario ─────────────────────────────────── */

.hd-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #F5F5F5;
  border-radius: 20px;
  padding: 4px 10px 4px 6px;
  font-size: 13px;
  font-weight: 400;
  color: #424242;
  margin-bottom: 10px;
  width: fit-content;
}

.hd-chip-avatar {
  width: 22px;
  height: 22px;
  background-color: #E1F5FE;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--una-blue-h);
}

.hd-chip-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  color: #BDBDBD;
  margin-left: 2px;
}

.hd-chip-close:hover { color: #757575; }

/* ── Footer idioma ───────────────────────────────────── */

.hd-login-footer {
  margin-top: 16px;
  font-size: 12px;
  font-weight: 400;
  color: #9E9E9E;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.hd-login-footer:hover { color: #616161; }

/* ── Spinner ─────────────────────────────────────────── */

@keyframes hd-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 560px) {
  .hd-login-card {
    grid-template-columns: 1fr;
  }
  .hd-login-left {
    padding: 32px 28px;
    justify-content: flex-start;
    border-bottom: 1px solid #EEEEEE;
  }
  .hd-login-right {
    padding: 32px 28px;
    justify-content: flex-start;
  }
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Azul corporativo UNEATLANTICO — Pantone Process Blue C */
  --una-blue:    #0085CA;
  --una-blue-h:  #006BA8;
  --una-blue-lt: #E6F4FB;

  /* FrontDesk — claro */
  --fd-bg:       #F5F6F8;
  --fd-surface:  #FFFFFF;
  --fd-text:     #0D1117;
  --fd-muted:    #5A6375;
  --fd-accent:   var(--una-blue);
  --fd-accent-h: var(--una-blue-h);
  --fd-accent-lt:var(--una-blue-lt);
  --fd-border:   #DDE1E7;
  --fd-success:  #15803D;
  --fd-warning:  #B45309;
  --fd-danger:   #B91C1C;

  /* BackDesk — CLARO, no oscuro */
  --bd-bg:       #F5F5F5;
  --bd-surface:  #FFFFFF;
  --bd-surface2: #F7F8FA;
  --bd-text:     #111827;
  --bd-muted:    #6B7280;
  --bd-accent:   var(--una-blue);
  --bd-accent2:  #6366F1;
  --bd-border:   #E5E7EB;
  --bd-success:  #15803D;
  --bd-warning:  #B45309;
  --bd-danger:   #B91C1C;

  --font-body:    'Inter', 'Instrument Sans', sans-serif;
  --font-display: 'Inter', 'Syne', sans-serif;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  --shadow-md:    0 4px 20px rgba(0,0,0,.08);
}

html { font-size: 16px; }
body { font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; }
input, textarea, select { font-family: var(--font-body); }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 2px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* Material Symbols */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}
