/* ============================================================
   main.css — Revista de Operaciones · Iztapalapa
   Theme: Light   Navy #0A2D6B · Teal #00897B
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #0A2D6B;
  --navy-light: #1A4A8F;
  --teal: #00897B;
  --teal-light: #4DB6AC;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --card-hover: #F0F4F8;
  --text: #1A1A2E;
  --text-secondary: #5A6078;
  --border: #E2E8F0;
  --shadow: 0 2px 8px rgba(10,45,107,0.08);
  --shadow-lg: 0 8px 24px rgba(10,45,107,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 260px;
  --bottom-h: 64px;
  --r1: #E91E63; --r2: #FF9800; --r3: #4CAF50; --r4: #2196F3; --rv: #9C27B0;
  --rating-1: #EF5350; --rating-2: #FF7043; --rating-3: #FFA726;
  --rating-4: #66BB6A; --rating-5: #26A69A;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ---- Layout ---- */
.app-shell { display: flex; min-height: 100dvh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-header {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.sidebar-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand span { font-size: 1.3rem; }

.sidebar-subtitle {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.sidebar-nav { flex: 1; padding: 12px 0; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-item.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-left-color: var(--teal-light);
}

.nav-item .nav-icon { font-size: 1.15rem; width: 24px; text-align: center; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 24px 28px 32px;
  max-width: 960px;
}

.bottom-nav { display: none; }

/* ---- Cards ---- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-light); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #00796B; }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--navy); background: rgba(10,45,107,0.04); }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn-danger { background: #EF5350; color: #fff; }
.btn-danger:hover { background: #E53935; }

/* ---- Avatar ---- */
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 80px; height: 80px; font-size: 1.3rem; }
.avatar-xl { width: 110px; height: 110px; font-size: 1.6rem; border-width: 3.5px; }

/* ---- Region badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---- Region cards (selectable) ---- */
.region-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.15s;
  border-left: 4px solid var(--teal);
}

.region-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.region-card .region-info { flex: 1; }
.region-card .region-name { font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.region-card .region-sub { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }
.region-card .region-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
}

/* ---- Gerencia chips ---- */
.gerencia-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }

.gerencia-chip {
  padding: 14px 16px;
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.15s;
  border-left: 3px solid var(--teal);
  text-align: left;
}

.gerencia-chip:hover { box-shadow: var(--shadow-lg); background: var(--card-hover); }

/* ---- Module evaluation ---- */
.module-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.module-tab {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  transition: all 0.15s;
  white-space: nowrap;
}

.module-tab:hover { border-color: var(--navy); }
.module-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.module-tab.completed { background: var(--teal); color: #fff; border-color: var(--teal); }

.eval-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.eval-item:last-child { border-bottom: none; }

.eval-label {
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

/* Check items */
.check-group { display: flex; gap: 8px; }

.check-btn {
  padding: 6px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.check-btn.yes.selected { background: var(--teal); color: #fff; border-color: var(--teal); }
.check-btn.no.selected { background: #EF5350; color: #fff; border-color: #EF5350; }

/* Rating items */
.rating-group { display: flex; gap: 6px; flex-wrap: wrap; }

.rating-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rating-btn:hover { border-color: var(--navy); }
.rating-btn.selected { color: #fff; border-color: transparent; }
.rating-btn.selected[data-val="1"] { background: var(--rating-1); }
.rating-btn.selected[data-val="2"] { background: var(--rating-2); }
.rating-btn.selected[data-val="3"] { background: var(--rating-3); }
.rating-btn.selected[data-val="4"] { background: var(--rating-4); }
.rating-btn.selected[data-val="5"] { background: var(--rating-5); }

.rating-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

/* Text items */
.eval-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  resize: vertical;
  min-height: 40px;
  transition: border-color 0.15s;
}

.eval-input:focus { outline: none; border-color: var(--teal); }

.obs-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  resize: vertical;
  min-height: 60px;
  margin-top: 10px;
}

.obs-input:focus { outline: none; border-color: var(--teal); }

/* ---- Progress bar ---- */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin: 12px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--navy));
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* ---- Score display ---- */
.score-ring {
  width: 90px; height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.score-sm { width: 50px; height: 50px; font-size: 0.85rem; }

.module-score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.module-score-row:last-child { border-bottom: none; }

.module-score-name { flex: 1; font-size: 0.88rem; font-weight: 500; }

.module-score-bar {
  flex: 2;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.module-score-fill { height: 100%; border-radius: 4px; transition: width 0.3s; }

.module-score-pct { width: 50px; text-align: right; font-weight: 700; font-size: 0.88rem; }

/* ---- Signature canvas ---- */
.sig-canvas {
  width: 100%;
  height: 180px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  touch-action: none;
  cursor: crosshair;
}

.sig-canvas.signed { border-style: solid; border-color: var(--teal); }

/* ---- Photo evidence ---- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }

.photo-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: var(--bg);
}

.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }

.photo-thumb .remove-photo {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-add {
  aspect-ratio: 1;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--text-secondary);
  gap: 4px;
  transition: border-color 0.15s;
}

.photo-add:hover { border-color: var(--teal); }
.photo-add .plus { font-size: 1.5rem; }


/* ═══════════════════════════════════════════
   LinkedIn-style Profiles
   ═══════════════════════════════════════════ */

/* ── Profile list cards ── */
.linkedin-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.linkedin-card:hover { box-shadow: var(--shadow-lg); }

.linkedin-mini-cover { height: 48px; }

.linkedin-card-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px 16px;
  margin-top: -24px;
  position: relative;
}

.linkedin-card-info { flex: 1; padding-top: 8px; }
.linkedin-card-name { font-weight: 700; font-size: 1rem; color: var(--navy); }
.linkedin-card-role { font-size: 0.8rem; color: var(--text-secondary); }
.linkedin-card-meta { font-size: 0.72rem; color: var(--text-secondary); margin-top: 2px; }
.linkedin-card-exp { margin-top: 6px; display: flex; align-items: center; gap: 8px; }

.exp-mini-bar { flex: 1; height: 3px; background: var(--border); border-radius: 2px; max-width: 80px; }
.exp-mini-fill { height: 100%; border-radius: 2px; transition: width 0.3s; }

.linkedin-card-arrow { color: var(--text-secondary); font-size: 1.5rem; font-weight: 300; }

/* ── Leader rows ── */
.leader-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--card);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s;
}
.leader-row:hover { box-shadow: var(--shadow-lg); }
.leader-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── Profile page (LinkedIn) ── */
.linkedin-profile {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.linkedin-cover {
  height: 140px;
  position: relative;
  overflow: hidden;
}

.linkedin-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; top: 0; left: 0;
}

.cover-edit-btn {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
}

.linkedin-avatar-wrap {
  padding: 0 20px;
  margin-top: -48px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.linkedin-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  overflow: hidden;
  position: relative;
  background: #fff;
  flex-shrink: 0;
}

.linkedin-avatar.small { width: 72px; height: 72px; margin-top: -36px; }

.linkedin-avatar img { width: 100%; height: 100%; object-fit: cover; }

.linkedin-avatar-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
}

.avatar-edit-btn {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  cursor: pointer;
  border: 2px solid #fff;
}

.photo-adjust {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  padding-bottom: 4px;
}

.photo-adjust button {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.75rem;
  cursor: pointer;
}

.photo-adjust button:active { background: var(--bg); }

.linkedin-info {
  padding: 12px 20px 4px;
}

.linkedin-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.linkedin-name-input {
  width: 100%;
  border: none;
  border-bottom: 1px dashed var(--border);
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--teal);
  padding: 4px 0;
  margin: 2px 0 4px;
  outline: none;
}

.linkedin-name-input:focus { border-bottom-color: var(--teal); }

.linkedin-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.linkedin-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ── Profile Tabs ── */
.profile-tabs {
  display: flex;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 12px;
}

.profile-tab {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  font-family: inherit;
  transition: all 0.15s;
}

.profile-tab.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.tab-content { padding: 16px 20px; }

.field-row { margin-bottom: 16px; }

.field-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  resize: vertical;
  min-height: 40px;
}

.field-input:focus { outline: none; border-color: var(--teal); }

/* ── Expediente (tab) ── */
.exp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.exp-header-title { font-weight: 700; font-size: 1rem; color: var(--navy); }
.exp-header-pct { font-weight: 800; font-size: 0.88rem; }

.exp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.exp-row:last-of-type { border-bottom: none; }

.exp-row.uploaded { background: rgba(0,137,123,0.04); margin: 0 -20px; padding: 12px 20px; }

.exp-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.exp-row.uploaded .exp-icon { background: var(--teal); filter: brightness(1.1); }

.exp-body { flex: 1; min-width: 0; }
.exp-title { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.exp-file { font-size: 0.75rem; color: var(--teal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exp-date { font-size: 0.68rem; color: var(--text-secondary); }
.exp-desc { font-size: 0.75rem; color: var(--text-secondary); }

.exp-actions { display: flex; align-items: center; gap: 8px; }

.exp-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
}

.exp-remove {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px;
}

.exp-remove:hover { color: #EF5350; }

.exp-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.exp-upload-btn:active { background: var(--navy-light); }

/* ── Conversations (tab) ── */
.conv-add-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.conv-add-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s;
}

.conv-add-btn:active { background: var(--card); border-color: var(--navy); }

.conv-entry {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
}

.conv-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.conv-badge {
  padding: 3px 10px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
}

.conv-date { flex: 1; font-size: 0.72rem; color: var(--text-secondary); }

.conv-remove {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
}

.conv-notes {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.82rem;
  resize: vertical;
  min-height: 50px;
  background: #fff;
}

.conv-notes:focus { outline: none; border-color: var(--teal); }

/* ═══════════════════════════════════════════
   v2: Acuerdos, Live Report, Visita Layout
   ═══════════════════════════════════════════ */

.acuerdo-item {
  padding: 14px;
  border-left: 4px solid var(--border);
  background: var(--bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 12px;
}

.acuerdo-summary-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.acuerdo-summary-row:last-child { border-bottom: none; }

.status-btn {
  padding: 5px 12px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.status-btn:hover { border-color: var(--navy); }
.status-btn.selected { border-color: transparent; }

.visita-layout { display: flex; gap: 20px; align-items: flex-start; }
.visita-modules { flex: 1; min-width: 0; }

.visita-live-report {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
}

.live-report-header {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.live-module-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.live-module-row.complete { opacity: 1; }
.live-module-icon { font-size: 0.85rem; width: 22px; text-align: center; }
.live-module-info { flex: 1; min-width: 0; }
.live-module-name { font-size: 0.72rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-module-bar { height: 4px; background: var(--border); border-radius: 2px; margin-top: 3px; overflow: hidden; }
.live-module-fill { height: 100%; border-radius: 2px; transition: width 0.3s; }
.live-module-score { font-size: 0.72rem; font-weight: 700; width: 36px; text-align: right; }

.live-obs { font-size: 0.68rem; color: var(--text-secondary); padding: 2px 0 4px 30px; font-style: italic; }

.live-section-title { font-size: 0.72rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 8px; border-top: 1px solid var(--border); }
.live-acuerdo { font-size: 0.72rem; padding: 3px 0; }
.live-alert { font-size: 0.72rem; font-weight: 600; padding: 6px 10px; border-radius: 6px; margin-top: 6px; }
.live-alert.critical { background: #FFEBEE; color: #C62828; }
.live-alert.strong { background: #E0F2F1; color: #00695C; }

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar { display: none; }

  .main-content {
    margin-left: 0;
    padding: 16px 16px 80px;
    max-width: 100%;
  }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottom-h);
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
    z-index: 100;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
  }

  .bnav-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 3px; font-size: 0.65rem; color: var(--text-secondary);
    cursor: pointer; padding: 6px 8px; font-weight: 500;
    border: none; background: none; font-family: inherit;
  }

  .bnav-item .bnav-icon { font-size: 1.25rem; }
  .bnav-item.active { color: var(--navy); font-weight: 700; }

  .skyline-bg { left: 0; }
  .gerencia-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 1.2rem; }

  .visita-layout { flex-direction: column; }

  .visita-live-report {
    width: 100%;
    position: relative;
    top: auto;
    display: none;
    order: -1;
    max-height: none;
    margin-bottom: 12px;
  }
  .visita-live-report.show { display: block; }

  .linkedin-cover { height: 120px; }
  .linkedin-avatar { width: 80px; height: 80px; margin-top: -40px; }
  .linkedin-name { font-size: 1.1rem; }
  .tab-content { padding: 14px 16px; }
  .conv-add-row { grid-template-columns: 1fr 1fr; }
  .profile-grid { grid-template-columns: 1fr 1fr; }

  .linkedin-profile {
    width: 100%;
    border-radius: 12px;
  }
  .linkedin-cover { height: 112px; }
  .linkedin-avatar-wrap { padding: 0 14px; margin-top: -42px; }
  .linkedin-avatar { width: 84px; height: 84px; }
  .linkedin-info { padding: 10px 14px 4px; }
  .linkedin-name { font-size: 1.08rem; line-height: 1.25; }
  .linkedin-role { font-size: 0.78rem; }
  .profile-tabs { overflow-x: auto; }
  .profile-tab { min-width: 105px; white-space: nowrap; font-size: 0.72rem; padding: 11px 6px; }
  .tab-content { padding: 14px; }
  .field-input { font-size: 0.9rem; min-height: 46px; }
  .exp-row, .exp-row.uploaded { margin: 0; padding: 12px 0; gap: 8px; align-items: flex-start; }
  .exp-actions { flex-wrap: wrap; justify-content: flex-end; max-width: 126px; gap: 5px; }
  .exp-actions .exp-upload-btn { padding: 6px 8px; font-size: 0.68rem; }
  .exp-file { max-width: 145px; }
  .back-btn { min-height: 40px; }
}
