/* ═══════════════════════════════════════════════════════════
   BUZÓN DE ÉTICA — SIES SAPI de C.V.
   Hoja de estilos corporativa
═══════════════════════════════════════════════════════════ */

:root {
  --navy:      #1F3864;
  --navy-soft: #2c4a7c;
  --navy-bg:   #eef2f8;
  --gray-bg:   #F2F2F2;
  --gray-line: #BFBFBF;
  --gray-soft: #E5E5E5;
  --foot:      #595959;
  --ink:       #1a1a1a;
  --ink-soft:  #3d3d3d;
  --muted:     #6a6a6a;
  --white:     #ffffff;
  --paper:     #ffffff;
  --bg:        #fafafa;

  --success: #2E7D32;
  --warning: #E65100;
  --danger:  #C62828;
  --info:    #1565C0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Calibri', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Encabezado corporativo SIES ─────────────────────────── */
.corporate-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.corporate-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 130px 1fr 280px;
  align-items: stretch;
  min-height: 76px;
  border-bottom: 1px solid var(--gray-line);
  border-left: 1px solid var(--gray-line);
  border-right: 1px solid var(--gray-line);
}
.sies-logo {
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 8px;
  border-right: 1px solid var(--gray-line);
}
.sies-logo strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.1;
}
.sies-logo span {
  font-size: 11px;
  margin-top: 2px;
  opacity: 0.95;
}
.doc-title {
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--gray-line);
}
.doc-title h1 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.5px;
  line-height: 1.3;
}
.doc-title .subtitle {
  font-size: 11.5px;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 2px;
}
.doc-meta {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: stretch;
}
.doc-meta-labels {
  background: var(--gray-bg);
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  border-right: 1px solid var(--gray-line);
}
.doc-meta-values {
  padding: 10px 12px;
  font-size: 11px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.top-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  border-left: 1px solid var(--gray-line);
  border-right: 1px solid var(--gray-line);
  background: var(--white);
}

@media (max-width: 760px) {
  .corporate-header-inner {
    grid-template-columns: 90px 1fr;
  }
  .doc-meta { display: none; }
  .doc-title h1 { font-size: 12px; }
}

/* ─── Layout principal ─────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px;
  background: var(--white);
  border-left: 1px solid var(--gray-line);
  border-right: 1px solid var(--gray-line);
  min-height: calc(100vh - 200px);
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px;
  background: var(--white);
  border-left: 1px solid var(--gray-line);
  border-right: 1px solid var(--gray-line);
  min-height: calc(100vh - 200px);
}

.view { display: none; }
.view.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ─── Botones ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border: 1px solid var(--gray-line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border-radius: 0;
}
.btn:hover {
  border-color: var(--navy);
  color: var(--navy);
  text-decoration: none;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-soft);
  border-color: var(--navy-soft);
  color: var(--white);
}
.btn-ghost {
  border-color: transparent;
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--gray-line);
  background: var(--gray-bg);
}
.btn-small { padding: 6px 12px; font-size: 12px; }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: var(--white); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Títulos ──────────────────────────────────────────────── */
h1.page-title, h2.page-title {
  color: var(--navy);
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}
h3.section-title {
  color: var(--navy);
  font-weight: 700;
  font-size: 17px;
  margin: 24px 0 12px;
}

/* ─── Portada ──────────────────────────────────────────────── */
.cover {
  border: 1px solid var(--gray-line);
  background: var(--white);
  padding: 56px 48px;
  margin-bottom: 32px;
  text-align: center;
}
.cover .society {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.cover h1 {
  color: var(--navy);
  font-size: 36px;
  font-weight: 700;
  margin: 16px 0 4px;
  letter-spacing: 0.5px;
}
.cover h1 .accent {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-soft);
  display: block;
  margin-top: 6px;
  letter-spacing: 0;
}
.cover .divider {
  height: 3px;
  background: var(--navy);
  width: 80px;
  margin: 28px auto;
}
.cover p.intro {
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.65;
}
.cover-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ─── Pilares ──────────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border: 1px solid var(--gray-line);
}
.pillar {
  padding: 28px 24px;
  border-right: 1px solid var(--gray-line);
}
.pillar:last-child { border-right: none; }
@media (max-width: 760px) {
  .pillar { border-right: none; border-bottom: 1px solid var(--gray-line); }
  .pillar:last-child { border-bottom: none; }
}
.pillar-num {
  display: inline-block;
  width: 30px;
  height: 30px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  line-height: 30px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
.pillar h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.pillar p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ─── Notas y avisos ───────────────────────────────────────── */
.confidential-note {
  background: var(--navy-bg);
  border-left: 4px solid var(--navy);
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.confidential-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 14px;
}

/* ─── Formulario ───────────────────────────────────────────── */
.form-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-soft);
}
.form-section:last-of-type { border-bottom: none; }
.form-section-header {
  margin-bottom: 18px;
}
.form-section-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.form-section h2 {
  font-size: 18px;
  color: var(--navy);
  font-weight: 700;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.field label .required { color: var(--danger); margin-left: 2px; }
.field .hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--gray-line);
  background: var(--white);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  border-radius: 0;
  transition: border 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(31, 56, 100, 0.1);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

/* Honeypot anti-bot */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Radio cards */
.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
}
.radio-card {
  position: relative;
  border: 1px solid var(--gray-line);
  padding: 12px 14px;
  cursor: pointer;
  background: var(--white);
  transition: all 0.15s;
}
.radio-card:hover { border-color: var(--navy); background: var(--gray-bg); }
.radio-card input { position: absolute; opacity: 0; }
.radio-card-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.radio-card-desc { font-size: 11.5px; color: var(--muted); }
.radio-card:has(input:checked) {
  border-color: var(--navy);
  background: var(--navy-bg);
  border-left: 3px solid var(--navy);
  padding-left: 12px;
}
.radio-card:has(input:checked) .radio-card-title { color: var(--navy); }

/* Dropzone */
.dropzone {
  border: 2px dashed var(--gray-line);
  background: var(--gray-bg);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--navy);
  background: var(--navy-bg);
}
.dropzone-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  line-height: 40px;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 10px;
}
.dropzone-text { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.dropzone-sub { font-size: 12px; color: var(--muted); }

.file-list { margin-top: 12px; }
.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--gray-line);
  margin-bottom: 4px;
  background: var(--white);
  font-size: 13px;
}
.file-item-info { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.file-icon {
  width: 28px; height: 28px;
  background: var(--navy);
  color: var(--white);
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.file-item-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 340px;
}
.file-item-size {
  color: var(--muted); font-size: 11.5px;
  margin-left: auto;
  margin-right: 12px;
  font-variant-numeric: tabular-nums;
}
.file-remove {
  border: none; background: none; cursor: pointer;
  color: var(--danger); font-size: 20px;
  line-height: 1; padding: 0 6px;
}

/* ─── Confirmación ─────────────────────────────────────────── */
.confirmation { text-align: center; padding: 40px 0; }
.confirmation-icon {
  width: 70px; height: 70px;
  background: var(--success);
  color: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 38px;
  margin: 0 auto 24px;
  font-weight: 700;
}
.confirmation h2 {
  font-size: 28px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 12px;
}
.confirmation p {
  color: var(--ink-soft);
  margin-bottom: 12px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.tracking-code-box {
  display: inline-block;
  border: 2px solid var(--navy);
  background: var(--navy-bg);
  padding: 20px 36px;
  margin: 24px 0;
  text-align: center;
}
.tracking-code-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--navy);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.tracking-code-value {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--navy);
}

/* ─── Login ────────────────────────────────────────────────── */
.login-box {
  max-width: 420px;
  margin: 60px auto;
  padding: 40px 36px;
  background: var(--white);
  border: 1px solid var(--gray-line);
}
.login-box .login-header {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--navy);
}
.login-box h2 {
  font-size: 22px;
  color: var(--navy);
  font-weight: 700;
}
.login-box .sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* ─── Dashboard ────────────────────────────────────────────── */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--navy);
  flex-wrap: wrap;
  gap: 12px;
}
.dash-header h2 {
  font-size: 24px;
  color: var(--navy);
  font-weight: 700;
}
.dash-header .meta {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--gray-line);
  background: var(--gray-bg);
  font-size: 12.5px;
}
.user-pill-dot {
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border: 1px solid var(--gray-line);
  margin-bottom: 28px;
}
.stat {
  padding: 16px 20px;
  border-right: 1px solid var(--gray-line);
}
.stat:last-child { border-right: none; }
@media (max-width: 600px) {
  .stat { border-right: none; border-bottom: 1px solid var(--gray-line); }
}
.stat-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
}

.filters {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-soft);
}
.filters .filter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-right: 10px;
}
.chip {
  padding: 6px 12px;
  border: 1px solid var(--gray-line);
  background: var(--white);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0;
  font-family: inherit;
}
.chip:hover { border-color: var(--navy); }
.chip.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ─── Tabla de denuncias ───────────────────────────────────── */
.reports-table {
  border: 1px solid var(--gray-line);
  background: var(--white);
}
.report-row {
  display: grid;
  grid-template-columns: 140px 1fr 140px 110px 90px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-soft);
  align-items: center;
  cursor: pointer;
  gap: 16px;
  transition: background 0.1s;
}
.report-row:last-child { border-bottom: none; }
.report-row:hover { background: var(--gray-bg); }
.report-row.header {
  background: var(--navy);
  color: var(--white);
  cursor: default;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.report-row.header:hover { background: var(--navy); }
.report-id {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12.5px;
  color: var(--navy);
  font-weight: 600;
}
.report-row.header .report-id { color: var(--white); }
.report-title {
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.report-title small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
  margin-top: 1px;
}
.report-date {
  font-size: 12px;
  color: var(--muted);
  font-family: 'Consolas', 'Courier New', monospace;
}
.report-attach {
  font-size: 11.5px;
  color: var(--muted);
  text-align: right;
}

/* Badges de estado */
.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid;
}
.badge.recibida {
  color: var(--warning);
  border-color: var(--warning);
  background: rgba(230, 81, 0, 0.08);
}
.badge.revision {
  color: var(--info);
  border-color: var(--info);
  background: rgba(21, 101, 192, 0.08);
}
.badge.resuelta {
  color: var(--success);
  border-color: var(--success);
  background: rgba(46, 125, 50, 0.08);
}
.badge.archivada {
  color: var(--muted);
  border-color: var(--muted);
  background: rgba(106, 106, 106, 0.08);
}

@media (max-width: 800px) {
  .report-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; }
  .report-row.header { display: none; }
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-state-icon {
  width: 60px;
  height: 60px;
  border: 2px solid var(--gray-line);
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--gray-line);
}

/* ─── Detalle ──────────────────────────────────────────────── */
.detail-back {
  background: none;
  border: none;
  color: var(--navy);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  margin-bottom: 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.detail-back:hover { text-decoration: underline; }

.detail-header {
  border-bottom: 2px solid var(--navy);
  padding-bottom: 20px;
  margin-bottom: 28px;
}
.detail-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.detail-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.detail-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.detail-meta {
  display: flex;
  gap: 18px;
  font-size: 12.5px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.detail-meta strong { color: var(--ink); font-weight: 600; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
}
@media (max-width: 800px) { .detail-grid { grid-template-columns: 1fr; } }

.detail-section { margin-bottom: 28px; }
.detail-section h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gray-line);
}
.detail-body {
  background: var(--gray-bg);
  border: 1px solid var(--gray-line);
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  color: var(--ink-soft);
}

.detail-sidebar {
  background: var(--gray-bg);
  border: 1px solid var(--gray-line);
  padding: 20px;
  align-self: start;
  position: sticky;
  top: 200px;
}
.detail-sidebar h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gray-line);
}
.detail-sidebar .field { margin-bottom: 14px; }
.detail-sidebar select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--gray-line);
  background: var(--white);
  font-family: inherit;
  font-size: 13px;
}

.evidence-list { display: flex; flex-direction: column; gap: 6px; }
.evidence-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--gray-line);
  background: var(--white);
  font-size: 13px;
}
.evidence-info { flex: 1; min-width: 0; }
.evidence-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.evidence-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  font-family: 'Consolas', 'Courier New', monospace;
}

.note-item {
  padding: 12px 14px;
  border: 1px solid var(--gray-line);
  background: var(--white);
  margin-bottom: 6px;
  border-left: 3px solid var(--navy);
}
.note-item-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.note-item-meta .note-author { color: var(--navy); }
.note-item-text { font-size: 13.5px; color: var(--ink-soft); }

.note-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--gray-line);
  background: var(--white);
  font-family: inherit;
  font-size: 13px;
}

/* ─── Consulta de estado ───────────────────────────────────── */
.status-card {
  border: 1px solid var(--gray-line);
  background: var(--white);
  padding: 24px;
  margin-top: 28px;
}
.status-card-header {
  border-bottom: 2px solid var(--navy);
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.status-card-header h3 {
  font-size: 18px;
  color: var(--navy);
  font-weight: 700;
}

.status-grid { display: grid; gap: 14px; }
.status-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-soft);
}
.status-row:last-child { border-bottom: none; }
.status-row .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 1px;
  padding-top: 4px;
}
.status-row .value {
  font-size: 14px;
  color: var(--ink);
}
@media (max-width: 600px) {
  .status-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ─── Alertas ──────────────────────────────────────────────── */
.alert {
  padding: 11px 16px;
  font-size: 13px;
  margin-bottom: 16px;
  border-left: 4px solid;
}
.alert-error {
  background: rgba(198, 40, 40, 0.06);
  border-color: var(--danger);
  color: var(--danger);
}
.alert-success {
  background: rgba(46, 125, 50, 0.06);
  border-color: var(--success);
  color: var(--success);
}
.alert-info {
  background: var(--navy-bg);
  border-color: var(--navy);
  color: var(--navy);
}

/* Spinner */
.loading {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid var(--gray-line);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Pie corporativo ──────────────────────────────────────── */
.corporate-footer {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--white);
  border-left: 1px solid var(--gray-line);
  border-right: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
  padding: 18px 24px;
  text-align: center;
  border-top: 2px solid var(--navy);
}
.corporate-footer p {
  font-size: 11.5px;
  color: var(--foot);
  letter-spacing: 0.3px;
}
.corporate-footer .sep {
  margin: 0 12px;
  color: var(--gray-line);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white);
  max-width: 460px;
  width: 100%;
  padding: 28px;
  border-top: 4px solid var(--navy);
}
.modal h3 {
  font-size: 18px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 10px;
}
.modal p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--gray-bg); }
::-webkit-scrollbar-thumb { background: var(--gray-line); }
::-webkit-scrollbar-thumb:hover { background: var(--navy); }

/* ═══════════════════════════════════════════════════════════
   v2 — BUZÓN DE QUEJAS Y SUGERENCIAS
═══════════════════════════════════════════════════════════ */

/* ─── Timeline de 6 pasos (Procedimiento) ──────────────────── */
.timeline {
  position: relative;
  padding-left: 70px;
  margin: 32px 0;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--navy);
}
.timeline-step {
  position: relative;
  padding: 12px 0 28px;
}
.timeline-step::before {
  content: attr(data-step);
  position: absolute;
  left: -57px;
  top: 12px;
  width: 38px;
  height: 38px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--gray-line);
}
.timeline-step h3 {
  font-size: 18px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}
.timeline-step p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.timeline-step .bullets {
  list-style: none;
  padding-left: 0;
  margin-top: 6px;
}
.timeline-step .bullets li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.timeline-step .bullets li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--navy);
  font-weight: 700;
}
.timeline-step .bullets li strong {
  color: var(--ink);
}
.timeline-step .bullets.sub {
  margin-top: 4px;
  margin-left: 6px;
}
.timeline-step .bullets.sub li {
  font-size: 13px;
  margin-bottom: 3px;
}
.timeline-step .bullets.sub li::before {
  content: '–';
  color: var(--muted);
}
.timeline-step a {
  color: var(--navy);
  font-weight: 600;
}
.timeline-step code {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12.5px;
  background: var(--gray-bg);
  padding: 1px 6px;
  border: 1px solid var(--gray-line);
}
.callout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 14px;
  background: rgba(46, 125, 50, 0.08);
  border-left: 3px solid var(--success);
  font-size: 13px;
  color: var(--success);
  font-weight: 600;
}
.callout-icon {
  width: 18px; height: 18px;
  background: var(--success);
  color: var(--white);
  border-radius: 3px;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 600px) {
  .timeline { padding-left: 56px; }
  .timeline::before { left: 22px; }
  .timeline-step::before { left: -51px; width: 32px; height: 32px; font-size: 14px; }
}

/* ─── Nota "Lo que debes saber" ────────────────────────────── */
.must-know {
  margin: 28px auto;
  max-width: 820px;
  padding: 18px 22px;
  background: var(--navy-bg);
  border: 1px solid var(--navy);
  border-left: 4px solid var(--navy);
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.6;
}
.must-know strong {
  color: var(--navy);
  margin-right: 4px;
}

/* ─── Tarjetas de canales alternativos ─────────────────────── */
.channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border: 1px solid var(--gray-line);
  margin-bottom: 32px;
}
.channel {
  padding: 22px 20px;
  border-right: 1px solid var(--gray-line);
  text-align: center;
}
.channel:last-child { border-right: none; }
@media (max-width: 760px) {
  .channel { border-right: none; border-bottom: 1px solid var(--gray-line); }
  .channel:last-child { border-bottom: none; }
}
.channel-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.channel h4 {
  font-size: 13px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.channel p {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.channel a {
  color: var(--navy);
  font-weight: 600;
}

/* ─── Tarjetas tipo de envío (Queja / Sugerencia / Denuncia) ─ */
.type-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.type-card {
  position: relative;
  border: 2px solid var(--gray-line);
  padding: 18px 16px;
  cursor: pointer;
  background: var(--white);
  transition: all 0.15s;
  text-align: center;
}
.type-card:hover {
  border-color: var(--navy);
  background: var(--gray-bg);
}
.type-card input {
  position: absolute;
  opacity: 0;
}
.type-card-icon {
  width: 42px;
  height: 42px;
  background: var(--gray-bg);
  color: var(--navy);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 10px;
  transition: all 0.15s;
}
.type-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.type-card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.type-card:has(input:checked) {
  border-color: var(--navy);
  background: var(--navy-bg);
}
.type-card:has(input:checked) .type-card-icon {
  background: var(--navy);
  color: var(--white);
}
.type-card:has(input:checked) .type-card-title {
  color: var(--navy);
}

/* ─── Hint inline en labels ────────────────────────────────── */
.hint-inline {
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  font-size: 12px;
}

/* ─── Badges de tipo (en admin) ────────────────────────────── */
.type-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 0;
}
.type-badge.queja {
  color: #B71C1C;
  border-color: #B71C1C;
  background: rgba(183, 28, 28, 0.07);
}
.type-badge.sugerencia {
  color: var(--success);
  border-color: var(--success);
  background: rgba(46, 125, 50, 0.07);
}
.type-badge.denuncia {
  color: var(--navy);
  border-color: var(--navy);
  background: rgba(31, 56, 100, 0.08);
}

/* Reajuste de columnas dashboard v3: Folio | Tipo | Asunto | Gravedad | Plazo | Estado */
.report-row {
  grid-template-columns: 140px 100px 1fr 90px 90px 110px;
}
@media (max-width: 800px) {
  .report-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; }
}

/* ═══════════════════════════════════════════════════════════
   v3 — Protocolo CPH-PRT-01
   Componentes nuevos respetando paleta y tipografía
═══════════════════════════════════════════════════════════ */

/* Principios Rectores */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border: 1px solid var(--gray-line);
  margin-bottom: 28px;
}
.principle {
  padding: 20px 18px;
  border-right: 1px solid var(--gray-line);
  text-align: center;
}
.principle:last-child { border-right: none; }
@media (max-width: 760px) {
  .principle { border-right: none; border-bottom: 1px solid var(--gray-line); }
  .principle:last-child { border-bottom: none; }
}
.principle-num {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}
.principle h4 {
  font-size: 13px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.principle p {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Marco Normativo */
.normative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border: 1px solid var(--gray-line);
  margin-bottom: 24px;
}
.normative {
  padding: 16px 18px;
  border-right: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
}
.normative:nth-child(3n) { border-right: none; }
@media (max-width: 880px) {
  .normative { border-right: none !important; }
}
.normative-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gray-bg);
  padding: 2px 8px;
  border: 1px solid var(--gray-line);
  margin-bottom: 8px;
}
.normative h4 {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.35;
}
.normative p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Nota de retención */
.retention-note {
  margin: 12px auto 32px;
  max-width: 820px;
  padding: 14px 20px;
  background: var(--gray-bg);
  border-left: 4px solid var(--foot);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.retention-note strong {
  color: var(--ink);
  margin-right: 4px;
}

/* Tarjetas de gravedad */
.severity-card.severity-low  .type-card-icon { color: var(--success); }
.severity-card.severity-med  .type-card-icon { color: var(--warning); }
.severity-card.severity-high .type-card-icon { color: var(--danger); }
.severity-card:has(input:checked).severity-low  { border-color: var(--success); background: rgba(46,125,50,0.07); }
.severity-card:has(input:checked).severity-low  .type-card-icon { background: var(--success); color: white; }
.severity-card:has(input:checked).severity-low  .type-card-title { color: var(--success); }
.severity-card:has(input:checked).severity-med  { border-color: var(--warning); background: rgba(230,81,0,0.07); }
.severity-card:has(input:checked).severity-med  .type-card-icon { background: var(--warning); color: white; }
.severity-card:has(input:checked).severity-med  .type-card-title { color: var(--warning); }
.severity-card:has(input:checked).severity-high { border-color: var(--danger); background: rgba(198,40,40,0.07); }
.severity-card:has(input:checked).severity-high .type-card-icon { background: var(--danger); color: white; }
.severity-card:has(input:checked).severity-high .type-card-title { color: var(--danger); }

/* Badges de gravedad en admin */
.sev-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid;
}
.sev-badge.bajo  { color: var(--success); border-color: var(--success); background: rgba(46,125,50,0.07); }
.sev-badge.medio { color: var(--warning); border-color: var(--warning); background: rgba(230,81,0,0.07); }
.sev-badge.alto  { color: var(--danger);  border-color: var(--danger);  background: rgba(198,40,40,0.07); }

/* Alertas de tiempo (plazos del protocolo) */
.time-alert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.time-alert.ok   { color: var(--success); border-color: var(--success); background: rgba(46,125,50,0.06); }
.time-alert.warn { color: var(--warning); border-color: var(--warning); background: rgba(230,81,0,0.06); }
.time-alert.late { color: var(--danger);  border-color: var(--danger);  background: rgba(198,40,40,0.06); }

/* Editor del Acta Anexo 3 */
.anexo3-form {
  background: var(--gray-bg);
  border: 1px solid var(--gray-line);
  padding: 18px 20px;
  margin-bottom: 18px;
}
.anexo3-form h5 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--navy);
  margin: 14px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gray-line);
}
.anexo3-form h5:first-child { margin-top: 0; }
.anexo3-form textarea {
  width: 100%;
  min-height: 70px;
  padding: 8px 10px;
  border: 1px solid var(--gray-line);
  background: var(--white);
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
}
.anexo3-form input[type="text"],
.anexo3-form input[type="date"] {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--gray-line);
  background: var(--white);
  font-family: inherit;
  font-size: 13px;
}
.anexo3-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .anexo3-form .row { grid-template-columns: 1fr; } }

/* Modal responsiva de confidencialidad (Anexo 4) */
.confidentiality-modal {
  background: var(--white);
  max-width: 580px;
  width: 100%;
  padding: 32px;
  border-top: 4px solid var(--navy);
}
.confidentiality-modal h3 {
  font-size: 20px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 16px;
}
.confidentiality-modal ul {
  margin: 14px 0 18px 22px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.confidentiality-modal ul li { margin-bottom: 6px; }
.confidentiality-modal .ack-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  padding: 12px 14px;
  background: var(--navy-bg);
  border-left: 4px solid var(--navy);
  font-size: 13px;
  color: var(--ink);
}
.confidentiality-modal .ack-confirm input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
}

/* Print views (Anexo 2 y 3) */
@media print {
  body { background: white; }
  .corporate-header, .top-nav, .corporate-footer, .no-print { display: none !important; }
  .print-doc { box-shadow: none; border: none; }
  .print-doc table { page-break-inside: avoid; }
  .print-section { page-break-inside: avoid; }
}
