/* ============================================
   Reyes Citas - Estilos Principales
   ============================================ */
:root {
  --color-primary: #c25a3a; /* Coral */
  --color-primary-dark: #9e452c;
  --color-gold: #d4af37;    /* Dorado */
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }

body { font-family: 'Inter', sans-serif; background-color: #f8fafc; }

/* Sidebar */
#sidebar { background-color: var(--color-primary); }
.nav-btn {
  display: flex; align-items: center; padding: 10px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: #fce4df; transition: all 0.2s;
  width: 100%; text-align: left; border: none; background: transparent; cursor: pointer;
}
.nav-btn:hover { background-color: var(--color-primary-dark); color: #fff; }
.nav-btn.active {
  background-color: var(--color-primary-dark); color: #fff; font-weight: 700;
  border-left: 3px solid var(--color-gold);
}
.nav-btn svg { margin-right: 10px; width: 18px; height: 18px; }

/* Botones */
.btn { padding: 0.55rem 1rem; border-radius: 0.6rem; font-weight: 600; font-size: 0.9rem; transition: all 0.15s; cursor: pointer; }
.btn-primary { background: var(--color-primary); color: #fff; border: 1px solid var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-gold { background: var(--color-gold); color: #fff; border: 1px solid var(--color-gold); }
.btn-ghost { background: #f1f5f9; color: #334155; }

/* Inputs */
.input { width: 100%; padding: 0.55rem 0.75rem; border: 1px solid #cbd5e1; border-radius: 0.6rem; font-size: 0.9rem; }
.input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(194, 90, 58, 0.15); }

/* Tablas */
.tabla { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.tabla th { text-align: left; padding: 0.75rem; background: #f1f5f9; color: #334155; font-weight: 600; border-bottom: 1px solid #e2e8f0; }
.tabla td { padding: 0.7rem 0.75rem; border-bottom: 1px solid #f1f5f9; }
.fila-clickeable { cursor: pointer; transition: background 0.15s; }
.fila-clickeable:hover { background-color: #fdf5f3 !important; }

/* Modales (Arquitectura blindada) */
#modalBox { display: flex !important; flex-direction: column !important; max-height: 90vh !important; overflow: hidden !important; background: #fff; }
#modalBox > div:first-child { flex-shrink: 0 !important; }
#modalBody { flex: 1 1 auto !important; min-height: 0 !important; overflow-y: auto !important; padding: 20px; }
#modalFooter { flex-shrink: 0; background: #fff; padding: 16px 20px; border-top: 1px solid #e2e8f0; display: none; }
.modal-footer-content { display: flex; width: 100%; justify-content: flex-end; gap: 8px; }