/* ============================================================
   modules.css — Estilos Específicos de los 6 Módulos IA
   HealTechOS · Light Mode Clínico · v2.0
   ============================================================ */

/* ────────────────────────────────
   MÓDULO 1 — ScribePro AI
   Transcripción / Notas SOAP
──────────────────────────────── */
.scribe-rec-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(192,57,43,0.07);
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: 6px;
  padding: 5px 10px;
}

.scribe-rec-dot {
  width: 7px;
  height: 7px;
  background: var(--rose);
  border-radius: 50%;
  animation: pulse-g 1s infinite;
}

.scribe-rec-timer {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--rose);
  font-weight: 600;
}

.scribe-transcript {
  background: #F5F9FD;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted2);
  line-height: 1.9;
  min-height: 100px;
}

.scribe-transcript .quote-marker { color: var(--amber); }

.soap-block {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.soap-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--cyan);
  min-width: 18px;
  font-weight: 600;
}

.soap-text { font-size: 12px; color: var(--text); }

/* ────────────────────────────────
   MÓDULO 2 — No-Show Predictor / Agenda
──────────────────────────────── */
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }

.cal-header {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--muted);
  text-align: center;
  padding: 4px 0;
  letter-spacing: 1px;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  position: relative;
  color: var(--text);
}

.cal-day:hover { background: var(--surface2); }

.cal-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
}

.cal-day.today { background: var(--blue); color: white; }
.cal-day.other-month { color: var(--muted); }

.appt-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.appt-card:hover { border-color: var(--border2); box-shadow: 0 2px 8px rgba(15,42,74,0.06); }

.appt-time {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
  min-width: 50px;
}

.appt-noshow-risk {
  font-size: 10px;
  font-family: 'DM Mono', monospace;
  color: var(--rose);
  background: rgba(192,57,43,0.07);
  border: 1px solid rgba(192,57,43,0.15);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: auto;
}

/* ────────────────────────────────
   MÓDULO 3 — Billing Guardian
──────────────────────────────── */
.billing-verify-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  margin-bottom: 6px;
  background: var(--surface);
  transition: all 0.15s;
}

.billing-verify-row:hover { border-color: var(--border2); }

.cie-badge-ok {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--emerald);
  background: rgba(5,150,105,0.08);
  border: 1px solid rgba(5,150,105,0.2);
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: 600;
}

.cie-badge-warn {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--amber);
  background: rgba(192,112,16,0.08);
  border: 1px solid rgba(192,112,16,0.2);
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: 600;
}

.cie-badge-err {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--rose);
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: 600;
}

.billing-roi-hero {
  font-family: 'Instrument Serif', serif;
  font-size: 42px;
  color: var(--emerald);
  line-height: 1;
  letter-spacing: -1px;
}

/* ────────────────────────────────
   MÓDULO 4 — Asistente IA Clínico
──────────────────────────────── */
.ai-chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 140px);
}

.ai-chat-header {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-status-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  animation: pulse-g 2s infinite;
}

.ai-context-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11px;
}

.ai-context-tag.green  { background: rgba(5,150,105,0.07);   border: 1px solid rgba(5,150,105,0.15);  color: var(--emerald); }
.ai-context-tag.blue   { background: rgba(26,111,196,0.07);  border: 1px solid rgba(26,111,196,0.15); color: var(--blue); }
.ai-context-tag.violet { background: rgba(124,58,237,0.07);  border: 1px solid rgba(124,58,237,0.15); color: var(--violet); }

.quick-suggest-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 12px;
  color: var(--muted2);
  font-size: 11px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
  width: 100%;
}

.quick-suggest-btn:hover { color: var(--text); border-color: var(--border2); background: white; }

/* ────────────────────────────────
   MÓDULO 5 — Concierge IA 24/7
──────────────────────────────── */
.portal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.portal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,42,74,0.1);
  border-color: var(--border2);
}

.portal-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.portal-title { font-family: 'Instrument Serif', serif; font-size: 15px; color: var(--navy); margin-bottom: 6px; }
.portal-desc  { font-size: 12px; color: var(--muted2); line-height: 1.5; }

.next-appt-box {
  padding: 12px;
  border-radius: 9px;
  background: rgba(26,111,196,0.05);
  border: 1px solid rgba(26,111,196,0.15);
}

.next-appt-title { font-family: 'Instrument Serif', serif; font-size: 14px; color: var(--navy); margin-bottom: 4px; }
.next-appt-date  { display: flex; align-items: center; gap: 6px; font-family: 'DM Mono', monospace; font-size: 11px; color: var(--blue); }

/* ────────────────────────────────
   MÓDULO 6 — AI Insights & Command Center
──────────────────────────────── */
.insight-card { padding: 12px; border-radius: 9px; margin-bottom: 8px; }
.insight-card.amber  { background: rgba(192,112,16,0.05); border: 1px solid rgba(192,112,16,0.15); }
.insight-card.green  { background: rgba(5,150,105,0.05);  border: 1px solid rgba(5,150,105,0.15); }
.insight-card.blue   { background: rgba(26,111,196,0.05); border: 1px solid rgba(26,111,196,0.15); }

.insight-title { font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.insight-title.amber { color: var(--amber); }
.insight-title.green { color: var(--emerald); }
.insight-title.blue  { color: var(--blue); }
.insight-desc { font-size: 11px; color: var(--muted2); line-height: 1.6; }

.fin-proj-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.fin-proj-track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; margin: 0 10px; overflow: hidden; }
.fin-proj-fill { height: 100%; border-radius: 4px; }
.fin-proj-fill.base { background: var(--muted); }
.fin-proj-fill.ai   { background: linear-gradient(90deg, var(--blue), var(--cyan)); }

/* ────────────────────────────────
   COMPARTIDOS: Gestión de Camas
──────────────────────────────── */
.bed-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; }

.bed-cell {
  aspect-ratio: 1.4;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 10px;
  font-family: 'DM Mono', monospace;
  background: var(--surface);
}

.bed-cell:hover { box-shadow: 0 2px 8px rgba(15,42,74,0.08); }
.bed-cell.occupied { background: rgba(192,57,43,0.06);  border-color: rgba(192,57,43,0.2);  color: var(--rose); }
.bed-cell.free     { background: rgba(5,150,105,0.06);  border-color: rgba(5,150,105,0.2);  color: var(--emerald); }
.bed-cell.cleaning { background: rgba(192,112,16,0.06); border-color: rgba(192,112,16,0.2); color: var(--amber); }
.bed-cell.reserved { background: rgba(26,111,196,0.06); border-color: rgba(26,111,196,0.2); color: var(--blue); }

/* ────────────────────────────────
   COMPARTIDOS: Medicamentos
──────────────────────────────── */
.med-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.med-card:hover { border-color: var(--border2); box-shadow: 0 2px 8px rgba(15,42,74,0.05); }

.med-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.med-name { font-size: 12px; font-weight: 600; color: var(--text); font-family: 'DM Sans', sans-serif; }
.med-dose { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--muted); margin-top: 2px; }
