/* =========================================================
   BUGDESK — sistema de diseño "ficha de triaje"
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  --bg: #F2F5F3;
  --surface: #FFFFFF;
  --surface-2: #FBFCFB;
  --ink: #16241F;
  --ink-soft: #55655F;
  --ink-faint: #8B9A93;
  --line: #DCE3DF;
  --line-strong: #C3CDC7;

  --teal: #0F3D3E;
  --teal-2: #145252;
  --teal-soft: #E3EEEC;

  /* --- Paleta de gravedad: neón tenue (glow suave sobre fondo claro y translúcido) --- */
  --crit: #FF2E63;
  --crit-text: #C81444;
  --crit-glow: rgba(255,46,99,0.5);
  --crit-tint: rgba(255,46,99,0.1);
  --crit-soft: #FBE7E3;

  --high: #FFB100;
  --high-text: #A66200;
  --high-glow: rgba(255,177,0,0.45);
  --high-tint: rgba(255,177,0,0.12);
  --high-soft: #FBEEDD;

  --med:  #00C2FF;
  --med-text: #0077A6;
  --med-glow: rgba(0,194,255,0.42);
  --med-tint: rgba(0,194,255,0.1);
  --med-soft:  #E2ECF4;

  --low:  #22DD73;
  --low-text: #12924C;
  --low-glow: rgba(34,221,115,0.42);
  --low-tint: rgba(34,221,115,0.12);
  --low-soft:  #E5F0E7;

  --gray: #7C8B85;
  --gray-soft: #EAEFEC;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(15,61,62,0.06), 0 8px 24px -12px rgba(15,61,62,0.14);
  --shadow-pop: 0 12px 40px -12px rgba(15,61,62,0.35);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  background-image:
    radial-gradient(circle at 1.5px 1.5px, rgba(15,61,62,0.06) 1.5px, transparent 0);
  background-size: 28px 28px;
}

a{ color: inherit; }
button{ font-family: inherit; }
:focus-visible{ outline: 2px solid var(--teal); outline-offset: 2px; }

.mono{ font-family: var(--font-mono); }

/* ---------- Topbar (shared) ---------- */
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px 28px;
  background: var(--teal);
  color: #F2F5F3;
}
.topbar__brand{
  display:flex; align-items:center; gap:10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.2px;
}
.topbar__brand .dot{
  width:10px; height:10px; border-radius:50%;
  background: var(--crit);
  box-shadow: 0 0 0 3px rgba(255,46,99,0.25), 0 0 10px 1px var(--crit-glow);
  animation: pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse{
  0%,100%{ box-shadow: 0 0 0 3px rgba(255,46,99,0.25), 0 0 10px 1px var(--crit-glow); }
  50%{ box-shadow: 0 0 0 6px rgba(255,46,99,0.05), 0 0 16px 3px var(--crit-glow); }
}
.topbar__nav{ display:flex; align-items:center; gap:8px; }
.topbar__link{
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(242,245,243,0.82);
  text-decoration:none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.topbar__link:hover{ background: rgba(255,255,255,0.1); color:#fff; }
.topbar__link.is-active{ background: rgba(255,255,255,0.14); color:#fff; }

/* ---------- Layout shells ---------- */
.page{ min-height: 100vh; display:flex; flex-direction:column; }
.wrap{ max-width: 1180px; margin: 0 auto; padding: 0 24px; width:100%; }

/* ---------- Landing (index.html) ---------- */
.hero{
  flex:1; display:flex; align-items:center; justify-content:center;
  padding: 48px 24px;
}
.hero__inner{ max-width: 760px; text-align:center; }
.hero__eyebrow{
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal-2); font-weight: 600;
  display:inline-flex; align-items:center; gap:8px; margin-bottom: 18px;
}
.hero__eyebrow::before{
  content:''; width: 22px; height:1.5px; background: var(--teal-2);
}
.hero h1{
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px);
  font-weight: 700; line-height: 1.08; margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.hero p.lead{
  color: var(--ink-soft); font-size: 17px; max-width: 520px; margin: 0 auto 40px;
}
.choice-grid{
  display:grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align:left;
}
@media (max-width: 640px){ .choice-grid{ grid-template-columns: 1fr; } }

.choice-card{
  position:relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  text-decoration:none; color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow:hidden;
}
.choice-card:hover{ transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-pop); }
.choice-card__tag{
  font-family: var(--font-mono); font-size: 11px; font-weight:600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal-2); background: var(--teal-soft);
  display:inline-block; padding: 4px 9px; border-radius: 999px; margin-bottom: 14px;
}
.choice-card h2{ font-family: var(--font-display); font-size: 21px; margin: 0 0 8px; }
.choice-card p{ color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.choice-card__arrow{
  position:absolute; right: 20px; bottom: 20px; font-size: 20px; color: var(--line-strong);
  transition: transform .18s ease, color .18s ease;
}
.choice-card:hover .choice-card__arrow{ transform: translateX(4px); color: var(--teal); }

/* ---------- Triage tag (signature element) ----------
   Ficha de triaje: la gravedad se lee como un rótulo de neón
   apagado de día — vidrio de color tenue y translúcido sobre
   el fondo claro, con un resplandor (glow) real del mismo tono
   en el borde y el punto. Nada de chips oscuros, nada de degradados. */
.tag{
  --tag-color: var(--gray);
  --tag-text: var(--gray);
  --tag-tint: var(--gray-soft);
  --tag-glow: transparent;
  position: relative;
  display:inline-flex; align-items:center; gap:7px;
  font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--tag-text); background: var(--tag-tint);
  padding: 5px 10px 5px 8px;
  border-radius: 3px 8px 8px 3px;
  border: 1px solid var(--tag-glow);
  border-left: 3px solid var(--tag-color);
  box-shadow: 0 0 10px 0 var(--tag-glow);
}
.tag::before{
  content:''; width:6px; height:6px; border-radius:50%;
  background: var(--tag-color);
  box-shadow: 0 0 6px 2px var(--tag-glow);
  flex-shrink:0;
}
.tag--critical{ --tag-color: var(--crit); --tag-text: var(--crit-text); --tag-tint: var(--crit-tint); --tag-glow: var(--crit-glow); }
.tag--high{ --tag-color: var(--high); --tag-text: var(--high-text); --tag-tint: var(--high-tint); --tag-glow: var(--high-glow); }
.tag--medium{ --tag-color: var(--med); --tag-text: var(--med-text); --tag-tint: var(--med-tint); --tag-glow: var(--med-glow); }
.tag--low{ --tag-color: var(--low); --tag-text: var(--low-text); --tag-tint: var(--low-tint); --tag-glow: var(--low-glow); }

/* status pill */
.pill{
  display:inline-flex; align-items:center; gap:6px;
  font-size: 12px; font-weight: 700;
  padding: 5px 11px; border-radius: 999px;
  font-family: var(--font-body);
}
.pill::before{ content:''; width:7px; height:7px; border-radius:50%; }
.pill--open{ background: var(--teal-soft); color: var(--teal); }
.pill--open::before{ background: var(--teal); }
.pill--in_progress{ background: var(--high-soft); color: #9C5F17; }
.pill--in_progress::before{ background: var(--high); }
.pill--resolved{ background: var(--low-soft); color: #2F6B3D; }
.pill--resolved::before{ background: var(--low); }
.pill--closed{ background: var(--gray-soft); color: var(--gray); }
.pill--closed::before{ background: var(--gray); }

/* ---------- Reportar (tester) ---------- */
.report-shell{
  flex:1; padding: 40px 24px 60px;
}
.report-grid{
  display:grid; grid-template-columns: minmax(0,480px) 1fr; gap: 28px;
  max-width: 1180px; margin: 0 auto; align-items:start;
}
@media (max-width: 900px){ .report-grid{ grid-template-columns: 1fr; } }

.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.card__header{
  padding: 22px 24px 18px;
  border-bottom: 1px dashed var(--line-strong);
}
.card__header h2{ font-family: var(--font-display); font-size: 19px; margin:0 0 4px; }
.card__header p{ margin:0; color: var(--ink-soft); font-size: 13.5px; }
.card__body{ padding: 22px 24px 26px; }

.field{ margin-bottom: 18px; }
.field label{
  display:block; font-size: 12.5px; font-weight: 700; color: var(--ink);
  margin-bottom: 7px; letter-spacing: 0.01em;
}
.field .hint{ font-size: 12px; color: var(--ink-faint); margin-top: 5px; }
.input, .textarea, select.input{
  width: 100%; border: 1.5px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 11px 13px; font-size: 14.5px; color: var(--ink);
  font-family: var(--font-body);
  transition: border-color .15s ease, background .15s ease;
}
.input:focus, .textarea:focus, select.input:focus{
  border-color: var(--teal); background: #fff; outline:none;
}
.textarea{ resize: vertical; min-height: 96px; }

/* ---------- Selector de gravedad: LEDs del monitor ---------- */
.severity-picker{ display:grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.sev-opt{ position:relative; }
.sev-opt input{ position:absolute; opacity:0; inset:0; cursor:pointer; }
.sev-opt span{
  display:flex; flex-direction:column; align-items:center; gap:6px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 4px; font-size: 11.5px; font-weight:700;
  text-transform: uppercase; letter-spacing:0.03em; text-align:center;
  color: var(--ink-soft); background: var(--surface-2);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
}
.sev-opt span::before{ content:''; width:9px; height:9px; border-radius:50%; background: var(--gray); transition: box-shadow .15s ease; }
.sev-opt[data-sev="critical"] span::before{ background: var(--crit); }
.sev-opt[data-sev="high"] span::before{ background: var(--high); }
.sev-opt[data-sev="medium"] span::before{ background: var(--med); }
.sev-opt[data-sev="low"] span::before{ background: var(--low); }

.sev-opt[data-sev="critical"] input:checked + span{ border-color: var(--crit); background: var(--crit-tint); color: var(--crit-text); box-shadow: 0 0 0 1px var(--crit-glow), 0 0 14px var(--crit-glow); }
.sev-opt[data-sev="high"] input:checked + span{ border-color: var(--high); background: var(--high-tint); color: var(--high-text); box-shadow: 0 0 0 1px var(--high-glow), 0 0 14px var(--high-glow); }
.sev-opt[data-sev="medium"] input:checked + span{ border-color: var(--med); background: var(--med-tint); color: var(--med-text); box-shadow: 0 0 0 1px var(--med-glow), 0 0 14px var(--med-glow); }
.sev-opt[data-sev="low"] input:checked + span{ border-color: var(--low); background: var(--low-tint); color: var(--low-text); box-shadow: 0 0 0 1px var(--low-glow), 0 0 14px var(--low-glow); }
.sev-opt input:checked + span::before{ box-shadow: 0 0 7px 2.5px currentColor; }

.sev-opt input:focus-visible + span{ outline: 2px solid var(--teal); outline-offset: 2px; }

.dropzone{
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 22px 16px; text-align:center;
  transition: border-color .15s ease, background .15s ease;
  position:relative;
}
.dropzone:hover, .dropzone.is-drag{ border-color: var(--teal); background: var(--teal-soft); }
.dropzone__input{
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  left: -9999px;
  top: 0;
}
.dropzone__icon{ font-size: 22px; margin-bottom: 6px; color: var(--teal-2); }
.dropzone p{ margin:0; font-size: 13px; color: var(--ink-soft); }
.dropzone p b{ color: var(--teal); }
.dropzone__actions{
  margin-top: 10px;
  display:flex;
  gap: 8px;
  justify-content:center;
  flex-wrap:wrap;
}
.dropzone__actions .btn--ghost{
  background: #fff;
}
.dropzone__actions .btn i{ font-size: 12px; }
.dropzone__hint{ margin-top: 8px !important; font-size: 12px !important; color: var(--ink-faint) !important; }
.dropzone__preview-grid{
  margin-top: 12px;
  display:none;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  text-align:left;
}
.dropzone__preview-grid.is-visible{ display:grid; }
.dropzone__preview-item{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow:hidden;
}
.dropzone__preview-item img{
  width:100%;
  height:110px;
  object-fit:cover;
  display:block;
}
.dropzone__preview-meta{
  padding: 8px;
  display:flex;
  gap: 8px;
  align-items:center;
  justify-content:space-between;
}
.dropzone__preview-meta span{
  font-size: 12px;
  color: var(--ink-soft);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dropzone__preview-meta button{
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 8px;
  cursor:pointer;
}
.dropzone__preview-meta button:hover{
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:none; border-radius: 999px; cursor:pointer;
  font-weight: 700; font-size: 14px; padding: 12px 22px;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
  font-family: var(--font-body);
}
.btn:active{ transform: scale(0.98); }
.btn--primary{ background: var(--teal); color:#fff; box-shadow: 0 6px 18px -6px rgba(15,61,62,0.55); }
.btn--primary:hover{ background: var(--teal-2); }
.btn--block{ width:100%; }
.btn--ghost{ background: transparent; color: var(--ink-soft); border: 1.5px solid var(--line); }
.btn--ghost:hover{ border-color: var(--ink-soft); color: var(--ink); }
.btn--danger{
  background: #fff;
  color: var(--crit);
  border: 1.5px solid rgba(214,67,46,0.35);
}
.btn--danger:hover{
  background: var(--crit-soft);
  border-color: var(--crit);
}
.btn--sm{ padding: 8px 14px; font-size: 12.5px; }
.btn:disabled{ opacity:.55; cursor:not-allowed; }

/* recent tickets list (reportar page) */
.feed__head{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 14px; }
.feed__head h3{ font-family: var(--font-display); font-size: 16px; margin:0; }
.feed__head .live{
  display:inline-flex; align-items:center; gap:6px; font-size: 11.5px; color: var(--ink-faint);
  font-family: var(--font-mono);
}
.live__dot{ width:6px; height:6px; border-radius:50%; background: var(--low); box-shadow: 0 0 6px 1px var(--low-glow); animation: pulse2 1.8s infinite; }
@keyframes pulse2{ 0%,100%{opacity:1;} 50%{opacity:.3;} }

/* ---------- Fila de ticket: mejorada, con acento neón y sin gradientes ---------- */
.ticket-row{
  display:flex; gap:14px; align-items:flex-start;
  background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 14px 14px 0; margin-bottom: 10px; cursor:pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
  overflow:hidden;
  position: relative;
}
.ticket-row:hover{ transform: translateY(-1px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.ticket-row__stripe{
  width:6px; align-self:stretch; border-radius: 0 3px 3px 0; margin-right:4px; flex-shrink:0;
}
.ticket-row__stripe--critical{ background: var(--crit); box-shadow: 1px 0 12px 0 var(--crit-glow); }
.ticket-row__stripe--high{ background: var(--high); box-shadow: 1px 0 12px 0 var(--high-glow); }
.ticket-row__stripe--medium{ background: var(--med); box-shadow: 1px 0 12px 0 var(--med-glow); }
.ticket-row__stripe--low{ background: var(--low); box-shadow: 1px 0 12px 0 var(--low-glow); }
.ticket-row__body{ flex:1; min-width:0; }
.ticket-row__top{ display:flex; align-items:center; gap:9px; margin-bottom:5px; flex-wrap:wrap; }
.ticket-row__id{ font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }
.ticket-row__title{ font-weight: 700; font-size: 14.5px; margin: 2px 0 4px; color: var(--ink); }
.ticket-row__desc{ font-size: 13px; color: var(--ink-soft); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ticket-row__meta{ display:flex; align-items:center; gap:10px; margin-top:8px; font-size: 11.5px; color: var(--ink-faint); font-family: var(--font-mono); }
.ticket-row__meta i{ margin-right: 4px; color: var(--ink-faint); }
.ticket-row__thumb{ width:44px; height:44px; border-radius:8px; object-fit:cover; border:1px solid var(--line); flex-shrink:0; }

.empty-state{
  text-align:center; padding: 40px 20px; color: var(--ink-faint);
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm);
}
.empty-state .glyph{ font-size: 26px; margin-bottom: 8px; color: var(--teal-2); }
.empty-state p{ margin: 0; font-size: 13.5px; }

/* ---------- Panel (developer) ---------- */
.panel-shell{ flex:1; display:flex; min-height: calc(100vh - 68px); }
.panel-side{
  width: 340px; flex-shrink:0; background: var(--teal);
  color: #EAF1EF; display:flex; flex-direction:column;
  border-right: 1px solid rgba(0,0,0,0.15);
}
.panel-side__head{ padding: 18px 18px 12px; }
.panel-side__title{ font-family: var(--font-display); font-weight:700; font-size:14px; margin:0 0 12px; color:#fff; }
.filters{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom: 10px; }
.chip{
  font-family: var(--font-mono); font-size: 11px; font-weight:600;
  padding: 6px 10px; border-radius:999px; cursor:pointer; text-transform:uppercase; letter-spacing:.03em;
  background: rgba(255,255,255,0.08); color: rgba(234,241,239,0.75); border: 1px solid rgba(255,255,255,0.1);
  transition: all .15s ease;
}
.chip:hover{ background: rgba(255,255,255,0.14); }
.chip.is-active{ background: #fff; color: var(--teal); border-color:#fff; }
.search{
  margin: 4px 0 6px;
}
.search input{
  width:100%; padding: 9px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08); color:#fff; font-size:13px; font-family: var(--font-body);
}
.search input::placeholder{ color: rgba(234,241,239,0.5); }
.search input:focus{ outline:none; background: rgba(255,255,255,0.14); }

.panel-list{ flex:1; overflow-y:auto; padding: 4px 10px 16px; }
.plist-item{
  display:flex; gap:10px; align-items:flex-start;
  padding: 12px 10px; border-radius: 10px; cursor:pointer;
  border: 1px solid transparent; margin-bottom:4px;
  transition: background .15s ease;
}
.plist-item:hover{ background: rgba(255,255,255,0.06); }
.plist-item.is-selected{ background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.18); }
.plist-item__dot{ width:8px; height:8px; border-radius:50%; margin-top:6px; flex-shrink:0; }
.plist-item__dot--critical{ background: var(--crit); box-shadow: 0 0 7px 1.5px var(--crit-glow); }
.plist-item__dot--high{ background: var(--high); box-shadow: 0 0 7px 1.5px var(--high-glow); }
.plist-item__dot--medium{ background: var(--med); box-shadow: 0 0 7px 1.5px var(--med-glow); }
.plist-item__dot--low{ background: var(--low); box-shadow: 0 0 7px 1.5px var(--low-glow); }
.plist-item__title{ font-size: 13.5px; font-weight:700; color:#fff; margin:0 0 3px; }
.plist-item__sub{ font-size: 11.5px; color: rgba(234,241,239,0.55); font-family: var(--font-mono); display:flex; gap:8px; }
.plist-item__badge{
  font-size:10px; font-weight:700; padding:2px 7px; border-radius:999px; text-transform:uppercase;
  background: rgba(255,255,255,0.1); color: rgba(234,241,239,0.8); margin-left:auto; flex-shrink:0;
}

.panel-main{ flex:1; min-width:0; background: var(--bg); display:flex; flex-direction:column; }
.panel-main__scroll{ flex:1; overflow-y:auto; padding: 28px 32px 40px; }
.case{ max-width: 860px; }
.case__head{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom: 18px; flex-wrap:wrap; }
.case__id{ font-family: var(--font-mono); color: var(--ink-faint); font-size:12.5px; margin-bottom:6px; }
.case__title{ font-family: var(--font-display); font-size: 24px; margin:0; max-width:520px; }
.case__meta{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:10px; }
.case__reporter{ font-size:12.5px; color: var(--ink-faint); font-family: var(--font-mono); }

.case__actions{
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-select{ position:relative; }
.status-select select{
  appearance:none; border:none; cursor:pointer;
  font-weight:700; font-size:13px; padding: 9px 32px 9px 14px; border-radius:999px;
  background: var(--teal); color:#fff; font-family: var(--font-body);
}
.status-select::after{ content:'▾'; position:absolute; right:12px; top:50%; transform:translateY(-50%); color:#fff; pointer-events:none; font-size:11px; }

.case__desc{
  background: var(--surface); border:1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; font-size: 14.5px; color: var(--ink); margin-bottom: 20px; box-shadow: var(--shadow-card);
  white-space: pre-wrap;
}
.case__image{
  border-radius: var(--radius); overflow:hidden; border:1px solid var(--line); margin-bottom: 24px;
  box-shadow: var(--shadow-card); max-width: 460px; background:#fff;
}
.case__image img{ width:100%; display:block; cursor: zoom-in; }
.case__image figcaption{ padding: 8px 14px; font-size:11.5px; color: var(--ink-faint); font-family: var(--font-mono); }
.case__gallery{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.case__gallery .case__image{
  max-width: none;
  margin-bottom: 0;
}

.thread{ margin-top: 8px; }
.thread__head{ font-family: var(--font-display); font-size:15px; margin: 0 0 12px; }
.msg{ display:flex; gap:10px; margin-bottom: 14px; max-width: 78%; }
.msg--dev{ margin-left:auto; flex-direction:row-reverse; }
.msg__avatar{
  width: 30px; height:30px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; color:#fff;
}
.msg--tester .msg__avatar{ background: var(--med); }
.msg--dev .msg__avatar{ background: var(--teal); }
.msg__bubble{
  background:#fff; border:1px solid var(--line); border-radius: 14px; padding: 10px 14px;
  font-size: 13.5px; box-shadow: var(--shadow-card);
}
.msg--dev .msg__bubble{ background: var(--teal-soft); border-color: transparent; }
.msg__time{ display:block; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); margin-top:5px; }

.composer{ display:flex; gap:10px; margin-top: 16px; }
.composer input{ flex:1; }

.case__placeholder{
  flex:1; display:flex; align-items:center; justify-content:center; text-align:center;
  color: var(--ink-faint); padding: 60px 20px;
}
.case__placeholder .glyph{ font-size: 30px; margin-bottom:10px; }

/* ---------- Login ---------- */
.login-shell{ flex:1; display:flex; align-items:center; justify-content:center; padding: 24px; }
.login-card{ width: 100%; max-width: 380px; }
.login-card h1{ font-family: var(--font-display); font-size:22px; margin: 0 0 6px; }
.login-card p{ color: var(--ink-soft); font-size:13.5px; margin: 0 0 22px; }
.error-msg{ background: var(--crit-soft); color: var(--crit); font-size: 13px; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom:16px; font-weight:600; }

/* ---------- Toast ---------- */
.toast{
  position:fixed; bottom: 24px; left:50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color:#fff; padding: 12px 20px; border-radius: 999px;
  font-size: 13.5px; font-weight:600; box-shadow: var(--shadow-pop);
  opacity:0; pointer-events:none; transition: all .25s ease; z-index: 999;
  display:flex; align-items:center; gap:8px;
}
.toast.is-visible{ opacity:1; transform: translateX(-50%) translateY(0); pointer-events:auto; }
.toast .dot{ width:7px; height:7px; border-radius:50%; background: var(--low); box-shadow: 0 0 6px 1px var(--low-glow); }

/* ---------- Lightbox ---------- */
.lightbox{
  position:fixed; inset:0; background: rgba(11,20,17,0.86); display:none;
  align-items:center; justify-content:center; z-index: 1000; padding: 30px; cursor: zoom-out;
}
.lightbox.is-visible{ display:flex; }
.lightbox img{ max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow-pop); }

/* ---------- Modal (detalle de ticket en reportar.html) ---------- */
.modal-overlay{
  position:fixed; inset:0; background: rgba(11,20,17,0.55);
  display:none; align-items:flex-start; justify-content:center;
  padding: 40px 16px; overflow-y:auto; z-index: 900;
}
.modal-overlay.is-visible{ display:flex; }
.modal-card{
  background: var(--surface); border-radius: var(--radius);
  max-width: 620px; width:100%; box-shadow: var(--shadow-pop);
  animation: modalIn .18s ease;
}
@keyframes modalIn{ from{ opacity:0; transform: translateY(10px);} to{opacity:1; transform:translateY(0);} }
.modal-card__head{
  display:flex; justify-content:space-between; align-items:flex-start; gap:14px;
  padding: 20px 22px 14px; border-bottom: 1px dashed var(--line-strong);
}
.modal-card__close{
  border:none; background: var(--gray-soft); color: var(--ink-soft); width:30px; height:30px;
  border-radius:50%; cursor:pointer; font-size:15px; flex-shrink:0;
}
.modal-card__close:hover{ background: var(--line-strong); }
.modal-card__body{ padding: 18px 22px 22px; }

/* ---------- Footer contact ---------- */
.contact-strip{
  border-top: 1px solid var(--line); padding: 14px 24px; text-align:center;
  font-size: 12.5px; color: var(--ink-faint); background: var(--surface-2);
}
.contact-strip i{ margin-right: 5px; color: var(--teal-2); }
.contact-strip a{ color: var(--teal); font-weight:700; text-decoration:none; font-family: var(--font-mono); }

/* ---------- misc ---------- */
.skeleton{ background: linear-gradient(90deg, var(--line) 25%, var(--surface-2) 50%, var(--line) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer{ 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }

@media (max-width: 800px){
  .panel-shell{ flex-direction:column; }
  .panel-side{ width:100%; max-height: 40vh; }
}

/* ---------- Responsive: móvil ----------
   La mayoría de reportes se van a crear desde el celular,
   así que el formulario manda: inputs a 16px (evita el zoom
   automático de iOS), objetivos táctiles más grandes y menos
   padding para aprovechar el ancho real de pantalla. */
@media (max-width: 640px){
  .topbar{ padding: 14px 16px; flex-wrap: wrap; gap: 10px; }
  .topbar__brand{ font-size: 17px; }
  .topbar__nav{ gap: 4px; }
  .topbar__link{ padding: 7px 10px; font-size: 12.5px; }

  .report-shell{ padding: 20px 12px 40px; }
  .report-grid{ gap: 20px; }

  .card__header{ padding: 18px 16px 14px; }
  .card__header h2{ font-size: 17px; }
  .card__body{ padding: 18px 16px 22px; }

  .input, .textarea, select.input{ font-size: 16px; padding: 12px 13px; }
  .textarea{ min-height: 110px; }

  .severity-picker{ grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sev-opt span{ padding: 12px 4px; font-size: 12px; }

  .dropzone{ padding: 18px 12px; }
  .dropzone__actions{ flex-direction: column; align-items: stretch; }
  .dropzone__actions .btn{ width: 100%; }
  .dropzone__preview-grid{ grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

  .btn{ font-size: 15px; padding: 13px 20px; }

  .feed__head h3{ font-size: 15px; }
  .ticket-row{ padding: 12px 12px 12px 0; gap: 10px; }
  .ticket-row__title{ font-size: 14px; }
  .ticket-row__desc{ white-space: normal; display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .ticket-row__thumb{ width: 38px; height: 38px; }
  .ticket-row__meta{ gap: 8px; flex-wrap: wrap; }

  .tag{ font-size: 10.5px; padding: 5px 8px 5px 7px; }

  .contact-strip{ padding: 12px 16px; font-size: 12px; }

  .modal-overlay{ padding: 0; align-items: flex-end; }
  .modal-card{ max-width: 100%; border-radius: 16px 16px 0 0; max-height: 92vh; overflow-y: auto; }
  .modal-card__head{ padding: 16px 16px 12px; }
  .modal-card__body{ padding: 14px 16px 20px; }

  .lightbox{ padding: 14px; }

  .case__title{ font-size: 20px; max-width: 100%; }
  .panel-main__scroll{ padding: 18px 14px 30px; }
  .msg{ max-width: 90%; }
}